MC_CamTableSelect - General Information
Type: |
Function block |
Available as of: |
1.0.5.0 |
Versions: |
Current version |
This function block converts a given cam table MC_Cam_Ref to a data set MC_Cam_Id for the function block MC_CamIn.
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.
Input |
Data type |
Description |
---|---|---|
CamTable |
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 |
Data format for the function block MC_CamIn. |
|
q_etDiag |
General library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
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. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
1 |
The order is executed. |
|
OK |
8 |
The order is completed. |
|
OK |
0 |
Ok |
|
ExecutionAborted |
16 |
The memory is full. |
|
ExecutionAborted |
12 |
The profile is in use. |
|
ExecutionAborted |
15 |
The profile table is full |
|
InputParameterInvalid |
22 |
The CamType is not valid. |
|
InputParameterInvalid |
20 |
The checksum is invalid. |
|
InputParameterInvalid |
17 |
File read error detection. |
|
InputParameterInvalid |
21 |
The file is damaged. |
|
InputParameterInvalid |
18 |
The header is invalid. |
|
InputParameterInvalid |
13 |
NumberOfCamPoints is outside the valid range. |
|
InputParameterInvalid |
19 |
The number of supporting points is outside the valid range. |
|
InputParameterInvalid |
14 |
XFactor is too small. |
|
UnexpectedProgramBehavior |
71 |
Lambda is invalid. |
|
UnexpectedProgramBehavior |
11 |
ProfileId is invalid. |
|
UnexpectedProgramBehavior |
72 |
ProfileSeg is invalid. |
|
UnexpectedProgramBehavior |
24 |
Segment is outside the valid range. |
|
UnexpectedProgramBehavior |
10 |
An unintended detected error occurred during execution. |
Enumeration name: |
Busy |
Enumeration value: |
1 |
Description: |
The order is executed. |
The cam table is converted.
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. |
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. |
Enumeration name: |
Done |
Enumeration value: |
8 |
Description: |
The order is completed. |
The cam table was converted.
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. |
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. |
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. |
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. |
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. |
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. |
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. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The POU is waiting for jobs.
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. |
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. |
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. |
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. |
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. |
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. |
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. |