584
7 APPLICATION INSTRUCTION
7.19 Clock instruction
• These instructions occupy three points for each of three devices starting from device number specified by (s1), (s2), and (d)
respectively. Make sure that these devices are not used by other machine controls.
• When using the time value (hour, minute, second) of the built-in real time clock in the CPU module for the operation, use
the TRD(P) operation to read the special register values first. Then specify the word devices where the read values are
stored to each operand.
SM8020 Zero If the result is 0:00:00, this special relay turns on.
SM8022 Carry If the result exceeds the maximum value of the time data, 23:59:59, this special relay turns on.
Error code
(SD0/SD8067)
Description
2820 The device range specified by (s1), (s2), and (d) exceeds the corresponding device range.
3405 Any of values specified by (s1) and (s2) is outside the following range.
0 to 23
Any of values specified by (s1)+1, (s2)+1, (s1)+2, and (s2)+2 is outside the following range.
0 to 59
Device Name Description