Subtracting 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

Subtracting 32-bit binary data

D-(_U)
These instructions perform subtraction between the two sets of 32-bit binary data specified.
ST
ENO:=DMINUS(EN,s1,s2,d);
ENO:=DMINUS_U(EN,s1,s2,d);
■Execution condition
Instruction
D-
D-_U
Setting data
■Description, range, data type
Operand
Description
(s1)
D-
Minuend data or the start device where minuend data is stored
D-_U
(s2)
D-
Subtrahend data or the start device where subtrahend data is stored
D-_U
(d)
D-
Start device for storing the operation result
D-_U
EN
Execution condition
ENO
Execution result
■Applicable devices/labels
Operand
Bit
SB
(s1)
(s2)
(d)
6 BASIC INSTRUCTIONS
66
6.1 Arithmetic Operation Instructions
Execution condition
Word
RX, RY, LB
SW
Range
-2147483648 to 2147483647
0 to 4294967295
-2147483648 to 2147483647
0 to 4294967295
G, RWw, RWr, LW
Data type
ANY32_S
ANY32_U
ANY32_S
ANY32_U
ANY32_S
ANY32_U
BOOL
BOOL
Constant
K, H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents