The text of a manual · part 16 of 45
Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Chapter 8 - Communicating with Extended-Local I/O
Pages 119 to 132 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 119
Chapter
8
Communicating with Extended-Local I/O
Using This Chapter For Information About
Go to Page
Selecting devices that you can connect
8-1
Cabling
8-2
Addressing and placing I/O
8-2
Transferring data
8-4
Configuring the controller as an extended-local I/O scanner
8-9
Monitoring extended-local I/O status
8-12
This chapter explains how to configure the controller to communicate with extended-local I/O: 1. Configure channel 2 for extended-local I/O. 2. Define a diagnostic file. 3. Use a unique, unused integer file. 4. Define the scan list.
Selecting Devices That You Can Connect
The only products that can form the extended-local I/O link are the PLC-5/40L and -5/60L controllers and the extended-local I/O adapter module. PLC-5/40L and -5/60L processor
1771-ALX, extended-local I/O adapter module
The extended-local I/O processor cannot be an extended-local I/O adapter.
Extended-local I/O link
1
Publication 1785-UM012D-EN-P - July 2005
Page 120
8-2
Communicating with Extended-Local I/O
Cabling
The maximum cable length for an extended-local I/O system is 30.5 cable-m (100 cable-ft). Connect extended-local I/O adapters by using any of these cables: Cable Length
Catalog Number
1 m (3.3 ft)
1771-CX1
2 m (6.6 ft)
1771-CX2
5 m (16.5 ft)
1771-CX5
IMPORTANT
You cannot connect or splice extended-local I/O cables to form a custom cable length. For example, if you have a distance of 4 m between two extended-local I/O adapters or between a controller and an extended-local I/O adapter, you cannot connect two 2 m cables together. You would have to use the 5 m cable and have the extra 1 m as slack. Terminate the link by installing the local I/O terminator (1771-CXT) on the last adapter module. The system will not run without it. The terminator is included with the controller.
Addressing and Placing I/O
Publication 1785-UM012D-EN-P - July 2005
When a PLC-5/40L or -5/60L controller is used to scan both extended-local I/O and remote I/O racks, the total of both remote I/O and extended-local I/O racks must not exceed the maximum number of racks allowed for the controller (16 racks for a PLC-5/40L or 24 racks for a PLC-5/60L). shows a PLC-5/40L controller controlling both extended-local I/O and remote I/O racks.
Page 121
Communicating with Extended-Local I/O
8-3
PLC-5/40L Controller with 16-rack Addressing Capability (Split Between Extended-Local I/O and Remote I/O) Processor-resident local I/O racks 0
1
2
Extended-local I/O racks
3
4
5
6
7
10
11
Remote I/O racks 12
13
14
15
16
17
Note: Racks numbers do not need to be consecutive per channel. For example, remote I/O racks can be numbered 6, 7, 14, 15, 16, and 17, while extended-local I/O racks can be numbered 4, 5, 10, 11, 12, and 13.
18584
The PLC-5 controller and the 1771-ALX adapter module automatically allocate the next higher rack number(s) to the remaining I/O group(s) of the chassis. For example, if you select 1/2-slot addressing for your controller-resident local chassis and you are using a 16-slot (1771-A4B) chassis, the controller will address racks 0, 1, 2, and 3 in this chassis. When assigning a rack number to extended local I/O, follow these guidelines: • Do not split a rack number between extended-local I/O and remote I/O. For example, if you use a partial rack for remote I/O, you cannot use the remaining partial rack for extended-local I/O. See ². • You can distribute extended-local I/O racks across multiple chassis on the extended-local I/O bus as shown below. Extended-local I/O Rack Number Assigned to Multiple I/O Chassis 0
1
2
3
4
• You can select a different hardware addressing method for each extended-local I/O chassis in your PLC-5 system. Publication 1785-UM012D-EN-P - July 2005
Page 122
8-4
Communicating with Extended-Local I/O
• You cannot configure more than one rack to have the same starting rack number and module group; that is, you cannot use chassis to chassis complementary I/O. Follow these guidelines when you plan your extended-local I/O system. • Do not configure controller input interrupts (PIIs) for inputs in an extended-local I/O chassis. The PII inputs must be in the controller-resident local I/O rack. • You can either use 32-point I/O modules and any addressing method or use 1771-IX or -IY modules and any addressing method in extendedlocal I/O racks. You must specify the type of I/O modules you are using by setting the configuration plug on the extended-local I/O adapter. • If you need to use a thermocouple module and 32-point I/O modules in the same I/O chassis, use the 1771-IXE module.
Transferring Data
The PLC-5/40L or -5/60L controller can scan controller-resident I/O, extended local I/O, and remote I/O. The following figure shows how a PLC-5/40L or -5/60L controller accomplishes I/O scanning and update.
PLC-5/40L and -5/60L I/O Scanning and Update Extended Local I/O
Input Output
I/O Image Table
Remote I/O Buffer Update Asynchronous to program scan
Publication 1785-UM012D-EN-P - July 2005
Output Input
I/O Image Table Update Synchronous to program scan (during housekeeping)
Remote I/O Buffer Input
Output
Remote I/O Link
Input Output
ProcessorResident Local I/O
Page 123
Communicating with Extended-Local I/O
8-5
Discrete Data Transfer
The processors scan the extended-local I/O chassis during the housekeeping portion of the program scan. Extended-local I/O discrete data is exchanged between the processor’s data table image and the I/O in the extended-local I/O chassis.
x y Data Exchange
Adapter
Remote I/O Buffer
I/O Image Table
Update I/O image
Data Exchange a
Adapter
Rack 1
IOT (x) IIN (y)
Extended -local I/O
Data Exchange Rack 2
1 b x y
ProcessorResident Rack
Housekeeping
Rack 3
Adapter
Immediate I/O
Logic Scan a write outputs
Remote I/O Scan b read inputs Program Scan
Data exchange occurs during housekeeping. Outputs are written to and inputs read from the I/O image table during the logic scan.
1 IIN and IOT data transfer directly to and from I/O modules extended-local I/O chassis.
The time that it takes to scan extended-local I/O chassis is added to the housekeeping time as shown in the following figure.
PLC-5/40L and -5/60L Extended-Local I/O Scan Time
Logic Scan Processor Checks
Remote I/O Buffer Update
Processor Resident I/O Update
+
ExtendedLocal I/O Scan
Housekeeping
Program Scan
Publication 1785-UM012D-EN-P - July 2005
Page 124
8-6
Communicating with Extended-Local I/O
The time in ms that it takes to scan extended-local I/O chassis depends on the number of 1771-ALX adapter modules and the number of extended- local I/O racks. The formula used to calculate the total time to scan extended-local I/O chassis is: extended-local I/O scan time = (0.32 ms x A)+(0.13 ms x L)
where: A
= the number of 1771-ALX modules and
L
= the number of racks in the extended-local I/O system EXAMPLE
If you have three 1771-ALX modules in three chassis and a total of 4 racks, the total time is calculated as follows: extended-local I/O scan time = (0.32 ms x 3)+(0.13 ms x 4) extended-local I/O scan time = 1.48 ms housekeeping time = 1.48 ms (extended-local I/O) + 4.50 ms(other housekeeping) housekeeping time = 5.98 ms
Transferring Block Data Requests for block-transfer data occur during the logic scan. Concurrent with the execution of the program logic, block-transfer requests are forwarded to the appropriate 1771-ALX adapter module(s) and data is transferred. A 1771-ALX adapter module may start block-transfer operations to multiple slots and have block-transfer data transactions on-going in parallel within the I/O chassis. The block-transfer duration shown above does not affect logic scan time. This transfer of data occurs concurrent with execution of program logic. Block-transfer duration is the time interval between the enabling of the block-transfer instruction and the receipt of the done bit.
Publication 1785-UM012D-EN-P - July 2005
Page 125
Communicating with Extended-Local I/O
8-7
Calculating Block-Transfer Completion Time You can calculate two types of block-transfer timing: • worst-case calculation for the completion of all block-transfers in the system • the time to perform a block-transfer for any one block-transfer module in the system This formula assumes: block-transfer instructions are consecutively placed in the logic program block-transfer modules in the I/O chassis are ready to perform when operations are requested
Calculating Worst-Case Completion Time block-transfer duration (ms) = D R
D = 2E
L + (0.1W)and logic scan + housekeeping R = logic scan or R = 1 (when D < logic scan time)
where:
E = number of extended-local I/O chassis with block-transfer modules L = largest number of block-transfer modules in any extended-local I/O chassis W = number of words in the longest block-transfer request
This formula assumes: block-transfer instructions are consecutively placed in the logic program block-transfer modules in the I/O chassis are ready to perform when operations are requested
Calculating Completion Time for any One Block-Transfer block-transfer duration (ms) = D R
D = [2E
M + (0.1W)]and logic scan + housekeeping R = where:
logic scan or R = 1 (when D < logic scan time)
E = number of extended-local I/O chassis with 1771-ALX adapter modules and block-transfer modules M = number of block-transfer modules in the chassis of the module being calculated W = number of words in block-transfer request being calculated
Publication 1785-UM012D-EN-P - July 2005
Page 126
8-8
Communicating with Extended-Local I/O
Example Calculations: Here is an example system that provides sample calculations of a worst case block-transfer completion time and the completion time of the modules in chassis 2.
PLC-5/40L Processor
ProcessorResident I/O
Extended-Local I/O Chassis 1
Extended-Local I/O Chassis 2
Extended-Local I/O Chassis 3
1771-ALX Adapter Module
1771-ALX Adapter Module
1771-ALX Adapter Module
2 BT modules
1 BT modules
No BT modules
No BT modules
Channel 2
Extended-Local I/O Link The logic scan completes in 15 ms. Housekeeping completes in approximately 6 ms (as calculated in the formula on page NO TAG). The longest block-transfer request is 20 words.
Worst-case time (T) = D X R D = 2E
L + (0.1W) and R = 1
D (ms) = (2 D = 10 ms T = 10 1 T = 10 ms
2)
Because 10 < 15 (which is the logic scan)
(2) + (0.1
20 )]
Completion time (T) for module in chassis 2 transfer: = D X R Block-transfer length = 20 D = 2E
M + (0.1W)
D (ms) = (2 D = 6 ms T = 6 1
2)
and
R = 1
(1) + (0.1
Because 6 < 15 (which is the logic scan)
20 )]
T = 6 ms
Considerations for Extended-local Racks The following are programming considerations when you are transferring block data in an extended-local rack: • Block-transfer instructions to any of the following modules that reside in an extended-local rack will result in frequent checksum errors: – 1771-OFE1, -OFE2, and -OFE3 modules, all versions prior to series B, revision B – IMC-120 and IMC-123, all versions
Publication 1785-UM012D-EN-P - July 2005
Page 127
Communicating with Extended-Local I/O
8-9
• If you are using block-transfer to a 2760-RB module located in the extended-local rack, make sure you do not set the timeout bit in the block-transfer control file.
Configuring the Controller as an Extended-Local I/O Scanner
To configure the extended-local I/O (channel 2), use the extended-local I/O configuration screen.
This Field
Specifies
Configure by Doing the Following
Diagnostic file
The file containing the channel’s status information
Cursor to the field enter enter an integer file number (9-999). 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.
Scan list
The channel I/O configuration
See the next section for information on creating and modifying a scan list.
The scan list for extended-local I/O is similar to the scan list for remote I/O. The differences are: • The remote I/O scan list displays rack size. The rack size is determined by the chassis size (number of slots) and backplane addressing used by the chassis. The following table explains the relationship among chassis size, backplane addressing and rack size.
Publication 1785-UM012D-EN-P - July 2005
Page 128
8-10
Communicating with Extended-Local I/O
How Chassis Size and Backplane Addressing Determine the Quantity of I/O Racks If You are Using this Chassis Size
And 2-Slot Addressing (Single Density)
Or 1-Slot Addressing (Double Density)
Or 1/2-Slot Addressing (Quad Density)
4-slot
1/4 logical rack
1/2 logical rack
1 logical rack
8-slot
1/2 logical rack
1 logical rack
2 logical racks
12-slot
3/4 logical rack
11/2 logical rack
3 logical racks
16-slot
1 logical rack
2 logical racks
4 logical racks
On the extended-local-I/O scan list, the actual chassis size and backplane addressing is displayed, not the rack size. • The scan list for extended local I/O has one entry for each physical chassis on the extended local I/O channel. If an adapter on a remote I/O channel resides in a physical chassis that contains more than one I/O rack, more than one entry appears on the remote I/O scan list for that single chassis. The following table shows the scan list for both remote I/O and extended local I/O. Each channel shows a 16-slot chassis using 1-slot addressing with a starting address of rack 4, module group 0. This chassis contains logical racks 4-5.
Remote I/O Scan List vs Extended-local I/O Scan List Remote
Extended
Rack ##
Starting Group
Rack Size
Range
4
0
FULL
040-047
5
0
FULL
050-057
Rack Address
Starting Group
4
0
A scan list includes the following:
Publication 1785-UM012D-EN-P - July 2005
Chassis Backplane Size Addressing
Range
16-SLOT
040-057
1-SLOT
Page 129
Communicating with Extended-Local I/O
For this Field
A Scan List Contains
Scan rack address
1-17 octal (PLC-5/40L controllers)
8-11
1-27 octal (PLC-5/60L controllers) Starting group number
0, 2, 4, or 6
Chassis size
4-slot, 8-slot, 12-slot, 16-slot
Backplane addressing
1-slot, 2-slot, or 1/2-slot
Range
Automatically calculated based upon rack address, starting module group and chassis size. An asterisk (*) after a range indicates the last valid rack entry.
Keep the following limitations in mind when creating/modifying your scan list: • A scan list only can have 16 entries because only 16 adapters can be on channel 2. • The automatic configuration always displays the actual hardware configuration, except for chassis that have their global inhibit bit set. In this case, that global bit overrides the automatic configuration. You must first clear the global inhibit bits for all chassis on the channel, and then use the autoconfigure function. • Clear global inhibit bits by using the controller status status screen. • A scan list can have a maximum of 16 chassis. Entries cannot be repeated on the scan list.
Publication 1785-UM012D-EN-P - July 2005
Page 130
8-12
Communicating with Extended-Local I/O
Use the following table for information about creating/modifying your scan list: To:
Do the Following
Create a scan list
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. 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 some or all adapters are not on the scan list and should be, check to see that they are powered-up and that the channels are connected properly. Also verify that all switch settings on the adapters are set correctly.
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.
Monitoring Extended-Local I/O Status
Publication 1785-UM012D-EN-P - July 2005
To monitor extended-local I/O of PLC-5/40L and PLC-5/60L controllers, use the extended local I/O status screen in your programming software.
Page 131
Communicating with Extended-Local I/O
8-13
Status Field
Location
Description
Channel retry word 0
Displays the number of times extended local I/O scanner tried and failed to communicate with all adapters on the channel. This value is the sum of all adapter retry counts.
Retry word 10 word 20 word 30 etc. word 160
Displays the number of retries for the corresponding rack entry (word numbers are in multiples of 10). Entry 1 Entry 2 Entry 3 etc. Entry 16
IMPORTANT
Setting inhibit bits in the I/O status file does not update inhibit bits in the controller status file.
Publication 1785-UM012D-EN-P - July 2005
Page 132
8-14
Communicating with Extended-Local I/O
Notes
Publication 1785-UM012D-EN-P - July 2005