APIs, concepts, guides, and more

◆ PositionSet()

void PositionSet ( double position)
Description:
PositionSet will set the value of axis' command and actual position. It also sets the origin position = (actualPos + originPos - x). This is the same method used for the "Zero Position" button in RapidSetup.
Parameters
positionUnits.
Sample Code:
// set the command and actual position to zero
axis.PositionSet(0);
RapidSetup:
Go to axis screen. In the image below, the "Zero Position" button is the same as calling PositionSet(0).
Note
This is the most useful and safe "PositionSet" method. This will void any Axis homing and set the HomeState to FALSE. You cannot set the position when the state is MOVING, STOPPING or STOPPED.
Examples
HelperFunctions.cs, MathBlock.cs, MotionHoldReleasedBySoftwareAddress.cpp, MultiaxisMotion.cpp, PVTmotionMultiAxis.cpp, PathMotion.cpp, PhantomAxis.cpp, SampleAppsHelper.h, SingleAxisSyncOutputs.cpp, SyncOutputWithMotion.cpp, Template.cs, UpdateBufferPoints.cpp, and VelocitySetByAnalogInputValue.cs.