Touch probe configuration
The MC_TRIGGER_REF structure is used to configure the touch probe detection via MC_TouchProbe :
|
Name Datatyp |
Information/possible settings |
|---|---|
|
TouchProbeSource BYTE |
Selection of the source for the touch probe event
Default value = 1 |
|
TouchProbeChannel BYTE |
Touch probe channel selection
Only relevant for TouchProbeSource = 1, 2 oder 4
Default value = 1 |
|
TouchProbeSignal BYTE |
Selection of the Touch-Probe-Signal Only relevant for TouchProbeSource = 1 or 4
Default value = 1 |
|
TouchProbeEdge BYTE |
Configuration of the edge evaluation
Default value = 1 |
|
TouchProbeMode BYTE |
Touch probe mode selection
TouchProbeEdge = 5: Default value = 1 |
|
ExternalTPDigIn POINTER TO BOOL |
Pointer to boolean input
Only relevant for TouchProbeSource = 3
Note Variables declared in the "Module I/O Mapping" cannot be directly connected to the FB MC_Touchprobe must be transferred. The following example shows the correct connection of a digital signal to the FB MC_Touchprobe shown.
reation of global variable list (eg. GVL_HardwareSignals) and declaration of boolean variables (e.g. g_xDI1).
|
|
ExternalTPSource L_MC1P_ External TPInterface |
External touch probe source (eg. Fast-I/O) Only relevant for TouchProbeSource = 2 |
|
ExternalDelayComp DWORD |
Additional dead time compensation [ m s] Only relevant for TouchProbeSource = 2 |
|
ExternalTPFromAxis L_MC1P_ITPSOURCEAXIS |
External AxisRef as touch probe source Only relevant for TouchProbeSource = 4 |
Touch probe sources