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

Touch probe sources

  • Inverter

    Touch probe of the axis connected via Axis

  • External touch probe source

    Touch probe of a Fast-I/O. Definition via input ExternalTPSource

  • Digitalsignal

    Determination via input ExternalTPDigIn

  • external motion axis

    The touch probe event is detected via the motion_axis assigned at input ExternalTPFromAxis. The position output at FB MC_TouchProbe refers to the Axis_Ref connected to this FB. Thus, for example, a TP event from a drive can be combined with an encoder axis.

 

Default value = 1

TouchProbeChannel

BYTE

Touch probe channel selection

 

Only relevant for TouchProbeSource = 1, 2 oder 4

  • Touch probe channel 1

  • Touch probe channel 2

  • Touch probe channel 3 (currently only supported by i950 MotionAxes)

  • Touch probe channel 4 (currently only supported by i950 MotionAxes)

 

Default value = 1

TouchProbeSignal

BYTE

Selection of the Touch-Probe-Signal

Only relevant for TouchProbeSource = 1 or 4

  • Digital input

  • Zero pulse of the motor encoder

  • Zero pulse of the 2nd encoder (currently only supported by i950 MotionAxes)

Default value = 1

TouchProbeEdge

BYTE

Configuration of the edge evaluation

  • Positive edge

  • Negative edge

  • Positive or negative edge (Logic in FB)

  • Positive and negative edge (Logic in FB)

    Sequence of the edges not relevant.

  • First positive and then negative edge (logic in axis)

  • First negative and then positive edge (logic in axis)

 

Default value = 1

TouchProbeMode

BYTE

Touch probe mode selection

Single/continuous measurement

  • Single measurement

    Execute -edge activates function until Done = TRUE or abort via FB MC_AbortTrigger .

  • Continuous measurement

    Execute -edge activates function until abort via FB MC_AbortTrigger

    Note

    On FB MC_TouchProbe no done signal is generated.

    Depending on the type of edge evaluation (TouchProbeEdge) the TP measurement is performed : Positive only, negative only or both edges.

    After the first measurement, an updated measured value can only be detected by comparing the value with the previous measured value. The associated flag ValueStored_PosEdge or ValueStored_NegEdge at the FB is set permanently with the first measured value.

    TouchProbeEdge = 1 .. 3:

    Behavior as described

    TouchProbeEdge = 4:

  • Since no Done signal is generated at the FB, this type of edge evaluation behaves like TouchProbeEdge = 3.

  • TouchProbeEdge = 5:

  • The first positive edge is waited for. If a negative edge occurs first, it is hidden. After the occurrence of the first positive edge, both edges are reported.

  • TouchProbeEdge = 6:

  • The first negative edge is waited for. If a positive edge occurs first, this is hidden. After the occurrence of the first negative edge, both edges are reported.

Default value = 1

ExternalTPDigIn

POINTER TO BOOL

Pointer to boolean input

  • Alternatively, any boolean signal from the application can be used as source

    MC_TRIGGER_REF.ExternalTPDigIn := ADR(xTPEvent);

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).

 

  • Enter in I/O mapping of EPM-S202:

    GVL_HardwareSignals.g_xDI1

  • Transfer to FB MC_Touchprobe :

  • TriggerRef.ExternalTPDigIn:= ADR(GVL_HardwareSignals.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