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

Page 24

Advertising
background image

3–2

Module Programming

Publication 1771Ć6.5.129 - March 2000

Note that PLC–2 processors that do not have the block transfer
instruction must use the GET–GET block transfer format which is
outlined in Appendix D.

Figure 3.1

PLC-2 Family Sample Program Structure

EN

BLOCK XFER READ

DATA ADDR:

MODULE ADDR:

BLOCK LENGTH:

FILE:

XXX

RGS

XX

XXXX:XXXX

DN

EN

FILE TO FILE MOVE

COUNTER ADDR:

POSITION:

FILE LENGTH:

FILE A:

XXX

XXX

XXX

YYYY-XXXX

DN

FILE R:

RATE PER SCAN:

XXX-XXX

XXX

Block Transfer

BTR Done Bit

Power-up

Read Done Bit

Enable

Done

EN

BLOCK XFER WRITE

DATA ADDR:

MODULE ADDR:

BLOCK LENGTH:

FILE:

XXX

RGS

XX

XXXX:XXXX

DN

Enable

Done

X7

X7

X6

X6

Bit

Enable

Done

17

15

You can replace the pushbutton with a timer "done" bit to initiate the block transfer

write on a timed basis. You can also use any storage bit in memory.

1

2

3

L

Pushbutton

U

Block Transfer Write

L

Block Transfer Write

Pushbutton

U

Block Transfer Read

Power-up Bit

Done Bit

Done Bit

Done Bit

Power-up Bit

Storage

Bit A

Storage

Bit B

Storage

Bit B

Storage

Bit A

Storage

Bit A

Storage

Bit A

Storage

Bit B

Storage

Bit B

1

1

4

5

6

7

PLC-2 Program Example

Advertising