Applies To:
  • CitectSCADA 3.40 SP F, 4.20 SP F, 5.01

Summary:
The year 2000 poses some problems for usage of dates, so date functionality in Citect has been expanded to accommodate these problems. 

Solution:

Changes to Cicode Functions:

  • Date() - Now has an additional mode (mode 9) which returns extended date format (dd/mm/yyyy).
  • StrToDate() - Now will convert extended date format to a date.
  • TimeToStr() - Now has an additional mode (mode 9) which returns extended date format.
  • DateYear() - Now accepts a mode argument. Mode 0 returns short year (yy), Mode 1 returns full year (yyyy).

Added Alarm Log Format:

DATEEXT - Extended date version of DATE format.

Added Alarm Summary Formats:

ONDATEEXT - Extended date version of ONDATE format.

OFFDATEEXT - Extended date version of OFFDATE format.

ACKDATEEXT - Extended date version of ACKDATE format.

Added Command Log Format:

DATEEXT - Extended date version of DATE format.

Added Parameters:

[ALARM] ExtendedDate
Converts all alarm DATE formats to use extended date format rather than short date format.
Allowable Values:

0 (short date format) - default
1 (extended date format)

[KEYBOARD] LogExtendedDate
Converts all command log DATE formats to use extended date format rather than short date format.
Allowable Values:

0 (short date format) - default
1 (extended date format)

 


Keywords:
 

Attachments