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

The text of a manual · part 7 of 45

Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Chapter 4 - Addressing I/O and Controller Memory, pages 45 to 52

Pages 45 to 52 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 45

Chapter

4

Addressing I/O and Controller Memory

Using This Chapter For Information About I/O addressing concept Choosing an addressing mode Addressing block-transfer modules Addressing summary Assigning racks Understanding PLC-5 controller memory Addressing Effectively Using I/O Memory

I/O Addressing Concept

Go to Page 4-1 4-3 4-7 4-7 4-8 4-10 4-16 4-24

Since the main purpose of a programmable controller is to control inputs and outputs of field devices like switches, valves, and thermocouples, these inputs and outputs must occupy a location in the controller memory so that they can be addressed in your control program. Each terminal on an input or output module that can be wired to a field device occupies a bit within controller memory. The part of controller memory that houses I/O addresses is the input image table and the output image table. I/O addressing helps connect the physical location of an I/O module terminal to a bit location in the controller memory. I/O addressing is just a way to segment controller memory. The segmentation is as follows:

Classification

Term

Relation to Controller Memory

A specific terminal on an I/O module that occupies a space in controller memory terminal or point

The density of an I/O module, i.e., 8-point, 16-point, 32-point, directly relates to the amount of memory (bits) the module occupies in controller memory. For example, a 16-point input module occupies 16 bits in the controller’s input image table.

I/O terminals that when combined occupy 1 word in controller’s input image table and 1 word in the controller’s output image table.

I/O group

16 input bits = 1 word in controller’s input image table 16 output bits = 1 word in the controller’s output image table

Controller memory needs to be grouped so that I/O rack related I/O groups can be considered a unit.

128 input bits and 128 output bits, or8 input words and 8 output words, or 8 I/O groups Each PLC-5 controller has a finite amount of racks it can support. For example, a PLC-5/30 can support 8 I/O racks. The controller always occupies at least one I/O rack for itself, rack 0 by default.

1

Publication 1785-UM012D-EN-P - July 2005

Page 46

4-2

Addressing I/O and Controller Memory

The figure below shows the relationship between an I/O terminal and its location in controller memory. I/O Addressing as It Relates to an I/O Terminal rack number 01 I/O group number 4 rack number 01 I/O group number 5 word address 17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00

00

Output Image Table

A B C D 00 01 02 03 04 05 06 07 10 11 12 13 14 15 16 17 E

17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00

A B C D 00 01 02 03 04 05 06 07 10 11 12 13 14 15 16 17 E

05

07

04

Input Image Table

00

17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00

04

Input Module (1771-IAD)

Output Module (1771-OAD)

07

I:014

O:015

| |

( ) 07

12

I:014/12 I for input or O for output Notice how input and output image file addresses correspond to hardware.

2-digit I/O rack number I/O group number (0-7) input or output number (0-7,10-17) (bit)

I/O image table is addressed octally.

Now that you are familiar with how controller memory is segmented to address a specific I/O terminal, the next section explains available addressing modes. These modes let you define the relationship between an I/O chassis slot and an I/O group (16 input bits and 16 output bits).

Publication 1785-UM012D-EN-P - July 2005

Page 47

Addressing I/O and Controller Memory

Choosing an Addressing Mode

4-3

For each I/O chassis in your system, you must define how many I/O chassis slots make up an I/O group (1 word each in the input image table and output image table); this choice is the chassis’ addressing mode. Choose from among these available modes:

2-slot addressing 2 I/O chassis slots = 1 I/O group = 1 input image word and 1 output image word = 16 input bits and 16 output bits.

Controller memory Rack x

Output Image Table 16 bits input

Word #

16 bits output x

1-slot addressing 1 I/O chassis slot = 1 I/O group = 1 input image word and 1 output image word = 16 input bits and 16 output bits.

x x x x x x x

Input Image Table Word # x x

16 bits input and 16 bits output x x

1/2-slot addressing 1/2 of an I/O chassis slot = 1 I/O group = 1 input image word and 1 output image word = 16 input bits and 16 output bits.

x x x x

16 bits input and 16 bits output

When you place your I/O modules in the I/O chassis slots, the module’s density determines how quickly I/O groups form. For example, let’s choose 1-slot addressing and see how 8-, 16-, and 32-point I/O modules fill controller memory.

