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

Page 21

Advertising
background image

File Diagnostic Instruction

Chapter 4

4Ć4

Load data into the five word file associated with the data address as follows.

Data Address - The data address is the first address that you entered into the
instruction block. The data address is the first of five consecutive addresses into
which you load the following data (Figure 4.5).

First address - length of both files to be searched (they are equal), three digit,

000-999

Second address - Address of the file of actual values, lower three digits
Third address - Address of the file of actual values, upper three digits
Fourth address - Address of the file of reference values, lower three digits
Fifth address - Address of the file of reference values, upper three digits

Figure 4.5

Example UserĆEntered Data (BCD)

Word

Location

0500

0501

0502

0503

Bit Location

17 16 15 14 13 12 11 10 07 06 05 04

03 02 01 00

Not Used 0

1

0

File Length = 10

(BCD)

Available for

Bit Storage

5

2

3

0

0

0

Address of actual value

file, lower 3 digits

upper 3 digits tal

Address of reference

Description

5

0

5

0

0

0

0504

file, lower 3 digits

upper 3 digits

Data Address File and Reference File - You can assign these files to any
usable storage location in the data table. For convenience of loading data, assign
the 5-word file of the data address and your reference file to consecutive
addresses (0500-0516 in Figure 4.6) because you will load data into both files.
Load the reference file with values which represent correct operation for each
step in your sequential application.

File of Actual Values - You can assign this file to any usable storage location in
the data table. You may want to assign this file to addresses in the I/O image
tables or to some other file into which your program moves actual or application
values (0523-0534 in Figure 4.6)

Advertising