MC_TouchProbe (FB)ΒΆ
FUNCTION_BLOCK MC_TouchProbe
This function block is designed for recording an axis position when a trigger event is raised.
Note
The function block is intended for single shot operation, that is,
only the first event following on a rising edge of Execute is
One function block instance should represent exactly one probing
command.
Example
Timing and TouchProbe
![]()
Example
Defining a window, where trigger events are accepted (for modulo axes).
![]()
- InOut:
Scope
Name
Type
Comment
Inout
AxisReference to axis, the position of which is to be recorded at a defined event at the trigger input.
TriggerInputReference to trigger signal source
Input
ExecuteBOOLRising edge: Starts the execution of the function block.
WindowOnlyBOOLTRUE: Trigger events will be accepted only within the specified window.FirstPositionLREALStart position from whereon (in positive direction) trigger events will be accepted (in technical units [u]). Only used if
WindowOnly = TRUE.LastPositionLREALEnd position up to which trigger events will be accepted (in technical units [u]). Only used if
WindowOnly = TRUE.Output
DoneBOOLTRUE: Trigger event has been recorded.BusyBOOLTRUE: Execution of function block has not been finished yet.ActiveBOOLIndicates that the touch probe function is active. It can take some time to activate the touch probe function. As long as
Activeis FALSE, trigger events may be ignored. The output is reset ifDone,Error, orCommandAbortedbecome TRUE.ErrorBOOLTRUE: Error occurred within the function block.ErrorIDSMC_ERRORError identification
RecordedPositionLREALPosition, where trigger event has occurred (in technical units [u]).
CommandAbortedBOOLTRUE: Command has been aborted by another command.