Mitsubishi Electronics FX2C Home Theater Server User Manual


 
FX Series Programmable Controlers Applied Instructions 5
5-29
5.3.5 INC (FNC 24)
Operation:
On ever
y
execution of the instruction the device
specified as the destination D, has its current value
incremented (increased) b
y
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
g
to identif
y
this chan
g
e in the counted value.
5.3.6 DEC (FNC 24)
Operation:
On ever
y
execution of the instruction the device
specified as the destination D, has its current value
decremented (decreased) b
y
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
g
to identif
y
this chan
g
e in the counted value.
Mnemonic Function
Operands
Program steps
D
INC
FNC 24
(
Increment
)
The desi
g
nated
device is
incremented b
y
1
on ever
y
execution of the
instruction
KnY, KnM, KnS,
T, C, D, V, Z
Standard V,Z rules appl
y
for 32 bit operation
INC,INCP:
3 steps
DINC,
DINCP:
5 steps
Mnemonic Function
Operands
Program steps
D
DEC
FNC 25
(Decrement)
The desi
g
nated
device is
decremented b
y
1
on ever
y
execution of the
instruction
KnY, KnM, KnS,
T, C, D, V, Z
Standard V,Z rules appl
y
for 32 bit operation
DEC,DECP:
3 steps
DDEC,
DDECP:
5 steps
X0
[ D ]
D 10
INC
X1
[ D ]
D 10
DEC