Previous | Contents | Index |
The upload function transfers the contents of a device's memory to an OpenVMS file. You can specify the STOP qualifier when using the UPLOAD command. If you specify the STOP qualifier, the PE prevents the contents of PLC memory from being modified during the upload. All BASEstar Classic device connection management write functions are rejected with a device busy message.
The download function transfers the contents of an OpenVMS file to a device's memory. You can specify the STOP and RESTART qualifiers to control the device mode when using the DOWNLOAD command. The PE does not allow the operating status of a PLC to be changed unless specified in the DOWNLOAD command.
You must specify the STOP qualifier when you download a running device.
The STOP qualifier is a safety mechanism. You must specify the RESTART
qualifier to start the device when the download is completed. All
device connection management read (except read status) and write
functions are rejected with a device busy message during the download.
3.2.2.1 PLC-1774
When you perform the upload function, the keyswitch must be in the RUN-MONITOR, RUN/PROGRAM LOAD, or TEST-MONITOR position. If the keyswitch is in the RUN/PROGRAM LOAD position, the PLC programming terminal must have the device mode set to Remote RUN-MONITOR or TEST-MONITOR. The STOP qualifier for a PLC-1774 upload function prevents other processes from writing to the device through the DAS. The syntax for the STOP qualifier follows:
UPLOAD dev_name filename /QUALIFIER="STOP" |
When you perform the download function, the keyswitch must be in the RUN-MONITOR, RUN/PROGRAM LOAD, or TEST-MONITOR position. If the keyswitch is in the RUN/PROGRAM LOAD position, the PLC programming terminal must have the device mode set to Remote RUN-MONITOR or Remote TEST-MONITOR. There are two qualifiers associated with the download operation:
The syntax for the STOP and RESTART qualifiers follows:
DOWNLOAD dev_name filename /QUALIFIER="STOP/RESTART" |
You cannot download a PLC-1774 without stopping the device. STOP is a mandatory qualifier. |
Table 3-3 displays the modes, qualifiers, and supported functions when you use the download function:
After Download | ||||
---|---|---|---|---|
Keyswitch Position | Qualifiers | Scan | Outputs | Mode |
RUN MONITOR | Stop | Disable outputs | Disable outputs | RUN |
Stop/Restart | Enable outputs | Enable outputs | RUN | |
RUN/PROGRAM LOAD - RUN | Stop | Disable outputs | Disable outputs | Remote test |
Stop/Restart | Enable outputs | Enable outputs | Remote run | |
TEST MONITOR | Stop | Disable outputs | Not modified | TEST |
Stop/Restart | Enable outputs | Not modified | TEST | |
RUN/PROGRAM LOAD - TEST | Stop | Disable outputs | Not modified | Remote test |
Stop/Restart | Enable outputs | Not modified | Remote test, remote run |
You can perform the upload function for the PLC-2 devices in any mode. If you issue the UPLOAD command with the STOP qualifier, the device is issued an upload request. If you are using a 1771-KA interface card and issue the UPLOAD command with the STOP qualifier, the device is issued a download request. The STOP qualifier disables the industrial terminal as well as preventing other processes from writing to the device through the DAS.
Table 3-4 displays the interface, modes, qualifiers, and functions supported, modified, and not supported by the upload function.
Interface | Mode | Qualifier | Read | Write |
---|---|---|---|---|
1771-KA | Prog | None | Not supported | Not supported |
Remote prog | None | Not supported | Not supported | |
Prog | Stop | Not supported | Not supported | |
Remote prog | Stop | Not supported | Not supported | |
Run | None | Supported | Supported | |
Remote run | None | Supported | Supported | |
Test | None | Supported | Supported | |
Run test | None | Supported | Supported | |
Run | Stop | Supported | Not supported | |
Remote run | Stop | Supported | Not supported | |
Test | Stop | Supported | Not supported | |
Run test | Stop | Supported | Not supported | |
1771-KA2 | Prog | None | Not supported | Not supported |
Remote prog | None | Not supported | Not supported | |
Prog | Stop | Not supported | Not supported | |
Remote prog | Stop | Not supported | Not supported | |
Run | None | Supported | Supported | |
Remote run | None | Supported | Supported | |
Test | None | Supported | Supported | |
Run test | None | Supported | Supported | |
Run | Stop | Supported | Not supported | |
Remote run | Stop | Supported | Not supported | |
Test | Stop | Supported | Not supported | |
Run test | Stop | Supported | Not supported |
Uploading with the STOP qualifier disables the industrial terminal until the upload function is completed. |
The action taken for the download function (and associated qualifiers) for a PLC-2 family device depends on the communications interface card being used with the device. Certain revisions of the 1771-KA2 communications adapter do not allow a logic program to be downloaded to the memory of a PLC-2/20 in the RUN/PROG mode.
To determine whether or not the combination of a given revision of the 1771-KA2 interface and PLC-2/20 processor produces this problem, contact an Allen-Bradley representative. Until Allen-Bradley releases a revision of hardware that allows downloading in the RUN/PROG mode, some PLC-2/20s may only be downloaded in the PROG mode.
The 1771-KA interface does not support the SET DATA TABLE SIZE command. The file data table downloaded must have the same data table size as the destination device. If the download function fails with an invalid data table size error, check the history file for the file data table size and reset the device data table size using an industrial terminal. Using the download function through a 1771-KA2 interface sets the device data table size to match the download file data table size.
Valid download functions for the 1771-KA1 and 1771-KA2 interfaces are:
The RUN and RUN/PROG Run mode are not supported through the 1771-KA interface during the download function. The RUN and TEST modes are not supported through the 1771-KA2 interface during the download function. The read and write functions are not supported during a download function on a PLC-2 device. |
You must specify the STOP qualifier if the device is to be stopped by
the download function. Use the RESTART qualifier to restart the device
after the download function is completed.
3.2.2.3 PLC-3
You can perform the upload function for the PLC-3 devices in any mode. The STOP qualifier prevents other processes from writing to the device through the DAS. PLC-3 file allocations are frozen during the upload function regardless of the STOP qualifier.
The controller performs the upload function until the end of the program is reached. Following the upload function, the PLC-3 is returned to its original state.
You can perform the download function for a PLC-3 family device in any mode. If the device is in Run or Test mode, the STOP qualifier is mandatory. If you specify the RESTART qualifier, the device is put in Run mode when the download function completes. If you omit the RESTART qualifier, the device is put in Program mode when the download function completes. The PLC-3's station address is preserved and the station address in the logic file is ignored.
To perform the download function, set the keyswitch to the MEMORY
PROTECT OFF position.
3.2.2.4 PLC-5
The upload function can be performed by a PLC-5/XX device in any mode. Upload is not supported for the PLC-5/250.
Specifying /QUALIFIER=STOP helps to prevent modification of device memory during an upload. If you specify the STOP qualifier, the device cannot be scanning during the upload function. If the device is in Remote Run or Remote Test and you specify the STOP qualifier, the device mode is changed to Remote Program until the upload function completes. Note that the PLC-5/15 (Series B, Revision E, or earlier) does not support any read functions except read status during an upload function when you specify the STOP qualifier.
The keyswitch must be in the REMOTE position to use the following qualifiers:
You cannot restart in PROG mode or stop in RUN mode while performing an upload function. The STOP qualifier prevents other processes from writing to the device through the DAS for AB Data Highway Protocol during the upload.
When you perform the download function for a PLC-5 family device, the device can be in any mode except RUN mode. The keyswitch position must be REM or PROG. Note that if the device is in Remote Run or Remote Test mode, the STOP qualifier is mandatory. The RESTART qualifier is only valid if the keyswitch is in the REM position. If you specify the RESTART qualifier, the device is put in the Remote Run mode when the download function completes.
The download function supports the following qualifiers:
You must specify the STOP qualifier if the device is to be stopped by the download function.
Table 3-5 displays the combinations of modes and qualifiers available while performing a download operation. An "N" indicates an invalid combination and a "Y" indicates a valid combination.
Qualifiers | ||||
---|---|---|---|---|
Mode | None | Stop | Restart | Stop/Restart |
RUN | N | N | N | N |
PROG | Y | Y | N | N |
REM RUN | N | Y | N | Y |
REM PROG | Y | Y | Y | Y |
REM TEST | N | Y | N | Y |
Upload and Download functions are not supported for SLC processors.
Previous | Next | Contents | Index |