DDEC
- 108 -
{ DDEC ... (32-bit BIN data) –1
Usable device
Bit device Word device
Con-
stant
Pointer Level
X Y M L SM F T C D R Z K H P N
Digit
desig-
nation
No. of
steps
Index
D
2
DDEC D
DDEC command
DDEC
Setting data
D
Head No. of device to be
DDECed (-1)
Function
(1) The device (32-bit data) designated with D is decremented by one.
73500 (BIN)
DD+1
-1
73499 (BIN)
D
D+1
B31.........B16B15...........B0
B31.........B16B15...........B0
(2) If DDEC is executed when the details of the device designated with D are 0, -1 will be stored in
the device designated with D.
Execution conditions
The execution conditions for the DDEC command are as shown below.
DDEC
ON
Executed per scan
DDEC command OFF
Executed per scan