Plc–5 block transfer rung example – Rockwell Automation 1336T PLC Comm. Adapter, Series B, FRN 2.xx-3.xx User Manual

Page 59

Advertising
background image

3–15

Publication 1336 FORCE–5.13 –– September, 1998

The following programs are examples of block transfer programming
for the PLC Communications Adapter Board.

The BTW AVAIL,

BTR AVAIL, and BT ERROR bits from the module status word
(I:020 in these examples) are used in these examples. The examples
also show how you can use user logic to enable or disable the block
transfer operations.

Keep in mind that it is the header message for the BTW that defines
if data is to be written to or read from the drive. Refer to Chapter 7,
Block Transfer Services, for a complete listing of message structures.

The following program is for a PLC5/15 or 5/25.

14

12

(EN)

(DN)

(ER)

End of File

12

15

(EN)

(DN)

(ER)

Rung 2:1

Rung 2:3

00

(CU)

(DN)

Rung 2:2

User
Logic
I:000

BT
Read
Available
BTR AVAIL
I:020

BTW

BTR

CTU

BTU Error Counter

Group

Rack

Control Block
Data File
Length
Continuous

Module

BLOCK TRANSFER WRITE

02

0
0

N10:10

64

N

N10:0

BT
Error
I:020

BT
Read
Available
BTR AVAIL
I:020

BT
Write
Available
BTW AVAIL
I:020

14

BT
Error
BT ERROR
I:020

Group

Rack

Control Block
Data File
Length
Continuous

Module

BLOCK TRANSFER READ

02

0
0

N10:90

64

N

N10:80

Preset

Counter

Accum

Count Up

C11:0

32767

0

Rung 2:0

PLC–5 Block Transfer
Rung Example

Advertising