Delta AH500 Programming Manual page 663

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
2120
FMOD
Device X
Y
M
S
1
S
2
D
Symbol:
Explanation:
1.
The decimal point in the floating-point number in S
the setting of S
first, and then the result is converted into the binary-coded decimal
2
floating-point number. The final conversion result is stored in D.
S 1
+1
F loating-point number
S 2
Number of pl ac es
The binary-coded decimal floating-point number format:
S
: The number of places
2
The value in S
D: If the floating-point number in S
number in S
is a negative number, the value in D is 1.
1
(D+2, D+1): The seven-digit binary-coded decimal number converted from the floating-point
number
D+3: If the exponent is a positive number, the value in D+3 is 0. If the exponent is a negative
number, the value in D+3 is 1.
D+4: The exponent
If the floating-point number in S
is as follows.
Since the value in S
right by four decimal places. The floating-point number in S
-322.5547 is equal to -3225547E-4. The binary-coded decimal floating-point number format is
Operand
P
S
, S
, D
1
2
S
T
C
HC
D
Pulse instruction 32-bit instruction (7-8 steps) 64-bit instruction
AH500
: Floating-point number
S
1
: Number of places
S
2
D : Conversion result
S 1
Binary -coded deci mal
floati ng- point number
should be within the range between 0 and 7.
2
is a positive number, the value in D is 0. If the floating-point
1
is -0.03225547 and the value in S
1
S 1+1 ,S1
0.03225547
S 2
Number of pl ac es
4
is 4, the decimal point in the floating-point number in S
2
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Converting the floating-point
number into the binary-coded
decimal floating-point number
L
SM SR
E
PR
AH500
is moved to the right in accordance with
1
Sign
S eve n- di gi t
b in ar y-co de d
d eci mal nu mbe r
S ig n ( Exp on en t)
Exponent
is 4, the conversion result
2
1
D
D
+1
16 #3 22 55 50
D
+2
1
+3
D
4
D
+4
becomes -322.5547.
1
Function
K
16# "$"
DF
-
Double word
Word
Word
D
D
+1
D
+2
D
+3
D
+4
is moved to the
1
6 - 4 9 5

Advertisement

Table of Contents
loading

Table of Contents