Bradley Smoker PLC-5 user manual Examples of Block-Transfer Ladder Logic

Models: PLC-5

1 388
Download 388 pages 13.97 Kb
Page 112
Image 112

7-14Communicating 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

 

 

 

Read data from adapter-mode processor

 

 

 

 

 

 

 

BTR and BTW enable bits

 

 

 

 

 

 

 

BT17:15

BT17:10

 

 

 

 

 

 

 

BTR

 

 

 

 

 

 

 

 

 

Enter the following parameters in the

 

 

 

 

 

 

 

 

 

 

 

 

 

BLOCK TRANSFER READ

EN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

block-transfer instructions in the

 

EN

 

EN

RACK

2

 

 

supervisory processor.

 

 

 

 

 

 

 

 

 

GROUP

0

DN

 

Set the length to 0.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MODULE

0

 

 

Use the remote I/O rack number for

 

 

 

 

 

 

 

 

 

CONTROL BLOCK

BT17:10

ER

 

which you configure the

 

 

 

 

 

 

 

 

 

DATA FILE

N7:100

 

 

adapter-mode processor.

 

 

 

 

 

 

 

 

 

LENGTH

0

 

 

Use the group and module numbers for

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CONTINUOUS

N

 

 

which the adapter-mode processor is

Send data to adapter-mode processor

 

 

 

 

 

 

 

configured.

BTR and BTW enable bits

 

 

 

 

 

 

 

 

 

 

 

 

Condition the use of BTR data with a

BT17:15

BT17:10

BTW

 

 

 

 

"data valid" bit.

 

 

 

 

 

 

 

 

 

BLOCK TRANSFER WRITE

EN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

All address comments for contacts shown in

EN

EN

RACK

2

 

 

the following examples represent the set (1)

 

 

 

 

 

 

 

 

 

GROUP

0

DN

 

state of the bit in the PLC-5 processor.

 

 

 

 

 

 

 

 

 

MODULE

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CONTROL BLOCK

BT17:15

ER

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DATA FILE

N7:200

 

 

 

 

 

 

 

 

 

 

 

 

 

LENGTH

0

 

 

 

 

 

 

 

 

 

 

 

 

 

CONTINUOUS

N

 

 

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

Buffer read data from adapter-mode processor to work area

 

 

 

BTR will read old data from the

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

adapter processor.

BTR Done Bit

 

Data Not Valid Bit

 

 

 

 

 

 

 

 

 

 

I:020

 

 

 

 

 

 

 

 

BT17:10

 

 

COP

 

 

 

 

 

 

 

DN

 

 

10

 

 

 

COPY FILE

#N7:100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SOURCE

 

 

 

 

 

 

 

 

 

 

 

 

 

DEST

#N7:300

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

 

LENGTH

64

 

 

 

 

 

 

 

Publication 1785-UM012D-EN-P - July 2005

Page 112
Image 112
Bradley Smoker user manual Examples of Block-Transfer Ladder Logic, 14Communicating with a PLC-5 Adapter Channel