Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 71

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 absolute value of a value input to the input variable IN from the output variable OUT1, and output
the sign determination of the input value from the output variable OUT2.
• Processing of OUT1
Input value (IN)
Input value (IN)
t
0
t1
t2
• Processing of OUT2
Input value (IN)
Input value (IN)
t
0
t1
t2
■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)
3402H
Input 1 to 16 are subnormal numbers or NaN (not a number).
Processing
OUT1 = |IN|
Processing
IN = 0: OUT2 = 0H
IN > 0: OUT2 = 1H
IN < 0: OUT2 = 2H
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
Output value (OUT1)
Output value (OUT1)
t
0
t1
t2
Output value (OUT2)
Output value (OUT2)
2
1
t
0
t1
t2
OUT1, OUT2
Operation result output value
Undefined value
Undefined value
4.5 Absolute Value (M+P_ABS(_E))
4
69

Advertisement

Table of Contents
loading

Table of Contents