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

The text of a manual · part 13 of 45

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

Pages 91 to 98 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 91

Communicating with Remote I/O

6-19

C

Is the block-transfer for a local I/O module?

no Block-transfer is for a module in a remote rack.

yes no Is the timeout .TO bit (08) set?

Sets the no response .NR bit (09).

Continues to request the block-transfer until the watchdog timer expires (4 s).

yes Continues to request the block-transfer for 0-1 s before setting the .ER bit (12).

no Is the timeout .TO bit (08) set?

Re-initializes the request until the watchdog timer expires (4 s).

yes Retries request once more before setting the .ER bit (12)

For a list of block-transfer error codes, see the PLC-5 Programming Software Instruction Set Reference, publication 1785-6.1.

Block-Transfer Programming Considerations

Read this section for information about general programming considerations and considerations for controller-resident local racks.

General Considerations The following are general programming considerations when you are block-transferring I/O data.

Publication 1785-UM012D-EN-P - July 2005

Page 92

6-20

Communicating with Remote I/O

• When performing block-transfers (controller-resident local or remote I/O) in any PLC-5 controller, clear the output image table corresponding to the block-transfer module rack location before changing to run mode. If you do not clear the output image table, then you encounter block-transfer errors because unsolicited block-transfers are being sent to the block-transfer module (i.e., if a block-transfer module is installed in rack 2, group 4, clear output word O:024 to 0; do not use the word for storing data). • If you use remote block-transfer instructions and have the timeout bit (.TO) set to 1, then the controller disables the 4-second timer and continues to request the block-transfer for 0-1 seconds before setting the error (.ER) bit. • A PLC-5 controller with at least one channel configured as an adapter could incur a non-recoverable fault when you switch it from run to program mode. To avoid this possibility, program the scanner to request only two or three block-transfers from the PLC-5 adapter at one time by conditioning the block-transfer instructions with the done/error bits.

For Controller-Resident Local Racks The following are programming considerations when you are block-transferring data in a controller-resident local rack. • Within the controller-resident local rack, limit the number of continuous-read block-transfers to 16 transfers of 4 words each or 8 transfers of 64 words each. If you attempt to exceed this block-transfer limit, a checksum error (error code -5) occurs. • Block-transfer instructions to any of the following modules residing in the controller-resident local rack result in frequent checksum errors. – 1771-OFE1, -OFE2, and -OFE3 modules; all versions prior to series B, revision B – 2803-VIM module, all versions prior to series B, revision A – IMC-120, all versions • To eliminate the checksum errors, replace your modules with the current series and revision. If replacement is not possible: 1. Go to the controller configuration screen in your programming software. 2. With the controller in program mode, set user control bit 4 (S:26/4) to 1 (the local block-transfer compatibility bit). 3. Change the controller mode from program to run.

Publication 1785-UM012D-EN-P - July 2005

Page 93

Communicating with Remote I/O

6-21

• Do not program IIN or IOT instructions to a module in the same physical module group as a BT module unless you know a block-transfer is not in progress. If you must do this, then use an XIO instruction to examine the .EN bit of the block-transfer instruction to condition the IIN and IOT.

Monitoring Remote I/O Scanner Channels

To monitor channels configured as a scanner, use the scanner mode status screen in your programming software. This screen displays the data in the diagnostic file you defined on the scanner mode configuration screen (page 6-7).

Monitoring transmission retries

Status Field

Location Description

Retries Tab Retry word 5 etc. word 69

Displays the number of retries for the corresponding rack entry. Entry 1 etc. Entry 64

Publication 1785-UM012D-EN-P - July 2005

Page 94

6-22

Communicating with Remote I/O

Status Field

Location Description

Rack Address

This field indicates the rack number of the remote racks being scanned by the scanner channel: can only scan rack 3 (PLC-5/11 controller) 1-3 octal (PLC-5/20, -5/20E controller) 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 (on the scanner mode configuration screen), the complement of a rack is identified with a C to the left of the rack address column on the status screen.

Starting Group

This field indicates the first I/O module group in the rack that the controller scans.

Rack Size

This field displays the portion of the I/O rack addressed by each chassis. Configurations can be 1/4, 1/2, 3/4, or FULL as long as the total sum of the rack does not exceed 8 I/O groups.

Range

This field displays the rack address and module groups being scanned for a rack in the scan list. An asterisk (*) after a range indicates that it is the last valid rack entry.

Fault

An F displayed in this field indicates that the corresponding chassis is faulted. When a fault indicator appears, the system sets the associated fault bit in the global rack fault status on the controller status screen in your programming software. When the global rack fault bit is set, all configuration information starting at the faulted quarter is lost. When a rack faults, F is displayed. If both the fault and inhibit bits are set for a rack, no rack exists at that I/O group.

