Delta AH500 Programming Manual page 635

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
2109
$FSTR
Device X
Y
M
S
1
S
2
D
Symbol:
Explanation:
1.
The floating-point number in S
and the conversion result is stored in D.
2.
The conversion result varies with the setting of S
3.
The value in S
+1 should be within the range between 2 and 24.
2
4.
Decimal format
.
Sign
( S1 +1 , S1 )
F loating- poi nt number
Operand
P
S
, S
, D
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (7-8 steps) 32-bit instruction
AH500
: Source value
S
1
Initial device in which the
S
2
format is stored
Initial device in which the
D :
conversion result is stored
is converted into the string in accordance with the setting of S
1
0: Decimal for mat
S2
1: Ex ponential
Number of characters
S2 +1
Number of dec imal plac es
S2 +2
Dec imal fo ra mt
Numbe r of ch arac ters
Nu mbe r o f de cima l p la ces
D
D
D
D
D
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 string
L
SM SR
E
PR
AH500
.
2
S 2
S 2
+1
+2
S 2
b15
b8
b7
F irst ASCII code
T hi rd AS CII c ode
Second ASCII code
+1
F our th ASCII code
+2
Six th ASCII code
+3
Ending charac ter
+4
16#00 (
Automati cally stored at the end of the s tr ing
Function
K
16# "$"
DF
-
Double word
Word
Word
2
b0
Sign
Decimal poi nt (.)
F ifth ASCII code
)
6 - 4 6 7
,

Advertisement

Table of Contents
loading

Table of Contents