11 PROCESS CONTROL INSTRUCTIONS
11.5 Arithmetic Operation Instructions
1379
11
■Block memory
This instruction outputs the absolute value of the input value (E1).
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).
Operand: (d1)
Device Symbol Name Recommended range Data type Standard
value
Set by
+0
+1
BW Output value 0 to 999999 Single-precision
real number
System
+2 BB BB1 Sign
determination of
Input value (E1)
E1 > 0: BB1 = 1
E1 < 0: BB2 = 1
E1 = 0: BB1 = BB2 = 0
16-bit unsigned
binary
System
BB2
E1 status BB1 BB2
E1>0 1 0
E1 < 0 0 1
E1=0 0 0
Error code Error content
3402H (s1) is a subnormal number or NaN (not a number).