Clock Data Addition Operation (Date+(P)) - Mitsubishi MELSEC Q Series Programming Manual

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

Advertisement

7.15.3

Clock data addition operation (DATE+(P))

DATE+(P)
DATE+
DATE+P
Setting
Data
S1
S2
D
Function
(1) Adds the time data designated by
result into the area starting from the device designated by
S1
S1
+1
S1
+2
For example, adding the time 7:48:10 to 6:32:40 would result in the following operation:
S1
S1
+1
S1
+2
(2) If the results of the addition of time exceed 24 hours, 24 hours will be subtracted from the
sum to make the final operation result.
For example, if the time 20:20:20 were added to 14:20:30, the result would not be 34:40:50,
but would instead be 10:40:50.
S1
S1
+1
S1
+2
Remark
Command
Command
: Head number of the devices where the clock data to be adjusted by addition is stored (BIN 16 bits)
S1
: Head number of the devices where the time data to be added for adjustment is stored (BIN 16 bits)
S2
: Head number of the devices where the result of addition of clock (time) data will be stored (BIN 16 bits)
D
Internal Devices
R, ZR
Bit
Word
––
––
––
Data range
Hour
S2
(0 to 23)
Minute
+
S2
+1
(0 to 59)
Second
S2
+2
(0 to 59)
Hour: 6
S2
Minute: 32
+
S2
+1
S2
+2
Second: 40
S2
Hour: 14
Minute: 20
+
S2
+1
S2
Second: 30
+2
See 7.15.2 for further information regarding the data that can be set for hours,
minutes, and seconds.
High
Basic
performance
DATE+
S1
DATE+P
S1
J
\
U
\G
Bit
Word
to the clock data designated by
S2
D
Data range
Hour
D
(0 to 23)
Minute
D
(0 to 59)
Second
D
(0 to 59)
D
Hour: 7
D
Minute: 48
Second: 10
D
D
Hour: 20
Minute: 20
D
Second: 20
D
DATE+(P)
Process
Redundant Universal
S2
D
D
S2
Zn
Constants
Other
––
––
––
, and stores the
S1
.
Data range
Hour
(0 to 23)
+1
Minute
(0 to 59)
Second
+2
(0 to 59)
Hour: 14
+1
Minute: 20
+2
Second: 50
Hour: 10
+1
Minute: 40
+2
Second: 50
7-347
1
LCPU
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents