Subtracting 16-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 16-bit binary data

-(_U)
These instructions perform subtraction between the two sets of 16-bit binary data specified.
ST
ENO:=MINUS(EN,s1,s2,d);
ENO:=MINUS_U(EN,s1,s2,d);
■Execution condition
Instruction
-
-_U
Setting data
■Description, range, data type
Operand
Description
(s1)
-
Minuend data or the device where minuend data is stored
-_U
(s2)
-
Subtrahend data or the device where subtrahend data is stored
-_U
(d)
-
Device for storing the operation result
-_U
EN
Execution condition
ENO
Execution result
■Applicable devices/labels
Operand
Bit
SB
(s1)
(s2)
(d)
6 BASIC INSTRUCTIONS
62
6.1 Arithmetic Operation Instructions
Execution condition
Word
RX, RY, LB
SW
Range
-32768 to 32767
0 to 65535
-32768 to 32767
0 to 65535
G, RWw, RWr, LW
Data type
ANY16_S
ANY16_U
ANY16_S
ANY16_U
ANY16_S
ANY16_U
BOOL
BOOL
Constant
K, H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents