EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 1309

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.3 Control Operation Instructions
1307
11
Input data
Block memory
Processing details
This instruction calculates and outputs the mean value of input values E1 to En.
Average value calculation
The instruction calculates the mean value of input values E1 to En.
The numerical value specified by the number of inputs (n) is used as the denominator.
Operation error
Operand: (s1)
Device Symbol Name Recommended range Data type Standard
value
Set by
+0 n Number of
inputs
1 to 16 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 Mean value of E1 to En Single-precision
real number
System
Error code Error content
3400H An invalid operation (such as division by zero) is performed.
3402H (s1) is a subnormal number or NaN (not a number).
3403H An overflow has occurred.
3405H The number of inputs (n) is less than 1 or greater than 16.
BW=
N
E1+E2+E3 En
...

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals