6.2 Arithmetic Operation Instructions
6.2.15 16-bit BIN data increment and decrement
6-59
6
BA
S
IC
INSTRUCTIONS
INC, DE
C
INC, DEC
6.2.15
16-bit BIN data increment and decrement
INC, DEC
F
unct
i
on
INC(P)
(1) Adds 1 to the variable (16-bit data) specified for
.
(2) When the instruction is executed with the variable specified for
, which value is 32768, the
value 32768 is stored to the variable specified for
.
DEC(P)
(1) Subtracts 1 from the variable (16-bit data) specified for
.
(2) When the instruction is executed with the variable specified for
, which value is 32768,
the value 32767 is stored to the device specified for
.
INC(P)
DEC(P)
P: Executing condition
:
indicates any of the following
instructions.
INC
INCP
DEC
DECP
Input argument,
EN:
Executing condition
: Bit
Output argument,
ENO:
Execution result
: Bit
d:
Variable (16-bit data) to be incremented or decremented by 1 : ANY16
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
−
U
n
i
versa
l
UD
Hi
g
h
Per
f
ormance
Structured ladder
ST
INC
EN
ENO
d
INC
(EN, d);
ENO:=
d
d
+1
56
79
(B
IN
)
b
0
56
78
(B
IN
)
b15
d
b
0
b15
d
d
d
d
1
56
77
(B
IN
)
b
0
56
78
(B
IN
)
b15
d
b
0
b15
d
d
d
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......