Special offers from our partners!
Find Replacement BBQ Parts for 20,308 Models. Repair your BBQ today.
7-373
S(P).DATE-
1
2
3
4
6
6
7
8
7.16 Expansion Clock Instructions
7.16.3 Expansion clock data subtraction operation (S(P).DATE-)
(2) If the subtraction results in a negative number, 24 will be added to the result to make a final
operation result.
For example, when the clock time 10:42:12:500 is subtracted from 4:50:32:875, the result is
not 6:8:20:375, but 18:8:20:375.
Devices, +3, +3, and +3 are not used for operation.
A clock data read by S(P).DATERD instruction can be directly subtracted.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The data set by and is outside the range. (See Function (1).) (Error code: 4100)
• The device specified by , or exceeds the range of the corresponding device.
(For the Universal model QCPU only.) (Error code: 4101)
Caution
(1) Specifying digit for the bit device can be used only when the following conditions (a) and (b)
are met.
(a) Digit specification: K4
(b) Head of device: multiple of 16
When the above conditions (a) and (b) are not met, INSTRCT CODE ERR.
(error code:4004) will occur.
D
S2
S1
+1
+2
+1
+2
+1
+2
-
S1
S1
S2
S2
D
D
Hour: 4
Minute: 50
Second: 32
+3
+3
+3
S1
S2
D
--
+4
+4
+4
S1
S2
D
Millisecond: 875
Hour: 10
Minute: 42
Second: 12
--
Millisecond: 500
Hour: 18
Minute: 8
Second: 20
--
Millisecond: 375
S1
S2
D
+1
+2
+3
Hour
Minute
Second
Day of week
D
D
D
D
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 subtract
ion since it does not
perform the calculation for the day of the week.
+4
D
S1
S2
S1
S2
D