Chapter 6 Basic Instructions; Arithmetic Operation Instructions; Adding 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

6
BASIC INSTRUCTIONS
6.1

Arithmetic Operation Instructions

Adding 16-bit binary data

+(_U)
These instructions add the two sets of 16-bit binary data specified.
ST
ENO:=PLUS(EN,s1,s2,d);
ENO:=PLUS_U(EN,s1,s2,d);
■Execution condition
Instruction
+
+_U
Setting data
■Description, range, data type
Operand
Description
(s1)
+
First addend data or the device where the first addend data is stored
+_U
(s2)
+
Second addend data or the device where the second addend 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
60
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