Mitsubishi MELSEC-Q/L Programming Manual page 596

Table of Contents

Advertisement

S.DATE-, SP.DATE-
7.16.3
S.DATE-, SP.DATE-
Expansion clock data subtraction operation
7.16.3
S.DATE-, SP.DATE-
S.DATE-
SP.DATE-
: 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
Setting
Data
Bit
Word
––
S1
––
S2
––
D
Function
(1) Subtracts the time data designated by
from the device designated by
Setting data
Hour
S1
(0 to 23)
S1
Minute
+1
(0 to 59)
Second
S1
(0 to 59)
+2
--
S1
+3
Millisecond
S1
+4
(0 to 999)
For example, when the clock time 3:50:10:500 is subtracted from the clock time 10:40:20:875, the operation is performed
as follows:
Hour: 10
S1
S1
Minute: 40
+1
S1
Second: 20
+2
S1
--
+3
S1
Millisecond: 875
+4
(2) If the subtraction results in a negative number, 24 will be added to the result to make a final operation result.
For example, when the clock time 10:42:12:500 is subtracted from 4:50:32:875, the result is not 6:8:20:375, but
18:8:20:375.
Hour: 4
S1
S1
Minute: 50
+1
S1
Second: 32
+2
S1
--
+3
S1
Millisecond: 875
+4
594
Command
Command
J
R, ZR
Bit
from the clock data designated by
S2
.
D
Setting data
Hour
S2
+1
Minute
S2
Second
S2
+2
-
--
S2
+3
S2
+4
Millisecond
Hour: 3
S2
S2
+1
Minute: 50
S2
+2
-
Second: 10
S2
+3
--
S2
+4
Millisecond: 500
Hour: 10
S2
+1
Minute: 42
S2
-
S2
+2
Second: 12
S2
+3
--
S2
+4
Millisecond: 500
Ver.
High
Basic
performance
• High Performance model QCPU, Process CPU, Redundant
CPU: The serial number (first five digits) is "07032" or later.
S1
S.DATE-
S1
SP.DATE-
\
U
\G
Word
––
––
––
, and stores the result into the area starting
S1
D
Hour
(0 to 23)
D
+1
Minute
(0 to 59)
Second
D
+2
(0 to 59)
--
D
+3
D
Millisecond
+4
(0 to 999)
D
Hour: 6
D
+1
Minute: 50
D
+2
Second: 10
D
+3
--
D
+4
Millisecond: 375
D
Hour: 18
D
+1
Minute: 8
D
+2
Second: 20
D
+3
--
D
+4
Millisecond: 375
Ver.
Ver.
Process
Redundant Universal
LCPU
S2
D
S2
D
Zn
Constants
Other
Setting data
(0 to 23)
(0 to 59)
(0 to 59)
(0 to 999)

Advertisement

Table of Contents
loading

Table of Contents