EasyManua.ls Logo

Delta Electronics EXIO14RAE - Page 119

Delta Electronics EXIO14RAE
157 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix D Use of Application Instructions|DOP-EXIO Series
D-38
Revision March, 2008, Doc. Name: 2007PDD23000014
Mnemonic Operands Function
DEC D
D
BIN
減一
Bit Devices Word Devices
X Y M S K H KnX KnY KnM KnS T C D E F
D
y Note:
1. If D is used in device F, only 16-bit instruction is applicable.
16-bit instruction (3 Steps)
DEC
Continuous
execution
32-bit instruction (5 Steps)
DDEC
Continuous
execution
y Flags: None
Operands:
D
: Destination device
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. 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.
3. The operation results will not affect any flags.
Program Example:
When X0 = OffOn, the content in D0 minuses 1 automatically.
X0
DECP D0

Related product manuals