Delta AH500 Programming Manual page 619

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
2104
D
HABIN
Device X
Y
M
S
D
Symbol:
Explanation:
1.
The hexadecimal ASCII code in S is converted into the hexadecimal binary 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 hexadecimal
ASCII code in S should be within the range between 0000 and FFFF. If S is a string, the string
should be within the range between "0" and "FFFF".
b15
T hi rd AS CII c ode F our th ASCII code
S
S +1
F irst ASCII code Second A SCII code
If the ASCII code in S~S+1 is 5A8D, the conversion result is as follows.
b15
16#41(A)
S
16#44(D)
S +1
3.
The operand S used in the 32-bit instruction occupies four word devices, and the hexadecimal
ASCII code in S should be within the range between 00000000 and FFFFFFFF. If S is a string,
the string should be within the range between "0" and "FFFFFFFF".
b15
Seventh AS CII c ode Eighth AS CII c ode
S
F ifth ASCII code
S +1
T hi rd AS CII c ode
S
+2
F irst ASCII code
S +3
If the ASCII code in S~S+3 is 5CB807E1, the conversion result is as follows.
b15
16#43(C)
S
16#
S +1
16#37(7)
S +2
16#31(1)
S +3
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 conversion
D :
result is stored
b0
b8
b7
b0
b8
b7
16#
35(5)
16#
38(8)
b0
b8
b7
Six th ASCII code
F our th ASCII code
Second ASCII code
b0
b8
b7
16#
35(5)
38(8)
16#
42(B)
16#
30(0)
16#45(E)
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Function
Converting the hexadecimal ASCII code
into the hexadecimal binary number
L
SM SR
E
PR
AH500
b15
16-bit binar y number
b15
16#
5A8D
D +1
32-bit binar y number
D+1
16# 5CB8
16# 07E1
K
16# "$"
DF
AH500
Word
Word/Double word
b0
D
b0
D
D
D D
6 - 4 5 1

Advertisement

Table of Contents
loading

Table of Contents