MC_ TouchProbe
| Element Name | Element Type | Description |
|---|---|---|
| Execute | Input | Edge detected request to execute the function block. |
| Axis | Input/Output | Axis reference variable. This can not be a constant. |
| TriggerInput | Input/Output |
Specify the signal to be used as a trigger.
|
| WindowOnly | Input |
0 – No Window mode 1 – Use Window Mode. |
| FirstPosition | Input | Specify the starting position of window mode. |
| LastPosition | Input | Specify the ending position of window mode. |
| Done | Output | Indicates the trigger signal was successfully recorded. |
| Busy | Output | Indicates the function block is currently being executed. |
| CommandAborted | Output | Indicates the function block was aborted. |
| Error | Output | Indicates whether an error occurs or not. |
| ErrorID | Output | Error Identification number. |
| RecordedPosition | Output | Axis position at the time of the trigger signal. |
//Set axis reference
Axis1 := 1;
IF (_AX01_RDY) AND (_AX01_SV_ON) THEN
//Example MC_TouchProbel fb
INST_TOUCHPROBE(Execute:=Execute_TouchProbe, Axis:=Axis1,
TriggerInput:=INST_TOUCHPROBE.TriggerInput,
WindowOnly:=INST_TOUCHPROBE.WindowOnly,
FirstPosition:=INST_TOUCHPROBE.FirstPosition,
LastPosition:=INST_TOUCHPROBE.LastPosition,
ErrorID=>INST_TOUCHPROBE.ErrorID,
RecordedPosition=>INST_TOUCHPROBE.RecordedPosition);
END_IF;
LM520-1