Mitsubishi MELSEC Q Series Programming Manual page 724

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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
• The device specified by
(For the Universal model QCPU, LCPU.)
Program Example
(1) The following program subtracts the time data stored in devices starting from D10 from the
clock data read from the clock element when X1C is turned ON, and stores the result at
devices starting from R10.
[Ladder Mode]
[Operation]
• Time data read operation triggered by DATERDP instruction.
Clock device
• Subtraction as triggered by DATE-P instruction (when 10 hours, 40 minutes, and 10
seconds have been designated by D10 to D12).
D103
D104
D105
3:21:20 - 10:40:10
7-350
and
is outside the setting range.
S1
S2
or
S1
S2
D100
95
4
D101
20
D102
D103
3
D104
21
D105
20
D106
1
D10
Hour: 3
D11
Minute: 21
D12
Second: 20
24 is added to this value
or
exceeds the range of the corresponding device.
D
[List Mode]
Step
Instruction
Year
Month
Day
Hour
Minute
Time data
Second
Day of week
Hour: 10
Minute: 40
Second: 10
-8:41:10
(Error code: 4100)
(Error code: 4101)
Device
R10
Hour: 16
R11
Minute: 41
R12
Second: 10
16:41:10

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents