Delta AH500 Programming Manual page 627

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
2107
D
$STR
Device X
Y
M
S
1
S
2
D
Symbol:
Explanation:
1.
A decimal point is added to the value in S
places, and the value in S
in D.
2.
$STR:
The value in S
should be within the range between 2 and 8.
1
The value in S
+1 should be within the range between 0 and 5, and should be less than or
1
equal to the value in S
The value in S
should be within the range between -32768 and 32767.
2
Number of characters
S1
S1+1 Number of dec imal pl ac es
Sign
Binar y number
S2
Suppose the number of characters is 5, the number of decimal places is 1, and the value is
-123. The conversion result is as follows.
Operand
P
S
, S
, D
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (7 steps)
AH500
Initial device in which the
S
1
number of characters is stored
: Value which is converted
S
2
Initial device in which the
D :
conversion result is stored
, the value in S
2
indicates the number of characters. The conversion result is stored
1
minus 3.
1
.
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Converting the binary number into
the string
L
SM SR
E
PR
AH500
+1 indicates the number of decimal
1
b15
b8
b7
F irst ASCII code
Second ASCII code
T hi rd A SCII c ode
F our th ASCII code
F ifth ASCII code
Seventh AS CII c ode
Six th ASCII code
Ending char ac ter
16#00 (
Automati cally stored at the end of the s tr ing
Function
K
16# "$"
DF
AH500
Word/Double word
Word/Double word
Word
b0
Sign
D
D+1
D+2
D+3
D+4
)
6 - 4 5 9

Advertisement

Table of Contents
loading

Table of Contents