Download procedure – Rockwell Automation 1785-Vx0B, D17856.5.9 PLC-5 VME VMEbus Programmable Controllers User Manual User Manual

Page 105

Advertising
background image

Chapter 6

PLC-5/VME Processor
Communications Commands

6-36

Download Procedure

An example of this procedure is included in Appendix A.

1.

Identify the PLC-5/VME processor.

2.

Set the processor’s operating mode to Program or Remote Program.
You can do this by using the PCCC command Set CPU Mode
described on page 6-20.

3.

Clear all faults in the processor. You can determine whether or not a
processor has faults by using the PCCC command Identify Host and
Status described on page 6-6.

4.

Inform the processor that you are going to download to its memory.
You can do this by using the PCCC command Download All Request
described on page 6-23.

5.

For each file packet that you wrote to a binary file on doing a
processor upload, do the following:

a.

Read a file packet from the binary file.

b.

Do a PCCC command Write Bytes Physical (see page 6-27)
using the processor address, number of bytes, and data in the
file packet.

c.

Verify the download by using the PCCC command Read Bytes
Physical (see page 6-26) to read the data that was just written to
the processor. Compare the data just read from the processor to
the original in memory.

6.

After all the file packets have been restored to the processor, issue the
PCCC command Download Complete (see page 6-25) to terminate
the download to the processor.

7.

Get the edit resource from the processor. This prohibits anyone
else from modifying or writing to the processor while upload is
in progress.

8.

Restore the saved port configurations by using the PCCC command
Apply Port Configuration described on page 6-31.

9.

Return the edit resource so that others can write to the processor. You
can do this by using the PCCC command Return Edit Resource
described on page 6-30.

Advertising