Applies To:
  • CitectSCADA v7.10 

HF710R143540 for CitectSCADA Version 7.10

Bug 43540 - Synchronising citect with the PLC time.

The Cicode function TimeSet was removed in CitectSCADA 7.10 but has now been re-implement with limited functionality. Please see below for it's new useage.


Sets the new system time. You can set the time only on the computer which this function is called.

Time/date functions can only be used with dates from 1980 to 2035.

Please note that if TimeSet is called but the logged in user does not have privileges to change the system time, they will receive a hardware alarm indicating this.



Time: The time/date variable to which the new time is set. Sets the time on this computer only.

Return Value:
The error status of the set.


! set the time to 11:43 on June 23 1993
time = StrToTime("11:43:00") + StrToDate("23/6/93");

Files Affected:
CtApi.dll                             copy to Program Files\Citect\CitectSCADA 7.10\Bin
Client.dll                            copy to Program Files\Citect\CitectSCADA 7.10\Bin
CtCmp32.exe                           copy to Program Files\Citect\CitectSCADA 7.10\Bin
CtBack32.exe                          copy to Program Files\Citect\CitectSCADA 7.10\Bin
CtEdit32.exe                          copy to Program Files\Citect\CitectSCADA 7.10\Bin
FUNC0.dbf                             copy to Program Files\Citect\CitectSCADA 7.10\Bin
CtApi.dll                             copy to Common Files\Citect
CiTrendArchiveFileOffset.dll          copy to Common Files\Citect
CiTrendArchiveFileOffset8Byte.dll     copy to Common Files\Citect
CiTrendArchiveInterpolator.dll        copy to Common Files\Citect
CiTrendManager.dll                    copy to Common Files\Citect