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

The text of a manual · part 12 of 45

Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Chapter 6 - Communicating with Remote I/O, pages 82 to 90

Pages 82 to 90 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 82

6-10

Communicating with Remote I/O

TIP

If you need multiple updates to an I/O device during an I/O scan, you can enter a logical address in the scan list more than one time. Do not assign the same partial or full rack address to more than one channel in scanner mode. Each channel must scan unique partial and/or full rack addresses. Keep these limitations in mind when creating/modifying a scan list: • The automatic configuration always displays the actual hardware configuration, except for racks that have their global-rack inhibit bit set. In this case, the global-rack bit overrides the automatic configuration. You must first clear the global-rack inhibit and then select autoconfigure. • Clear global-rack inhibit bits for the channel that scans the racks that you want to resume scanning. Use the scanner mode status screen in your programming software. • If you change a channel configuration from adapter or DH+ mode to scanner mode, use the clear list function of your programming software to clear the scan list. In any other instance where you need to clear entries from the scan list, use the delete-from-list function to delete the entries one at a time.

Publication 1785-UM012D-EN-P - July 2005

Page 83

Communicating with Remote I/O

Communicating to a Remote I/O Node Adapter

6-11

A scanner channel exchanges discrete data with remote I/O node adapters like 1771-ASB modules via the remote I/O buffer. Remote I/O Scan and Program Scan Loops.

Program Scan Loop

Immediate I/O 1 a b x y

Rack 2

Adapter

Data Exchange Remote I/O Buffer

I/O Image Table

Update I/O image b read inputs

Adapter

Data Exchange Rack 1 x y

IOT (x) IIN (y)

a write outputs

Housekeeping

Rack 3

Adapter

Remote I/O Scan Loop

Logic Scan

ControllerResident Rack

During housekeeping: Data exchange between the I/O image table, the controller-resident rack, and the remote I/O buffer occurs.

The remote I/O scan is the time it takes for the controller to communicate with all of the entries in its rack scan-list once. The remote I/O scan is independent of and asynchronous to the program scan.

The remote I/O buffer is updated. Remember that the I/O scanner is constantly updating the remote I/O buffer asynchronously to the program scan.

1 In remote racks, immediate I/O data transfers update the remote I/O buffer.

IMPORTANT

The remote I/O scan for each channel configured for scanner mode is independent and asynchronous to the remote I/O scan for any other channel

For the Scanner Channel to Communicate with the 1771-ASB Adapter Modules, Do the Following

For More Information, See:

1.Set the I/O chassis backplane switch for each chassis that houses an adapter module.

Appendix E

2.Set the switches on the adapter module itself. 3.Connect the remote I/O cable.

your controller installation instructions

Publication 1785-UM012D-EN-P - July 2005

Page 84

6-12

Communicating with Remote I/O

Troubleshooting Remote I/O Communication Difficulties Follow these steps to make sure the controller can communicate with devices on remote I/O links. 1. Put the controller in program mode. Go into the memory map and find two unused file numbers. The controller will use these files. Do not create the files, just record which file numbers you will use. 2. Go to the controller status screen and make sure all rack inhibit bits are zeroed (0). 3. Go to the controller configuration screen and assign one of the previous file numbers to be the I/O status file (see page 6-7). 4. Go to the channel configuration screen for the appropriate channel and assign the remaining file number (from above) to be the channel diagnostic file (see page 6-7). 5. Perform an autoconfigure and confirm that all the racks were found and listed in the I/O scan list. 6. Check all I/O rack retry counters in channel status to make sure there are no communications problems. If you follow the above steps and there are still remote I/O communications problems, it is possible that the I/O status file is corrupt. Try assigning a brand new I/O status file and repeat the steps above. Also, confirm that the I/O image tables exist for the racks you are having difficulty communicating with.

Publication 1785-UM012D-EN-P - July 2005

Page 85

Communicating with Remote I/O

6-13

In addition to discrete data, the controller can also exchange block data with remote I/O. Block-transfer instructs the controller to interrupt normal I/O scanning and transfer as many as 64 words of data to/from a selected I/O module. The figure below shows how the scanner-mode controller handles a block-transfer.

Transferring Block Data

Block-Transferring Data to Controller-Resident Local, Extended-Local, and Remote I/O

Remote I/O Scan 2

Local Rack 4

One transfer per I/O scan

A

1

Q

One transfer per I/O scan

Adapter

BTR or BTW Data

A One transfer per I/O scan

1 BT Requests

Q

BTR or BTW Data

A

1 BT Requests

One transfer per I/O scan

Q

Adapter

Local Rack 1

Rack 5

Adapter

Local Racks 2 and 3

Rack 6

Q = Queue A = Active Buffer BT Requests Q BTR or BTW Data

BT Requests

Adapter

Rack 7

Adapter

Remote I/O

Adapter

ExtendedLocal I/O Scan 3

BTR or BTW Data

A

1 Logic Scan BT Requests

Q ControllerResident Rack 0

Multiple Block Transfers per I/O Scan

BTR or BTW Data

A

1

1 Interrupt from STI or Fault Routine 2 The adapter used in the remote I/O scan is the 1771-ASB.

3 The adapter used in the extended-local I/O scan is the 1771-ALX.

I/O Scan

Program Scan

15299

Publication 1785-UM012D-EN-P - July 2005

Page 86

6-14

Communicating with Remote I/O

As shown in the previous figure, the controller has the following storage areas for block-transfers: Maximum Number of Active Buffers Per Remote I/O Channel PLC-5/60, -5/60L, -5/80, -5/80E PLC-5/40, -5/40L, -5/40E PLC-5/30 PLC-5/20, -5/20E PLC-5/11

23 31 39 43 43

Placing the controller in program mode, cancels block-transfers in the active buffers and in the waiting queues.

Storage Area Description active buffers store initialized block-transfer requests for a channel The adjacent table lists the maximum active buffers for each enhanced and Ethernet PLC-5 controller. The controller places a block-transfer request directly into the active buffer only if: a buffer is available and no block-transfers to the slot is in the queue. waiting queues store block-transfer requests that cannot be placed into the active buffer because: all of the channel’s active buffers are being used the slot addressed by the block-transfer is currently processing a block-transfer

Once a block-transfer to a slot completes, the controller checks the queue to see if a block-transfer addressed to the slot is waiting. If one exists, the controller moves it to the active buffer. Since a controller can request a block-transfer from every slot in a chassis concurrently, the adapter device chooses the order in which the block-transfers execute on the chassis. Block-transfer requests are processed differently in fault routines, selectable timed interrupt routines (STI), and controller input interrupt routines (PII); see chapters 16, 18, and 19 respectively for more information.

Publication 1785-UM012D-EN-P - July 2005

Page 87

Communicating with Remote I/O

6-15

Block-Transfer Minor Fault Bits Minor Fault S:17/0Block-transfer queue full to remote I/O

S:17/1 through S:17/4Queue full - channel xx

Description There is a possibility that the PLC-5 controller might temporarily be unable to initiate multiple consecutive user-programmed block-transfers. For any block-transfer which temporarily can’t be processes, the PLC-5 controller sets minor fault bit S:17/0 and skips that block-transfer instruction. This condition is self-correcting, but bit S:17/0 remains set until you reset it. You can avoid this minor fault be separating block-transfer instruction rungs with other rungs. The PLC-5 controller can process a maximum of 64 remote block-transfers per channel pair (1A/1B or 2A/2B). This maximum includes: block-transfers that are currently in the active buffer initialized block-transfers that are waiting for execution in the holding queue Once the 64 block-transfer maximum is reached, the following minor fault bits are set, depending on which channel pair is involved: Channel pair:Minor fault bits set: 1A/1BS:17/1 and S:17/2 2A/2BS17:3 and S:17/4

S:10/7No more command blocks exist

