Delta AH500 Programming Manual page 631

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
2108
D
$VAL
Device X
Y
M
S
D
1
D
2
Symbol:
Explanation:
1.
The string in S is converted into binary number. The number of characters is stored in D
number of decimal places is stored in D
2.
$VAL:
The operand S occupies five word devices at most.
The number of characters contained in the string in S should be within the range between 2
and 8.
If there is a decimal point in the string in S, 16#2E should be stored between the first character
after the sign character and the last character.
b15
b8
F irst ASCII code
S
Second ASCII code
T hi rd A SCII c ode
S+ 1
F ifth ASCII code
F our th ASCII code
S+ 2
Seventh AS CII c ode
Six th ASCII code
S+3
S+ 4
16#00
Operand
P
S, D
, D
1
S
T
C
HC
D
Pulse
16-bit instruction (7-13 steps) 32-bit instruction (7-13 steps)
i
t
ti
AH500
S : Source value
Device in which the number
D
1
of characters is stored
Device in which the binary
D
2
number is stored
+1, and the binary number is stored in D
1
b7
b0
Sign
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Converting the string into the binary
2
number
L
SM SR
E
PR
AH500
Number of characters
Number of dec imal pl ac es
Binar y number
.
... .... .... .... .... .
Function
K
16# "$"
DF
AH500
Word
Word/Double word
Word/Double word
, the
1
.
2
D1
D1+1
D2
6 - 4 6 3

Advertisement

Table of Contents
loading

Table of Contents