# MC-Basic:robot.RMAX

The maximal distance of the robot end-effector point from the robot base (i.e., the maximum of ${\displaystyle {\sqrt {x^{2}+y^{2}}}}$). This value is used to define a maximum radius which cannot be exceeded  by the robot path.

Initially (by calling CONFIGGROUP), this value is set to the value computed according to the robot segment lengths and min/max position values of joints 1 and 2. The value could be too large if the robot body or the width of the segments are significant.

 IMPORTANT Always check the RMAX value before configuring a new robot. The attached devices and parameters not taken into robot setup could significantly reduce the robots working area! The setting of the property is user responsibility. User has to take into account the cartesian offsets (tool, base, machinetable, workpiece) User has to take into account the robot and tool body shape.

This value is used in the pre-computation phase of the robot Cartesian movements (MOVES, CIRCLE). It is used to prevent robot collisions with its own body (base column).

## Syntax

<ROBOT>.RMax = <numeric expression>

All versions

Double

0.1-maxdouble

## Units

Robot position units

## Default

Depending on the robot parameter

## Examples

rmax = 160