Special offers from our partners!
Find Replacement BBQ Parts for 20,308 Models. Repair your BBQ today.
7-349
DATE+(P)
1
2
3
4
6
6
7
8
7.15 Clock instructions
7.15.3 Clock data addition operation (DATE+(P))
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 setting range. (Error code: 4100)
• The device specified by or or exceeds the range of the corresponding device.
(For the Universal model QCPU only.) (Error code: 4101)
Program Example
(1) The following program adds 1 hour to the clock data read from the clock element, and stores
the results in the area starting from D100 when X20 is ON.
[Ladder Mode]
[List Mode]
[Operation]
• Time data read operation triggered by DATERDP instruction.
• Addition triggered by DATE+P instruction.
S1
S2
S1
S2
D
Reads data in the clock element to D0 or late
r
Sets the time to D0 or later
Step Instruction Device
Clock element
95
5
15
D1
D2
Year
Day
Month
10
23
41
2
D0
D3
D4
D5
D6
Hour
Minute
Second
Day of week
Time data
Hour: 1
Minute: 0
Second: 0
D11
D12
Hour: 11
Minute: 23
Second: 41
D101
D102
Hour: 10
Minute: 23
Second: 41
D4
D5
+
D100D10D3