
1–15Getting 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
le swi
#0
ini
ia
e
e Bl
k
ransfer Rea
/Wri
e pair
ile
57:0
n
ains
e
a
a
a
is
ransfere
e
rive
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
oggle 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
Kommentare zu diesen Handbüchern