Applies To:
  • CitectSCADA 6.00
  • CitectHMI 6.00

Since upgrading to CitectSCADA V6.00, I have been receiving the hardware alarm "CiCode - Invalid argument passed” when calling StrToTime (which was used inside the function TrnSetSpan).
How do I fix this issue?

In CitectSCADA Version 6.00 the function StrToTime now checks that the time string argument is valid.  If it is not a valid time string, it will raise the Hardware Alarm ""CiCode - Invalid argument passed”.
A valid time string is in the format HH:MM:SS or HH:MM:SS tt, where HH is the hour in the range 0-23, MM is the minute in the range 0-59, SS is the second in the range 0-59 and tt is the time extension; e.g., am or pm. The colon character ':' represents the time delimiter for these fields, which will be the current system time delimiter as set in the Windows control panel.
Times may also be passed in the for HH or HH:MM. In other words, you may omit the right-hand fields if they are 0. 

StrToTime, TrnSetSpan, upgrade, V6