Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored in SD0.
Error
Error details
code
4101
The value in the device specified by (S1)+0, (S2)+0, (S3)+0 exceeds the
setting range (0 to 23).
The value in the device specified by (S1)+1, (S2)+1, (S3)+1 exceeds the
setting range (0 to 59).
The value in the device specified by (S1)+2, (S2)+2, (S3)+2 exceeds the
setting range (0 to 59).
Program example
• The sample program compares any specified clock data with D0 (hour), D1 (minute), and D2 (second).
[Ladder Mode]
7 APPLICATION INSTRUCTIONS
708
7.15 Clock Instructions
Q00J/
QnH
QnPH
Q00/
Q01
Compare the lower limit value (D20) and
the upper limit value (D30) with D0.
M0 turns on when D20 > D0.
M1 turns on when D20 ≤ D0 ≤ D30.
M2 turns on when D0 > D30.
QnPRH
QnU
LCPU