The text of a manual · part 11 of 45
Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Chapter 6 - Communicating with Remote I/O, pages 73 to 81
Pages 73 to 81 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 73
Chapter
6
Communicating with Remote I/O
Using This Chapter For Information About Selecting devices that you can connect Introduction to remote I/O Designing a remote I/O link Configuring a controller channel as a scanner Communicating to a remote I/O node adapter Transferring block data Block-transfers of remote I/O data Block-transfer sequence with status bits Block-transfer programming considerations Monitoring remote I/O scanner channels Addressing the I/O status file
Go to Page 6-2 6-3 6-4 6-6 6-11 6-13 6-15 6-17 6-19 6-21 6-24
This chapter explains how to configure the controller to communicate with remote I/O: 1. Select which channel to configure as a scanner. 2. Define the I/O status file. Use a unique, unused integer file. You must define an I/O status file if you want to autoconfigure your system. 3. Define a diagnostic file. Use a unique, unused integer file. 4. Define the scan list.
1
Publication 1785-UM012D-EN-P - July 2005
Page 74
6-2
Communicating with Remote I/O
Selecting Devices That You Can Connect
The following table lists some of the devices you can use on a remote I/O link:
Category
Product
Catalog Number
Other Controllers (in adapter mode)
enhanced PLC-5 controllers
1785-LxxB
Ethernet PLC-5 controllers
1785-LxxE
ControlNet PLC-5 controller
1785-LxxC
VMEbus PLC-5 controllers
1785-VxxB extended-local PLC-5 controllers
1785-LxxL classic PLC-5 controllers
1785-LTx
Other Controllers (in adapter mode)
Direct Communication Module for SLC Controllers
1747-DCM
To Remote I/O
SLC 500 Remote I/O Adapter Module
1747-ASB
1791 Block I/O
1791 series
Remote I/O Adapter Module
1771-ASB
1-Slot I/O Chassis with Integral Power Supply and Adapter
1771-AM1
2-Slot I/O Chassis with Integral Power Supply and Adapter
1771-AM2
Direct Communication Module
1771-DCM
FLEX I/O Adapter Module
1794-ASB
DL40 Dataliner
2706-xxxx
RediPANEL
2705-xxx
PanelView Terminal
2711-xxx
Remote I/O Adapter for 1336 AC Industrial Drives
1336-RIO
Remote I/O Adapter for 1395 AC Industrial Drives
1395-NA
Operator Interfaces
Drives
Publication 1785-UM012D-EN-P - July 2005
Page 75
Communicating with Remote I/O
Introduction to Remote I/O
6-3
A remote I/O system lets you control I/O that is not within the controller’s chassis. A PLC-5 controller channel, in scanner mode, transfers discrete and block-transfer data with remote I/O devices. An example remote I/O system looks like this: PLC-5/40
A PLC-5 controller channel acting as a scanner The scanner channel maintains a list of all the full and partial racks connected to that channel, which is the scan list.
1771-ASB
Remote I/O link cable: Belden 9463
Remote I/O node adapters like the 1771-ASB modules or PanelView operator interfaces addressed as remote I/O racks.
PLC-5/20
PLC-5 channel or a controller operating as a remote I/O adapter
The remote I/O scanner channel keeps a list of all of the devices connected to each remote I/O link called a scan list. An example channel scan list looks like this: Ch 1B Scan List
PLC-5/40E Ch 1A Ch 1B Rack 1
Rack Address
Starting Group
Rack Size
Range
1 2 3
0 0 0
Full 1/2 Full
010-017 020-023 030-037
Rack 2 Rack 3
In this example, channel 1B continually scans the three racks in its scan list and places the data in the remote I/O buffer in the controller. The controller updates its own buffer and the I/O image table. During housekeeping, the two buffers are updated by exchanging the input and output data with each other.
For more information on scan lists, see page 6-9. .
Publication 1785-UM012D-EN-P - July 2005
Page 76
6-4
Communicating with Remote I/O
Follow these steps for setting up a remote I/O system: For this Step 1.configure the remote I/O adapter devices 2.layout and connect the remote I/O link cable
See the device’s user manual • page 6-4 for design • chapter 3 for cable routing information • your controller’s installation information (For enhanced PLC-5 controllers, see publication 1785-IN062; for Ethernet PLC-5 controllers publication 1785-IN063) page 6-6
3.configure the scanner channel
Designing a Remote I/O Link
Designing a remote I/O link requires applying: • remote I/O link design guidelines • cable design guidelines
Link Design Guidelines TIP
Keep these rules in mind as you design remote I/O links: • All devices connected to a remote I/O link must communicate using the same communication rate, either 57.6, 115.2, or 230.4 kbps. Choose a rate that all devices support. • Two or more channels of the same controller operating in scanner mode cannot scan the same partial or full rack address. Assign unique partial and full racks to each channel used in remote I/O scanner mode. • You can split rack addresses between scanner channels; however, issues arise when performing block-data transfer. See page 6-15. • A scan list can have a maximum of 16 rack numbers or a maximum of 32 physical devices connected to it using 82-Ω termination resistors. See page 6-9 for more information about scan lists.
Publication 1785-UM012D-EN-P - July 2005
Page 77
Communicating with Remote I/O
6-5
Cable Design Guidelines
Specify 1770-CD (Belden 9463) cable. Connect a remote I/O network using a daisy chain or trunk line/drop line configuration.
TIP
Trunk line/drop line considerations:
Verify that your system’s design plans specify cable lengths within allowable measurements.
When using a trunk line/drop line configuration, use 1770-SC station connectors and follow these cable-length guidelines: trunk line-cable length*depends on the communication rate of the link
IMPORTANT drop-cable length*30.4 m (100 cable-ft) For more information about designing trunk line/drop line configurations, see the Data Highway/Data Highway Plus/Data Highway II/Data Highway-485 Cable Installation Manual, publication 1770-6.2.2.
The maximum cable length for remote I/O depends on the transmission rate. Configure all devices on a remote I/O link to communicate at the same transmission rate.
For daisy chain configurations, use this table to determine the total cable length you can use. A Remote I/O Link Using Cannot Exceed this this Communication Rate Cable Length 57.6 kbps 3,048 m (10,000 ft) 115.2 kbps 1,524 m (5,000 ft) 230.4 kbps 762 m (2,500 ft)
IMPORTANT
If you select the baud rate as 230.4 kbps, and you are using the serial port or a PLC-5 coprocessor, use channel 2 for better overall system performance.
For proper operation, terminate both ends of a remote I/O link by using the external resistors shipped with the programmable controller. Selecting either a 150Ω or 82Ω terminator determines how many devices you can connect on a single remote I/O link. If Your Remote I/O Link
Use this Resistor Rating operates at 230.4 kbps 82Ω operates at 57.6 kbps or 115.2 kbps and no devices listed in the following table are on the link contains any device listed in the following 150Ω table operates at 57.6 kbps or 115.2 kbps, and you do not require the link to support more than 16 physical devices.
The Maximum number The Maximum of Physical Devices You Number of Racks You can Connect on the Link: can Scan on the lLnk 32 16
16
16
Publication 1785-UM012D-EN-P - July 2005
Page 78
6-6
Communicating with Remote I/O
I/O Link Devices that Require 150Ω Termination Resistors Device Type Scanners
Catalog Number 1771-SN 1772-SD, -SD2 1775-SR 1775-S4A, -S4B 6008-SQH1, -SQH2 Adapters 1771-AS 1771-ASB 1771-DCM Miscellaneous 1771-AF
Configuring a Controller Channel as a Scanner
Series All
A All
Use this table to help you determine the controller channels you can configure as a remote I/O scanner:
Controller PLC-5/11 PLC-5/20 PLC-5/20E PLC-5/30 PLC-5/40E PLC-5/40L PLC-5/60L PLC-5/80E PLC-5/40 PLC-5/60 PLC-5/80
Channels that Support Remote I/O Scanner 1A 1B 1A, 1B
1A, 1B, 2A, 2B
To configure a controller channel as a scanner, you: • define an I/O status file, which stores information about the racks connected to the controller, by using the controller configuration screen in your programming software • specify the scanner’s communication rate and diagnostic file and define a scan list by using the scanner mode channel configuration screen in your programming software
Publication 1785-UM012D-EN-P - July 2005
Page 79
Communicating with Remote I/O
6-7
Define an I/O Status File The I/O status file stores data for the controller’s I/O rack configuration tables. The I/O status from each remote I/O rack requires two words. These two words store the reset, present, inhibit, and fault bits for each rack. To define an I/O status file, enter an unused integer file number (9-255) in the I/O status file field (S:16) of the controller configuration screen. If you do not want to use I/O rack configuration tables, enter 0. However, if you want to use the autoconfiguration option to create your scan list, you must define an I/O status file. Use the controller configuration screen in your programming software:
Specify Channel Configuration Information Use the scanner mode configuration screen in your programming software to configure a channel for scanner mode.
configure the channel as a remote I/O scanner specify the scan list
Publication 1785-UM012D-EN-P - July 2005
Page 80
6-8
Communicating with Remote I/O
ATTENTION
In this Field Diagnostic file
Define The file containing the channel’s status information:
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.
By Doing the Following Cursor to the field, type an integer file number (9-999)
• messages received • messages sent • messages received with error • unable to receive • sent with error Baud rate
• rack retries The communication rate for the remote I/O scanner mode link
IMPORTANT
Publication 1785-UM012D-EN-P - July 2005
Cursor to the field and select the desired rate.Available rates are: 57.6, 115.2, and 230.4 kbps.
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.
Page 81
Communicating with Remote I/O
6-9
Specify the Scan List A scan list is a map of the I/O devices being scanned by the scanner channel. For the channel to communicate with the I/O devices connected to it, you must create a scan list. To Create a scan list
Do the Following Make sure the controller is in Remote Program or Program mode. 1.Make sure that you defined an I/O status file on the controller configuration screen (see page 6-7). 2.Accept any edits made to the channel configuration. 3.Use the autoconfiguration function If you have errors when you accept edits, clear the scan list and accept edits again. If you encounter the error message “Resource not Available,” you have not defined an I/O status file. Define the I/O status file and try automatic configuration again. Insert an entry into the Make sure the controller is in Remote Program, Program, or Remote Run mode. scan list 1.Position the cursor at the place on the scan list where you want to insert an entry. 2.Insert an entry into the list and enter the appropriate values for the list. Important: If incorrect information is entered for an entry, the controller will not display the new configuration when you save edits. Delete an entry for the Make sure the controller is in Remote Program, Program, or Remote Run mode. scan list 1.Position the cursor at the place on the scan list where you want to delete an entry. 2.Delete the entry from the list. Important: If incorrect information is entered for an entry, the controller will not display the new configuration when you save edits.
A scan list includes the following: For this Field: Rack address
Starting group Rack size Range
A Scan List Contains 1-3 octal (PLC-5/11, -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) If complementary I/O is enabled, a C appears before the complemented rack address. 0, 2, 4, or 6 1/2, 1/4, 3/4, or FULL Automatically calculated based on rack address, starting module group and chassis size. An asterisk (*) after a range indicates the last valid rack entry.
Publication 1785-UM012D-EN-P - July 2005