Delta AH500 Programming Manual page 622

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
2105
D
DABCD
Device X
Y
M
S
D
Symbol:
Explanation:
1.
The ASCII code in S is converted into the binary-coded decimal number, and the conversion
result is stored in D.
2.
The operand S used in the 16-bit instruction occupies two word devices, and the ASCII code in
S should be within the range between 0000 and 9999. If S is a string, the string should be
within the range between "0" and "9999".
b15
ASCII code in
S
the hundreds place
S+1
ASCII code in
the units pl ac e
If the ASCII code in S~S+1 is 8765, the conversion result is as follows.
b15
S
16#37(7)
S+ 1
16#35(5)
3.
The operand S used in the 32-bit instruction occupies four word devices, and the ASCII code
in S should be within the range between 0000000 and 99999999. If S is a string, the string
should be within the range between "0" and "99999999".
6 - 4 5 4
Operand
P
S, D
S
T
C
HC
D
Pulse instruction 16-bit instruction (5-11 steps) 32-bit instruction (5-11 steps)
AH500
S : Source value
Device in which the
D :
conversion result is stored
b8
b7
b0
ASCII code in
the thousands place
ASCII code in
the tens plac e
b8
b7
b0
16#38(8)
16#36(6)
Converting the ASCII code into the
binary-coded decimal number
L
SM SR
E
PR
AH500
b1 5
b1 2
b11
b7
b8
b1 2
b1 5
b11
b8
b7
b4
8
7
6
Function
K
16# "$"
DF
AH500
Word/Double word
Word/Double word
b4
b3
b0
D
b3
b0
D
5

Advertisement

Table of Contents
loading

Table of Contents