Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 69

Process control function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
■Operation processing
These functions output the mean value of the values input to the input variables IN[0] to IN[15] from the output variable OUT1.
OUT = (IN[0] + IN[1] + IN[2] + ... + IN[15])  NUM
IN[0] to IN[15]: Input value, OUT1: Output value, NUM: Input number
■Operation result
• Function block without EN/ENO
Operation result
No operation error
Operation error
• Function block with EN/ENO
The execution conditions and operation results will be as follows.
Execution condition
EN
TRUE (operation execution)
FALSE (operation stop)
*1 If the value FALSE is output from ENO, the output data from this function block will be undefined. Create a program so that the
undefined value will not be used in operations.
Operation error
Error code
Description
(SD0)
3400H
An invalid operation (such as division by zero) is performed.
3402H
Input 1 to 16 are subnormal numbers or NaN (not a number).
3403H
An overflow has occurred.
3405H
The number of inputs is less than 1 or greater than 16.
OUT1, OUT2
Operation result output value
Undefined value
Operation result
ENO
TRUE (no operation error)
*1
FALSE (operation error)
*1
FALSE
4 ANALOG VALUE SELECTION AND AVERAGE VALUE
OUT1, OUT2
Operation result output value
Undefined value
Undefined value
4.4 Average Value (M+P_AVE(_E))
4
67

Advertisement

Table of Contents
loading

Table of Contents