Rockwell Automation 1794-IP4 Series B FLEX I/O PULSE COUNTER User Manual User Manual

Page 36

Advertising
background image

3–5

Programming Your Pulse Counter Module

Publication 1794ĆUM016B-EN-P - August 2002

BTR DONE BIT

Program Action

B3:0

13

COP

COPY FILE
SOURCE
DEST

#M1:1.110

#N7:0

LENGTH

10

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:10

6

BTR PENDING

B3:5

0

B3:5

1

BTR ENABLE BIT

B3:100

15

L

U

U

0005

When a BTRsuccessfully completes and the

done bit is detected, the BTRdata is copied

into the N7:0 to N7:9 area.

Whe a BTRerror occurs, the error code is

moved to N7:10.

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, all BTW flags are reset.

Advertising