FC_DelSegProfile

 

FC_DelSegProfile - General Information

Overview

Type:

Function

Available as of:

V1.0.3.0

Versions:

Current version

Task

Delete a segment profile.

Description

This function deletes a segmented profile generated by FC_LoadSegProfile.

Interface

Output

Data type

Description

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic.

A value not equal to ET_Diag.Ok corresponds to an diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Diagnostic message

q_sMsg

STRING[80]

Event-triggered message which gives more detailed information on the diagnostic state.

Input/Output

Data type

Description

iq_stSegProfile

ST_SegProfile

Here, the variable used by FC_LoadSegProfile is transferred. This variable contains the IDs of the created profiles.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

SegIdInvalid

134

The SegId is invalid.

InputParameterInvalid

SegProfileIdInvalid

135

The SegProfileId is invalid.

UnexpectedProgramBehavior

ProfileAlreadyInUse

116

The profile is already in use.

UnexpectedProgramBehavior

UnexpectedFeedback

1

An unintended detected error occurred during execution.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The profile has been deleted successfully.

ProfileAlreadyInUse

Enumeration name:

ProfileAlreadyInUse

Enumeration value:

116

Description:

The profile is already in use.

Issue

Cause

Solution

-

The motion profile is already in use.

Verify the motion data.

SegIdInvalid

Enumeration name:

SegIdInvalid

Enumeration value:

134

Description:

The SegId is invalid.

Issue

Cause

Solution

-

A profile segment does not exist.

Verify the segment Ids iq_stSegProfile.adiSegId[ ].

Verify the flags iq_stSegProfile.axProfileLoaded[ ].

Verify the number of segments iq_stSegProfile.diNoOfSeg.

SegProfileIdInvalid

Enumeration name:

SegProfileIdInvalid

Enumeration value:

135

Description:

The SegProfileId is invalid.

Issue

Cause

Solution

-

The profile to be deleted does not exist.

Verify the profile Id iq_stSegProfile.diSegProfileId.

UnexpectedFeedback

Enumeration name:

UnexpectedFeedback

Enumeration value:

1

Description:

An unintended detected error occurred during execution.

Issue

Cause

Solution

-

An error occurred in the internal execution.

Please inform the support team about this error.