L_MC1P_GetTPValue

The function block determines the high-precision output value associated with a touch probe event based on the cyclical input value (e.g. position value).

L_MC1P_GetTPValue

BOOL

-

xEnable

xBusy

-

BOOL

L_MC1P_TPRECEIVEDATA

-

TpRecData

xError

-

BOOL

LREAL

-

lrValue

eErrorID

-

L_IE1P_Error

LREAL

-

lrTimeDelay

xTpReceived

-

BOOL

LREAL

-

lrCyclelength

lrTpValue

-

LREAL

Inputs

Name

Data type

Info/adjustment options

xEnable

BOOL

TRUE:Start activation of the FB

TpRecData

L_MC1P_TpReceiveData

Information on the touch probe event

Reference to the FB MC_Touchprobe

lrValue

LREAL

Cyclical input value In the event of a TP event, the high-precision output value is determined on the basis of this value (lrTpValue).

lrTimeDelay

LREAL

Time offset of the cyclical input value (lrValue) in seconds.

"If the TP value is to be calculated in relation to an actual value at input (lrValue), the signal delay (the age of the actual value) must be specified with a positive sign at input (lrTimeDelay)."

The value at input lrTimeDelay is made up of the bus cycle time and the sampling time in the drive controller. If the cyclical value at input lrValue comes directly from a motion axis, this value can be taken from the property output of the motion axis TimeDelayActPos.

If the TP value is to be projected onto the effective setpoint position in the actuator, the signal delay must be specified at lrTimeDelay with a negative sign.

If the cyclical value at the lrValue input comes directly from a motion axis, this value can be taken from the TimeDelaySetPos property output of the motion axis.

lrCyclelength

LREAL

Cycle length of the target axis in the modulo travel range (rotary axis)

For limited travel range, the input must be described with the value zero. Negative values at the input are limited to the value zero

Outputs

Name

Data type

Meaning

xBusy

BOOL

Processing in progress.

xError

BOOL

An error has occurred. For details see ErrorID.

eErrorID

If Error = TRUE: Error number for the error that has occurred.
Here you will find information on error or warning messages: L_IE1P_Error

xTpReceived

BOOL

TP recorded

lrTpValue

LREAL

The value measured at input lrValue at the time of the TP event. This value remains until the next TP event.