◆ CommandPositionGet()

virtual double CommandPositionGet ( )
pure virtual

Get the current command position.

ℹ This function is avaliable in RapidCode and RapidSequencer

Description:
CommandPositionGet returns the current command position of an axis.
Returns
(double) Current value of the axis' command position in User Units.
Sample Code:
Console.WriteLine("CommandPosition: " + axis.CommandPositionGet());
RapidSetup:
Go to axis screen. In the image below, CommandPositionGet returns the value in the Command Position text box. In the image, the command position is: 4525826
Axis_PositionStatus.jpg
Topics:
Position Methods
See also
CommandPositionSet
Examples
MultiaxisMotion.cpp, and PathMotion.cpp.