EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 1371

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
11 PROCESS CONTROL INSTRUCTIONS
11.5 Arithmetic Operation Instructions
1369
11
Input data
Block memory
Operation constant
Processing details
This instruction adds the data of input values (E1 to En) with a coefficient.
The S.ADD instruction performs the following operations.
BW=(K1E1)+(K2E2)...+(KnEn)+B
When the number of inputs (n) is 0, the output value (BW) becomes bias (B).
Operation error
Operand: (s1)
Device Symbol Name Recommended range Data type Standard
value
Set by
+0 n Number of
inputs
0 to 5 16-bit unsigned
binary
User
+1
+2
E1 Input value 1 -999999 to 999999 Single-precision
real number
User
+3
+4
E2 Input value 2

+2n-1
+2n
En Input value n
Operand: (d1)
Device Symbol Name Recommended range Data type Standard
value
Set by
+0
+1
BW Output value -999999 to 999999 Single-precision
real number
System
Operand: (s2)
Device Symbol Name Recommended range Data type Standard
value
Set by
+0 n Number of
coefficients
0 to 5 16-bit unsigned
binary
0 User
+1
+2
K1 Coefficient 1 -999999 to 999999 Single-precision
real number
1.0 User
+3
+4
K2 Coefficient 2

+2n-1
+2n
Kn Coefficient n
+2n+1
+2n+2
B Bias -999999 to 999999 Single-precision
real number
0.0 User
Error code Error content
3402H The value specified by (s1) or (s2) is a subnormal number or NaN (not a number).
3403H An overflow has occurred.
3405H The number of inputs (n) is less than 0 or greater than 5.
The number of coefficients (n) is less than 0 or greater than 5.

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals