Adaptation of the speed controller gain

Conditions

  • The winder axis must be enabled (input xRegulatorOn = TRUE).

Operating principle

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.

  • According to the mode selected in scPar.eAdaptSpdCtrlGainMode , an adaptation factor is generated in the TM - either as a direct function of the current diameter or of the moment of inertia.

  • The gain set for the speed controller is multiplied by the factor at the TM input lrAdaptSpdCtrlGainFactor (parameter lrAdaptSpdCtrlLowLimit 0 ... 1). This means that the set gain is only effective at the maximum diameter or maximum moment of inertia.

The eAdaptSpdCtrlGainMode parameter provides the following methods for generating the adaptation factor:

  • DiamToSquare : The adaptation factor corresponds to d act ² / d max ²

  • Diam : The adaptation factor corresponds to d act / d max

  • Inertia : The adaptation factor corresponds to J act /J max

Beispiel: Adaption der Drehzahlreglerverstärkung mit unterer Begrenzung auf lrAdaptSpdCtrlLowLimit = 0.2

A

eAdaptSpdCtrlGainMode = 1: Diam

B

eAdaptSpdCtrlGainMode = 0: DiamToSquare

C

eAdaptSpdCtrlGainMode = 2: Inertia

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 in the parameters scPar.lrConstMInertia and scPar.lrMaxMInertia must be entered in a plausible fashion.

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.

Activating/Deactivating adaption of the speed controller gain

The adaptation of the speed controller gain is active in all TM states if the scPar.xAdaptSpdCtrlGain parameter is set to TRUE.

Parameters to be set

Identifier

Data type

Description

eAdaptSpdCtrlGainMode

ENUM

Mode selection for adaptation of the speed controller gain.

  • Initial value: 2

0

DiamToSquare; VP = f(d²)

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 lrAdaptSpdCtrlLowLimit value.

  • Value range: 0 to 1

  • Initial value: 0

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.

  • Unit: x 100 % (1 = 100 % = lrMaxMInertia parameter)

  • Initial values: [0.0, 0.2, 0.4, 0.6, 0.8, 1.0, 1.2, 1.4, 1.6]

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.

  • Unit: x 100 % (1 = 100 %)

  • Initial values: [0.0, 0.2, 0.4, 0.6, 0.8, 1.0, 1.2, 1.4, 1.6]

xAdaptSpdCtrlGain

BOOL

Switch adaptation of the speed controller gain on/off.

  • Initial value: FALSE

TRUE

Enable adaptation of the speed controller gain.

FALSE

Adaptation of the speed controller gain inactive.

L_TW2P_scPar_WinderDancerCtrlState