Decrementing 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

Decrementing 32-bit binary data

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents