MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ UserUnitsGet()

double UserUnitsGet ( )
pure virtual

Get the number of counts per User Unit.

Description:
UserUnitsGet() returns the number of counts per defined User Unit. Useful if you'd prefer your default unit to be something other than encoder counts.
Returns
(double) Current counts per User Unit.
Sample Code:
Console.WriteLine("There are " + axis.UserUnitsGet() + "counts per User Unit.");
RapidSetup:
Go to axis screen->Motion and Tuning. In the image below, UserUnitsGet returns the value in the Counts per Unit box shown in the Motion Parameters box. It currently set to 1 which means units are in counts.
Axis_Motion_Profile_and_Parameters.jpg
See also
UserUnitsSet
 
Examples
SetUserUnits.cpp, and SetUserUnits.cs.