EasyManuals Logo

Automationdirect.com DirectLOGIC DL205 Series User Manual

Automationdirect.com DirectLOGIC DL205 Series
587 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 #359 background imageLoading...
Page #359 background image
DL205 User Manual, 4th Edition, Rev. B
5–142
Chapter 5: Standard RLL Instructions - Number Conversion
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Shuffle Digits (SFLDGT)
The Shuffle Digits instruction shuffles a maximum of 8 digits
rearranging them in a specified order. This function requires
parameters to be loaded into the first level of the accumulator
stack and the accumulator with two additional instructions.
Listed below are the steps necessary to use the shuffle digit
function. The example on the following page shows a program for the Shuffle Digits
function.
Step 1: Load the value (digits) to be shuffled into the first level of the accumulator stack.
Step 2: Load the order that the digits will be shuffled to into the accumulator.
Step 3: Insert the SFLDGT instruction.
NOTE: If the number used to specify the order contains a 0 or 9–F, the corresponding position will be set to
0.
See example on the next page.
NOTE: If the number used to specify the order contains duplicate numbers, the most significant duplicate
number is valid. The result resides in the accumulator.
Shuffle Digits Block Diagram
There are a maximum of 8 digits that can be
shuffled. The bit positions in the first level of the
accumulator stack defines the digits to be shuffled.
They correspond to the bit positions in the
accumulator that define the order the digits will
be shuffled. The digits are shuffled and the result
resides in the accumulator.
SFLDGT
230
240
250-1
260
ý
þ
þ
þ
Digits to be
shuffled (first stack location)
Specified order (accumulator)
DEF 09ABC
36541287
Result (accumulator)
0DA9BCEF
43218765
Bit Positions
DS Used
HPP Used

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Automationdirect.com DirectLOGIC DL205 Series and is the answer not in the manual?

Automationdirect.com DirectLOGIC DL205 Series Specifications

General IconGeneral
BrandAutomationdirect.com
ModelDirectLOGIC DL205 Series
CategoryController
LanguageEnglish

Related product manuals