The PLC-5 controller won’t initialize any remote block-transfer instruction which exceeds the 64 maximum. The .EW, .DN, and .ER bits are reset on any block-transfer which exceeds the 64 maximum. This condition is self-correcting, but the bits remain set until you reset them. This minor fault bit is normally associated with an application programming problem, but this bit can also be set when using block-transfers if the maximum number of command blocks available in the PLC-5 controller is exceeded. The command blocks are used by both the local and remote block-transfers. PLC-5 type:Maximum number of command blocks: PLC-5/11, -5/20, -5/30128 PLC-5/40256 PLC-5/60, -5/80384 This condition generally occurs when a program attempts to repeatedly initialize block-transfers which have not yet completed with a .DN or .ER bit. This condition is self-correcting, but bit S:10/7 remains set until you reset it.

Block-Transfers of Remote I/O Data

Block-transfers of I/O data to remote I/O follow these guidelines: • Block-transfer data exchange and the program scan run independently and concurrently. Once block-transfers are initiated, the controller performs them asynchronously to the program scan. • During every remote I/O scan, the Controller performs a maximum of one block-transfer per entry in the scan list.

Publication 1785-UM012D-EN-P - July 2005

Page 88

6-16

Communicating with Remote I/O

If you split remote rack addresses between scanner channels, block-transfers to lower priority scanner channels do not function properly. Scanner channels have priority according to the following order: 1A, 1B, 2A, then 2B.

IMPORTANT

For example: if you configure channels 1B and 2A as remote scanners and split rack #2 between them, block-transfers to channel1B (the higher priority channel) will be completed, but block-transfers to the second half of rack #2 (2A, the lower priority channel) will not be completed. Although splitting remote I/O racks across scanner channels does not affect discrete transfers, I/O status bits such as Fault and Present may not indicate the correct status. The figure below shows the remote I/O block-transfer sequence.

] [

2

BlockTransfer Requests

Discrete I/O

7 12

BT

1

4 9

Adapter

( )

Remote I/O 5 10

3 8

1 Processor executes a block-transfer instruction. 2 Processor sends the block-transfer request to its I/O scanner. 3 Scanner places module control byte (MCB) into the discrete output image table. 4 Scanner sends MCB as part of the discrete I/O update to the adapter. 5 The adapter module sends the block-transfer request to the block-transfer module.

BT

6 11

Adapter

] [

Scanner within PLC processor

BT

Adapter

Ladder Logic

BT

9 The scanner sends the block-transfer packet to the adapter for the block-transfer module (the packet includes data if it is a block-transfer write). 10 The adapter passes the block-transfer packet to the block-transfer module. 6 The block-transfer module returns a module status byte (MSB) to the adapter. 7 MSB returned to the scanner in addition to the discrete I/O by the adapter.

11 The block-transfer module sends status to the adapter (will also send data if it is a blocktransfer read). 12 The adapter passes status to the I/O scanner;

8 The scanner forms a block-transfer packet.

Publication 1785-UM012D-EN-P - July 2005 if the request is a block-transfer read, adapter sends data.

Page 89

Communicating with Remote I/O

6-17

The following figure describes the different states of the block-transfer status bits.

Block-Transfer Sequence with Status Bits Start ladder logic

Detects that a rung containing a block-transfer is enabled and sets the enable .EN bit and resets the .ST, .DN, .ER, and .EW status bits.

The processor sends the block-transfer request to the I/O scanner, sets the .EW bit, and resumes the program scan.

Executes block-transfer asynchronously to the program scan I/O scanner

A yes Does this slot address have a BT in process?

The scanner place the request in the waiting queue.

no

Is an active buffer available?

no

Transfers the block-transfer request to/from the I/O chassis.

yes

Is the request a BTW?

no

The scanner sets the .ST status bit and starts the watchdog timer.

no Does the module respond?

yes yes The scanner accesses the BTW file in the data table and copies the data to the active buffer.

B

C see page 6-19 see page 6-18

Publication 1785-UM012D-EN-P - July 2005

Page 90

6-18

Communicating with Remote I/O

B

Did the block-transfer complete without errors?

no Sets the error .ER bit (12).

yes Sets the done .DN bit (13).

no Was the block-transfer a BTR?

Is the block-transfer continuous? (the .CO bit is set.)

yes Re-initializes the block-transfer. go to yes Copies data from the active buffer to the block-transfer file in the data table.

no

A

Frees up the active buffer for the next request go to Start

Publication 1785-UM012D-EN-P - July 2005 see page 6-17 see page 6-17