File search instruction chapter 3 – Rockwell Automation 1772-AF3,D17726.5.2 User Manual AUX FUNCT PROM User Manual
Page 17

File Search Instruction
Chapter 3
3Ć9
Figure 3.10
Example File Search Logic
RTO
0030
030
15
0040
000
0.1
PR 015
AC 000
040
17
030
15
0030
PR 015
RTR
AC 000
G
0041
000
PUT
21
0031
0040
Execute Aux
Function
Funtion Number:
Data Addr:
Rresult Addr:
Figure 3.11
Example Data Entry
Word
Bit Location
Location
17 16 15 14
13 12 11 10
07 06 05 04
03 02 01 00
Hex Equivalent
0031
0032
0033
0034
0040
0041
.
.
.
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
.
.
.
1 0 0 1
0 0 0 1
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
.
.
.
1 0 0 1
0 0 1 1
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
.
.
.
1 0 0 1
0 0 0 1
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
.
.
.
999
131
000
0000
0000
0000
where values are astored as follows:
0031 file length of 999
0032 address of instrucction file, lower 3 digits (131)
0033 address of instruction file, upper 3 digits (000)
0034 match word data
0040 zero at start up
0131 instruction file words all containing zeros
.
.
.