MC_CamTableSelect

 

MC_CamTableSelect - General Information

Overview

Type:

Function block

Available as of:

1.0.5.0

Versions:

Current version

Task

This function block converts a given cam table MC_Cam_Ref to a data set MC_Cam_Id for the function block MC_CamIn.

Description

The cam table describes segments of a cam and corresponds approx. to the cam table of the MultiCam from the PD_PacDriveLib.

NOTE: When calling up CamTable, the contents of CamTableId are overwritten. If CamTableId is in use, a second CamTableId call-up must be used.

Interface

Input

Data type

Description

CamTable

MC_Cam_Ref

Table with the cam description

Execute

BOOL

Conversion in the case of rising edge

Output

Data type

Description

Done

BOOL

Conversion completed.

Busy

BOOL

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

Error

BOOL

Signalizes a detected error within the function block

ErrorId

DWORD

Error ID

CamTableId

MC_Cam_Id

Data format for the function block MC_CamIn.

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

Done

8

The order is completed.

OK

Ok

0

Ok

ExecutionAborted

MemoryFull

16

The memory is full.

ExecutionAborted

ProfileBlocked

12

The profile is in use.

ExecutionAborted

TableFull

15

The profile table is full

InputParameterInvalid

CamTypeInvalid

22

The CamType is not valid.

InputParameterInvalid

CheckSumError

20

The checksum is invalid.

InputParameterInvalid

FileError

17

File read error detection.

InputParameterInvalid

FileIsCorrupt

21

The file is damaged.

InputParameterInvalid

HeaderError

18

The header is invalid.

InputParameterInvalid

NuberOfCamPointsOutOfRange

13

NumberOfCamPoints is outside the valid range.

InputParameterInvalid

NumberOfBases

19

The number of supporting points is outside the valid range.

InputParameterInvalid

XFactorTooSmall

14

XFactor is too small.

UnexpectedProgramBehavior

LambdaInvalid

71

Lambda is invalid.

UnexpectedProgramBehavior

ProfileIdInvalid

11

ProfileId is invalid.

UnexpectedProgramBehavior

ProfileSegInvalid

72

ProfileSeg is invalid.

UnexpectedProgramBehavior

SegmentRange

24

Segment is outside the valid range.

UnexpectedProgramBehavior

UnexpectedFeedback

10

An unintended detected error occurred during execution.

Busy

Enumeration name:

Busy

Enumeration value:

1

Description:

The order is executed.

The cam table is converted.

CamTypeInvalid

Enumeration name:

CamTypeInvalid

Enumeration value:

22

Description:

The CamType is not valid.

Issue

Cause

Solution

-

At the input CamTable.astCamPoint[x].etCamType, an invalid value has been transferred.

At all used parameters of the input CamTable.astCamPoint[x].etCamType an element of the enumeration PDL.ET_CamType hast to be transferred.

The parameter CamTable.diNoOfSeg has to indicate the number of the valid elements from the array CamTable.astCamPoint.

CheckSumError

Enumeration name:

CheckSumError

Enumeration value:

20

Description:

The checksum is invalid.

Issue

Cause

Solution

-

A detected error occurred in the internal execution.

Please inform the support team about this detected error.

Done

Enumeration name:

Done

Enumeration value:

8

Description:

The order is completed.

The cam table was converted.

FileError

Enumeration name:

FileError

Enumeration value:

17

Description:

File read error detection.

Issue

Cause

Solution

-

A detected error occurred in the internal execution.

Please inform the support team about this detected error.

FileIsCorrupt

Enumeration name:

FileIsCorrupt

Enumeration value:

21

Description:

The file is damaged.

Issue

Cause

Solution

-

A detected error occurred in the internal execution.

Please inform the support team about this detected error.

HeaderError

Enumeration name:

HeaderError

Enumeration value:

18

Description:

The header is invalid.

Issue

Cause

Solution

-

A detected error occurred in the internal execution.

Please inform the support team about this detected error.

LambdaInvalid

Enumeration name:

LambdaInvalid

Enumeration value:

71

Description:

Lambda is invalid.

Issue

Cause

Solution

-

A detected error occurred in the internal execution.

Please inform the support team about this detected error.

MemoryFull

Enumeration name:

MemoryFull

Enumeration value:

16

Description:

The memory is full.

Issue

Cause

Solution

-

The system profile memory is full.

Delete any profiles that are no longer needed using the FC_ProfileDeleate function.

NuberOfCamPointsOutOfRange

Enumeration name:

NuberOfCamPointsOutOfRange

Enumeration value:

13

Description:

NumberOfCamPoints is outside the valid range.

Issue

Cause

Solution

-

At the input CamTable.diNumberOfCamPoints, an invalid value has been transferred.

At the input CamTable.diNumberOfCamPoints, a value greater than 0 and smaller than or equal to 16 must be transferred.

NumberOfBases

Enumeration name:

NumberOfBases

Enumeration value:

19

Description:

The number of supporting points is outside the valid range.

Issue

Cause

Solution

-

At the input CamTable.diNumberOfCamPoints, an invalid value has been transferred.

At the input CamTable.diNumberOfCamPoints, a value greater than 0 and smaller than or equal to SystemInterface.MAX_NO_OF_SEG must be transferred.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The POU is waiting for jobs.

ProfileBlocked

Enumeration name:

ProfileBlocked

Enumeration value:

12

Description:

The profile is in use.

Issue

Cause

Solution

-

The motion profile at the input CamTable is used by another POU.

It must be made sure that the motion profile at the input CamTable is only used by this POU.

ProfileIdInvalid

Enumeration name:

ProfileIdInvalid

Enumeration value:

11

Description:

ProfileId is invalid.

Issue

Cause

Solution

-

A detected error occurred in the internal execution.

Please inform the support team about this detected error.

ProfileSegInvalid

Enumeration name:

ProfileSegInvalid

Enumeration value:

72

Description:

ProfileSeg is invalid.

Issue

Cause

Solution

-

A detected error occurred in the internal execution.

Please inform the support team about this detected error.

SegmentRange

Enumeration name:

SegmentRange

Enumeration value:

24

Description:

Segment is outside the valid range.

Issue

Cause

Solution

-

A detected error occurred in the internal execution.

Please inform the support team about this detected error.

TableFull

Enumeration name:

TableFull

Enumeration value:

15

Description:

The profile table is full

Issue

Cause

Solution

-

The maximum number of system profiles has been exceeded.

Delete any profiles that are no longer needed using the FC_ProfileDeleate function.

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.

XFactorTooSmall

Enumeration name:

XFactorTooSmall

Enumeration value:

14

Description:

XFactor is too small.

Issue

Cause

Solution

-

Two successive cam points CamTable.astCamPoint[ ].lrX have a distance of less than 0.1 units.

Verify the definition of the cam and, if necessary, remove cam profiles that are too short.