A SERVICE OF

logo

8. Function Commands
DDEC, DDECP
- 192 -
{ DDEC, DDECP ... (32-bit BIN data) –1
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
D
{ { { { { {
{
{ { { { { { { {
{ {
2
DDEC D
Decrement command
DDECP
D
DDEC
DDECP
Setting data
D
Head No. of device to be
decremented (-1)
Function
(1) The device (32-bit data) designated with D is decremented by one.
73500 (BIN)
DD+1
B31………B16 B15………B0
-1
73499 (BIN)
D
D+1
B31………B16 B15………B0
(2) If DDEC or DDECP is executed when the data of the device designated with D is 0, -1 will be
stored in the device designated with D.
Execution conditions
The execution conditions for the DDEC, DDECP commands are as shown below.
DDEC
ON
Executed per scan
DDECP
Command OFF
Executed per scan