Delta AS Series Programming Manual page 1023

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
2102
D
BCDDA
Device
X
Y
M
S
D
Data
type
S
D
Symbol
Explanation
1.
This instruction converts a binary-coded decimal number in S into an ASCII code, and stores the conversion result
in D.
2.
The instruction supports SM690 to control the ending character.
3.
The binary-coded decimal value in S used in the 16-bit instruction must be between 0–9999, and should be a four-
digit binary-coded decimal value. The operand D occupies three word devices. The data is converted as follows.
b15-12 b11-8
b7-4
0
8
Thousands
Hundreds
Tens
If SM690 is OFF, the instruction stores the ending character 16#0000 in D+2. If SM690 is ON, the value in D+2 is
unchanged without the ending character.
4.
For 32-bit instructions, the binary-coded decimal value in S must be between 0–99999999, and should be an eight-
digit binary-coded decimal value. The operand D occupies five word devices. The data is converted as follows.
Operand
P
S, D
S
T
C
HC
Pulse instruction
S :
Source value
D :
Device where the conversion result is stored
b3-0
b15
b8
7
6
16#38
16#36
Units
16#00
Cha p ter 6 App l ied Ins truc tio ns
Converting a binary-coded decimal
number into an ASCII code
D
FR
SM
SR
16-bit instruction
AS
AS
b7
b0
16#30
16#37
16#00
Function
E
K
16#
"$"
32-bit instruction
AS
D + 0
D + 1
D + 2
6 - 7 4 3
F
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents