◆ OriginPositionSet()

virtual void OriginPositionSet ( double  position)
pure virtual

Set the origin position.

ℹ This function is avaliable in RapidCode and RapidSequencer

Description:
OriginPositionSet sets the origin position of an axis. The origin position will effect both the Command and Actual positions of an axis. It is typically used in homing.
Parameters
positionSet the origin to this value.
Sample Code:
// set the origin position to 100000
axis.OriginPositionSet(100000);
Note
It is better to Set the origin position, rather than the command and actual positions. Setting the origin wil set the HomeState to FALSE. This value is not set in Axis XML.
Topics:
Position Methods
See also
OriginPositionGet