Function library lenzedrive.lib, Processing of phase−angle signals, 1 constant input value – Lenze DDS Function library Drive User Manual

Page 56

Advertising
background image

2.4.7

Integration (L_PHINTK)

Function library LenzeDrive.lib

Processing of phase−angle signals

2−46

L

LenzeDrive.lib EN 1.7

2.4.7.1

Constant input value

3 functions are available, that you can select with byMode.

byMode = 0

The input bLoad_b is level−triggered (TRUE−level).

·

bLoad_b = TRUE
– The integrator is loaded with the value at dnSet_p.
– The FB switches bStatus_b = FALSE.

byMode = 1

The input bLoad_b is edge−triggered (FALSE−TRUE transition).

·

bLoad_b = FALSE−TRUE edge/transition
– The integrator is loaded with the value at dnSet_p and immediately integrated from then on.
– The FB switches bStatus_b= FALSE.

dnOut_p

t

-32767 revolutions

(-) dnCmp

(+) dnCmp

+32767 revolutions

bStatus_b

t

Fig. 2−57

Function of L_PHINTK with constant input value

(+) Variable with positive value

(−) Variable with negative value

·

A positive value at nIn_v is incremented
(the counter value is increased at every call of the function).

·

A negative value at nIn_v is decremented
(the counter value is decreased at every call of the function).

·

dnOut_p produces the count value of the bipolar integrator.

·

If the count exceeds the value of +32767 encoder revolutions (corresponds to
+2147483647 inc):
– There is an overflow, and counting continues at the value −32768 encoder turns.
– Switches bStatus_b = TRUE, when a positive preset value is reached at dnCmp.

·

If the count falls below the value of −32768 encoder revolutions (corresponds to
−2147483648 inc):
– There is an overflow, and counting continues at the value +32767 encoder turns.
– Switches bStatus_b = TRUE, when a negative preset value is reached at dnCmp.

Advertising