Rockwell Automation 1794-ID2 U.MNL INCREMENTAL ENCODER User Manual

Page 42

Advertising
background image

3–6

Programming Your Incremental Encoder Module

Publication 1794ĆUM015B-EN-P - May 2001

Program Action

0009

BTW ERROR BIT

B3:10

12

MOV

MOVE
SOURCE

DEST

#M1:1.203

#N7:17

6

BTW PENDING

B3:15

0

CHECK BTW STATUS

B3:15

1

BTW ENABLE BIT

B3:110

15

L

U

U

0008

This rung executes BTRs continuously, as fast

as possible.

When a BTW occurs, the error code is moved

to N7:17.

To next page.

0<

BTRENABLE BIT

BTRDONE BIT

BTRERRORBIT

BTRPENDING

BTRENABLE BIT

B3:100

15

B3:0

13

B3:0

12

B3:5

0

B3:100

15

0010

B3:10

13

One BTW is triggered at power up. Four words of

data starting at N7:10 is sent to the 1794ĆID2

module.

B7:20

0

B3:10

12

COP

COPY FILE
SOURCE
DEST

#M1:1.210

#N7:10

LENGTH

7

BTW PENDING

B3:15

0

BTW ENABLE BIT

B3:110

15

L

L

L

L

BTW

ENABLE

BIT

BTW

DONE

BIT

BTW

ERROR

BIT

B3:110

15

TRIGGER

FOR

BTW

Advertising