Delta AS Series Programming Manual page 1034

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
2105
D
Device
X
S
D
Data
type
S
D
Symbol
Explanation
_6
1.
This instruction converts the ASCII code in S into a binary-coded decimal number, and stores the conversion result
in D.
2.
For 16-bit instructions, the operand S occupies two word devices, and the ASCII code in S must be between 0000–
9999. If S is a string, the string must be between "0"–"9999".
S + 0
3.
For 32-bit instructions, the operand S occupies four word devices, and the ASCII code in S must be between
0000000–99999999. If S is a string, the string must be between "0"–"99999999".
6 - 7 5 4
DABCD
P
Y
M
S
T
b15
b7
b8
b0
" 8 "
" 9 "
S + 1
" 6 "
" 7 "
b15
b7
b8
b0
Operand
S, D
C
HC
D
FR
SM
Pulse instruction
AS
S :
Source value
Device where the conversion
D :
result is stored
b15-b12 b11-b8 b7-b4
9
Thousands
b15-b12 b11-b8 b7-b4
b0
Function
Converting an ASCII code into a binary-
coded decimal number
SR
E
K
16#
16-bit instruction
32-bit instruction
AS
b3-b0
8
7
Hundreds
Tens
Units
b3-
"$"
F
AS
6
D

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents