Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 25 of 31

DF1 Protocol and Command Set Reference Manual: 12 - Uploading and Downloading with A-B Processors

Pages 204 to 215 of 251, from DF1 Protocol and Command Set Reference Manual

The original document is the PDF (2.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Allen-Bradley 5250-LP and Allen-Bradley 5250-MLP1

Page 204

Chapter

12

Uploading and Downloading with A-B Processors Read this chapter to help you perform uploads from and downloads to Allen-Bradley processors. It contains these sections:

"

Section

Page

Uploading from the Processor

12-2

Downloading to the Processor

12-6

Upload and download constraints When using the upload and download procedures described in this chapter, remember: • You can download only to a processor of the same type, model, series, and revision that you upload the image from • You cannot give the uploaded image to a programming software package • You cannot download the 6200 Series software archive file using these procedures If you’d like additional information on the commands used in this chapter, refer to Chapter 8, “Message Packet Status Codes (STS, EXT STS ).” For more information on PLC addressing, refer to Chapter 14, “Line Monitor Examples.”

Publication 1770-6.5.16 - October 1996

Page 205

12–2

Uploading and Downloading with A-B Processors

Uploading from the Processor

To make sure the program image is stable during an upload, the PLC interface prohibits program changes during an upload. When you are using the following procedures, the interface blocks all access to PLC memory. To upload information from

See page

PLC-2 processors

12-2

PLC-3 processors

12-2

PLC-5 processors

12-3

SLC 500 processors

12-6

Uploading from a PLC-2 Processor 1.

If you have

Then

PLC-2/05, -2/15, -2/16, -2/17, or -2/30 processor

Make sure the mode selector switch is in the RUN/PROG or PROG position. Go to step 2.

PLC-2/20 or Mini-PLC-2 processor

The mode selector switch can be in any position. Go to step 2.

2. To inhibit programming terminal access, enable the PLC-2 processor to receive mode-setting or physical reads using enter upload mode. (For more on enter upload mode, see page 7–10.) 3. Upload the information, using one or more physical reads. (For more on physical read, see page 7–13.) 4. To exit the upload mode, use exit download/upload mode. (For more on exit download/upload mode, see page 7–10.)

Uploading from a PLC-3 Processor 1. Determine the last memory address used using diagnostic status. (For more on diagnostic status, see page 7–6.) 2. Request the right to upload from the PLC-3 processor using upload request. (For more on upload request, see page 7–34.) 3. Shut down the PLC-3 processor using shutdown request. (For more on shutdown, see page 7–28.) 4. Upload information using one or more physical reads. (For more on physical read, see page 7–13.) 5. Exit the upload mode using restart request. (For more on restart request, see page 7–23.)

Publication 1770-6.5.16 - October 1996

Page 206

Uploading and Downloading with A-B Processors

12–3

Uploading from a PLC-5 Processor Important:

Uploads cannot be performed on a PLC-5 processor that is memory protected. You set or remove memory protection by using switch settings on either the I/O rack or on your PLC-5 family processor. (For more information, refer to your processor’s installation manual.)

If you have this PLC-5 processor

Then

PLC-5/15/B Rev E and earlier

Follow procedure 1 on page 12-4

•PLC-5/10 •PLC-5/11 •PLC-5/12 •PLC-5/15/B Rev F and later •PLC-5/20 •PLC-5/20E •PLC-5/25 •PLC-5/30

•PLC-5/40 •PLC-5/60L •PLC-5/40E •PLC-5/40L •PLC-5/60 •PLC-5/80 •PLC-5/80E

Follow procedure 2 on page 12-5

Publication 1770-6.5.16 - October 1996

Page 207

12–4

Uploading and Downloading with A-B Processors

Procedure 1, PLC-5/15/B processors, revision E and earlier 1. Place the PLC-5 processor in Program or Remote Program mode using set CPU mode or the keyswitch on the front of the processor. (For more on set CPU mode, see page 7–26.) 2. Place the PLC-5 processor in Upload mode using upload all request. This locks out all other users from accessing PLC-5 memory. (For more on upload all request, see page 7–33.) If a T50 is connected, it displays Download mode. Important:

Once upload all request is issued, the PLC-5 processor starts a 90 second timer. After 90 seconds, the processor automatically returns to the previous mode of operation. If your upload takes more than 90 seconds, you must reset the timer by sending another upload all request within the 90 second limit.

3. Upload the first 14 bytes of PLC-5 memory using read bytes physical. (For more on read bytes physical, see page 7–19.) 4. Upload the rest of PLC-5 memory starting at location 0A00 (hex) to 3FF0 (hex).

"

Uploading PLC-5 memory You can accomplish a complete upload of PLC-5 memory using 107 read bytes physical with a size of 128 bytes plus one read bytes physical with a size of 112 bytes. (For more on read bytes physical, see page 7–19.) You can only read 112 bytes with a physical read sent to address 3F80. 5. Exit Upload mode using upload completed. (For more on upload completed, see page 7–34.)

Publication 1770-6.5.16 - October 1996

Page 208

Uploading and Downloading with A-B Processors

12–5

Procedure 2 The processor can be in any mode while uploading. 1. Verify the processor type using diagnostic status. (For more on diagnostic status, see page 7–6.) 2. Place the processor in Upload mode using upload all request. (For more on upload all request, see page 7–33.) This command returns a reply which contains the addresses of:

• PLC-5 memory segments that you can upload • memory segments that can be verified after upload 3. Upload the memory segments specified in the reply packet of upload all request using read bytes physical. (For more on read bytes physical, see page 7–19.)

"

Read bytes physical A single segment of PLC-5 memory may require more than one read bytes physical. You must calculate the PLC-5 physical address for each command.

When you store PLC-5 memory information to an archive file in your computer, you must also store this information to perform the download procedure: • physical addresses from where the memory information came • number of bytes uploaded from each PLC-5 physical address contained in read bytes physical 4. Exit Upload mode using upload completed. (For more on upload completed, see page 7–34.) 5. Verify the upload by repeating the steps 1 and 2, but instead of writing the data to a file, compare it to the data that you previously stored in the file. 6. Terminate the processor upload operation using upload completed. (For more on upload completed, see page 7–34.)

Publication 1770-6.5.16 - October 1996

Page 209

12–6

Uploading and Downloading with A-B Processors

Uploading from an SLC 500 Processor 1. Open the directory to be read using open file. (For more on open file, see page 7–13.) 2. Read the directory using file read. (For more on file read, see page 7–10.)

"

File read This may take more than one transaction.

3. Read all other processor files using logical reads. (For more on logical reads, see page 7–17.) 4. Close the program file 0, using close file. (For more on close file, see page 7–5.)

Downloading to the Processor

A download replaces the program in an SLC processor. Important:

This process may take several seconds to complete. Therefore, you must stop the PLC processor during download to prevent the PLC processor from executing a program that is changing.

The SLC processor’s interface must prevent other stations from accessing the data table during download, because it may only be partially complete. The interface must also prevent a programming terminal from accessing the program during download. To help make sure that your SLC interface prevents access to the data table during download, use these download procedures. To download information to

Publication 1770-6.5.16 - October 1996

See page

PLC-2 processors

12-7

PLC-3 processors

12-8

PLC-5 processors

12-8

SLC 500 processors

12-10

Page 210

Uploading and Downloading with A-B Processors

12–7

Downloading to a PLC-2 Processor 1. Place the PLC-2 processor in Download mode by setting the mode selector switch on the PLC-2 processor to the RUN/PROG or PROG position.

!

ATTENTION: Leaving outputs on during a download can cause unexpected machine motion. If you are downloading to a PLC-2/20 or mini-PLC-2 processor in RUN or RUN/PROGRAM mode, the only way to turn an output off is to use physical write to set all output image bits to 0.

2. Place the PLC-2 processor in Download mode using enter download mode. (For more on enter download mode, see page 7–9). This command: • inhibits program scan • inhibits access by a programming terminal • does not allow the PLC-2 processor to send commands • allows the PLC-2 processor to only receive downloading and diagnostic commands • places a PLC-2/05, -2/15, -2/16, -2/17, or -2/30 processor in program mode. If the last state switch at each I/O chassis is set to OFF, the outputs are disabled • lets the outputs of a PLC-2/20 or a mini-PLC-2 remain enabled if the mode selector switch is in the Run or Run/Program position 3. If necessary, set the data table size using set data table size. (For more on set data table size, see page 7–24.) Important:

Do not write beyond your PLC-2 memory. If you need to change the size of your PLC-2 data table to download the new program, refer to your PLC-2 processor user manual.

4. Download the information using one or more physical writes. (For more on physical write, see page 7–14.)

"

Downloading programs When you download a program, write zeros into the unused portion of memory following the program.

5. Verify that the information transferred properly using physical read. (For more on physical read, see page 7–13.) 6. Exit Download mode using exit download/upload mode (For more on exit download/upload mode, see page 7–10.)

Publication 1770-6.5.16 - October 1996

Page 211

12–8

Uploading and Downloading with A-B Processors

Downloading to a PLC-3 Processor 1. Determine if the destination PLC-3 processor exists using diagnostic status. (For more on diagnostic status, see page 7–6.) 2. Request the right to download to a PLC-3 processor using download request. (For more on download request, see page 7–8.) 3. Shut down the PLC-3 processor using shutdown request. (For more on shutdown request, see page 7–28.) 4. Download the information using one or more physical writes. (For more on physical write, see page 7–14.) 5. Verify that the information transferred properly using physical read. (For more on physical read, see page 7–13.) 6. Exit the download mode using restart request. (For more on restart request, see page 7–23.)

Downloading to a PLC-5 Processor If you have this PLC-5 processor

Then

PLC-5/15/B Rev E and earlier

Follow procedure 1 on page 12-9

•PLC-5/10 •PLC-5/11 •PLC-5/12 •PLC-5/15/B Rev F and later •PLC-5/20 •PLC-5/20E •PLC-5/25 •PLC-5/30

Publication 1770-6.5.16 - October 1996

•PLC-5/40 •PLC-5/60L •PLC-5/40E •PLC-5/40L •PLC-5/60 •PLC-5/80 •PLC-5/80E

Follow procedure 2 on page 12-10

Page 212

Uploading and Downloading with A-B Processors

12–9

Procedure 1 (PLC-5/15/B rev E and earlier) 1. Place the PLC-5 processor in Program or Remote Program mode using set CPU mode or the keyswitch on the front of the processor. (For more on set CPU mode, see page 7–26.) 2. Place the PLC-5 processor in Download mode using download all request. (For more on download all request, see page 7–8.) This command locks out all other users from accessing the PLC-5 processor. Important:

When you send a download all request, a 90 second timer is started. A write bytes physical resets this timer. If the timer times out after 90 seconds, the PLC-5 processor automatically returns to the previous mode of operation. If your download takes more than 90 seconds, reset the timer using write bytes physical within the 90 second limit.

3. Download the first 14 bytes of PLC-5 memory using write bytes physical. (For more on write bytes physical, see page 7–35.) 4. Download the rest of PLC-5 memory starting at location 0A00 hex to 3FF0 hex.

"

Downloading PLC-5 memory You can download all PLC-5 memory with 107 write bytes physical of 128 bytes plus one write byte physical of 112 bytes. You can only write 112 bytes to address 3F80 hex. If you write more, an error is returned.

5. Verify that the information is transferred properly by using read bytes physical. (For more on read bytes physical, see page 7–19.) 6. Exit the download mode using download completed. (For more on download completed, see page 7–7.)

Publication 1770-6.5.16 - October 1996

Page 213

12–10

Uploading and Downloading with A-B Processors

Procedure 2 1. Verify the processor type using diagnostic status. (For more on diagnostic status, see page 7–6.) 2. Place the PLC-5 processor in Program or Remote program mode using set CPU mode or the keyswitch on the front of the processor. (For more on set CPU mode, see page 7–26.) 3. Place the PLC-5 processor in Download mode using download all request. (For more on download all request, see page 7–7.) 4. Send PLC-5 memory information to the appropriate physical addresses in PLC-5 memory using write bytes physical with the information stored in the archive file from the upload procedure. (For more on write bytes physical, see page 7–35.) 5. Exit Download mode using download complete. (For more on download complete, see page 7–7.)

Downloading to an SLC 500 Processor

Publication 1770-6.5.16 - October 1996

If you have this SLC processor

Then

SLC 500, SLC 5/01, or SLC 5/02

Follow procedure 1 on page 12-11

SLC 5/03 or SLC 5/04

Follow procedure 2 on page 12-12

Page 214

Uploading and Downloading with A-B Processors

12–11

Procedure 1, SLC 500, SLC 5/01 and SLC 5/02 Processors 1. Determine the current mode of the SLC processor using diagnostic status, CMD 06H FNC 03H. (For more on diagnostic status, see page 7–6.) 2. Place the processor in Program mode using change mode, CMD 0FH FNC 80H. (For more on change mode, see page 7–5.) 3. Disable forces using disable forces, CMD 0FH FNC 41H. (For more on disable forces, see page 7–6.) 4. Get the maximum node address parameter using read link parameters, CMD 06H FNC 09H. (For more on read link parameters, see page 7–20.) 5. Initialize memory using initialize memory, CMD 0FH FNC 57H. (For more on initialize memory, see page 7–12.) 6. Put back the previous maximum node address using set link parameters, CMD 06H FNC 0AH. (For more on set link parameters, see page 7–25.) 7. Open the directory to get ownership of the processor using open file, CMD 0FH 81H. (For more on open file, see page 7–13.) 8. Write the directory length to the directory using file write, CMD 0FH CMD AFH. (For more on file write, see page 7–11.) 9. Write the program directory to program file 0 using logical write, CMD OFH FNC AAH. (For more on logical write, see page 7–18.) 10. Write all other processor files using logical write, CMD FNC. (For more on logical write, see page 7–18.) 11. Close program file 0 using close file, CMD OFH FNC 82H. (For more on close file, see page 7–5.)

Publication 1770-6.5.16 - October 1996

Page 215

12–12

Uploading and Downloading with A-B Processors

Procedure 2, SLC 5/03 and SLC 5/04 Processors 1. Make sure the mode selector switch is in the REM (remote) position. 2. Determine the current mode of the processor using diagnostic status, CMD 06H FNC 03H. (For more on diagnostic status, see page 7–6.) 3. Place the processor in the program mode using change mode, CMD 0FH FNC 80H. (For more on change mode, see page 7–5.) 4. Disable forces - if present - using disable forces, CMD 0FH FNC 41H. (For more on disable forces, see page 7–6.) 5. Request the download and initialize memory using: A. execute command list CMD 0FH FNC 88H. B. logical write, CMD 0FH FNC AAH. (For more on logical write, see page 7–18.) C. download, CMD 0FH FNC 50H. 6. Secure sole access to commands using get edit resource, CMD 0FH FNC 11H. (For more on get edit resource, see page 7–11.) 7. Write the directory length to the directory using file write, CMD 0FH CMD AFH. (For more on file write, see page 7–11.) 8. Write the program directory to program file 0 using logical write, CMD 0FH FNC AAH. (For more on logical write, see page 7–18.) 9. Write all other processor files using logical write, CMD 0FH FNC AAH. (For more on logical write, see page 7–18.) 10. Complete the download using download complete, CMD 0FH FNC 52H. (For more on download complete, see page 7–7.) 11. Apply the port configuration using apply port configuration, CMD 0FH FNC 8FH. (For more on apply port configuration, see page 7–4.) 12. Release sole access to commands using return edit resource, CMD OFH FNC 12H. (For more on return edit resource, see page 7–11.)

Publication 1770-6.5.16 - October 1996