Lenze EPM−T9XX Modular system User Manual

Page 393

Advertising
background image

Parameterising 1xcounter/16xdigital input module

Input data / output data

12

Parameter setting via system bus (CAN) / CANopen

12.6

12.6.2

L

12.6−3

EDSPM−TXXX−9.0−11/2009

The inputs E.0 and E.1 are used as counter inputs and digital inputs.

The counter starting value is located in the first Rx PDO in the bytes 0 to 3 (Data
In). If a starting value is loaded, the counter counts upwards or downwards,
starting with this value.

The counting range lies between 0 and +4.294.967.295. As soon as the upper limit
(when counting upwards) has been reached, the count value jumps to the lower
count limit. The moment the lower count limit (when counting downwards) has
been reached, the count value jumps to the upper count limit.

The counter is controlled via byte 4 (control). It is assigned as follows:

Byte

Assignment

4

Control byte

Bit 0

1 = Start counter (software gate is open)

1)

Bit 1

1 = Stop counter (software gate is closed)

1)

Bit 2

1 = Counter is loaded with starting value /
comparison value

Bit 3

1 = Count value is deleted

Bits 4 ... 7

reserved

1)

If start bit and stop bit = HIGH, "stop" is active. If both bits are LOW, the state of the bit that has been set last, is
active.

Via byte 5 the reference frequency for the modes 3 (frequency measurement) and
4 (period measurement) can be set. It is assigned as follows:

Byte

Assignment

5

Reference frequency

00

h

16 MHz

01

h

8 MHz

02

h

4 MHz

03

h

1 MHz

04

h

100 kHz

05

h

10 kHz

06

h

1 kHz

07

h

100 Hz

08

h...

FF

h

not permissible

The current count value is located in the first Tx PDO in the bytes 0 to 3 (Data Out)
and can be read out there. Bytes 4 and 5 contain the control signals (E.0 ... E.15).

Input data

Output data

Advertising