2-571
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Time and Time of Day Instructions
2
SetTime
The following methods can also be used to set the system time.
• Sysmac Studio
• NTP function
• For In, specify the time for the set time zone (do not specify Greenwich mean time (GMT)).
• You cannot set a time in In that is lower than 1970-1-1-0:0:0.000000000 GMT.
• A time lag will occur when updating the internal time. If the time is read immediately after executing
this instruction, the old time may be read.
• Return value Out is not used when the instruction is used in ST.
• An error occurs in the following cases. ENO will be FALSE, and Out will not change.
• The value of In is outside of the valid range.
• The value of In is below 1970-1-1-0:0:0.000000000 GMT.
Related System-defined Variables
Name Meaning Data type Description
_CurrentTime System Time of Day DT The time of day from the system clock. The num-
ber of seconds from 00:00:00 on January 1,1970.
Additional Information
Precautions for Correct Use