FB_RobotSSeries - SetPositionLimitAxis (Method)

Overview

Type:

Method

Available as of:

V2.4.1.0

Versions:

Current version

This chapter provides information on:

oTask

oDescription

oInterface

oDiagnostic Messages

Task

Set limits for the valid range of axis positions.

Description

By calling the method, the valid range of the axis of a Lexium S Robot can be adapted.

To disable the functionality:

oThe values can be set to the default values (see hardware manual).

oThe values can be set to values greater than the default values.

oThe values can be set to i_lrMinValue = i_lrMaxValue = 0.0.

Interface

Input

Data type

Description

i_etComponent

ET_RobotSSeriesComponent

Component of the Lexium S Robot.

Valid values are:

oET_RobotSSeriesComponent.AxisA

oET_RobotSSeriesComponent.AxisB

i_lrMinValue

LREAL

Minimum limit for the valid range of an axis.

I_lrMaxValue

LREAL

Maximum limit for the valid range of an axis.

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

Ok

0

Ok

InputParameterInvalid

ParameterOutOfRange

30

The parameter is out of range.

InputParameterInvalid

RobotSSeriesComponentInvalid

94

The Lexium S Robot component is invalid.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The request to change the limits of an axis was successful.

ParameterOutOfRange

Enumeration name:

ParameterOutOfRange

Enumeration value:

30

Description:

The parameter is out of range.

Issue

Cause

Solution

The request to change the limits of an axis was unsuccessful.

The value transferred at the input i_lrMinValue is greater than or equal to the value transferred at the input i_lrMaxValue.

Ensure that the value transferred at the input i_lrMaxValue is greater than the value transferred at the input i_lrMinValue.

RobotSSeriesComponentInvalid

Enumeration name:

RobotSSeriesComponentInvalid

Enumeration value:

94

Description:

The Lexium S Robot component is invalid.

Issue

Cause

Solution

The request to change the limits of an axis was unsuccessful.

The value transferred at the input i_etComponent was indeterminable.

Ensure that a valid value of ET_RobotSSeriesComponent is transferred at the input i_etComponent.