![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/3/8d/38d56254-54fe-46e3-85ae-d3f5260e1091/38d56254-54fe-46e3-85ae-d3f5260e1091-bg9b.png)
FX Series Programmable Controlers Applied Instructions 5
5-29
5.3.5 INC (FNC 24)
Operation:
On ever
execution of the instruction the device
specified as the destination D, has its current value
incremented (increased) b
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 fla
to identif
this chan
e in the counted value.
5.3.6 DEC (FNC 24)
Operation:
On ever
execution of the instruction the device
specified as the destination D, has its current value
decremented (decreased) b
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 fla
to identif
this chan
e in the counted value.
Mnemonic Function
Operands
Program steps
D
INC
FNC 24
(
Increment
The desi
nated
device is
incremented b
1
on ever
execution of the
instruction
KnY, KnM, KnS,
T, C, D, V, Z
Standard V,Z rules appl
for 32 bit operation
INC,INCP:
3 steps
DINC,
DINCP:
5 steps
Mnemonic Function
Operands
Program steps
D
DEC
FNC 25
(Decrement)
The desi
nated
device is
decremented b
1
on ever
execution of the
instruction
KnY, KnM, KnS,
T, C, D, V, Z
Standard V,Z rules appl
for 32 bit operation
DEC,DECP:
3 steps
DDEC,
DDECP:
5 steps
X0
[ D ]
D 10
INC
X1
[ D ]
D 10
DEC