Delta AH500 Programming Manual page 640

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
2110
$FVAL
Device X
Y
M
S
D
Symbol:
Explanation:
1.
The string in S is converted into the floating-point number, and the conversion result is stored
in D.
b15
F irst ASCII code
S
T hi rd AS CII c ode
S
+1
F ifth ASCII code
S
+2
Seventh AS CII c ode
S
+3
S
+4
......
S
+. ..
T he end of the s tr ing
2.
The string in S can be the decimal format of the string or the exponential format of the string.
The decimal format:
b15
S
16#31H( 1)
16#
S +1
16#
S +2
16#
S +3
S +4
-
The exponential format:
b15
16#20( )
S
16#2E(.)
S +1
16#
S +2
16#
S +3
16#
S +4
16#
S +5
S +6
1
-
6 - 4 7 2
Operand
P
S, D
S
T
C
HC
D
Pulse instruction 16-bit instruction (5-11 steps) 32-bit instruction
AH500
S : Source value
Device in which the conversion
D :
result is stored
b8
b7
Sign
Second A SCII code
F our th ASCII code
Six th ASCII code
......
......
16#00
b0
b8
b7
16#
2D(-)
30(0)
16#
2E(.)
16#
37(7)
38(8)
16#
31(1)
32(2)
16#00
.
0
7
1
1
8
2
b0
b8
b7
16#
2D(-)
16#
31(1)
16#
33(3)
32(2)
16#
30(0)
31(1)
16#
45(E)
2B(+ )
16#
31(1)
30(0)
16#00
.
3
2
0
1
E +
Converting the string into the
floating-point number
L
SM SR
E
AH500
b0
F loating- point number
(D+1, D)
HBF 89F FD4
Floating-point number - 1.07812
(D+1, D)
16#D044B 5D1
F loating- poi nt number
1
0
Function
PR
K
16# "$"
DF
-
Word
Double word
(D+1, D)
-1.3201E +10

Advertisement

Table of Contents
loading

Table of Contents