Delta AS Series Programming Manual page 1020

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
API
Instruction code
2101
D
Device
X
S
D
Data
type
S
D
Symbol
_6
Explanation
1.
This instruction converts the hexadecimal binary number in S an ASCII code, and stores the conversion result in D.
2.
The instruction supports SM690 to control the ending character.
3.
For 16-bit instructions, the value in S must be between 16#0000–16#FFFF, and should be a four-digit binary
number. The operand D occupies three word devices.
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
4.
For 32-bit instructions, the value in S must be between 16#00000000–16#FFFFFFFF, and should be an eight-digit
binary number. The operand D occupies five word devices.
If SM690 is OFF, 16#0000 is stored in D+4. If SM690 is ON, the value in D+4 is unchanged. For example, if the
value in S is 16#03AC625E and SM690 is OFF, the conversion result is as follows.
6 - 7 4 0
BINHA
P
Y
M
S
T
C
S : Source value
D : Device where the conversion result is stored
b0
02A6
Operand
Converting a binary hexadecimal number
S, D
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
b15
b7
b8
b0
16#32
16#30
16#36
16#41
16#00
16#00
Function
into a hexadecimal ASCII code
SR
E
K
16#
"$"
32-bit instruction
AS
AS
D + 0
D + 1
D + 2
F

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents