10 measuring the period (modes 17 and 19), Measuring the period (modes 17 and 19), 13 parameter setting via profibus−dp – Lenze EPM−T9XX Modular system User Manual

Page 459

Advertising
background image

Parameterising 2/4xcounter module

Measuring the period (modes 17 and 19)

13

Parameter setting via PROFIBUS−DP

13.2

13.2.10

L

13.2−25

EDSPM−TXXX−9.0−11/2009

13.2.10

Measuring the period (modes 17 and 19)

1

2

3

4

5

6

7

8

9

10

GND

+24 V DC

In1 (RES)

In2 (CLK)

In3 (START)

Out0

In4 (STOP)

n.c.

n.c.

Out1

epm−t087

Fig. 13.2−31

Terminal assignment of the 2/4xcounter in the modes 17 and 19

Modes 17 and 19 allow the determination of the average period of "n" measured
period of signal at input IN2 (CLK).

The modes differ in triggering the output Out0 / Out 1 differently.

)

Note!

For measuring the frequency of the period, the counters 0 and 1
are required. For this, both counters must be parameterised to
mode 17 or 19. Different modes cannot be set.

With the PDO byte 7 (Data In) a reference frequency (f

ref

) is transmitted to counter

1 (see figure "counter access"). The number "m" of the reference frequency pulses
determines the gate time (period of time the counter 1 is to be released). "m" can
be between 1 and 2

32

−1 and is loaded into the compare register.

A LOW−HIGH edge at input IN1 (RES) sets the counter to zero.

A LOW−HIGH edge at input IN3 (START) starts the measuring process.

During the measuring process the counter 1 counts with the first LOW−HIGH edge
at the input IN2 (CLK) the pulses "m" of the reference frequency. Simultaneously
the counter 0 counts every LOW−HIGH edge at the input IN2 (CLK).

Both counters are stopped when

l

the counter 0 reaches the Compare value, or

l

input IN4 (STOP) receives a HIGH signal.

Terminal assignment

RES signal

START signal

CLK signal

STOP signal

Advertising