Chapter 14 Arithmetic Operation Functions; Addition - 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

14
ARITHMETIC OPERATION FUNCTIONS
14.1

Addition

ADD
This function outputs the sum of input values ((s1)+(s2)+⋅⋅⋅+(s28)).
*1
Structured text
d:=ADD(s1,s2);
*1 The input variable s can be changed within the range from 2 to 28.
Setting data
■Description, type, data type
Argument
Description
s1 (IN1) to s28 (IN28)
Input
d
Output
Processing details
■Operation processing
• This function adds the INT, DINT, WORD, DWORD, REAL, or LREAL data type values input to (s1) to (s28)
((s1)+(s2)+⋅⋅⋅+(s28)), and output the operation result, in the same data type as (s), from (d).
Ex.
Data type: INT
(s1)
(s2)
1234
+
5678
INT
INT
• Input an INT, DINT, WORD, DWORD, REAL, or LREAL data type value to (s1) to (s28).
(d)
6912
INT
14 ARITHMETIC OPERATION FUNCTIONS
Type
Data type
Input variable
ANY_NUM
Output variable
ANY_NUM
14.1 Addition
14
177

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents