File diagnostic instruction chapter 4 – Rockwell Automation 1772-AF3,D17726.5.2 User Manual AUX FUNCT PROM User Manual

Page 20

Advertising
background image

File Diagnostic Instruction

Chapter 4

4Ć3

Figure 4.3

Example User Entered Data (Binary)

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

0

0

0

0

0

0

1

0

0

0

0

File Length = 10

words

Available

Storage

0

1

0

1

0

0

1

0

0

0

1

1

0

0

0

0

0

0

0

0

0

0

0

0

Address of actual value

file, lower 3 digits

upper 3 digits

Address of reference

Description

0

1

0

1

0

0

0

0

0

1

0

1

0

0

0

0

0

0

0

0

0

0

0

0

0504

for bit

file, lower 3 digits

upper 3 digits

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 diagnostic instruction. Open the rung by inserting a
branch end instruction at the beginning of the rung (Figure 4.4). Make the
address of the source file, file A, of the file-to-file move instruction the same as
the data address of the file diagnostic 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 diagnostic 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 4.4

Example Rung for Loading Instruction

EN

DN

030

17

030

15

Branch

End

Execute Aux

Function

Function Number:
Data Addr:
Result Addr:

20

0500
0520

FileĆToĆFile Move

Counter Addr:

Position:

File Length:

File A:

File R:

Rate Per Scan

030

001

015

0500 Ć 0516

0600 Ć 0616

015

Advertising