7 APPLICATION INSTRUCTIONS
7.25 Clock Instructions
1007
7
Subtracting clock data
DATE-(P)
These instructions subtract time data.
*1 The engineering tool with version "1.035M" or later supports the ST.
■Execution condition
■Descriptions, ranges, and data types
■Applicable devices
Ladder ST
*1
ENO:=DATEMINUS(EN,s1,s2,d);
ENO:=DATEMINUSP(EN,s1,s2,d);
FBD/LD
( is replaced by either of the following: DATEMINUS, DATEMINUSP.)
Instruction Execution condition
DATE-
DATE-P
Operand Description Range Data type Data type (label)
(s1) Start device where minuend clock data is stored Refer to "Processing
details".
16-bit signed binary ANY16_ARRAY
(Number of elements: 3)
(s2) Start device where the subtrahend time (clock) data is
stored
Refer to "Processing
details".
16-bit signed binary ANY16_ARRAY
(Number of elements: 3)
(d) Start device for storing the subtraction result time (clock)
data
16-bit signed binary ANY16_ARRAY
(Number of elements: 3)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s1)
(s2)
(d)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)