Clock Data Subtraction 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.4

Clock data subtraction operation (DATE-(P))

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents