Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1381

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Block memory
Operand: (d1)
Device
Symbol
Name
+0
BW
Output value
+1
+2
BB
BB1
Sign
determination of
BB2
Input value (E1)
Processing details
This instruction outputs the absolute value of the input value (E1).
E1
0
t
The S.ABS instruction performs the following operations.
BW=|E1|
The instruction determines the sign of the input value (E1) and outputs the result to the sign determination bits (BB1 and BB2)
of the input value (E1).
E1 status
E1>0
E1 < 0
E1=0
Operation error
Error code
3402H
Recommended range
0 to 999999
...
b15
E1 > 0: BB1 = 1
E1 < 0: BB2 = 1
E1 = 0: BB1 = BB2 = 0
BW
ABS
0
BB1
BB2
BB1
1
0
0
Error content
(s1) is a subnormal number or NaN (not a number).
Data type
Single-precision
real number
16-bit unsigned
b1 b0
binary
t
BB2
0
1
0
11 PROCESS CONTROL INSTRUCTIONS
11.5 Arithmetic Operation Instructions
Standard
Set by
value
System
System
11
1379

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents