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

The text of a manual · part 10 of 45

Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Chapter 5 - Communicating with Controller-Resident I/O

Pages 69 to 72 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 69

Chapter

5

Communicating with Controller-Resident I/O

Using This Chapter For Information About Introduction to PLC-5 controller scanning Program scanning Transferring data to controller-resident I/O Configuring the system for controller-resident I/O

Go to Page 5-1 5-2 5-3 5-4

This chapter explains how to configure the controller to communicate with resident I/O: 1. Set the I/O chassis switch for the addressing mode. 2. Set the rack address. The rack address defaults to 0. If you want to change the rack address to 1, set bit S:26/2.

Introduction to PLC-5 Controller Scanning a.

read the status of various input devices (such as pushbuttons and limit switches)

b.

1

The basic function of a programmable-controller system is to:

make decisions via a control program like ladder logic based on the status of those devices c.

set the status of output devices (such as lights, motors, and heating coils)

Publication 1785-UM012D-EN-P - July 2005

Page 70

Communicating with Controller-Resident I/O

The controller performs two primary operations: program scanning where - logic is executed - housekeeping is performed I/O scanning - where input data is read and output levels are set

Extendedlocal I/O

Data Exchange

Data Exchange I/O Image Table

Remote I/O Buffer

Update I/O image

Data Exchange

During logic scan, inputs are read from and outputs are written to the I/O image table.

a

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

b

ControllerResident Rack

Housekeeping

5-2

Logic Scan

I/O Scan a write outputs b read inputs

Program Scan

The program scan is the time it takes the controller to execute the logic program once, perform housekeeping tasks, and then start executing logic again.

Program Scanning

The controller continually performs a logic program scan and housekeeping. Housekeeping activities for PLC-5 controllers include: Logic Scan Housekeeping

Publication 1785-UM012D-EN-P - July 2005

• performing controller internal checks • updating the input image table with: – controller-resident input module data – remote input module data as contained in the remote I/O buffer – extended local I/O input module data • sending output image table data to: – controller-resident output modules – remote I/O buffer – extended local I/O output modules

Page 71

Communicating with Controller-Resident I/O

Transferring Data to Controller-Resident I/O

5-3

A PLC-5 controller transfers discrete and block-transfer data with controller-resident I/O.

Transferring Discrete Data to Controller-Resident I/O a b The controller scans controller-resident local I/O synchronously and sequentially to the program scan. I/O Image Table The controller-resident rack exchanges discrete I/O information with the I/O image table during housekeeping.

Update I/O image

Data Exchange x y

ControllerResident Rack

Housekeeping

Immediate I/O

IOT (x) IIN (y)

See explanation below.

Logic Scan a write outputs b read inputs

Program Scan

Transferring Immediate I/O Requests The controller responds to immediate input (IIN) and immediate output (IOT) requests during the logic scan. The logic scan is suspended at the request for immediate input/output data. The logic scan resumes after obtaining the data and fulfilling the request. IIN data transfers directly to and IOT data transfers directly from I/O modules in controller-resident I/O and extended-local I/O chassis. With remote I/O, only the remote I/O buffer is updated. For more information, see Appendix D. TIP

When you place I/O modules, do not place a block-transfer module next to or in the same module group as an input module that you plan to use for immediate I/O. Place the modules in non-adjacent slots. Placing input modules for immediate I/O next to block-transfer modules can result in a -5 Block-Transfer Read error.

Publication 1785-UM012D-EN-P - July 2005

Page 72

5-4

Communicating with Controller-Resident I/O

If your application cannot support this configuration, condition the immediate I/O instructions with the control bits of the adjacent block-transfer module. This technique helps make certain that an adjacent block-transfer module is not performing a block-transfer while an immediate I/O instruction is executing in its adjacent input module.

Transferring Block-Transfer Data to Controller-Resident I/O The controller performs block-transfers at the same time as it scans the program. Block-transfers to controller-resident local I/O follow these procedures: • Block-transfer requests are queued for the addressed controller-resident local I/O rack. • The active buffer continuously handles all block-transfer modules whose block-transfer instructions were enabled in the program scan via the queue scan in the order the requests were queued. • Block-transfers of I/O data can finish and the done bit can be set anytime during the program scan. The controller runs all enabled block-transfers of I/O data to controller-resident I/O continuously as each block-transfer request enters the active buffer. Housekeeping

Interrupt from STI or Fault Routine

ControllerResident Rack 0

Multiple Block Transfers

Q A

1

Program Scan

BTR or BTW Data 2

Q = queue A = active buffer (block-transfer data buffered here)

Configuring the System for Controller-Resident I/O

To configure the system for controller-resident local I/O, you need to set the I/O chassis switch to indicate the rack-addressing mode. The addressing mode determines the number of controller-resident rack numbers used based on the number of slots in the chassis. For more information on addressing modes, see chapter 4. To set the I/O chassis switch, see Appendix E. The controller-resident rack address defaults to rack 0. If needed, you can set it for rack 1 by setting user control bit 2 (S26:2) on the controller configuration screen in your programming software. If you select rack 1 as the controller-resident rack, rack 0 becomes unavailable for your system.

Publication 1785-UM012D-EN-P - July 2005