Standard Functions Of One Numeric Variable; Absolute Value - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

5.2

Standard Functions of One Numeric Variable

Absolute value

ABS(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
ABS_E
EN
ENO
s
d
The following function(s) can go in the dotted squares.
ABS, ABS_E
■Argument
Input/output
Name
argument
Input argument
EN
s(_IN)
Output argument
ENO
d
Processing details
■Operation processing
• Outputs the absolute value of word (signed), double word (signed), single-precision real or double-precision real type data
input to (s) from (d) in the same data type as that of (s).
Assuming that the input value is A and the operation output value is B, the relationship is expressed by the following equality.
B= A
• The value to be input to (s) is word (signed), double word (signed), single-precision real or double-precision real type data.
• When the data type of (s) is word (signed) type and the input value is -32768, -32768 is output from (d).
When the data type of (s) is double word (signed) type and the input value is -2147483648, -2147483648 is output from (d).
(No operation error occurs. In case of ABS_E, TRUE is output from ENO.)
• Rounding error may occur when specifying single-precision real or double-precision real type data to (s) by programming
tool.
For precautions when setting an input value using a programming tool, refer to the following.
 MELSEC-Q/L/F Structured Programming Manual (Fundamentals)
LCPU
ST
ENO:=
(EN, s, d);
ABS_E
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Input
Executing condition (TRUE: Execution, FALSE:
Stop)
Output
Data type
Bit
ANY_NUM
Bit
ANY_NUM
5 APPLICATION FUNCTIONS
5.2 Standard Functions of One Numeric Variable
5
123

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents