6. BASIC INSTRUCTIONS
6
−
34
MELSEC-A
6.2.9 16-bit BIN data increment, decrement
(INC, INCP, DEC, DECP)
Available Device
Bit device
Word (16-bit) device
Constant
Pointer
Level
Ca
rr
y
fla
g
Err
o
r
fla
g
X Y M L S B F T C D W R A0
A1
Z V K H P I N
D
igit specification
In
d
e
x
M9012 (M9010, M9011)
(D)
O O O O O O O O O O O O O O O O
O
Functions INC
(1) Performs the addition of 1 to the device (16-bit data) specified at (D).
(2) If INC or INCP is executed when the content of device specified at (D) is 32767,
-32768 is stored into the device specified at (D).
DEC
(1) Performs the subtraction to 1 from the device (16-bit data) specified at (D).
(2) If DEC or DECP is executed when the content of device specified at (D) is
-32768, 32767 is stored into the device specified at (D).
Execution Conditions
Applicable
CPU
All CPUs
INC, DEC commands
K1
to
K4
(D)
(D)
(D)
Head device number for
INC (+1), DEC (-1)
Setting data
INC, DEC
Indicates the instruction symbol.
INC, DEC
commands
Executed
per scan
Executed
per scan
Executed
only once
P
P
ON
OFF
Executed
only once
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......