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

The text of a manual · part 14 of 45

Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Chapter 7 - Communicating with a PLC-5 Adapter Channel, pages 99 to 108

Pages 99 to 108 of 388, from Enhanced and Ethernet PLC-5 Programmable Controllers User Manual

The original document is the PDF (5.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.

For the Allen-Bradley 1785-L20B and Allen-Bradley 1785-L40B

Page 99

Chapter

7

Communicating with a PLC-5 Adapter Channel

Using This Chapter For Information About:

Go to Page:

Configuring communication to a PLC-5 adapter channel

7-2

Programming discrete transfers

7-10

Programming block-data transfers

7-10

Monitoring the status of the adapter channel

7-17

Monitoring the status of the supervisory controller

7-18

Monitoring remote I/O adapter channels

7-19

This chapter explains how to configure the controller to communicate with an adapter channel: 1. Select which channel to configure as an adapter. 2. Define a diagnostic file. 3. Use a unique, unused integer file. 4. Define the rack address, starting group and rack size. 5. The default rack address is rack 3. 6. Define the discrete transfer files (enter as decimal numbers). 7. The input source is where the supervisory controller’s output discrete bits go (default is 001:024 - the decimal representation of rack 3). The output source is where the supervisory controller’s input bits go (default is 000:024). 8. Create the necessary block-transfer control files (one BTR and one BTW). 9. Configure the block-transfers so the supervisory controller knows where to address block-transfers.

1

Publication 1785-UM012D-EN-P - July 2005

Page 100

Communicating with a PLC-5 Adapter Channel

Configuring Communication to a PLC-5 Adapter Channel

Because a PLC-5 controller adapter channel is more intelligent than a 1771-ASB module, data communication and configuration tasks are handled differently for adapter channels. The supervisory controller or scanner channel and the adapter-mode controller channel automatically transfer discrete data and status between themselves via the supervisory controller’s remote I/O scan.

Supervisory Processor in Scanner Mode a write outputs

Remote I/O Buffer

Housekeeping b read inputs

PLC-5 Processor Channel in Adapter Mode

Update I/O image

Discrete Data and Status Bit Exchange

Discrete Transfer Configuration Files Data Exchange Remote I/O Buffer

I/O Image Table

I/O Image Table a b a b

Update I/O image a write outputs

Housekeeping

7-2 b read inputs Logic Scan

Remote I/O Scan

Program Scan

During each remote I/O scan, the supervisory processor transfers 2, 4, 6, or 8 words*depending on whether the adapter-mode processor is configured as a 1/4, 1/2, 3/4, or full rack.

The adapter-mode processor transfers 2, 4, 6, or 8 words*depending on whether it is configured as a 1/4, 1/2, 3/4, or full rack.

Discrete data and block-transfer status bits are transferred between a remote I/O scanner’s I/O image table and an adapter channel via the adapter channel’s discrete transfer configuration files, which you define on the adapter channel configuration screen. For the Scanner Channel to Communicate with a PLC-5 Controller Adapter Channel, Do the Following

For More Information, See

1.Define the communication rate, its address, and rack size (number of words to transfer). page 7-3 2.Define the discrete transfer configuration files, which are the files from which the adapter controller channel gets the data sent by the supervisory controller and puts data into for the supervisory controller.

page 7-5

3.If you plan to block-transfer data to the adapter channel, define the block-transfer files and configure the block-transfers.

page 7-10

4.Connect the remote I/O cable.

your controller installation instructions

Publication 1785-UM012D-EN-P - July 2005

Page 101

Communicating with a PLC-5 Adapter Channel

7-3

Specify an Adapter Channel’s Communication Rate, Address, and Rack Size Use this table to help you determine the controller channels you can configure as a remote I/O adapter: Controller

Channels that Support Remote I/O Adapter

PLC-5/11

1A

PLC-5/20

PLC-5/20E

1B

PLC-5/30

PLC-5/40E

1A, 1B

PLC-5/40L

PLC-5/80E

PLC-5/60L PLC-5/40

PLC-5/80

1A, 2A, 1B, 2B

PLC-5/60

To select a channel as an adapter, use the adapter mode configuration screen in your programming software.

configure the channel as a remote I/O adapter specify adapter settings

Publication 1785-UM012D-EN-P - July 2005

Page 102

7-4

Communicating with a PLC-5 Adapter Channel

In this Field

Define

By Doing the Following

Diagnostic file

The file containing the adapter channel’s Cursor to the field and enter an integer file number (9-999). status information ATTENTION: Assign a unique diagnostic file to each channel. Do not assign a diagnostic file that is the I/O status file you assigned or any other used integer file. Unpredictable machine damage can result. Important: You must define a diagnostics file for a channel configured for anything but unused (even if you are not using the channel) if you want to get status information for that channel.

Baud rate

Communication rate for the remote I/O link

Cursor to the field and select the desired rate. Available rates are: 57.6, 115.2, or 230.4 kbps.

Rack number

The rack address of this PLC-5 controller Cursor to the field and enter the address. as it appears to the scanner Valid addresses are (based on the scanner this PLC-5 controller communicates with): 3 octal (PLC-5/11 controllers) 1-3 octal (PLC-5/20, -5/20E controllers) 1-7 octal (PLC-5/30 controllers) 1-17 octal (PLC-5/40, -5/40L, -5/40E controllers) 1-27 octal (PLC-5/60, -5/60L, -5/80, -5/80E controllers) The default is rack 3. Important: The valid addresses are based on the scanner, not the PLC-5 controller you are configuring. For example, if you are configuring a PLC-5/20, you could enter a rack address between 1-27 if the scanner you will be communicating with is a PLC-5/60.

Publication 1785-UM012D-EN-P - July 2005

Page 103

Communicating with a PLC-5 Adapter Channel

In this Field

Define

By Doing the Following

Last rack

Notifies the supervisory controller that this is the last chassis

Select the check box if this is the last rack.

7-5

This information is important when the supervisory controller is a PLC-2 controller. Starting group

The starting group number of the rack

Cursor to the field and enter the number Valid entries are: 0, 2, 4 or 6.

Rack size

The number of I/O words to exchange with the supervisory controller

Cursor to the field and select the rack size, which depends on the starting group you selected above: If you want to communicate using: 2 words - select 1/4 (starting group 6) 4 words - select 1/2 (starting group 4) 6 words - select 3/4 (starting group 2) 8 words - select FULL (starting group 0) For example, if you choose starting group 6, you can only transfer 2 words. If you choose starting group 4, you can transfer 4 or 2 words.

Specify the Discrete Transfer Configuration Files The discrete transfer configuration files (output source file and the input destination file) are the main vehicles for discrete data and block-transfer status bits exchange between a PLC-5 adapter channel and a scanner channel or a supervisory controller (see ). The discrete transfer configuration files can be integer, BCD, or binary data file types. Be sure to create the files specified for the input source and output source prior to specifying them. If they do not exist at the time of configuration, you will receive an error when trying to accept edits.

Publication 1785-UM012D-EN-P - July 2005

Page 104

7-6

Communicating with a PLC-5 Adapter Channel

Configure the discrete transfer configuration file as an integer file. Although the PLC-5 controller allows you to use the input or output areas, reserve these for real I/O on scanner channels. In doing so, you are avoiding a possible conflict if you later attempt to add a rack that uses the same I/O image space. IMPORTANT

Do not configure the adapter channel’s discrete transfer configuration input destination file to be the data table input image. You risk clearing inputs when performing an autoconfiguration for a scanner channel on the same controller. The adapter inputs will not be updated until a change is detected in the input data being sent by the controller.

Publication 1785-UM012D-EN-P - July 2005

Page 105

Communicating with a PLC-5 Adapter Channel

7-7

Discrete Data and Block-Transfer Status . Supervisory Processor in Scanner Mode Discrete Transfer Configuration Files

Housekeeping b read inputs

Remote I/O Buffer

Update I/O image data from output source file sent to scanner’s input image table

Data Exchange

Remote I/O Buffer Update I/O image a write outputs

Housekeeping a write outputs data from scanner’s output image table sent to the input source file

PLC-5 Processor Channel in Adapter Mode b read inputs Logic Scan

I/O Image Table a b Remote I/O Scan

Program Scan

Scanner’s Output Image Table

Reserved for status

17

Word

14 13

0 1 2 3 4

Supervisory Processor PLC-2 0X0-0X7 PLC-3 OXX0-OXX7 PLC-5 O:X0-O:X7

10 07

04 03

Adapter Channel’s Input Destination File Integer File 00

Reserved for status

15

12 11

08 07

04 03

00

Output File

Input File

Scanner’s Input Image Table

Adapter Channel’s Output Source File Integer File

5 6 7

Reserved for status

Supervisory Processor PLC-2 1X0-1X7 PLC-3 IXX0-IXX7 PLC-5 I:X0-I:X7

Word

17 0 1 2 3 4

14 13

10 07

04 03

00

15

12 11

08 07

04 03

00

Reserved for status

Input File

Output File

5 6 7

Two, four, six, or eight words of data can be transferred between the scanner and the adapter channel. The number of words is determined by the rack size specified on the Adapter Channel Configuration screen.

Publication 1785-UM012D-EN-P - July 2005

Page 106

7-8

Communicating with a PLC-5 Adapter Channel

If data from the supervisory controller is intended to control outputs of the adapter-mode controller channel, write ladder logic in the adapter-mode controller to move the data from its input destination file to its output image. Use XIC and OTE instructions for bit data; use move and copy instructions for word data. If you want the supervisory controller to read data from a data file in the adapter-mode controller, write ladder logic in the adapter-mode controller to move that data to its output source file for transfer to the supervisory controller’s input image table.

Publication 1785-UM012D-EN-P - July 2005

Page 107

Communicating with a PLC-5 Adapter Channel

7-9

To create the discrete transfer configuration files, use the adapter mode configuration screen in your programming software.

specify the discrete transfer configuration files

IMPORTANT

The controller determines the number of words used by the file according to the rack size you specified.

In this Field

Define

By Doing the Following

Input destination

The location where the scanner (host device) places output words into the adapter’s input file

1.Enter the file number (decimal) of the source data. 2.Enter the word number (decimal) of the source data. Specify an input image, output image, integer, BCD, or Hex file. For example: if you use file N7:0 and the rack size is FULL, the scanner places the 8 discrete words in file N7 words 0-7 (upper byte of first word is for status).

Output source

The location where the adapter places 1.Enter the file number (decimal) of the source data. discrete output words into the scanner’s discrete input file 2.Enter the word number (decimal) of the source data. Specify an input image, output image, integer, BCD, or hex file. For example: if you use file N7:10 and the rack size is FULL, the adapter channel places 8 discrete words in file N7 words 10-17 (upper byte of first word is for status).

For more information on configuring this file, see the channel configuration documentation for your programming software.

Publication 1785-UM012D-EN-P - July 2005

Page 108

7-10

Communicating with a PLC-5 Adapter Channel

Programming Discrete Transfers in Adapter Mode

Typically, each output instruction in one controller should have a corresponding input instruction in the other controller. The rack number of the adapter mode controller-channel determines the addresses that you use.

Adapter-mode Processor Channel

Supervisory Processor (PLC-5) N51:15

0:x7

8

17 I:x5

N51:15 9

11

17

15

N51:05

I:x5 13

13

14

16

N51 is the adapter-mode processor's discrete transfer configuration file. Input destination and output source entries determine input and output words. The ladder logic in the supervisory processor uses the rack number of the adapter-mode processor channel. Condition the ladder logic in the adapter processor with the status bits (page ).

Programming Block-Transfers of Data to an Adapter Channel

Adapter-mode block-transfers are essentially continuous. As soon as a transfer is completed, another block-transfer occurs immediately in the adapter-mode controller; it then waits (with a buffered snap-shot of data) for the supervisory controller to perform another block-transfer request. Therefore, the data that is transferred after the request is data from the previous transfer. If the supervisory controller performs a block-transfer request from the adapter-mode controller every 500 ms, for example, the data is at least 500 ms old. The supervisory controller contains the ladder-logic transfer instructions which controls the actual communication transmission. However, the adapter-mode controller channel controls the: • actual number of words of data that is transferred • data table location from which the data is transferred IMPORTANT

Publication 1785-UM012D-EN-P - July 2005

Do not use ladder-logic block-transfer instructions for the adapter-mode controller channel; you configure the block-transfers from channel configuration screens and data monitor screens.