CDRFLEx.check_position_condition_abs
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 the check_position_condition_rel function for relative 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 |
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
bool CON1 = Drfl.check_position_condition_abs(FORCE_AXIS_X, -5, 0, COORDINATE_SYSTEM_WORLD);
bool CON2 = Drfl.check_position_condition_abs(FORCE_AXIS_Y, -10000, 700);
bool CON3 = Drfl.check_position_condition_abs(FORCE_AXIS_Z, -10, -5);
bool CON4 = Drfl.check_position_condition_abs(FORCE_AXIS_Z, 30, -10000);
bool CON5 = Drfl.check_position_condition_abs(FORCE_AXIS_Z, -10, -5, COORDINATE_SYSTEM_BASE);
bool CON6 = Drfl.check_position_condition_abs(FORCE_AXIS_Z, -10, -5);