AH500 Programming Manual
6-92
API
Instruction code Operand Function
0211 FNEG P
D
Reversing the sign of the 32-bit
floating-point number
Device
X Y M S T C HC D L SM SR E PR K 16#
“$” DF
Pulse instruction
32-bit instruction (3 steps)
64-bit instruction
AH500 AH500 -
Symbol:
D
:
Device in which the sign of the
value is reversed
Double word
Explanation:
The sign of the single-precision floating-point number in the device D is reversed.
Example:
Before the instruction is executed, the value in (D1, D0) is the negative value 16#AE0F9000. When
X0.0 is switched from OFF to ON, the sign of the single-precision floating-point number in (D1, D0)
is reversed. In other words, after the instruction is executed, the value in (D1, D0) is the positive
value 16#2E0F9000.
Before the instruction is executed, the value in (D1, D0) is the positive value 16#2E0F9000. When
X0.0 is switched from OFF to ON, the sign of the single-precision floating-point number in (D1, D0)
is reversed. In other words, after the instruction is executed, the value in (D1, D0) is the negative
value 16#AE0F9000.