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

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

Advertisement

Basic instruction (32-bit)
3.27.6
Arithmetic operation instruction:
BIN 32-bit data increment/decrement ... DINC,
DINCP, DDEC, DDECP
Bit device
X
Y
DINC,
DINCP,
D
DDEC,
DDECP
Command
Command
Function
DINC
• Adds 1 to the device designated by
• When DINC/DINCP operation is executed for the device designated by
-2147483648 is stored at the device designated by
DDEC
• Subtracts -1 from the device designated by
• When DDEC/DDECP operation is executed for the device designated by
the device designated by
Program example
• The following program adds 1 to the data at D0 and D1 when X0 is ON.
• The following program subtracts 1 from the data at D0 and D1 when X0 goes ON.
166
Sequence program
Applicable device
Word (16-bit) device
M
T
C
D
D
(32-bit data).
D
D
+1
b31
b16 b15
b0
73500 (BIN)
D
(32-bit data).
D
D
D
+1
b31
b16 b15
b0
73500 (BIN)
.
D
Coding
Coding
Constant
Level
specification
K
H
N
K1 to K4
Instruction symbol inside
DINC, DDEC
Setting data
D
D
P
D
D
D
+1
b31
b16 b15
b0
73501 (BIN)
, whose content is 2147483647, the value
D
.
D
D
+1
b31
b16 b15
b0
1
73499 (BIN)
, whose content is 0, the value -1 is stored at
D
Error flag
Digit
(SM0)
Start number of devices
for DINC(+1) or DDEC(-1)
operation (BIN 32 bits)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F800

Table of Contents