716
7 APPLICATION INSTRUCTIONS
7.16 Expansion Clock Instructions
Devices, (S1)+3, (S2)+3, and (D)+3 are not used for operation.
A clock data read by S(P).DATERD instruction can be directly subtracted.
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
• Specifying digit for the bit device can be used only when the following conditions are met.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 The value set for (S1) and (S2) is not within the setting range.
(Processing details)
4101 The range of the device specified by (S1), (S2) or (D) exceeds the range of
the corresponding device.
• Digit specification: K4
• Head of device: multiple of 16
When the above conditions are not met, INSTRCT CODE ERR. (error code: 4004) will occur.
(D)
(D)+1
(D)+2
(D)+3
(D)+4
Hour
Minute
Second
Day of week
Millisecond
When the clock data is read by the S(P).DATERD instruction, day of week is inserted between "second" and "millisecond".
If the S(P).DATE- instruction is used to read the clock data, the data can be directly used for subtraction since it does not
perform the calculation for the day of the week.