beautypg.com

Rockwell Automation 2705 REDIPANEL KEYPAD MODULE USER MANUAL User Manual

Page 50

background image

Chapter 7
Programming

7–12

The ladder diagram in Figure 7.6 is a simple programming example showing
Bidirectional Block Transfers between a sub I/O scanner and PLC–5.

Read from Sub–Scanner
to the PLC–5.

Write to the Sub–Scanner
from the PLC–5

Figure 7.6
PLC–5 Block Transfer

BTR

Enable Bit

BTW

Enable Bit

BTR

Enable Bit

BTW

Enable Bit

BLOCK TRNSFR WRITE
RACK

0

GROUP

7

MODULE

1

CONTROL BLOCK N10:5
DATA FILE

N12:0

LENGTH

20

CONTINUOUS

N

( ER )

( DN )

( EN )

BTW

BLOCK TRNSFR READ
RACK

0

GROUP

7

MODULE

1

CONTROL BLOCK N10:0
DATA FILE

N11:0

LENGTH

20

CONTINUOUS

N

( EN )

( DN )

( ER )

BTR

] / [

N10:5

15

] / [

N10:0

15

] / [

N10:0

15

] / [

N10:5

15

The block transfer read and write instructions have certain parameters that
you must enter. The following is a description of these instruction
parameters to help you configure your block transfer instructions.

Instruction Parameters:

RACK refers to which I/O rack number that the sub I/O scanner is located
in. The number entered here will range from 0–3 if a PLC–5/15 is being
used or 0–7 if a PLC–5/25 is being used.

GROUP refers to which I/O group of the rack, that the sub I/O scanner is
located in. The number entered here will range from 0–7.

MODULE refers to which slot within the I/O group that the sub I/O
scanner is located. The number entered here will be 0 or 1.

CONTROL BLOCK is a 5–word integer file that controls the
instruction’s operation. Enter this integer file address without the #
symbol: for example, N7: (any integer file) not #N7:. This is not the file
type for control elements, R.

DATA FILE is the address of the block–transfer file that will be written
to, or read from, and it is from this file that the processor transfers data.
Enter this file address without the # symbol. The status of the inputs or
outputs of the remote I/O devices connected to the sub I/O scanner, will