Incrementing And Decrementing 32-Bit Bin Data: Dinc, Ddec - Mitsubishi Electric MELSEC Q Series Programming Manual

Motion controller
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU

5.4.8 Incrementing and decrementing 32-bit BIN data: DINC, DDEC

Setting
data
X
Y
M
(D)
[Setting data]
[Function]
Bit device
SM
F
T
C
D
[Instruction]
Command
DINC
Command
DDEC
Setting data
(D)
(1) Incrementing 32-bit BIN data (DINC)
• Adds 1 to the device designated by (D) (32-bit data).
• When DINC operation is executed for the device designated by (D), whose
content is 2147483647, the value -2147483648 is stored at the device
designated by (D).
(2) Decrementing 32-bit BIN data (DDEC)
• Subtracts 1 from the device designated by (32-bit data).
• When DDEC operation is executed for the device designated by (D), whose
content is -2147483648, the value 2147483647 is stored at the device
designated by (D).
Usable device
Word device
W
T
C
SD
Z
Head number of devices for DINC(+1) or DDEC(-1) operation
5 - 39
Constant
Pointer
Level
K
H
P
N
DINC
(D)
DDEC
(D)
Description
(BIN 32 bits)
Digit
desig-
Index
nation
: Usable

Advertisement

Table of Contents
loading

Table of Contents