FB_RobotPSeries - SetControlLoopParameter (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

This chapter provides information on:

Task

Set parameter to influence the control loop of the Lexium P Robot axes.

Description

By calling up the method, a parameter can be adapted to influence the control loop of the Lexium P Robot axes.

To get the valid range for a control loop parameter, refer to the minimum and maximum values by calling the method GetControlLoopParameter().

ET_RobotPSeriesComponent.AxesAll corresponds to ET_RobotPSeriesComponent.AxisA, ET_RobotPSeriesComponent.AxisB and ET_RobotPSeriesComponent.AxisC.

Interface

Input

Data type

Description

i_etName

ET_ControlLoopParameter

Type of control loop parameter.

i_etComponent

ET_RobotPSeriesComponent

Component of the Lexium P Robot.

i_lrValue

LREAL

Value for the control loop parameter i_etName and for the component i_etComponent.

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 a diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output for the diagnostic.

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Diagnostic message

q_sMsg

STRING[80]

Event-triggered message that gives additional information on the diagnostic state.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

ControlLoopParameterSet

58

The control loop parameter is set.

OK

Ok

0

Successful

ExecutionAborted

RobotNotInitialized

89

The robot is not initialized.

InputParameterInvalid

ControlLoopParameterInvalid

59

The control loop parameter is invalid.

InputParameterInvalid

ParameterOutOfRange

30

The parameter is out of range.

InputParameterInvalid

RobotPSeriesComponentInvalid

28

The Lexium P Robot component is invalid.

ControlLoopParameterInvalid

Enumeration name:

ControlLoopParameterInvalid

Enumeration value:

59

Description:

The control loop parameter is invalid.

Issue

Cause

Solution

Setting the control loop parameter was unsuccessful.

The value at the input i_etName is invalid.

Ensure that at the input i_etName a valid control loop parameter has been transferred.

ControlLoopParameterSet

Enumeration name:

ControlLoopParameterSet

Enumeration value:

58

Description:

The control loop parameter is set.

Setting the control loop parameter was successful.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Successful

Method was called successfully.

ParameterOutOfRange

Enumeration name:

ParameterOutOfRange

Enumeration value:

30

Description:

The parameter is out of range.

Issue

Cause

Solution

Setting the control loop parameter was unsuccessful.

The value at the input i_lrValue is invalid.

At the input i_lrValue a value within the range must be transferred. Call method GetControlLoopParameter to read the minimum and maximum values.

RobotNotInitialized

Enumeration name:

RobotNotInitialized

Enumeration value:

89

Description:

The robot is not initialized.

Issue

Cause

Solution

Setting the control loop parameter was unsuccessful.

The robot is not initialized.

Ensure that the robot has been initialized successfully.

RobotPSeriesComponentInvalid

Enumeration name:

RobotPSeriesComponentInvalid

Enumeration value:

28

Description:

The Lexium P Robot component is invalid.

Issue

Cause

Solution

Setting the control loop parameter was unsuccessful.

The value at the input i_etComponent is invalid.

Ensure that at the input i_etComponent a valid component has been transferred.