Справочник Пользователя для Mitsubishi Electronics FX

Скачать
Страница из 382
FX Series Programmable Controlers
Applied Instructions 5
5-29
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.
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
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:
3 steps
DINC,
DINCP:
5 steps
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:
3 steps
DDEC,
DDECP:
5 steps
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
X0
[ D ]
D 10
INC 
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
X1
[ D ]
D 10
DEC