Publication 1785-UM012D-EN-P - July 2005

Page 48

4-4

Addressing I/O and Controller Memory

18-and 16-point Example 1-slot addressing (1 I/O chassis slot = 1 I/O group = 1 input image word and 1 output image word = 16 input bits and 16 output bits.)

23

01

Controller memory Rack x Output Image Table

Word # 0 1 2

Input Terminals 00 01 02 03 04 05 06 07

Input Termi nals 10 11 12 13 14 15 16 17

Input Terminals 00 01 02 03 04 05 06 07

Input Terminals

3 4

00 01 02 03 04 05 06 07

3

5 6

4

7 17

00 bits

00 bits

Input Image Table Word # 1

Group 2

Group 0

0 1

Group 3

2

An 8-point I/O module occupies 8 bits in a word. See 1

Two 8-point input modules occupy 8 bits of each group. See 2

2

3

3

4 5

4

45

6 7

67 17

Input Terminals Input Terminals 00 01 02 03 04 05 06 07

Group 4

Output Terminals 00 01 02 03 04 05 06 07

Group 5

An 8-point input module in group 4 occupies the first eight bits of input word 4. The 8 point output module occupies the first 8-output bits in output word 5. See 3

Publication 1785-UM012D-EN-P - July 2005

Output Terminals

00 01 02 03 04 05 06 07 10 11 12 13 14 15 16 17

00 01 02 03 04 05 06 07 10 11 12 13 14 15 16 17

Group 6

Group 7

16-point I/O modules occupy 16 bits, an entire word, in the image table. See 4

If you were to address the device attached to this output circuit in your control program, the address would be O:xx7/17.

Page 49

Addressing I/O and Controller Memory

4-5

32-point Example

1-slot addressing (1 I/O chassis slot = 1 I/O group = 1 input image word and 1 output image word = 16 input bits and 16 output bits.)

01

32-point input module

Controller memory Rack x Output Image Table

Word # 0

32-point I/O modules use the entire word of their group and borrow the entire word of the next group. See 1 . Since the module is in group 0 and the inputs for group 0 and group 1 are used, you must: install an output module in group 1 or leave the slot empty

1

1 2 3 4 5 6 7 17

00 bits

00 bits

Input Image Table Word #

Group 0

0 2

1 2

01 32-point input module

3

32-point output module

4 5 6 7 17

Since the input image table for group 1 is unavailable because it is being used by the input module of group 0, installing a 32-point output module makes use of output image table of group 0 and 1. See 2 . You can also install 8- or 16-point output modules. But you cannot install another input module since all the input image space for groups 0 and 1 are used by the input module of group 0.

Group 0

Group 1

Publication 1785-UM012D-EN-P - July 2005

Page 50

4-6

Addressing I/O and Controller Memory

When planning your system design, consider the densities of the I/O modules you are using and choose an addressing mode that most efficiently uses controller memory.

Example of Efficient I/O Image Table Use. 2-slot addressing (2 I/O chassis slot = 1 I/O group = 1 input image word and 1 output image word = 16 input bits and 16 output bits.) Controller memory Rack x Output Image Table

Word # Input Terminals 00 01 02 03 04 05 06 07 10 11 12 13 14 15 16 17

Output Terminals

0

00 01 02 03 04 05 06 07 10 11 12 13 14 15 16 17

2

1 3 4 5 6 7 17

00 bits

00 bits

Input Image Table Word # 0 1

Group 0

2

16-point I/O modules occupy 16 bits, an entire word, in the image table. Installing as a pair a 16-point input module and a 16-point output module efficiently uses the image table.

3 4 5 6 7 17

Define the addressing mode for each I/O chassis by setting the chassis backplane switch assembly. For more information, see Appendix E.

Publication 1785-UM012D-EN-P - July 2005

Page 51

Addressing I/O and Controller Memory

Addressing Block-Transfer Modules

4-7

Block-transfer modules occupy 8 bits in the controller’s I/O image table. Since all block-transfer modules are bidirectional, they cannot be used to complement either input or output modules. To Address Use single slot modules assigned I/O rack and group number of the slot in which the module resides and 0 for the module number When using 1/2-slot addressing, use the assigned rack number and the lowest group number and 0 for the module number. double-slot modules assigned rack number and the lowest group number and 0 for the module number

