
Appendix D How to Use PLC Function
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
2,147,483,647 pluses 1 and obtains
When X0 goes from Off to On, the content in D0 pluses 1 automatically.
X0
INCP D0
API
25
| Mnemonic |
| Operands | Function | |
|
|
|
|
|
|
| DEC |
| P | D | Decrement |
|
|
|
|
|
|
Type | Bit Devices |
|
| Word devices |
|
| Program Steps | ||||
OP | 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
Program Example:
When X0 goes from Off to On, the content in D0 minuses 1 automatically.
X0
DECP D0
Revision June 2008, 04EE, |