Chapter 16 PLC Function ApplicationsMH300
DEC
BIN subtract one
DEC
Continuous
execution type
DECP
DDEC
Continuous
execution type
DDECP
Flag signal: none
*
*
*
*
*
Notes on operand usage: none
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, subtracts 1 from the content of D0.