Arithmetic Operation Instruction: Bin 16-Bit Data Increment/Decrement - Mitsubishi Electric A800 Programming Manual

800 series, plc function
Hide thumbs Also See for A800:
Table of Contents

Advertisement

3.26.6
Arithmetic operation instruction:
BIN 16-bit data increment/decrement ... INC,
INCP, DEC, DECP
Bit device
X
Y
INC,
INCP,
D
DEC,
DECP
Command
Command
Function
INC
• Adds 1 to the device designated by
• When INC/INCP operation is executed for the device designated by
stored at the device designated by
DEC
• Subtracts 1 from the device designated by
• When DEC/DECP operation is executed for the device designated by , whose content is -32768, the value 32767 is stored
at the device designated by
Program Example
The following is a down counter program.
Applicable device
Word (16-bit) device
M
T
C
D
D
(16-bit data).
D
b15
b0
5678 (BIN)
.
D
D
(16-bit data).
D
b15
b0
5678 (BIN)
D
.
Transfers 100 to D8 when X7 goes ON.
In the state M38=OFF, decrement at D8 (D8 - 1) is
executed when X8 goes from OFF to ON.
At D8=0, M38 goes ON.
Digit
Constant
Level
specification
K
H
N
K1 to K4
Instruction symbol inside
INC, DEC
Setting data
D
Start number of devices for INC
(+1)/DEC (-1) operation (BIN 16
D
P
D
bits)
D
b15
b0
5679 (BIN)
D
, whose content is 32767, the value -32768 is
D
b15
b0
5677 (BIN)
1
Basic instruction (16-bit)
Error flag
(SM0)
Coding
Sequence program
3
151

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F800

Table of Contents