Incrementing 32-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Incrementing 32-bit binary data

DINC(_U)
These instructions increment the specified 32-bit binary data by one.
ST
ENO:=DINC(EN,d);
■Execution condition
Instruction
DINC
DINC_U
Setting data
■Description, range, data type
Operand
Description
(d)
DINC
Increment target start device
DINC_U
EN
Execution condition
ENO
Execution result
■Applicable devices/labels
Operand
Bit
SB
(d)
Processing details
• These instructions increment the 32-bit binary data in the device specified by (d) by one.
(d)
(d)+1
b31
b16 b15
···
···
b0
73500 (BIN)
+1
• When the DINC instruction is executed while the data in the device specified by (d) is 2147483647, -2147483648 is stored
in the device specified by (d).
• When the DINC_U instruction is executed while the data in the device specified by (d) is 4294967295, 0 is stored in the
device specified by (d).
Operation error
There is no operation error.
6 BASIC INSTRUCTIONS
74
6.1 Arithmetic Operation Instructions
Execution condition
RX, RY, LB
(d)
(d)+1
b31
b16 b15
···
···
b0
73501 (BIN)
ENO:=DINC_U(EN,d);
Range
-2147483648 to 2147483647
0 to 4294967295
Word
SW
G, RWw, RWr, LW
Data type
ANY32_S
ANY32_U
BOOL
BOOL
Constant
K, H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents