Delta AH500 Programming Manual page 666

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
2121
FREXP
Device X
Y
M
S
1
S
2
D
Symbol:
Explanation:
The binary-coded decimal floating-point number in S
first, and then the decimal point in the floating-point number is moved to the left in accordance with
the setting of S
. The final result is stored in D.
2
Binary -coded deci mal
floati ng- point number
The binary-coded decimal floating-point number format:
1.
If the binary-coded decimal floating-point number is a positive number, the value in S
the binary-coded decimal floating-point number is a negative number, the value in S
2.
The seven-digit binary-coded decimal number is stored in (S
3.
If the exponent is a positive number, the value in S
number, the value in S
4.
S
+4: The exponent
1
The value in S
+4 should be within the range between 0 and 38.
1
5.
S
: The number of places
2
The value in S
should be within the range between 0 and 7.
2
Example:
When the conditional contact MO is ON, the binary-coded decimal floating-point number is
converted into the floating-point number.
6 - 4 9 8
Operand
P
S
, S
, D
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (7 steps)
AH500
Binary-coded decimal
S
1
floating-point number
: Number of places
S
2
D : Conversion result
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
Number of pl ac es
+3 is 1.
1
Converting the Binary-coded
decimal floating-point number into
the floating-point number
L
SM SR
E
PR
AH500
is converted into the floating-point number
1
S 1
S 1
+1
D
+1
S 1
+2
S 1
+3
S 1
+4
F loating-point number
S 2
+2, S
+1).
1
1
+3 is 0. If the exponent is a negative
1
Function
K
16# "$"
DF
32-bit instruction
-
Word
Word
Double word
D
is 0. If
1
is 1.
1

Advertisement

Table of Contents
loading

Table of Contents