Delta AS Series Programming Manual page 377

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l
API
Instruction code
0211
Device
X
D
Data
type
D
Symbol
Explanation
This instruction reverses the sign of a single-precision floating-point number in D.
Example
Before the instruction is executed, the value in (D1, D0) is the negative value 16#AE0F9000. When X0.0 switches from
_6
OFF to ON, the instruction reverses the sign of the single-precision floating-point number in (D1, D0). 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 switches from
OFF to ON, the instruction reverses the sign of the single-precision floating-point number in (D1, D0). In other words,
after the instruction is executed, the value in (D1, D0) is the negative value 16#AE0F9000.
6 - 9 8
FNEG
P
Y
M
S
T
C
: Device in which the sign of the value
D
Operand
D
HC
D
FR
SM
Pulse instruction
AS
is reversed
Function
Reversing the sign of a 32-bit floating-
point number
SR
E
K
16#
16-bit instruction
32-bit instruction
-
"$"
F
AS

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents