594
S.DATE-, SP.DATE-
: Head number of the devices where the clock time data to be adjusted by substraction is stored (BIN 16 bits)
: Head number of the devices where time data to be subtracted for adjustment is stored (BIN 16 bits)
: Head number of the devices where the result of subtraction of clock (time) data will be stored (BIN 16 bits)
F
unct
i
on
(1) Subtracts the time data designated by from the clock data designated by , and stores the result into the area starting
from the device designated by .
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:
(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.
7.16.3
S.DATE-, SP.DATE-
Expansion clock data subtraction operation
7.16.3
S.DATE-, SP.DATE-
• High Performance model QCPU, Process CPU, Redundant
CPU: The serial number (first five digits) is "07032" or later.
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
––
––
––
––
Bas
i
c
Process
High
performance
Redundant Universal
LCPU
Ver.
Ver.
Ver.
Command
S
.
DA
TE-
SP
.
DA
TE-
S.DATE-
Command
SP.DATE-
S1
S2
D
S1
S2
D
S1
S2
D
S1
S2
D
S2
S1
D
D
S2
S1
Hour
Minute
Second
+1
+2
(0 to 23)
(0 to 59)
(0 to 59)
Hour
Minute
Second
+1
+2
(0 to 23)
(0 to 59)
(0 to 59)
Hour
Minute
Second
+1
+2
(0 to 23)
Setting data
Setting data
Setting data
(0 to 59)
-
(0 to 59)
S1
S1
S2
S2
D
D
--
+3
--
+3
--
+3
S1
S2
D
Millisecond
+4
(0 to 999)
Millisecond
+4
(0 to 999)
Millisecond
+4
(0 to 999)
S1
S2
D
D
S2
S1
+1
+2
+1
+2
+1
+2
-
S1
S1
S2
S2
D
D
Hour: 10
Minute: 40
Second: 20
+3
+3
+3
S1
S2
D
--
+4
+4
+4
S1
S2
D
Millisecond: 875
Hour: 3
Minute: 50
Second: 10
--
Millisecond: 500
Hour: 6
Minute: 50
Second: 10
--
Millisecond: 375
D
S2
S1
+1
+2
+1
+2
+1
+2
-
S1
S1
S2
S2
D
D
Hour: 4
Minute: 50
Second: 32
+3
+3
+3
S1
S2
D
--
+4
+4
+4
S1
S2
D
Millisecond: 875
Hour: 10
Minute: 42
Second: 12
--
Millisecond: 500
Hour: 18
Minute: 8
Second: 20
--
Millisecond: 375