Function 19: counting and, Providing external encoder pulses, 12 function library – Lenze 8400 motec User Manual

Page 480

Advertising
background image

12

Function library

12.13

LS_Convert_1

480

Lenze · 8400 motec · Reference manual · DMS 4.1 EN · 08/2013 · TD05

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

12.13.2

Function 19: Counting and providing external encoder pulses

The function "19: Act position 32bit ==> 16Bit" selectable in

C01354/1

serves to count the pulses of

an external two-track HTL encoder and process them within the application.

Preconditions

• The encoder is connected to the digital input terminals DI1 and DI2.
• The digital input terminals DI1 and DI2 are reconfigured as two-track frequency inputs in

C00115/1

(selection "2: DI1&DI2=FreqIn (2-track").

Configuring DI1 and DI2 as frequency

inputs

( 185)

Signal flow/functional description

[12-16] Basic signal flow

The two signals DI1 and DI2 are transmitted to a counter. The counter can be reset to "0" via a digital

signal that can be configured in

C00701/27

.

A parameterisable multiplier/divisor is downstream to the counter. The reason for this is that the

counter internally works with 32 bits, but the Out1output signal is a 16-bit signal.

• In case of an encoder with "250" increments, the limit (±32768) would be reached after approx.

128 revolutions. If this limit is sufficient for the application, the default setting "0" in

C01353/1

can be kept

• If the value "1" is set in

C01353/1

, the counter values are moved one position to the left which

corresponds a division by 2. In case of the value "2" corresponds to a division by 4, etc.

• If the counter reaches the maximum value 32768, it stops at this maximum value. If the

direction of rotation changes, it is counted down again from the maximum value.

The scaled count value is provided at the Out1 output and can be assigned via configuration

parameters of other inputs to these inputs.

/6B'LJLWDO,QSXW

/6B&RQYHUWB

2XW

&

$&'ULYH6SHHGVFDOLQJ



/6B&RQYHUWB2XW

(QWU\LQVHOHFWOLVW








5HVHW

&

',

',

N+]

N+]

& 

& 

&RQILJXUDWLRQSDUDPHWHU

Q(QF&RXQWBS

Advertising