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 14

Analog Input Module, Cat. No. 1771-IFE, User Manual: D - Block Transfer (Mini-PLC-2 and PLC-2/20 Processors)

Pages 55 to 57 of 63, from Analog Input Module, Cat. No. 1771-IFE, User Manual

The original document is the PDF (516 KB). 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 1771-IFE

Page 55

Appendix

D

Block Transfer (Mini-PLC-2 and PLC-2/20 Processors)

Multiple GET Instructions - Mini-PLC-2 and PLC-2/20 Processors

Programming multiple GET instructions is similar to block format instructions programmed for other PLC-2 family processors. The data table maps are identical, and the way information is addressed and stored in processor memory is the same. The only difference is in how you set up block transfer read instructions in your program. For multiple GET instructions, individual rungs of ladder logic are used instead of a single rung with a block transfer instruction. A sample rung using multiple GET instructions is shown in Figure D.1 and described in the following paragraphs. Rung 1: This rung is used to set four conditions. Examine On Instruction (113/02) - This is an optional instruction. When used, block transfers will only be initiated when a certain action takes place. If you do not use this instruction, block transfers will be initiated every I/O scan. First GET Instruction (030/120) - identifies the module’s physical address (120) by rack, group and slot; and where in the accumulated area of the data table this data is to be stored (030). Second GET Instruction (130/060) - indicates the address of the first word of the file (060) that designates where the data will be transferred. The file address is stored in word 130, 1008 above the data address. Output Energize Instruction (012/07) - enables the block transfer read operation. If all conditions of the rung are true, the block transfer read enable bit (07) is set in the output image data table control byte. The output image table control byte contains the read enable bit and the number of words to be transferred. The output energize instruction is defined as follows: “0” indicates that it is an output instruction “1” indicates the I/O rack address “2” indicates the module group location within the rack “07” indicates this is a block transfer read operation (if this were a block transfer write operation, “07” would be replaced by “06”.)

D-1

Page 56

Appendix D Block Transfer (Mini-PLC-2 and PLC-2/20 Processors)

Rungs 2 and 3: These output energize instructions (012/01 and 012/02) define the number of words to be transferred. This is accomplished by setting a binary bit pattern in the module’s output image table control byte. The binary bit pattern used (bits 01 and 02 energized) is equivalent to 6 words or channels, and is expressed as 110 in binary notation. Rung Summary: Once the block transfer read operation is complete, the processor automatically sets bit 07 in the input image table status byte and stores the block length of the data transferred. Figure D.1 Multiple GET Instructions (Mini-PLC-2 and PLC-2/20 Processors Only) 010

Data Table

07

Output Image Table

Control Byte

1 R

1

012 017

2

0

Timer/Counter Accumulated Values Area

027 030

060

Output Image Table Control Byte Contains Read Enable Bit and Block Length in Binary Code Data Address Contains Module Address in BCD First Address, Destination of Transferred Data

065 07

Input Image Table

Status Byte

1 R 0

110 112 117

6

0

Timer/Counter Preset Values Area

130

Input Image Table Status Byte Contains Done Bit Storage Location Contains File Address in BCD

R = Read 07 = Bit

Multiple GET Instructions 113 Rung 1 02 Rung 2 Rung 3

D-2

030 G

130 G

012

120

060

07 012 01 012 02

12172

Page 57

Appendix D Block Transfer (Mini-PLC-2 and PLC-2/20 Processors)

Setting the Block Length (Multiple GET Instructions only)

The input module transfers a specific number of words in one block length. The number of words transferred is determined by the block length entered in the output image table control byte corresponding to the module’s address. The bits in the output image table control byte (bits 00 - 05) must be programmed to specify a binary value equal to the number of words to be transferred. For example, Figure D.2 shows if your input module is set up to transfer 6 words, you would set bits 01 and 02 of the lower image table control byte. The binary equivalent of 6 words is 000110. You would also set bit 07 when programming the module for block transfer read operations. Bit 06 is used when block transfer write operations are required. Figure D.2 Setting Block Length (Multiple GET Instructions only) Block Transfer Read Enable Bit

1

For Block Transfer Active Operations Only

Read 6 Words from Module

0 0

0 0 1

1

010

Data Table Output Image Table

0

Control Byte

1 R

1

Output Image Table Control Byte Contains Read Enable Bit and Block Length in Binary Code

012 017

2

027 030

0

Data Address Contains Module Address in BCD 12172

Binary Bit Pattern Lower Output Image Table Byte

Number of Words to Transfer

05

04

03

02

01

00

Default

0

0

0

0

0

0

1

0

0

0

0

0

1

2

0

0

0

0

1

0

3

0

0

0

0

1

1

4

0

0

0

1

0

0

5

0

0

0

1

0

1

6

0

0

0

1

1

0

18

0

1

0

0

1

0

19

0

1

0

0

1

1

:

:

D-3