IF_Counter - Connect (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

Task

Links the counter to a belt

Description

If the counter is linked to a belt, its lrPosition property is changed together with the motion of the belt. Thus, the distance covered by the belt can be measured.

Interface

Input

Data type

Description

i_udiBeltId

UDINT

The number of the belt to which the counter is to be linked

Output

Data type

Description

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnosis.

A value unequal GD.ET_Diag.Ok equates an error message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnosis.

q_etDiag = GD.ET_Diag.Ok -> status message

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

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

ExecutionAborted

BeltInvalid

13

The belt is invalid.

InputParameterInvalid

BeltIdRange

11

BeltId is outside the valid range.

UnexpectedProgramBehavior

InterfaceInvalid

12

The interface has not been assigned.

BeltIdRange

Enumeration name:

BeltIdRange

Enumeration value:

11

Description:

BeltId is outside the valid range.

Issue

Cause

Solution

-

An invalid value has been transferred at the input i_udiBeltId.

At the input i_udiBeltId, the number of the belt has to be specified to which a connection is to be established. The number must be between one and the number of parameterized belts.

BeltInvalid

Enumeration name:

BeltInvalid

Enumeration value:

13

Description:

The belt is invalid.

Issue

Cause

Solution

-

An invalid belt has been selected for connection.

It must be made sure that the number of a belt is applied at the i_udiBeltId input that is not of type ET_BeltType.None.

InterfaceInvalid

Enumeration name:

InterfaceInvalid

Enumeration value:

12

Description:

The interface has not been assigned.

Issue

Cause

Solution

-

An error occurred in the internal execution.

Please inform the support team about this error.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The counter is connected to the belt.