D-64
API
Mnemonic
Operands Function
24 INC P
D
Increment
Type
OP
Bit Devices
Word devices
Program Steps
X
Y
M K
H KnX KnY KnM T C D INC, INCP: 3 steps
D
*
*
*
*
*
Operands:
D: Destination device
Explanations:
1.
If the instruction is not a pulse execution one, the content in the designated device D will
plus “1” in every scan period whenever the instruction is executed.
2.
This instruction adopts pulse execution instructions (INCP).
3.
In 16-bit operation, 32,767 pluses 1 and obtains -32,768.
Program Example:
When X0 goes from Off to On, the content in D0 pluses 1 automatically.
X0
INCP
D0
API
Mnemonic
Operands Function
25 DEC P
D
Decrement
Type
OP
Bit Devices
Word devices
Program Steps
X
Y
M K
H KnX KnY KnM T C D DEC, DECP: 3 steps
D
*
*
*
*
*
Operands:
D: Destination
Explanations:
1.
If the instruction is not a pulse execution one, the content in the designated device D will
minus “1” in every scan period whenever the instruction is executed.
2.
This instruction adopts pulse execution instructions (DECP).
3.
In 16-bit operation, -32,768 minuses 1 and obtains 32,767.
Program Example:
When X0 goes from Off to On, the content in D0 minuses 1 automatically.
X0
DECP
D0