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 valid for recording. Further events will be ignored.

One function block instance should represent exactly one probing command.

Example

Timing and Touch­ProbeTouchProbeExample.png 

Example

Defining a window, where trigger events are accepted (for modulo axes).TouchProbeExample2.png 

InOut:

Scope

Name

Type

Initial

Comment

Inout

Axis

AXIS_REF_SM3

Reference to axis, the position of which is to be recorded at a defined event at the trigger input.

TriggerInput

TRIGGER_REF

Reference to trigger signal source

Input

Execute

BOOL

FALSE

Rising edge: Starts the execution of the function block.

WindowOnly

BOOL

FALSE

TRUE: Trigger events will be accepted only within the specified window (definition hereunder).

FirstPosition

LREAL

0

Start position from whereon (in positive direction) trigger events will be accepted (in technical units [u]).

LastPosition

LREAL

0

End position up to which trigger events will be accepted (in technical units [u]).

Output

Done

BOOL

FALSE

TRUE: Trigger event has been recorded.

Busy

BOOL

FALSE

TRUE: Execution of function block has not been finished yet.

Error

BOOL

FALSE

TRUE: Error occurred within the function block.

ErrorID

SMC_ERROR

0

Error identification

RecordedPosition

LREAL

0

Position, where trigger event has occurred (in technical units [u]).

CommandAborted

BOOL

TRUE: Command has been aborted by another command.