Delta AS Series Programming Manual page 337

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
0105
Device
X
S
1
S
2
D
Data
type
S
1
S
2
D
Symbol
_6
Explanation
1.
This instruction subtracts the 32-bit single-precision floating-point number in S
floating-point numbers number in S
2.
Instruction flags: SM600 (zero flag), SM601 (borrow flag), and SM602 (carry flag)
When the operation result is zero, SM600 is ON.
When the absolute value of the operation result is less than the value that can be represented by the minimum
floating-point number, the value in D is 16#FF800000 and SM601 is ON.
When the absolute value of the operation result is larger than the value that can be represented by the
maximum floating-point number, the value in D is 16#7F800000 and SM602 is ON.
b31.........b16 b15...........b0
6 - 5 8
F-
P
Y
M
S
T
: Minuend
S
1
: Subtrahend
S
2
: Difference
D
, and stores the difference in D.
1
S
S
+1
S
1
1
-
Operand
,S
,D
S
1
2
C
HC
D
FR
SM
Pulse instruction
AS
S
S
+1
S2
2
b31.........b16 b15...........b0
Function
Subtracting floating-point numbers
SR
E
K
16#
16-bit instruction
32-bit instruction
from the 32-bit single-precision
2
D
D+1
b31.........b16
b15...........b0
=
"$"
F
AS

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents