FX Series Programmable Controlers Applied Instructions 5
5-35
5.3.6 DEC (FNC 24)
Operation:
On every execution of the instruction the device
specified as the destination D, has its current value
decremented (decreased) by a value of 1.
In 16 bit operation, when -32,768 is reached the
next increment will write a value of +32,767 to the destination device.
In 32 bit operation, when -2,147,483,648 is reached the next increment will write a value of
+2,147,483,647 to the destination device.
In both cases there is no additional flag to identify this change in the counted value.
Mnemonic Function
Operands
Program steps
D
DEC
FNC 25
(Decrement)
The designated
device is
decremented by 1
on every
execution of the
instruction
KnY, KnM, KnS,
T, C, D, V, Z
Standard V,Z rules apply for 32 bit operation
DEC,DECP:
3steps
DDEC,
DDECP:
5steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X1
[ D ]
D 10
DEC