Chapter 16 PLC Function ApplicationsC2000-HS
16-69
API
DEC
D
BIN subtract one
25
D P
Bit device Word device
16-bit command (3 STEP)
DEC Continuous
execution type
DECP Pulse
execution type
32-bit command (5 STEP)
DDEC Continuous
execution type
DDECP 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 (DECP).
During 16-bit operation, -32,768 minus 1 will change the value to 32,767. During
32 bit operation, -2,147,483,648 minus 1 will change the value to -2,147,483,647.
When X0=Off→On, 1 is automatically subtracted from the content of D0.
X0
D0DECP