Communicating with a PLC-5 Adapter Channel

7-13

 

 

Program multiple block-transfers to an adapter-mode controller channel by matching block-transfer instructions in the supervisory controller to control files in the adapter.

In this example, the first block transfer in the supervisor uses the BTR control word listed in group 0 module 0, which is BT010:000.

Supervisor Program

 

BTW

 

 

 

RACK

4*

 

 

GROUP

 

 

0

 

 

MODULE

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

BTW

 

 

 

RACK

4*

 

 

GROUP

 

 

1

 

 

MODULE

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

BTW

 

 

 

RACK

4*

 

 

GROUP

1

 

 

MODULE

1

 

 

 

 

 

 

 

 

 

 

BTR

 

 

 

RACK

4*

 

 

GROUP

1

 

 

MODULE

1

 

 

 

 

 

Adapter Configuration

 

 

 

RACK

 

4*

* Must Match

STARTING GROUP

0

 

 

SIZE

 

FULL

 

 

Group

Module

BTW Control

BTR Control

0

0

BT000:000

BT010:000

0

1

BT000:000

BT000:000

1

0

BT000:000

BT011:000

1

1

BT011:001

BT011:040

 

 

 

 

 

Block transfer further defined in the adapter-mode processor channel via Data Monitor

 

 

Address

EN

ST

DN

ER

CO

EW

NR

TO

RW

RLEN

DLEN

FILE

ELEM

R

G

M

 

 

BT10:0 points to file 24 and element 10 and

BT10:0

0

0

0

0

0

0

0

0

0

64

0

24

10

0

0

0

has a length of 64 words.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Assuming that file 24 has been created as an integer file, the data written down from the first block-transfer will be found in N24:10 to N24:73. The second block-transfer in the supervisor writes its data to the file to which BT11:0 points, and the third block-transfer writes its data to the file to which BT11:40 points.

You can have up to 15 writes and 15 reads. Each block transfer to a particular group/module location uses the I/O addresses for that rack/group for status bits. These locations are lost to discrete transfer. Therefore, if you configure all available 15 block-transfer read/write pairs, no bits will be available for discrete transfer. See page 7-15for more information.

IMPORTANT

Adapter-mode block-transfer reads and block-transfer writes in the same group/module location must have the same length.

Publication 1785-UM012D-EN-P - July 2005

Page 111
Image 111
Bradley Smoker PLC-5 user manual Must Match, BT000000 BT010000 BT011000 BT011001 BT011040, BT100 Has a length of 64 words