Rockwell Automation 1772-AF3,D17726.5.2 User Manual AUX FUNCT PROM User Manual
Page 11

File Search Instruction
Chapter 3
3Ć3
You can also load these values in BCD. You can load BCD values into an
instruction by means of a file-to-file move instruction. Enter a file-to-file move
instruction below the file search instruction. Open the rung by inserting a
branch end instruction. Open the rung by inserting a branch end instruction at
the beginning of the rung (Figure 3.4). Make the file A address of the file-to-file
move instruction the same as data address of the file search instruction. Press
the key sequence [DISPLAY] 1. Then load data into the word identified by the
cursor. When you load data into file A of the file-to-file move instruction, the
data is automatically loaded into the file search instruction. The open branch
allows you to load data, but prevents operation of the file-to-file move
instruction when you switch the processor to run mode.
Figure 3.4
Rung for Loading AF3 PROM Instruction
EN
FileĆToĆFile Move
Counter Addr:
Position:
File Length:
File A:
030
001
004
0400-0403
File R;
Rate Per Scan
0500-0503
004
DN
030
17
030
15
Execute Aux
Function
Function Number:
Data Addr:
Result Addr:
21
0400
0405
Branch
End
You must load data into four addresses of the file search instruction starting
with the data address.
Data Address - The data address is the first address that you entered into the
instruction block. The data address is the first of four consecutive addresses
into which you load the following data (figure 3.5).
First address - Length of the instruction file to be searched, three digits,
000-999
Second address - Address of the instruction file to be searched, lower three
digits
Third address - Address of the instruction file to be searched, upper three
digits
Fourth address - Data of the match word
Match Word - your match word is your reference word. It can be a fixed value
that you enter before running your program. Or, it can be a variable that your
program enters into that address according to your application (Figure 3.5).