Getting started using a plc – Rockwell Automation 1336T Function Block Prog. Manual, Series A/B User Manual

Page 27

Advertising
background image

1–15

Getting Started

1336 FORCE — 5.9 August 1995

Shown below is a sample program that will transfer data to a drive
that is set up as Rack 1. The block transfers are executed by toggling
input I:00/00. The Block Transfer Write sends the information in
data file N57:0 to the drive. The data in these addresses determines
what type of operation is performed. The Block Transfer Read
instruction receives information from the drive and places it in data
file N57:100. This data contains the status of the operation being
performed and any data (if applicable) that is returned from the
drive.

End of File

(EN)

(DN)

(ER)

BTW

Group

Rack

Control Block
Data File
Length
Continuous

Module

BLOCK TRANSFER WRITE

1
0
0

N57:0

64

N

BT50:0

Toggle switch #0 to initiate the Block Transfer Read/Write pair. File N57:0 contains the data that is transfered to the drive.

Block Transfer to Drive Rack 1

(EN)

(DN)

(ER)

BTR

Group

Rack

Control Block
Data File
Length
Continuous

Module

BLOCK TRANSFER READ

1
0
0

N57:100

64

N

BT50:1

Block Transfer to Drive Specified as Rack 1

ung 5:1

15

ung 5:2

ung 5:3

00

Toggle
Switch
I:000

Available
I:010

Toggle Switch

00

BT Read
Data Available
I:000

BT Write

Important:

If a PLC 5/15 or 5/25 is used, the control block must use an
integer data type, not the Block Transfer (BT) data type.

Getting Started Using a PLC

Advertising