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

Page 41

Advertising
background image

3–5

Programming Your Incremental Encoder Module

Publication 1794ĆUM015B-EN-P - May 2001

BTR DONE BIT

Program Action

B3:0

13

COP

COPY FILE
SOURCE
DEST

#M1:1.110

#N7:0

LENGTH

8

0006

BTR PENDING

B3:5

0

CHECK BTR STATUS

B3:5

1

BTR ENABLE BIT

B3:100

15

L

U

U

BTR ERROR BIT

B3:0

12

MOV

MOVE
SOURCE

DEST

#M1:1.103

#N7:6

6

BTR PENDING

B3:5

0

B3:5

1

BTR ENABLE BIT

B3:100

15

L

U

U

0005

When a BTR successfully completes and the

done bit is detected, the BTR data is copied

into the N7:0 to N7:7 area.

Whe a BTR error occurs, the error code is

moved to N7:9.

To next page.

0<

0007

U

BTW DONE BIT

B3:10

13

B3:15

0

BTW PENDING

BTW ENABLE BIT

B3:110

15

CHECK BTW STATUS

B3:15

1

L

U

CHECK BTR STATUS

When a BTW successfully completes and the

done bit is detected, the BTR data is copied

into the N7:0 to N7:7 area.

Advertising