FX Series Programmable Controlers Applied Instructions 5
5-34
5.3.5 INC (FNC 24)
Operation:
On every execution of the instruction the device
specified as the destination D, has its current value
incremented (increased) by a value of 1.
In 16 bit operation, when +32,767 is reached, the
next increment will write a value of -32,768 to the destination device.
In 32 bit operation, when +2,147,483,647 is reached the next increment will write a value of -
2,147,483,648 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
INC
FNC 24
(
Increment)
The designated
device is
incremented 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
INC,INCP:
3steps
DINC,
DINCP:
5steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X0
[ D ]
D 10
INC