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 #353 background imageLoading...
Page #353 background image
DL205 User Manual, 4th Edition, Rev. D
5-129
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Decode (DECO)
The Decode instruction decodes a 5-bit binary value of 0 to 31
(0 to 1F HEX) in the accumulator by setting the appropriate bit
position to a 1. If the accumulator contains the value F (HEX),
bit 15 will be set in the accumulator. If the value to be decoded
is greater than 31, the number is divided by 32 until the value is
less than 32 and then the value is decoded.
In the following example, when X1 is on, the value formed by discrete locations X10–X14 is
loaded into the accumulator using the Load Formatted instruction. The 5-bit binary pattern in
the accumulator is decoded by setting the corresponding bit position to a “1” using the Decode
instruction.
230
240
250-1
260
DECO
Handheld Programmer Keystrokes
DirectSOFT
LDF X10
K5
X1
Load the value in
represented by discrete
locations X10–X14 into the
accumulator
DECO
Decode the five bit binary
pattern in the accumulator
and set the corresponding
bit position to a “1”
OFF
00000000000010110000000000000000
15 14 13 12 11 10 9 876543210
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.
00001000000000000000000000000000
15 14 13 12 11 10 9 876543210
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.
The binary vlaue
is converted to
bit position 11.
STR
$
ENT
SHFT
ANDST
L
3
D
5
F
1
B
1
B
0
A
ENT
5
F
SHFT
2
C
INST#
O
ENT
3
D
4
E
ON OFF ON ON
X14 X13 X12 X11 X10
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