Inhibit

Inhibit a rack by cursoring to the Inhibit field of the rack you want to inhibit and enter 1 When a chassis is inhibited the controller stops scanning it. You can inhibit an entire rack by setting the global rack-inhibit bit for that rack on the controller status screen. All chassis within that rack are inhibited, and an I appears in the Inhibit field, indicating the rack was globally inhibited.

Reset

Reset a rack by cursoring to the Reset field of the rack you want to reset and type 1 When a chassis is reset, the controller turns off the outputs of the chassis regardless of the last-state switch setting. You can reset an entire rack by setting the global rack-reset bit on the controller status screen. All chassis within that rack are reset, and an R appears in the Reset field indicating the rack was globally reset.

Retry

Publication 1785-UM012D-EN-P - July 2005

This field displays the number of times the rack was re-scanned.

Page 95

Communicating with Remote I/O

6-23

Monitoring messages

Status Field

Location Description

Messages Tab (Messages = SDA messages + SDN messages) Messages sent word 1

Displays the number of messages sent by the channel.

Messages sent with error word 3

Displays the number of messages containing errors sent by the channel.

Messages received word 0

Displays the number of error-free messages received by the channel.

Messages received with error word2

Displays the number of messages containing errors received by the channel (such as bad CRC).

Messages unable to receive word 4

Displays the number of messages received with protocol-related problems (such as a bad block-transfer status byte with both read and write bits set).

Publication 1785-UM012D-EN-P - July 2005

Page 96

6-24

Communicating with Remote I/O

Addressing the I/O Status File

During program execution you can address words and fault bits within the I/O status file. The following figure shows the arrangement of the words in the I/O status file for a given remote or extended local I/O rack. The example status file used for the figures in this section is integer file 15. Defined I/O status file

Word in integer file

N15:0 rack 0

N15:1

N15:14 rack 3

(Maximum for PLC-5/11, -5/20, and -5/20E)

rack 7

(Maximum for PLC-5/30 processors)

rack 17

(Maximum for PLC-5/40, -5/40L, and -5/40E processors)

rack 27

(Maximum for PLC-5/60, -5/60L, -5/80 and -5/80E processors)

N15:15

N15:30 N15:31

N15:46 N15:47

The first word for a rack contains present and fault bits, the second word contains reset and inhibit bits. The following figure shows present, fault, reset, and inhibit bit layouts for rack 7 in the I/O status file. IMPORTANT

Publication 1785-UM012D-EN-P - July 2005

Setting inhibit bits in the I/O status file does not update inhibit bits in the controller status file.

Page 97

Communicating with Remote I/O

6-25

Bit Layout Diagrams for the First Word Allotted to a Remote I/O Rack or an Extended-Local I/O Rack N15:14

15

Present Bits

14

13

12

11

10

09

Fault Bits

08

07

Not Used

06

05

04

03

02

01

00

Not Used

This Bit

Corresponds to

Fault Bits 00 first 1/4 rack starting I/O group 0

01 second 1/4 rack starting I/O group 2

02 third 1/4 rack starting I/O group 4

03 fourth1/4 rack starting I/O group 6

Present Bits 08 first 1/4 rack starting I/O group 0

09 second 1/4 rack starting I/O group 2

10 third 1/4 rack starting I/O group 4

11 fourth1/4 rack starting I/O group 6

Publication 1785-UM012D-EN-P - July 2005

Page 98

6-26

Communicating with Remote I/O

Bit Layout Diagrams for the Second Word Allotted to a Remote I/O Rack or an Extended Local I/O Rack N15:15

15

Reset Bits

14

13

12

11

10

09

Inhibit Bits

08

07

Not Used

06

05

04

03

02

01

00

Not Used

This Bit:

Corresponds to:

Inhibit Bits 00 first 1/4 rack starting I/O group 0

01 second 1/4 rack starting I/O group 2

02 third 1/4 rack starting I/O group 4

03 fourth1/4 rack starting I/O group 6

Reset Bits 08 first 1/4 rack starting I/O group 0

09 second 1/4 rack starting I/O group 2

10 third 1/4 rack starting I/O group 4

11 fourth1/4 rack starting I/O group 6

ATTENTION

Publication 1785-UM012D-EN-P - July 2005

When you use a ladder program or the software to inhibit and reset an I/O rack, you must set or clear the reset and inhibit bits that correspond to each quarter rack in a given chassis. Failure to set all the appropriate bits could cause unpredictable operation due to scanning only part of the I/O chassis.