Mitsubishi Electric M800VW Series Programming Manual page 225

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.2 Arithmetic Operation Instructions
INC, INCP, DEC, DECP: Incrementing and decrementing 16-bit BIN data
Setting
Bit devices
data
X
Y
M
L
F
D
[Instruction symbol] [Execution condition]
INC, DEC
INCP, DECP
 Setting data
Setting data
D
Head No. of the device to execute INC (increment) or DEC (decrement) operation
 Functions
INC
 Adds "1" to the device designated by "D" (16-bit data).
D
b15
b0
5678 (BIN)
 If the value of the device designated by "D" is "32767", and the INC or INCP instruction were executed on that device, the
value "-32768" would be stored in the device designated by "D".
DEC
 Subtracts "1" from the device designated by "D" (16-bit data).
D
b15
b0
5678 (BIN)
 If the value of the device designated by "D" is "0", and the DEC or DECP instruction were executed on that device, the
value "-1" would be stored in the device designated by "D".
 Operation errors
 There are no arithmetic errors associated with the INC(P) or DEC(P) instructions.
IB-1501667-B
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
D
b15
5679 (BIN)
1
D
b15
5677 (BIN)
1
Word devices
D
R/ZR W SW SD
Z
b0
b0
204
Digit
Con-
Pointer
designa-
Index
stant
tion
K
H
P
indicates the signs INC/DEC
D
P
D
Data type
BIN 16 bits

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents