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
...
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......