298
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
Decrementing 32-bit binary data
DDEC(P)(_U)
These instructions decrement the specified 32-bit binary data by one.
■Execution condition
■Description, range, data type
• In safety programs executed by the Safety CPU, only safety devices and safety labels of data types described in the table
can be used.
■Applicable devices
• In safety programs executed by the Safety CPU, only the following safety devices and constants can be used.
Ladder ST
ENO:=DDEC(EN,d);
ENO:=DDECP(EN,d);
ENO:=DDEC_U(EN,d);
ENO:=DDECP_U(EN,d);
FBD/LD
Instruction Execution condition
DDEC
DDEC_U
DDECP
DDECP_U
Operand Description Range Data type Data type (label)
(d) DDEC(P) Decrement target start device -2147483648 to 2147483647 32-bit signed binary ANY32_S
DDEC(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
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 $
(d)
Operand Bit Word Constant
SA\X, SA\Y, SA\M, SA\SM, SA\B SA\T, SA\ST, SA\C, SA\D, SA\W, SA\SD K, H
(d)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)