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

Page 25

Advertising
background image

File Diagnostic Instruction

Chapter 4

4Ć8

Bit: 14

Function: True (TR)

Description: The instruction sets this bit in the same scan that it finds a data
mismatch between a word in the file actual values and a word in the file of
reference values. The instruction resets this bit in the next scan. you can
consider it operation a one-shot. Your program logic should detect the setting
of this bit as a condition for initiating the logic associated with a mismatch of
data.

Bit: 15

Function: Done (DN)

Description: The instruction sets this bit in the same scan that it detects the last
mismatch between files. The done bit remains set until the next false-to-true
transition of the enable bit. Then, the instruction resets the result file (except for
enable bit 17) and starts the search at the beginning of both files.

File comparison takes less time when the instruction finds several consecutive
mismatches. Comparison of two 50 word files with no mismatches takes
approximately 5.0ms.

If you should enter an erroneous address, erroneous data, or erroneous function
number when entering the instruction into your program logic, the processor
will indicate a run-time error when switched from program mode to run or
run/program mode. You will have to correct the error before the processor can
execute your program.

Address Error - An address error occurs when you assign addresses that
extend into illegal areas of memory. These areas include processor word spaces
from addresses 0000-0007 and 0100-0107, and into the user program which is
dependent upon the size of the data table. The industrial terminal will display
the prompt ILLEGAL ADDRESS and the processor will not execute your
program.

Data Error - A data error occurs when you set the file length to zero, or if your
program inadvertently makes the result address greater than the last address in
the file of actual values. the industrial terminal will display the prompt
ILLEGAL DATA and the processor will not execute your program.

Function Number Error - A function number error occurs when you enter a
function number not associated with the auxiliary function PROM being used.
The industrial terminal will display the prompt ILLEGAL OPCODE an the
processor will not execute your program.

Instruction Execution Time

Response To Errors in

UserĆEntered Data

Advertising