Addressing Summary Addressing Mode 2-slot

1-slot

1/2-slot

Use this table as a quick reference for addressing.

Guidelines • Two I/O module slots = 1 group • Each physical 2-slot I/O group corresponds to one word (16 bits) in the input image table and one word (16 bits) in the output image table • When you use 16-point I/O modules, you must install as a pair an input module and an output module in an I/O group; if you use an input module in slot 0, you must use an output module in slot 1 (or it must be empty). This configuration gives you the maximum use of I/O. • You cannot use a block-transfer module and a 16-point module in the same I/O group because block-transfer modules use 8 bits in both the input and output table. Therefore, 8 bits of the 16-point module would conflict with the block-transfer module. • You cannot use 32-point I/O modules. • Assign one I/O rack number to eight I/O groups. • One I/O module slot = 1 group • Each physical slot in the chassis corresponds to one word (16 bits) in the input image table and one word (16 bits) in the output image table • When you use 32-point I/O modules, you must install as a pair an input module and an output module in an even/odd pair of adjacent I/O group; if you use an input module in slot 0, you must use an output module in slot 1 (or it must be empty). This configuration gives you the maximum use of I/O. • Use any mix of 8- and 16-point I/O modules, block-transfer or intelligent modules in a single I/O chassis. Using 8-point modules results in fewer total I/O. • Assign one I/O rack number to eight I/O groups. • One half of an I/O module slot = 1 group • Each physical slot in the chassis corresponds to two words (32 bits) in the input image table and two words (32 bits) in the output image table • Use any mix of 8-, 16-, and 32-point I/O or block-transfer and intelligent modules. Using 8-point and 16-point I/O modules results in fewer total I/O. • With the controller-resident local rack set for 1/2-slot addressing, you cannot force the input bits for the upper word of any slot that is empty or that has an 8-point or 16-point I/O module. For example, if you have an 8-point or a 16-point I/O module in the first slot of your local rack (words 0 and 1 of the I/O image table, 1/2-slot addressing), you cannot force the input bits for word 1 (I:001) on or off. • Assign one I/O rack number to eight I/O groups.

Publication 1785-UM012D-EN-P - July 2005

Page 52

4-8

Addressing I/O and Controller Memory

Assigning Racks

The number of racks in a chassis depends on the chassis size and the addressing mode: If Using this Chassis Size 4-slot 8-slot 12-slot 16-slot

2-slot Addressing, Results In 1/4 rack 1/2 rack 3/4 rack 1 rack

Publication 1785-UM012D-EN-P - July 2005

1/2-slot Addressing, Results In 1 rack 2 racks 3 racks 4 racks

When assigning rack numbers, use the following guidelines:

TIP

Group together 1/4 racks and 1/2 racks

1-slot Addressing, Results In 1/2 rack 1 rack 1-1/2 racks 2 racks

• One I/O rack number is eight I/O groups, regardless of the addressing mode that you select. • You can assign from one to four racks in your controller-resident local chassis (128 inputs and 128 outputs) depending on the chassis size and addressing mode. You cannot split a controller-resident local I/O rack over two or more chassis or assign unused controller-resident local I/O groups to remote I/O racks. • The default address of the controller-resident local rack is 0. • You cannot split racks across remote I/O and extended-local I/O links. For example, if an 8-slot extended-local I/O chassis is configured as I/O groups 0-3 of I/O rack 2, an 8-slot remote I/O chassis cannot be configured as I/O groups 4-7 of I/O rack 2. For more information about addressing extended-local I/O, see chapter 8. • When using complementary I/O addressing, treat complementary rack addresses individually when grouping racks; primary rack numbers are separate from complement rack numbers. • If you are not using the autoconfiguration function, group together 1/4-racks and 1/2-racks of each logical rack on the configuration screen of your programming software. Do not intersperse these with other rack numbers. For example, your programming software has a screen with the following information for defining racks:

Rack Address

Starting Group

Rack Size

Range

1 1 1 2 2 2 3 17

0 2 4 0 2 4 0 0

1/4 1/4 1/4 1/4 1/4 1/2 1/4 FULL

010-011 012-013 014-015 020-021 022-023 024-027 030-031 170-177

Fault

Inhibit

Reset

I 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0

Retry 0 0 0 0 0 0 0 0