MC_TouchProbe

 

MC_TouchProbe - General Information

Overview

Type:

Function Block

Available as of:

1.0.5.0

Versions:

current version

Task

A position of an axis to a Touchprobe event is to be detected.

Description

The POU calls up the SystemInterface.FC_TPEdge function.

Interface

Input

Data type

Description

Axis

SystemConfigurationItf.IF_Drive

The axis for which the position is to be detected.

TriggerInput

SystemConfigurationItf.IF_TouchProbe

The Touchprobe input that detects the signal.

Execute

BOOL

Starts the Touchprobe tracing in the case of a rising edge.

EnableIgnoreZone

BOOL

TRUE: Touchprobe events for positions between StartIgnore and StopIgnore are to be ignored.

StartIgnore

LREAL

Start position of the zone in which Touchprobe events are to be ignored.

StopIgnore

LREAL

Stop position of the zone in which Touchprobe events are to be ignored.

Output

Data type

Description

Done

BOOL

The position to the Touchprobe event was detected.

Busy

BOOL

The function block is not finished and new outputs are still pending.

CommandAborted

BOOL

Triggering of the signals has been cancelled.

Error

BOOL

Signalizes a detected error within the function block

ErrorId

DWORD

Error identification

RecordedPosition

LREAL

Position of the trigger event

TPArmed

BOOL

TRUE: The Touchprobe is enabled. Waiting for the event.

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic.

A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = GD.ET_Diag.Ok -> status message

q_etDiag <> GD.ET_Diag.Ok -> diagnostic message

q_sMsg

STRING[80]

Event-triggered message which gives more detailed information on the diagnostic state.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Busy

1

The order is executed.

OK

CommandAborted

9

The action was canceled.

OK

Done

8

The order is completed.

OK

Ok

0

Ok

ExecutionAborted

SercosNotInPhaseFour

43

The bus is not in phase 4.

InputParameterInvalid

AxisInvalid

25

The connected drive is not supported.

InputParameterInvalid

DriveNotInitialised

27

The connected drive is not initialized.

InputParameterInvalid

TouchProbeNotActive

44

The Touchprobe is not active.

InputParameterInvalid

TriggerInputInvalid

28

TriggerInput is invalid.

UnexpectedProgramBehavior

UnexpectedFeedback

10

An unintended detected error occurred during execution.

AxisInvalid

Enumeration name:

AxisInvalid

Enumeration value:

25

Description:

The connected drive is not supported.

Issue

Cause

Solution

-

No drive has been applied at the input Axis.

A valid drive must be transferred to the input Axis.

Busy

Enumeration name:

Busy

Enumeration value:

1

Description:

The order is executed.

Waiting for the Touchprobe signal.

CommandAborted

Enumeration name:

CommandAborted

Enumeration value:

9

Description:

The action was canceled.

The job was cancelled.

Done

Enumeration name:

Done

Enumeration value:

8

Description:

The order is completed.

A Touchprobe signal was detected.

DriveNotInitialised

Enumeration name:

DriveNotInitialised

Enumeration value:

27

Description:

The connected drive is not initialized.

Issue

Cause

Solution

-

The function FC_DriveInit was not activated for the drive at the input Axis.

Before using the POU, the drive must be initialized using the function FC_DriveInit.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The POU is waiting for jobs.

SercosNotInPhaseFour

Enumeration name:

SercosNotInPhaseFour

Enumeration value:

43

Description:

The bus is not in phase 4.

Issue

Cause

Solution

-

The parameter State of the SERCOS bus is not 4.

Set the SERCOS bus parameter PhaseSet to 4.

Verify the SERCOS bus for errors.

TouchProbeNotActive

Enumeration name:

TouchProbeNotActive

Enumeration value:

44

Description:

The Touchprobe is not active.

Issue

Cause

Solution

-

The Touchprobe functionality of the input on a Lexium62 is not enabled.

Ensure that the parameter IOx_Mode of the input group (LXM62IO_InOutTP) has been set to Touchprobe / 1.

TriggerInputInvalid

Enumeration name:

TriggerInputInvalid

Enumeration value:

28

Description:

TriggerInput is invalid.

Issue

Cause

Solution

-

No Touchprobe has been applied at the input TriggerInput.

A valid Touchprobe must be transferred to the input TriggerInput.

UnexpectedFeedback

Enumeration name:

UnexpectedFeedback

Enumeration value:

10

Description:

An unintended detected error occurred during execution.

Issue

Cause

Solution

-

A detected error occurred in the internal execution.

Please inform the support team about this detected error.