Delta AH500 Programming Manual page 610

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
2101
D
BINHA
Device X
Y
M
S
D
Symbol:
Explanation:
1.
The hexadecimal binary number in S is converted into the ASCII code, and the conversion
result is stored in D.
2.
The instruction supports SM690, which controls the ending character.
3.
The value in S used in the 16-bit instruction should be within the range between 16#0000 and
16#FFFF, and should be a four-digit binary number. The operand D occupies three word
devices. The data is converted as follows.
b15
S
16-bit binar y number
If SM690 is OFF, 16#0000 is stored in D+2. If SM690 is ON, the value in D+2 is unchanged.
For example, if the value in S is 16#02A6 and SM690 is OFF, the conversion result is as
follows.
b15
S
4.
The value in S used in the 32-bit instruction should be within the range between 16#00000000
and 16#FFFFFFFF, and should be an eight-digit binary number. The operand D occupies five
word devices. The data is converted as follows.
S +1
03AC
6 - 4 4 2
Operand
P
S, D
S
T
C
HC
D
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (5 steps)
AH500
S : Source value
Device in which the conversion
D :
result is stored
b0
b0
16#02A 6
S
625E
Function
Converting the binary hexadecimal
number into the hexadecimal ASCII code
L
SM SR
E
PR
AH500
b15
b8
b7
T hi rd AS CII c ode F our th ASCII code
F irst ASCII code Second ASCII code
Ending c har acter
(16#0000 or unchanged)
b15
b8
b7
16#32( 2)
16#36( 6)
16#0000
b8
b7
b15
16#33(3)
16#30(0)
16#41(A)
16#43(C)
16#32(2)
16#36(6)
16#45(E)
16#35(5)
16#0000
K
16# "$"
DF
AH500
Word/Double word
Word
b0
D
D
+1
D
+2
b0
16#30( 0)
16#41( A)
b0
D
+1
D
+2
D
D
+3
D +4

Advertisement

Table of Contents
loading

Table of Contents