MC_TouchProbe

This function block records an axis position in the event of a trigger event. For an application example for this function block, refer to chapter Operating the touchprobe function with function blocks.

VAR_IN_OUT

Variable name

Data type

Description

Axis

AXIS_REF

Reference to a logical device
(name of the logical device)

See also AXIS_REF.

TriggerInput

MC_TRIGGER_REF

Instance of an MC_TRIGGER_REF_TYPE that represents the trigger input.

VAR_INPUT

Variable name

Data type

Description

Execute

BOOL

Start execution of the function block.

WindowOnly

BOOL

Only accept trigger event if it is within the window (between FirstPosition and LastPosition)

FirstPosition

LREAL

Start position from which (positive direction) the trigger events are accepted. Value contained in the window.

LastPosition

LREAL

Stop position of the window. Value contained in the window.

VAR_OUTPUT

Variable name

Data type

Description

Done

BOOL

Function block successfully completed

Busy

BOOL

Function block is active

CommandAborted

BOOL

The function block was canceled by another command

Error

BOOL

An error has occurred in the function block

ErrorID

WORD

Error number

RecordedPosition

LREAL

Position at which the trigger event occurred in [user unit]