L_CT1P_LeadscrewErrorComp

The use of this FB is recommended when high-precision spindle positioning is required to compensate for the spindle pitch error.

 WARNiNG!

The combination of spindle pitch error compensation with position control to an external encoder is not permitted.

Please note when using this FB:

L_CT1P_LeadscrewErrorComp

AXIS_REF

-

Axis

xBusy

-

BOOL

BOOL

-

xEnable

xActive

-

BOOL

L_MC1P_ExecutionIndex

-

eExecutionIndex

xError

-

BOOL

ARRAY[*] OF LREAL

-

alrAxisPosition

eErrorID

-

L_IE1P_Error

ARRAY[*] OF LREAL

-

alrAxisCorrection

lrSetPosOut

-

LREAL

 

-

lrSetVelOut

-

LREAL

lrSetAccOut

-

LREAL

lrSetTorqueOut

-

LREAL

lrActCorrection

-

LREAL

Inputs

Name

Data type

Info/adjustment options

Axis

AXIS_REF

Transfer of the axis data structure of the axis to be corrected

4Motion-Achsen (AXIS_REF)

xEnable

BOOL

FALSE -> TRUE

Activation of the FB

Activation or deactivation (TRUE <-> FALSE) can only take place when the axis is locked ("Disabled" status).

eExecutionIndex

L_MC1P_ExecutionIndex

Execution index

A maximum of two setpoint-correcting FBs can be connected to one axis. The call sequence is defined via this input.

Selection:

L_MC1P_ExecutionIndex.First := 1,

L_MC1P_ExecutionIndex.Second := 2

alrAxisPosition

ARRAY[*] OF LREAL

Position vector of the AxisRef for determining the position correction

alrAxisCorrection

ARRAY[*] OF LREAL

Correction values of the AxisRef at the positions alrAxisPosition

The number of values in alrAxisPosition and alrAxisCorrection must be identical

Outputs

Name

Data type

Value/meaning

xBusy

BOOL

TRUE

The FB was added to the AXIS_REF setpoint path.

xActive

BOOL

TRUE

Spindle pitch error compensation is active.

xError

BOOL

TRUE

An error has occurred. For details, see eErrorID .

eErrorID

L_IE1P_Error

If xError = TRUE: Error number for the error that has occurred.

lrSetPosOut

LREAL

Modified target position

This output is used for analysis. It is not necessary to connect the output.

lrSetVelOut

LREAL

Modified target speed

This output is used for diagnostics. It is not necessary to switch the output.

lrSetAccOut

LREAL

Modified target acceleration

This output is used for diagnostics. It is not necessary to switch the output.

lrSetTorqueOut

LREAL

Modified target torque

This output is used for diagnostics. It is not necessary to switch the output.

Note: Spindle pitch compensation does not affect the torque.

lrActCorrection

LREAL

Current correction value

This output is used for diagnostics.It isnot necessary to switch the output.