beautypg.com

Module setup block, Module setup block -6, S 4-6 – Rockwell Automation 1746-HSCE2 Multi-Channel High Speed Counter Module User Manual

Page 56: Programming block identification bit, Trmt: transmit bit, Debug: debug mode selection bit

background image

Publication 1746-UM002B-EN-P - August 2004

4-6 Configuration and Programming

Module Setup Block

Figure 4.1 shows the format of the Module Setup block. This block
sets the module’s basic configuration and range allocation to the
counters. Counters cannot be running when this block is sent to the
module or a programming error results. Sending this block to the
module sets all other module parameters to their default values. See
Programming Block Default Values on page 4-28.

Figure 4.1 Module Setup Block Format

Programming Block Identification Bit

(Word 0, Bit 0)

This bit identifies the type of block.

TRMT: Transmit Bit

(Word 0, Bit 15)

A 0 to 1 transition starts a programming cycle. This bit is not set until
all words are in the output table.

DEBUG: Debug Mode Selection Bit

(Word 0, Bit 12)

When this bit is set, the debug mode is activated. Debug mode returns
the input data file showing current settings in the module setup block.

Up to three sets of ranges can be allocated. The last set is always
allocated automatically. If three sets of ranges are allocated, the fourth
and last set is shown in word 5 in debug mode. For details, see Debug
Mode Operation on page 5-7.

15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00

Word 0

TRMT

0

0

DEBUG

0

0

0

0

0

0

0

0

0

0

0

1

Word 1

0

0

0

0

0

INT

RVF

PR

A

0

0

0

0

0

0

Op

Mode

Word 2

0

0

0

0

0

0

0

0

0

0

0

Counter 1

Range Allocation

Word 3

0

0

0

0

0

0

0

0

0

0

0

Counter 2

Range Allocation

Word 4

0

0

0

0

0

0

0

0

0

0

0

Counter 3

Range Allocation

Words 5-7

RESERVED: Must equal 0