Adaptation of the speed controller gain
Conditions
The winder axis must be enabled (output xReadyForMotion = TRUE).
Operating mode
Looking at the motor and the reel as a rigid one-mass system, the optimum gain of the speed controller is directly proportional to the moment of inertia.
Since the moment of inertia in most cases significantly changes during the winding process, it may be necessary to control the gain of the speed controller along with the moment of inertia in order to provide for a stable control response.
The speed controller does not interfere in open-loop/closed-loop tension control operation. However, it may be useful to work with an adapted gain in manual jog mode and during a quick stop function.
In this function, an adaptation factor is formed that is suitable for the selected method; either in direct relation to the current diameter or the moment of inertia.
This factor is used for multiplicative evaluation of the gain factor set for the speed controller. In this way, the set gain only takes effect once the maximum diameter or maximum moment of inertia has been reached.
The scPar.eAdaptSpdCtrlGainMode parameter provides the following methods for generating the adaptation factor:
-
DiamToSquare: The adaptation factor corresponds to dact² / dmax²
-
Diam: The adaptation factor corresponds to dact / dmax
-
Inertia: The adaptation factor corresponds to Jact / Jmax
Adaptation of the speed controller gain with an exemplary lower limitation to scPar.lrAdaptSpdCtrlLowLimit = 0.2
In the case of very rigid mechanics and winding materials as well as minimised dead times in the control loop, the adaptation method scPar.eAdaptSpdCtrlGainMode = 2 (Inertia) can be applied.
In this case, the moments of inertia must be entered in a plausible fashion scPar.lrConstMInertia and scPar.lrMaxMInertia.
In many applications it suffices to use the default adaptation method scPar.eAdaptSpdCtrlGainMode = 0 (DiamToSquare). In this case, the moment of inertia has no impact on the adaptation.
A lower adaptation limit is specified for all three methods via the scPar.lrAdaptSpdCtrlLowLimit parameter.
Activating/Deactivating adaption of the speed controller gain
The adaption of the speed controller gain is independent of the state of the TM and from a currently executed function and can therefore be activated or deactivated at any time.
-
Input scPar.xAdaptSpdCtrlGain = TRUE: Adaption of speed controller gain activated.
-
Input scPar.xAdaptSpdCtrlGain = FALSE: adaption of speed controller gain deactivated.
The value for the adaption is calculated in the TM, whereby the calculation regulation is specified via the scPar.eAdaptSpdCtrlGainMode adaption mode (see below).
Adaptation value range: 0 ... 1 (1 = 100 % of the speed gain from the speed controller setting). A factor from the scPar.lrAdaptSpdCtrlGainFactor input can have a multiplicative effect on the resulting adaptation value set in the speed controller.
The smallest permissible value for adaption of the speed controller gain is defined via the scPar.lrAdaptSpdCtrlLowLimit parameter.
Adaption mode eAdaptSpdCtrlGainMode:= 0 (DiamToSquare)
In mode eAdaptSpdCtrlGainMode:= 0, the adaption is calculated from the scaled diameter (outputlrSetDiamScaledOut) for the square.
Adaption of the speed controller depending on the diameter for the square under the influence of lrAdaptSpdCtrlGainFactor
Adaption value = 1 is set for the maximum diameter. The lower limit for the adaption of the speed controller gain is defined via the scPar.lrAdaptSpdCtrlLowLimit parameter.
Adaption mode eAdaptSpdCtrlGainMode:= 1 (Diam)
In mode eAdaptSpdCtrlGainMode:= 1, the speed controller adaption is calculated proportionally to the scaled diameter (output lrSetDiamScaledOut).
Adaption of the speed controller depending on the diameter under the influence of lrAdaptSpdCtrlGainFactor
Adaption value = 1 is set for the maximum diameter. The lower limit for the adaption of the speed controller is defined via the lrAdaptSpdCtrlLowLimit parameter.
Adaption mode eAdaptSpdCtrlGainMode:= 2 (Inertia)
In an ideal winder drive model, the motor and reels are seen as a fixed single-mass system. The optimum gain of the speed controller therefore behaves in direct proportion to the moment of inertia J with a d4 function.
Since the moment of inertia in most cases significantly changes during the winding process, it may be necessary to control the gain of the speed controller along with the moment of inertia in order to provide for an optimum control response.
The moments of inertia must be entered in order to use the mode eAdaptSpdCtrlGainMode:= 2 (Inertia):
-
Mass inertia of empty reel scPar.lrConstMInertia with minimum diameter scPar.lrMinDiam
-
Mass inertia of the reels with material scPar.lrMaxMInertia for maximum diameter scPar.lrMaxDiam
The mass inertia can either be calculated or identified from the TM.
When the two scPar.lrConstMInertia and scPar.lrMaxMInertia mass inertias are known, the adaption is defined using the following characteristic:
Adaption of the speed controller depending on the diameter under the influence of lrAdaptSpdCtrlGainFactor
The standard setting of this characteristic function is based on the following functions:
-
Lower limitation of the adaptation: 50 %
-
Upper limitation of the adaptation: 100 %
-
Linear increase of the gain up to 100 % of the moment of inertia
Parameters to be set
See also: L_TW2P_scPar_WinderTensionCtrlState basic functions
|
Identifier Data type |
Description
|
|
|---|---|---|
|
xAdaptSpdCtrlGain BOOL |
Switch adaptation of the speed controller gain on/off.
|
|
|
TRUE |
Enable adaptation of the speed controller gain. |
|
|
FALSE |
Adaptation of the speed controller gain inactive. |
|
|
eAdaptSpdCtrlGainMode ENUM |
Mode selection for adaptation of the speed controller gain.
|
|
|
0 |
DiamToSquare; VP = f(d2) |
|
|
1 |
Diam; VP = f(d) |
|
|
2 |
Inertia; VP = f(J) |
|
|
lrAdaptSpdCtrlLowLimit LREAL |
Lower limitation of speed controller gain in the drive. The lrSetSpdCtrlGainAdaptOut adaptation value must not be smaller than the scPar value. lrAdaptSpdCtrlLowLimit.
|
|
|
alrSpdCtrlGainAdaptX ARRAY [1...9] OF LREAL |
Characteristic function for the speed control gain The X axis corresponds to the adaptation factor currently calculated for the adaptation of the speed controller gain.
|
|
|
alrSpdCtrlGainAdaptY ARRAY [1...9] OF LREAL |
Characteristic function for the speed control gain The Y axis corresponds to the gain factor of the speed controller.
|
|