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

Page 103

Advertising
background image

Chapter 6

PLC-5/VME Processor
Communications Commands

6-34

The upload-and-download procedure is a PLC-5/VME processor physical
save-and-restore procedure that uploads and downloads a binary image
from a PLC-5 processor out of and into VME memory.

Upload 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. Determine whether or not a
processor has faults by using the PCCC command Identify Host and
Status described on page 6-6.

4.

Get the edit resource from the processor. This prohibits anyone else
from modifying or writing to the processor while upload is in
progress. You can do this by using the PCCC command Get Edit
Resource described on page 6-29.

5.

Ensure that the current port configurations will be saved into the
physical image. You can do this by using the PCCC command
Restore Port Configuration described on page 6-32.

6.

Inform the processor that you are going to upload all of its
physical memory. You can do this by using the PCCC command
Upload All Request described on page 6-21.

7.

Extract the number of segments from the LNG field in the
response packet.

8.

For each segment in the response packet, do the following:

a.

Extract the startPointer for the segment by accessing the first
four bytes following the LNG field in the response packet.

b.

Extract the endPointer for the segment by accessing the first
four bytes following the startPointer in the response packet.

c.

Determine the segment size:

segmentSize = endPointerstartPointer + 1

Upload and Download
Procedure

Advertising