FB_SegmentedCam - Calculate (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Task

Calculation of reference values of a segmented cam

Description

Implementation of the method defined in IF_CamReferenceGenerator

Interface

See IF_CamReferenceGenerator.Calculate().

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

ExecutionAborted

NoValidCam

54

No valid cam

InputParameterInvalid

ExtRefGenInvalid

42

The instance of the external setpoint device is invalid.

InputParameterInvalid

JobParamCamXStartXEnd

26

Job parameter stCam.lrXStart >= stCam.lrXEnd

InputParameterInvalid

JobParamJobType

14

Job parameter etJobType is outside the valid range.

UnexpectedProgramBehavior

UnexpectedFeedback

57

Unintended return value

ExtRefGenInvalid

Enumeration name:

ExtRefGenInvalid

Enumeration value:

42

Description:

The instance of the external setpoint device is invalid.

Issue

Cause

Solution

-

The connected external position generator does not support all required functionalities.

Use a position generator that supports all functionalities.

The interface transferred at the variables ST_MotionJob.stPositioning.stExternalPos.ifExternalPosGenerator or ST_MotionJob.stCam.stExternalCam.ifExternalCamGenerator is invalid.

JobParamCamXStartXEnd

Enumeration name:

JobParamCamXStartXEnd

Enumeration value:

26

Description:

Job parameter stCam.lrXStart >= stCam.lrXEnd

Issue

Cause

Solution

-

The assigned value of the stCam.lrXStart variable is too high.

The value of the stCam.lrXStart variable must be less than the value of the stCam.lrXEnd variable.

JobParamJobType

Enumeration name:

JobParamJobType

Enumeration value:

14

Description:

Job parameter etJobType is outside the valid range.

Issue

Cause

Solution

-

The assigned value of the ST_MotionJob.etJobType variable is invalid.

ST_MotionJob.etJobType must be assigned with an element from ET_MotionJobType.

NoValidCam

Enumeration name:

NoValidCam

Enumeration value:

54

Description:

No valid cam

Issue

Cause

Solution

-

No valid segmented cam could be generated.

Verify the individual cams for generation of a segmented cam.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The calculation of reference values of a segmented cam was successful.

UnexpectedFeedback

Enumeration name:

UnexpectedFeedback

Enumeration value:

57

Description:

Unintended return value

Issue

Cause

Solution

-

The function FC_CalcSystemCamNorm returned a negative value.

Please inform your Schneider Electric representative about this detected error.