Examples of block-transfer ladder logic – Rockwell Automation 1785-Lxxx Enhanced and Ethernet PLC-5 Programmable Controllers User Manual

Page 112

Advertising
background image

Publication 1785-UM012D-EN-P - July 2005

7-14 Communicating with a PLC-5 Adapter Channel

If you want to transfer controller-resident local I/O data of the adapter mode
controller channel to a supervisory controller or if you want to transfer data
from the supervisory controller to controller-resident local I/O of the adapter
mode controller channel, you must use MOV or COP instructions within the
adapter-mode controller channel to move the data in or out of the data file
used in the adapter block-transfer control file.

Examples of Block-Transfer Ladder Logic

Example Bidirectional Repeating Block Transfer in

PLC-5 Supervisory Controller

EN

BTR

BLOCK TRANSFER READ

RACK

GROUP

MODULE

CONTROL BLOCK

DN

DATA FILE

LENGTH

ER

PLC-5 adapter-mode processor channel is configured as rack 2

CONTINUOUS

2

0

0

BT17:10

N7:100

0

N

EN

BTW

BLOCK TRANSFER WRITE

RACK

GROUP

MODULE

CONTROL BLOCK

DN

DATA FILE

LENGTH

ER

CONTINUOUS

2

0

0

BT17:15

N7:200

0

N

COP

COPY FILE

SOURCE

DEST

LENGTH

#N7:100

#N7:300

64

DN

BTR Done Bit

Data Not Valid Bit

BT17:10

I:020

10

BTR and BTW enable bits

BT17:10

EN

BT17:15

EN

BTR and BTW enable bits

BT17:10

BT17:15

Read data from adapter-mode processor

Send data to adapter-mode processor

Enter the following parameters in the
block-transfer instructions in the
supervisory processor.

EN

EN

Buffer read data from adapter-mode processor to work area

You may have to execute the BTR in the
PLC-5 scanner channel twice if the BTR’s
time delay is greater than 2-3 program
scans. If you do not run the BTR twice, the
BTR will read old data from the
adapter processor.

Set the length to 0.

adapter-mode processor.

Use the remote I/O rack number for
which you configure the

Use the group and module numbers for
which the adapter-mode processor is
configured.

All address comments for contacts shown in
the following examples represent the set (1)
state of the bit in the PLC-5 processor.

Condition the use of BTR data with a
"data valid" bit.

Advertising