Rockwell Automation 1746-HSCE2 Multi-Channel High Speed Counter Module User Manual

Page 103

Advertising
background image

Publication 1746-UM002B-EN-P - August 2004

Application Examples 6-11

addresses (e.g., I:1.0) have been replaced with block transfer data file
addresses (e.g., N12:0).

Ladder File 8 - HSCE2

TIP

The only changes necessary to permit a different
1746-HSCE2 configuration are to the data files N10
and N11.

0000

S:1

15

FIRST SCAN OF LADDER
OR SFC STEP

U

B3:0

0

HSCE2_INIT_DONE

U

B3:0

1

HSCE2_ERROR

U

B3:0

3

1ST_BTR_DONE

MOV

Move
Source

0

0<
Dest

N11:0

140<

DATA_BLOCK_POINTER

FLL

Fill File
Source

0

Dest

#N12:10

Length

8

#BTW_DATA

MUL

Multiply
Source A

10

10<
Source B

N11:2

14<
Dest

N11:1

140<

LAST_DATA_BLOCK

Prior to use, the programmer sets N11:2 to the total number of data blocks which will be entered into file N10 (not including the Counter
Control Block), adds one rung for each configuration block (including the Counter Control Block), and initializes the data blocks in file N10.
Ten integer data blocks are used (instead of eight) to simplify the display in data windows. The first pass of the program initializes the
following values:

The first pass of the program initializes the following values:

1. The HSCE2 initialization done bit (B3/0) is cleared.

2. The HSCE2 error bit (B3/1) is cleared.

Advertising