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

Page 37

Advertising
background image

3–6

Programming Your Pulse Counter Module

Publication 1794ĆUM016B-EN-P - August 2002

Program Action

0009

BTW ERROR BIT

B3:10

12

MOV

MOVE
SOURCE

DEST

#M1:1.203

#N7:11

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:11.

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. Three words

of data starting at N7:12 is sent to the 1794ĆIP4

module.

B7:20

0

B3:10

12

COP

COPY FILE
SOURCE
DEST

#M1:1.210

#N7:12

LENGTH

3

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