Skip to main content
Skip table of contents

CDRFLEx.check_position_condition_rel

Features

This function checks the status of the given position. This condition can be repeated with the while or if statement. Axis and pos of input paramets are based on the ref coordinate(eTargetRef).

In case of eForceReference = COORDINATE_SYSTEM_TOOL, pos(fTargetPos) should be defined in BASE coordinate.

→ Refer to check_position_condition_abs function for absolute movement criteria

Parameter

Parameter Name

Data Type

Default Value

Description

eForceAxis

enum.FORCE_AXIS

-

Refer to the Definition of Constant and Enumeration Type

fTargetMin

float

-

Minimum value

fTargetMax

float

-

Maximum value

fTargetPos

float[6]

-

Target task location for six axes

eForceReference

enum.COORDINATE_SYSTEM

COORDINATE_SYSTEM_TOOL

Refer to the Definition of Constant and Enumeration Type

Return

Value

Description

1

The condition is True

0

The condition is False

Example

CPP
float posx1[6] = {400, 500, 800, 0, 180, 0};
bool CON7 = Drfl.check_position_condition_rel(FORCE_AXIS_Z, -10, -5, posx1, COORDINATE_SYSTEM_TOOL);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.