Inverting the sign of single-precision real number
ENEG
This instruction inverts the sign of single-precision real number data.
ST
ENO:=ENEG(EN,d);
■Execution condition
Instruction
ENEG
Setting data
■Description, range, data type
Operand
Description
(d)
Start device containing the single-precision real number data subject to
sign inversion
EN
Execution condition
ENO
Execution result
■Applicable devices/labels
Operand
Bit
SB
(d)
Processing details
• This instruction inverts the sign of the single-precision real number in the device specified by (d) and store the inverted data
in the device specified by (d).
(d)+1
(d)
1.2345
Single-precision real number
• The instructions are used to invert positive and negative signs.
Operation error
Error code
Description
3402H
The value input to (d) is -0, a subnormal number, NaN (not a number), or ±∞.
Execution condition
Word
RX, RY, LB
SW
(d)+1
(d)
-1.2345
Single-precision real number
Range
Data type
ANYREAL_32
BOOL
BOOL
Constant
G, RWw, RWr, LW
K, H
10 REAL VALUE PEOCESSING
10.1 Floating-point instruction
10
113