Delta DVP-ES2 User Manual Page 198

  • Download
  • Add to my manuals
  • Print
  • Page
    / 702
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 197
DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
3-82
API Mnemonic Operands Function
25
D DEC P
Decrement
Controllers
ES2/EX2 SS2
SA2
SE
SX2
Bit Devices Word devices Program Steps Type
OP
X Y M S K H KnX KnY KnM KnS T C D E F
D
* * * * * ***
DEC, DECP: 3 steps
DDEC, DDECP: 5 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Operands:
D: Destination device
Explanation:
1. If the instruction is not used in pulse execution mode, the content in the designated device D
will minus “1” in every scan whenever the instruction is executed.
2. This instruction is generally used in pulse execution mode (DECP, DDECP).
3. In 16-bit instruction, if –32,768 is reached and “1” is minused, it will write a value of +32,767
to the destination. In 32-bit instruction, if -2,147,483,648 is reached and “1” is minused, it will
write a value of +2,147,483,647 to the destination.
4. If operand D uses index F, only a 16-bit instruction is applicable.
5. The operation results will not affect M1020 ~ M1022
Program Example:
When X0 is triggered, the value in D0 will be decremented by 1.
X0
DECP
D0
Page view 197
1 2 ... 193 194 195 196 197 198 199 200 201 202 203 ... 701 702

Comments to this Manuals

No comments