L_MC1P_SetPosCtrlAdaptValue

With this FB the gain factor of the position controller can be adapted. The use of an external position encoder is taken into account. It can be defined whether both amplification factors are to be adapted in parallel or individually. The currently set adaptation factor is available in the Sub 96 parameter.

Supported devices:
  • i700
  • i750
  • i950
  • Servo Drives 9400 HigLine CiA402
Note!

The use of several FB instances for one axis is not recommended, since only the default value of the last called FB is always applied.

 

 

 

L_MC1P_SetPosCtrlAdaptValue

 

 

 

AXIS_REF

-

 

Axis

xBusy

 

-

BOOL

BOOL

-

 

xEnable

xError

 

-

BOOL

LREAL

-

 

lrPosCtrlAdaptValue

eErrorID

 

-

L_IE1P_Error

L_MC1P_PosCtrlAdaptMode

-

 

eMode

 

 

 

 

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

Axis

AXIS_REF

Transfer of the axis data structure

Motion axes (AXIS_REF)

xEnable

BOOL

TRUE

Write adaptation value of the gain of the position controller continuously.

FALSE

The adaptation value remains on the last written value

lrPosCtrlAdaptValue

LREAL

Adaption position controller

  • Initial value: 1.0 ยบ 100 %

eMode

L_MC1P_PosCtrlAdaptMode

Mode of operation of the FB

MotorAndLoad :

  • The adaptation factors for the position control in the drive (0x2981) and in the control (Sub96) are written

Motor:

  • The adaptation factor for the position control in the drive (0x2981) is written

Load:

  • The adaptation factors for the position control in the control (Sub96) are written.

Outputs

Name

Data type

Value/meaning

xBusy

BOOL

TRUE

Processing in progress

xError

BOOL

TRUE

During the processing of the FB, an error has occurred. For details see eErrorID .

eErrorID

If xError = TRUE, this output will give the error ID for the error that has occurred within the FB.