Plc 3 family example – Rockwell Automation 1771-IE,D17716.5.7 ANAL.INPUT MOD. User Manual

Page 23

Advertising
background image

Programming the Analog Input Module

Chapter 4

4Ć4

This rung adds up to 0.13ms to the processor scan time so use it sparingly.
Locate it at the beginning of your ladder program. This logic is not
required for PLC-2 family remote systems or for any other processor
family.

This example is written for the following conditions (Figure 4.3).

The module resides in rack 1, module group 2, slot 0
8-word block transfer
BTR control address is

FB001:0000

BTR file address is

FB002:0001

MVF source file A is

FB002:0001

MVF destination file R is

FB003:001

MVF counter address is

C000l

MVF number of words moved is 8
MVF rate per scan is

all/scan

Figure 4.3

Example Program for PLCĆ3 Family Processors

LE

BTR
BLOCK TRANSFER READ
RACK :
GROUP :
MODULE :
DATA :

001

2

0=LOW

FB002:0001

DN

LENGTH =
CNTL :

8

FB001:0000

ER

EN

MVF
FILES FROM A TO R
A :
R :
COUNTER :
POS/LEN =

DN

12

C0001

15

WB001:0000

WB001:0000

15

CNTL

12

CNTL

15

CNTL

13

15

(DN)

C0001

ER

C0001

13

(DN)

FB002:0001
FB003:0001

C0001

8

MODE=

ALL/SCAN

PLCĆ3 Family Example

Advertising