Function block library lenzeelectricalshaft.lib, 4 calculation of a phase−angle difference – Lenze DDS Global Drive PLC Developer Studio User Manual

Page 24

Advertising
background image

Function block library LenzeElectricalShaft.lib

Special functions

2.1.2

Digital frequency processing (L_DFSET)

2−14

L

LenzeElectricalShaft.lib EN 1.2

A TouchProbe or zero−pulse has occurred:

If a TouchProbe or zero−pulse has appeared at terminal X5/E4 or X5/E5, then the instance of L_DFSET
receives this information through

·

bSetTPReceived_b (setpoint of the SB DF_IN_DigitalFrequency)
and

·

bActTPReceived_b (actual value of the SB MCTRL_MotorControl)
the next time that the task is called in which the instance of L_DFSET is processed.

The phase−angle difference between the appearance of the TouchProbe/zero−pulse signal and the
start of this task is assigned to dnActTPLastScan_p and dnSetTPLastScan_p respectively.
The synchronization can be made to be precisely in phase, with the help of this information.

If the synchronization has been successfully concluded, then L_DFSET1.bAck_b is set to TRUE.

Synchronization mode

For the synchronization, different modes are available. The setting is made through by0PulsFunc .

by0PulsFunc

Synchronization mode

Note

0

inactive

function inactive

1

continuous synchronization with correction in the shortest
possible way

The synchronization starts after 2 zero−pulses are received.

2

single synchronization with correction in the shortest possible
way

Set b0Pulse_b = TRUE for a single zero−pulse synchronization.
The synchronization starts after 2 zero−pulses are received.

10

single synchronization, a phase deviation is corrected in the
shortest possible way

11

single synchronization, a phase deviation is corrected in CW
direction

12

single synchronization, a phase deviation is corrected in CCW
direction

13

single synchronization, a phase difference is determined
between setpoint pulse and actual pulse and is corrected to
the corresponding direction of rotation according to the sign

Set b0Pulse_b = TRUE for a single zero−pulse synchronization.

2.1.2.4

Calculation of a phase−angle difference

With the aid of a set/actual phase−angle comparison, a phase−angle difference can be determined,
and corrected.

set position

actual value

+

-

nNAct_v

nSet_v

dnPosDiffOut_p

MCTRL_dnPosSet_p

MCTRL_nNAct_v

DFIN_nIn_v

Abb. 2−8

Example of phase−angle difference determination for the 9300 Servo PLC, with L_DFSET

·

In nSet_v (16384

º 15000 rpm) the setpoint speed is read in, and integrated into a path

information by an integrator in L_DFSET. The processing time for the task, during which the
instance of L_DFSET is called, is taken into account.

·

The stretch and gearing factors, as well as offsets, can also be taken into account in the
calculation of the setpoint speed.

·

In nNAct_v (16384

º 15000 rpm) the actual speed is read in, and integrated into a path

information by an integrator in L_DFSET. The processing time for the task, during which the
instance of L_DFSET is called, is taken into account.

Advertising