Plc-5/250 family processor – Rockwell Automation 1794-IJ2XT FLEX I/O Frequency Input Modules User Manual User Manual

Page 78

Advertising
background image

Publication 1794-6.5.11 - September 2011

68 Program Your Module with PLC Processors

PLC-5/250 Family Processor

Block transfer instructions with the PLC-5/250 processor use a control file
and a data file. The block transfer control file contains the data table section
for module location, the address of the block transfer data file and other
related data. The block transfer data file stores data that you want transferred
to the module (when programming a BTW) or from the module (when
programming a BTR).

The programming terminal automatically selects the control file based on rack,
group and module, and whether it is a read or write. A different block transfer
control file is used for the read and write instructions for your module. A
different block transfer control file is required for every module.

EN

BTR
BLOCK TRANSFER READ
Rack
Group

Slot
Control

01

2

0

N22:200

DN

Data File
Length

Continuous

N22:101

0

N

ER

EN

BLOCK TRANSFER WRITE
Rack
Group
Slot
Control

01

2
0

N22:205

DN

Data File
Length
Continuous

N22:1

0
N

ER

N22:200

15

N22:200

15

N22:205

15

Rung 2:0

The IJ2 module is located in rack 1, I/O group 2, slot 0. The integer control file

starts at N22:200, is 5 words long and is compatible with all PLC-5 family members.

The data obtained by the PLC-5 processor from the IJ2 module is placed in memory

starting at N22:101, and with the default length of 0, is 7 words long. The length

can be any number between 0 and 7. In enhanced PLC-5 processors, the block transfer

data type may be used as a control file.

N22:205

15

Rung 2:1
The IJ2 module is located in rack 1, group 2, slot 0. The integer control file

starts at N22:205, is a 5 words long and is compatible will all PLC-5 family

members. The data sent by the PLC-5 processor to the IJ2 module starts at N22:1,

and with the default length of 0, is 8 words long. Valid BTW lengths can be any

number from 0 to 8. In enhanced PLC-5 processors, the block transfer data type

may be used as a control file.

IJ2 BTR

Enable Bit

IJ2 BTW

Enable Bit

IJ2 BTR

Control File

IJ2 BTR

Enable Bit

IJ2 BTW

Enable Bit

IJ2 BTW

Control File

PLC-5 Processor
Program Example

BTW

Enhanced PLC-5 processors include: PLC-5/11, -5/20, -5/3x, -5/4x, and -5/6x.

1

1

1

45564

Advertising