EasyManua.ls Logo

Automationdirect.com DL06 - Page 330

Automationdirect.com DL06
533 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-169
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
The steps listed below are the steps necessary to program the Find Block function.
Step 1: Load the number of bytes in the block to be located. This parameter must
be a HEX value, 0 to FF.
Step 2: Load the length of a table (number of words) to be searched. The Find Block
will search multiple tables that are adjacent in V-memory. This parameter
must be a HEX value, 0 to FF.
Step 3: Load the ending location for all the tables into the accumulator. This
parameter must be a HEX value. You can use the LDA instruction to
convert an octal address to hex.
Step 4: Load the table starting location for all the tables into the accumulator.
This parameter must be a HEX value. You can use the LDA instruction to
convert an octal address to hex.
Step 5: Insert the Find Block instruction. This specifies the starting location of the
block of data you are trying to locate.
FINDB
A aaa
Table1
Table2
Table3
Tablen
Block
StartAddr.
EndAddr.
Number
of bytes
StartAddr.
Number
of words
Operand Data Type DL06 Range
A
aaa
V-memory V See memory map
V-memory P See memory map
Discrete Bit Flags Description
SP56 On when the specified block is not found.
DS Used
HPP
N/A
Find Block (FINDB)
The Find Block instruction searches for an occurrence of a
specified block of values in a V-memory table. The function
parameters are loaded into the first and second levels of the
accumulator stack and the accumulator by three additional
instructions. If the block is found, its starting address will be
stored in the accumulator. If the block is not found, flag SP53
will be set.