Chapter 16 PLC Function Applications│CP2000
16-70
API
INC
D
BIN add one
24
D P
Bit device Word device
16-bit command (3 STEP)
INC Continuous
execution type
INCP Pulse
execution type
32-bit command (5 STEP)
DINC Continuous
execution type
DINCP Pulse
execution type
Flag signal: none
X Y M K H KnX KnY KnM T C D
D
* * * * *
Notes on operand usage: none
D
: Destination device.
If a command is not the pulse execution type, when the command is executed, the
program will add 1 to the content of device
D
for each scanning cycle.
This command is ordinarily used as a pulse execution type command (INCP).
During 16-bit operation, 32,767 +1 will change the value to -32,768. During 32 bit
operation, 2,147,483,647 +1 will change the value to -2,147,483,648.
When X0=Off→On, 1 is automatically added to the content of D0.
X0
D0INCP