Clock Data Addition Operation - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Clock data addition operation

DATE+(P)
High
Basic
Process
Redundant Universal
performance
DATE+
DATE+P
(S1): Head number of the devices where the clock data to be adjusted by addition is stored (BIN 16 bits)
(S2): Head number of the devices where the time data to be added for adjustment is stored (BIN 16 bits)
(D): Head number of the devices where the result of addition of clock (time) data will be stored (BIN 16 bits)
Setting
Internal device
data
Bit
Word
(S1)
(S2)
(D)
Processing details
• Adds the time data designated by (S2) to the clock data designated by (S1), and stores the result into the area starting from
the device designated by (D).
Data range
Hour
S1
(0 to 23)
Minute
+
S1
(0 to 59)
+1
Second
S1
(0 to 59)
+2
For example, adding the time 7:48:10 to 6:32:40 would result in the following operation:
S1
Hour: 6
S1
Minute: 32
+
+1
S1
Second: 40
+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
Hour: 14
S1
Minute: 20
+
+1
S1
Second: 30
+2
See Page 685 Writing clock data for further information regarding the data that can be set for hours, minutes,
and seconds.
LCPU
Command
Command
R, ZR
J\
Bit
Data range
Hour
S2
(0 to 23)
Minute
+1
S2
(0 to 59)
Second
S2
+2
(0 to 59)
S2
Hour: 7
S2
+1
Minute: 48
S2
+2
Second: 10
S2
Hour: 20
S2
+1
Minute: 20
S2
+2
Second: 20
DATE+
S1
S2
DATE+P
S1
S2
U\G
Zn
Word
Data range
D
Hour
(0 to 23)
Minute
D
+1
(0 to 59)
Second
D
+2
(0 to 59)
D
Hour: 14
D
+1
Minute: 20
D
+2
Second: 50
D
Hour: 10
D
+1
Minute: 40
D
+2
Second: 50
7 APPLICATION INSTRUCTIONS
D
D
Constant
Others
687
7.15 Clock Instructions
7

Advertisement

Table of Contents
loading

Table of Contents