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

Page 95

Advertising
background image

Publication 1746-UM002B-EN-P - August 2004

Application Examples 6-3

Ladder File 9 - HSCE2 Initialization Routine

Programming ladder file 9 shows the direct addressing required to set
up the programming blocks in this example.

0000

EQU

Equal
Source A

N11:0

140<
Source B

0

0 <

EQU

O:1

15

I:1

15

COP

Copy File
Source

#N10:0

Dest

#O:1.0

Length

8

COP

L

O:1

15

0001

EQU

Equal
Source A

N11:0

140<
Source B

10

10 <

EQU

O:1

15

I:1

15

COP

Copy File
Source

#N10:10

Dest

#O:1.0

Length

8

COP

L

O:1

15

0002

EQU

Equal
Source A

N11:0

140<
Source B

20

20 <

EQU

O:1

15

I:1

15

COP

Copy File
Source

#N10:20

Dest

#O:1.0

Length

8

COP

L

O:1

15

0003

EQU

Equal
Source A

N11:0

140<
Source B

30

30 <

EQU

O:1

15

I:1

15

COP

Copy File
Source

#N10:30

Dest

#O:1.0

Length

8

COP

L

O:1

15

DATA_BLOCK_PTR

HSCE2_XMIT

1746-HSCE2

HSCE2_XMIT

1746-HSCE2

1746-HSCE2

HSCE2_ACK

DATA_BLOCK_PTR

HSCE2_XMIT

1746-HSCE2

HSCE2_XMIT

1746-HSCE2

1746-HSCE2

HSCE2_ACK

DATA_BLOCK_PTR

HSCE2_XMIT

1746-HSCE2

HSCE2_XMIT

1746-HSCE2

1746-HSCE2

HSCE2_ACK

DATA_BLOCK_PTR

HSCE2_XMIT

1746-HSCE2

HSCE2_XMIT

1746-HSCE2

1746-HSCE2

HSCE2_ACK

Copy Module Setup Block to the HSCE2 and set transmit bit.

When the previous block is completed (transmit and acknowledge bit are reset), copy Counter
Configuration Block to the HSCE2 and set transmit bit (O:e.0/15).

When the previous block is completed (transmit and acknowledge bit are reset), copy Min/Max Count
Value Block for counter 1 to the HSCE2 and set transmit bit (O:e.0/15).

When the previous block is completed (transmit and acknowledge bit are reset), copy Min/Max Count
Value Block for counter 2 to the HSCE2 and set transmit bit (O:e.0/15).

Advertising