Function library lenzedrive.lib, Processing of phase−angle signals, 2 input value with change of sign – Lenze DDS Function library Drive User Manual

Page 57

Advertising
background image

Function library LenzeDrive.lib

Processing of phase−angle signals

2.4.7

Integration (L_PHINTK)

2−47

L

LenzeDrive.lib EN 1.7

2.4.7.2

Input value with change of sign

byMode = 2

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.

bStatus_b

t

dnOut_p

t

(+) dnCmp

(-) dnCmp



Fig. 2−58

Function of L_PHINTK with change of sign for the input value

(+) Variable with positive value

(−) Variable with negative value
 Change of sign for the value at nIn_v

·

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 value exceeds a preset positive value at dnCmp:
– The count value is reduced by the value of dnCmp.
– Switches bStatus_b = TRUE for the time of one cycle.

·

If the count value goes below a preset negative value in dnCmp:
– The count value is increased by the value of dnCmp.
– Switches bStatus_b = TRUE for the time of one cycle.

Advertising