IF_Correction - Start (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

Task

A correction motion on a belt of the IF_Infeed is to be started.

Description

A correction motion overlays the motion of the belt. The correction motion moves the belt by the distance i_lrCorrection. For the correction, the motion parameters of the IF_Correction interface are taken into account.

Interface

Input

Data type

Description

i_lrCorrection

LREAL

Path of the correction motion

i_udiBeltId

UDINT

Number of the belt that is to perform the correction.

Output

Data type

Description

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnosis.

A value not equal to ET_Diag.Ok corresponds to 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

BeltFasterMaxVel

82

The belt is faster than the maximum velocity.

ExecutionAborted

BeltSlowerMinVel

81

The belt is slower than the minimum velocity.

ExecutionAborted

JobBufferOverflow

78

Too many motion commands have been issued.

InputParameterInvalid

AccNegRange

53

AccNeg is outside the valid range.

InputParameterInvalid

AccPosRange

54

AccPos is outside the valid range.

InputParameterInvalid

BeltIdRange

11

BeltId is outside the valid range.

InputParameterInvalid

BeltTypeInvalid

77

BeltType is invalid.

InputParameterInvalid

ChannelInvalid

60

No valid channel has been selected.

InputParameterInvalid

CorrectionRange

83

Correction is outside the valid range.

InputParameterInvalid

DecNegRange

55

DecNeg is outside the valid range.

InputParameterInvalid

DecPosRange

56

DecPos is outside the valid range.

InputParameterInvalid

MaxVelRange

58

MaxVel is outside the valid range.

UnexpectedProgramBehavior

InterfaceCastFailed

15

The object does not support all required interfaces.

UnexpectedProgramBehavior

LoggerInvalid

38

No valid logger POU has been transferred.

UnexpectedProgramBehavior

UnknownFeedback

20

An unexpected error occurred during execution.

AccNegRange

Enumeration name:

AccNegRange

Enumeration value:

53

Description:

AccNeg is outside the valid range.

Issue

Cause

Solution

-

An invalid value has been transferred at the input FB_Infeed.ifCorrection.lrAccNeg.

A value greater than 0 must be transferred at the input FB_Infeed.ifCorrection.lrAccNeg.

AccPosRange

Enumeration name:

AccPosRange

Enumeration value:

54

Description:

AccPos is outside the valid range.

Issue

Cause

Solution

-

An invalid value has been transferred at the input FB_Infeed.ifCorrection.lrAccPos.

A value greater than 0 must be transferred at the input FB_Infeed.ifCorrection.lrAccPos.

BeltFasterMaxVel

Enumeration name:

BeltFasterMaxVel

Enumeration value:

82

Description:

The belt is faster than the maximum velocity.

Issue

Cause

Solution

-

The belt velocity exceeds FB_Infeed.ifCorrection.lrMaxVel.

The belt velocity must be reduced such that it remains below FB_Infeed.ifCorrection.lrMaxVel with overlapped correction motion.

FB_Infeed.ifCorrection.lrMaxVel must be increased to a value that corresponds to the base velocity of the belt with superimposed correction motion.

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 FB_Infeed.ifCorrection.udiBeltId.

At the input FB_Infeed.ifCorrection.udiBeltId, the number of the belt for the correction motion must be specified. The number must be between one and the number of parameterized belts.

BeltSlowerMinVel

Enumeration name:

BeltSlowerMinVel

Enumeration value:

81

Description:

The belt is slower than the minimum velocity.

Issue

Cause

Solution

-

The belt velocity is below FB_Infeed.ifCorrection.lrMinVel.

The belt velocity must be increased to FB_Infeed.ifCorrection.lrMinVel.

FB_Infeed.ifCorrection.lrMinVel must be reduced to a value that corresponds to the lowest base velocity of the belt.

BeltTypeInvalid

Enumeration name:

BeltTypeInvalid

Enumeration value:

77

Description:

BeltType is invalid.

Issue

Cause

Solution

-

An invalid belt has been selected for the correction motion.

It must be made sure that a belt of type ET_BeltType.Series is selected at the i_udiBeltId input.

ChannelInvalid

Enumeration name:

ChannelInvalid

Enumeration value:

60

Description:

No valid channel has been selected.

Issue

Cause

Solution

-

An error occurred in the internal execution.

Please inform the support team about this error.

CorrectionRange

Enumeration name:

CorrectionRange

Enumeration value:

83

Description:

Correction is outside the valid range.

Issue

Cause

Solution

-

An invalid value has been transferred at the input i_lrCorrection.

It must be made sure that a value unequal to 0 is transferred at the i_lrCorrection input.

DecNegRange

Enumeration name:

DecNegRange

Enumeration value:

55

Description:

DecNeg is outside the valid range.

Issue

Cause

Solution

-

An invalid value has been transferred at the input FB_Infeed.ifCorrection.lrDecNeg.

A value greater than 0 must be transferred at the input FB_Infeed.ifCorrection.lrDecNeg.

DecPosRange

Enumeration name:

DecPosRange

Enumeration value:

56

Description:

DecPos is outside the valid range.

Issue

Cause

Solution

-

An invalid value has been transferred at the input FB_Infeed.ifCorrection.lrDecPos.

A value greater than 0 must be transferred at the input FB_Infeed.ifCorrection.lrDecPos.

InterfaceCastFailed

Enumeration name:

InterfaceCastFailed

Enumeration value:

15

Description:

The object does not support all required interfaces.

Issue

Cause

Solution

-

An error occurred in the internal execution.

Please inform the support team about this error.

JobBufferOverflow

Enumeration name:

JobBufferOverflow

Enumeration value:

78

Description:

Too many motion commands have been issued.

Issue

Cause

Solution

-

An error occurred in the internal execution.

Please inform the support team about this error.

LoggerInvalid

Enumeration name:

LoggerInvalid

Enumeration value:

38

Description:

No valid logger POU has been transferred.

Issue

Cause

Solution

-

An error occurred in the internal execution.

Please inform the support team about this error.

MaxVelRange

Enumeration name:

MaxVelRange

Enumeration value:

58

Description:

MaxVel is outside the valid range.

Issue

Cause

Solution

-

An invalid value has been transferred at the input FB_Infeed.ifCorrection.lrMaxVel.

A value must be transferred to the input FB_Infeed.ifCorrection.lrMaxVel that is greater than the value at the input FB_Infeed.ifCorrection.lrMinVel.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The correction movement is being executed.

UnknownFeedback

Enumeration name:

UnknownFeedback

Enumeration value:

20

Description:

An unexpected error occurred during execution.

Issue

Cause

Solution

-

An error occurred in the internal execution.

Please inform the support team about this error.