EasyManuals Logo

AutomationDirect DL205 User Manual

Default Icon
598 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #364 background imageLoading...
Page #364 background image
DL205 User Manual, 4th Edition, Rev. D
5-140
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Segment (SEG)
The BCD / Segment instruction converts a 4digit HEX value
in the accumulator to a 7-segment display format. The result
resides in the accumulator.
In the following example, when X1 is on, the value in V1400 is loaded into the lower 16 bits
of the accumulator using the Load instruction. The binary (HEX) value in the accumulator
is converted to 7-segment format using the Segment instruction. The bit pattern in the
accumulator is copied to Y20–Y57 using the Out Formatted instruction.
SEG




230
240
250-1
260
--gf edcba--gfedc ba --gfedc ba
SEG
X1
Convertthe binary(HEX)
valueinthe accumulatorto
sevensegm ent display
format
OUTF Y20
K32
Copy thevalue in the
accumulatortoY20 --Y57
LD
V1400
Load thevalue in V1400 ntothe
lower16bitsofthe accumulator
01101111011100010000000000000000
15 14 13 12 11 10 9876543210
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 1631 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Acc.
6F71
V1400
00000111000001100111110101110001
15 14 13 12 11 10 987654321031 30 29 28 27 26 25 24 23 22 21 20 19 18 17 1631 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Acc.
Y20Y21Y22Y23
OFFONONOFF
Y24
OFF
Y53Y54Y55Y56
ONONONON
Y57
OFF
--gf edcba
Segmen
t
Labels
a
g
f
e
d
c
b
Segment
Labels
Handheld Programmer Keystrokes
STR
$
ANDST
L
3
D
SHFT
1
B
ENT
2
C
0
A
4
E
RST
S
3
D
ENT
6
G
5
F
ENT
1
B
4
E
0
A
0
A
SHFT
OUT
GX
SHFT
2
C
ENT
DirectSOFT
DS Used
HPP Used

Table of Contents

Other manuals for AutomationDirect DL205

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the AutomationDirect DL205 and is the answer not in the manual?

AutomationDirect DL205 Specifications

General IconGeneral
BrandAutomationDirect
ModelDL205
CategoryController
LanguageEnglish

Related product manuals