Delta Electronics VFD-E Power Supply User Manual


 
Appendix D How to Use PLC Function|
D-56 Revision June 2008, 04EE, SW--PW V1.11/CTL V2.11
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. In 32-bit operation,
2,147,483,647 pluses 1 and obtains -2,147,483,648.
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
Bit Devices Word devices Program Steps Type
OP
X Y M K H KnX KnY KnM T C D
D * * * * *
DEC, DECP: 3 steps
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. In 32-bit operation, -
2,147,483,648 minuses 1 and obtains 2,147,483,647.
Program Example:
When X0 goes from Off to On, the content in D0 minuses 1 automatically.
X0
DECP D0