Standard Functions Of One Numeric Variable; Abs_E - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
5.2

Standard Functions Of One Numeric Variable

5.2.1
ABS(_E)
Outline
This function obtains the absolute value, and outputs it.
1. Format
Function name
ABS

ABS_E

*1.
Output variable
2. Set data
Variable
EN
Input
variable
_IN (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
1) This function obtains the absolute value of word [signed]/double word [signed]/float (single precision) data
stored in a device specified in
the data type of data stored in devices specified in a device specified in
This function is expressed as follows when the input value is "A" and the output operation result is "B".
B= A
2) When the data type stored in a device specified in
this function outputs "-32768" to a device specified in
function is "32,767".)
When the data type stored in a device specified in
2147483648", this function outputs "-2147483648" to a device specified in
value handled by this function is "2147483647".)
Cautions
Use the function having "_E" in its name to connect a bus.
134
FX
3U(C)
Structured ladder
ABS
D0
_IN
ABS_E
X000
EN
D0
_IN
Execution condition
Data whose absolute value is to be obtained, or word device which
)
s
stores such data
Execution status
Word device which will store the operation result
(
)
d
, and outputs the operation result to a device specified in
s
5.2 Standard Functions Of One Numeric Variable
FX
FX
FX
3G
2N(C)
Expression in each language
ABS(_IN);
Example:
D10:=
*1
D10
ABS(D0);
ABS_E(EN,_IN,Output label);
Example:
ENO
ABS_E(X000,D0,D10);
*1
D10
Description
is word [signed] and the stored data is "-32768",
s
. (The maximum absolute value handled by this
d
is double word [signed] and the stored data is "-
s
FX
FX
/FX
1N(C)
1S
U
2C
ST
Bit
ANY_NUM
Bit
ANY_NUM
.
s
. (The maximum absolute
d
FX
FX
0N
0(S)
Data type
using
d

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents