Learn how to configure different settings for an axis.
- Warning
- This is a sample program to assist in the integration of the RMP motion controller with your application. It may not contain all of the logic and safety features that your application requires. We recommend that you wire an external hardware emergency stop (e-stop) button for safety when using our code sample apps. Doing so will help ensure the safety of you and those around you and will prevent potential injury or damage.
The sample apps assume that the system (network, axes, I/O) are configured prior to running the code featured in the sample app. See the Configuration page for more information.
In this page:
📜 Axis: Hardware Limits
Learn how to configure Hardware Limits 📖 including trigger states, duration settings, and actions for axis safety and protection.
const int TRIGGER_STATE = 1;
const double DURATION = 0.01;
Source: axis-configuration.cpp
📜 Axis: Settling Criteria
Learn how to configure Settling 📖 criteria to determine when an axis has successfully reached its target position.
const double POSITION_TOLERANCE_FINE = 200;
const double POSITION_TOLERANCE_COARSE = 300;
const double VELOCITY_TOLERANCE = 12000;
const double SETTLING_TIME = 5;
Source: axis-configuration.cpp
📜 Axis: Stop Rate
Learn how to configure Stopping Rates 📖 for controlled deceleration when stopping axis motion.
const double STOP_RATE_DEFAULT = 1.0;
const double ESTOP_RATE_DEFAULT = 0.05;
const double ESTOP_DECELERATION_RATE = 1000;
Source: axis-configuration.cpp
📜 Axis: User Units
Learn how to configure Counts Per Unit (User Units) 📖 to set up proper scaling between user units and encoder counts.
const int ENCODER_RESOLUTION_BITS = 20;
const double USER_UNITS = std::pow(2, ENCODER_RESOLUTION_BITS);
Source: axis-configuration.cpp
📜 Axis: Phantom Axis
Learn how to create Phantom Axes 📖 that can be used for virtual axis operations.
Axis *axis = controller->AxisGet(AXIS_INDEX);
const double positionToleranceMax = std::numeric_limits<double>::max() / 10.0;
Source: phantom-axis.cpp