FB_TeachingFixedSystem - SetProcedureData (Method)

Overview

Type:

Method

Available as of:

V1.8.0.0

This chapter provides information on:

Task

Sets the data for the procedure.

Description

The method SetProcedureData (...) is used to set the data required by the procedure.

NOTE: When the method is called, all the stored samples are removed.

Access: PUBLIC

Interface

Input

Data type

Description

i_stData

ST_TeachingFixedSystemData

Data required by a fixed system teaching procedure.

Output

Data type

Description

q_xError

BOOL

TRUE: An error occurred during last command. For more information refer also to q_etResult and q_sResultMsg.

q_etResult

ET_Result

Provides diagnostic and status information.

If q_xError = FALSE, then q_etResult provides status information.

If q_xError = TRUE, then q_etResult provides diagnostic/error information.

The enumeration ET_Result contains the possible values of the POU operation results.

q_sResultMsg

STRING[80]

Provides additional information about the current status of the POU.

Diagnostic Messages

q_xError

q_etResult

Enumeration value of q_etResult

Description

FALSE

Ok

0

Success.

TRUE

NumberOfPointsAlongYInvalid

50

The number of points along the Y direction is invalid.

TRUE

XSpacingInvalid

48

The X spacing value is invalid.

TRUE

YSpacingInvalid

49

The Y spacing value is invalid.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Success.

Status message: Setting the data for the procedure was successful.

NumberOfPointsAlongYInvalid

Enumeration name:

NumberOfPointsAlongYInvalid

Enumeration value:

50

Description:

The number of points along the Y direction is invalid.

Issue

Cause

Solution

It is not possible to set the data for the teaching procedure.

i_stData.udiNumberOfPointsAlongY < 2 or > Gc_udiMaxNumberOfSamplesPerSet.

Verify that 2 <= i_stData.udiNumberOfPointsAlongY <= Gc_udiMaxNumberOfSamplesPerSet.

XSpacingInvalid

Enumeration name:

XSpacingInvalid

Enumeration value:

48

Description:

The X spacing value is invalid.

Issue

Cause

Solution

It is not possible to set the data for the teaching procedure.

i_stData.lrXSpacing < =0.

Verify that i_stData.lrXSpacing > 0.

YSpacingInvalid

Enumeration name:

YSpacingInvalid

Enumeration value:

49

Description:

The Y spacing value is invalid.

Issue

Cause

Solution

It is not possible to set the data for the teaching procedure.

i_stData.lrYSpacing < =0.

Verify that i_stData.lrYSpacing > 0.