Plc-5 program example – Rockwell Automation 1771-IR Series D RTD Input Module User Manual User Manual

Page 27

Advertising
background image

3–5

Module Programming

Publication 1771Ć6.5.129 - March 2000

Rungs 1 and 2 – Rungs 1 and 2 are the block transfer read and write
instructions. The BTR enable bit in rung 1, being false, initiates the
first read block transfer. After the first read block transfer, the
module performs a block transfer write and then does continuous
block transfer reads until the pushbutton is used to request another
block transfer write. After this single block transfer write is
performed, the module returns to continuous block transfer reads
automatically.

The PLC–5 program is very similar to the PLC–3 program with the
following exceptions:

You must use enable bits instead of done bits as the conditions on
each rung.

A separate control file must be selected for each of the BT
instructions. Refer to Appendix B.

Figure 3.3

PLC-5 Family Sample Program Structure

EN

BTR

BLOCK XFER READ

RACK:

GROUP:

MODULE:

CONTROL:

X

X

X

XXX:XX

DN

DATA FILE:

LENGTH:

CONTINUOUS:

XXX:XX

XX

N

ER

EN

BTW

BLOCK XFER WRITE

RACK:

GROUP:

MODULE:

CONTROL:

X

X

X

XXX:XX

DN

DATA FILE:

LENGTH:

CONTINUOUS:

XXX:XX

XX

N

ER

BTR Enable

Power-up Bit

Pushbutton

BTW Enable

1

2

Program Action

Rungs 1 and 2 – At power–up, the program enables a block transfer
read and examines the power–up bit in the BTR file (rung 1). Then,
it initiates one block transfer write to configure the module (rung 2).
Thereafter, the program continuously reads data from the module
(rung 1).

PLC-5 Program Example

Advertising