beautypg.com

Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual

Page 297

background image

File Search and File Diagnostic Instructions

Chapter 17

17Ć5

Figure 17.4

FILE DIAGNOSTIC

012

017

File A

XOR

310

315

File B

320

325

File R

XOR Instruction SetĆUp

(A.)

Result

Stored

in File R

Actual

I/O States

Desired

I/O States

A 1 in File R indicates an

error in machine operation.

Error File Format

(B.)

Word 500 stores error number in 4Ćdigit BCD.

Word 501 stores input /output (I/O) in bits 00Ć03.

ą(Any leading digits are stored in BCD in bits 4Ć7 and 10Ć13.)

Word 502 stores the rack number in bits 14Ć17.

ąThe module group number in bits 10Ć13, the high/low (1.0)

ąslot in bit 04 and the terminal number in bits 00Ć03.

0

0

0

1
0

1

2

1

4

500
501
502

00

03

04

07

10

13

14

17

Instruction Overview:

Output

instruction

Key Sequence: [FILE] 20
Requires 5 words of user program
Counter is manipulated by instruction
Usually used in conjunction with an XOR instruction