A SERVICE OF

logo

8. Function Commands
DEC, DECP
- 190 -
{ DEC, DECP ... (16-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
DEC
D
Decrement command
DECP
D
DEC
DECP
Setting data
D
No. of device to be
decremented (-1)
Function
(1) The device (16-bit data) designated with D is decremented by one.
5678 (BIN)
B15……………………………B0
D
-1
5677 (BIN)
B15……………………………B0
D
(2) If DEC or DECP 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 DEC, DECP commands are as shown below.
Command OFF
DEC
ON
Executed per scan
Executed per scan
DECP