Chapter 16 PLC Function ApplicationsMS300
API
INC
24
D
bit device
X
Y
M
D
Notes on operand usage: none
API
DEC
25
D
bit device
X
Y
M
D
Notes on operand usage: none
P
Word device
K
H
KnX KnY KnM
*
*
D: Destination device.
If a command is not the pulse execution type, adds 1 to the content of device
D
during each scanning cycle.
Generally use this command as a pulse execution type command (INCP).
During 16-bit operation, 32,767 +1 rolls over to -32,768. During 32-bit operation,
2,147,483,647 +1 rolls over to -2,147,483,648.
When X0 switches from OFF to ON, it automatically adds 1 to the content of D0.
D
P
Word device
K
H
KnX KnY KnM
*
*
*
*
*
D: Destination device.
If a command is not the pulse execution type, adds 1 to the content of device D
during each scanning cycle.
Generally use this command as a pulse execution type command (DECP).
During 16-bit operation, -32,768 -1 rolls over to 32,767. During 32-bit operation,
-2,147,483,648 -1 rolls over to 2,147,483,647.
When X0 switches OFF to ON, it automatically subtracts 1 from the content of
D0.
BIN add one
16-bit command (3 STEP)
INC
T
C
D
*
*
*
32-bit command (5 STEP)
DINC
Flag signal: none
BIN subtract one
16-bit command (3 STEP)
DEC
T
C
D
32-bit command (5 STEP)
DDEC
Flag signal: none
718
Continuous
INCP
execution type
execution type
Continuous
DINCP
execution type
execution type
Continuous
DECP
execution type
execution type
Continuous
DDECP
execution type
execution type
Pulse
Pulse
Pulse
Pulse