17 absolute value (abs), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 122: 3 ) programming example

5.3 Numeric Operation Instructions
5.3.17 Absolute Value (ABS)
5-53
Instructions
5
5.3.17 Absolute Value (ABS)
( 1 ) Operation
The absolute value of the input data is stored in the output data.
( 2 ) Format
∗ C and # registers cannot be used.
( 3 ) Programming Example
In the following programming example, the absolute value of -123.45 in the input data in MF00000 is stored in the out-
put data in MF00002.
| MF00000(-123.45) |
→ MF00002 = 123.45
When performing operations with different data types, the result of the operation will depend on the data type of the output reg-
ister.
Refer to 4.4.2 ( 3 ) Precautions When Using Local Registers within a User Function for details.
Output data
Input data
Absolute value
Parameter Name
Applicable Data Types
B
W
L
F
A
Index
Constant
Input data (Src)
×
{
{
{
×
{
{
Output data (Dest)
×
{
*
{
*
{
*
×
{
×
Input data
Output data
Icon:
Key entry: ABS
INFO