Delta AH500 Programming Manual page 260

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
0211
FNEG
Device X
Y
M
D
Symbol:
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.
6 - 9 2
Operand
D
P
S
T
C
HC
D
Pulse instruction 32-bit instruction (3 steps) 64-bit instruction
AH500
Device in which the sign of the
D :
value is reversed
Reversing the sign of the 32-bit
floating-point number
L
SM SR
E
PR
AH500
Double word
Function
K
16# "$"
DF
-

Advertisement

Table of Contents
loading

Table of Contents