Console.WriteLine("📜 Axis Homing: AKD Drive");
try
{
{
Console.WriteLine("Network not started. Please start it before running this app.");
return;
}
Axis axis = controller.
AxisGet(Constants.AXIS_0_INDEX);
{
Console.WriteLine("Wrong Axis type. This sample requires an AKD Axis.");
return;
}
System.Threading.Thread.Sleep(100);
Console.WriteLine("HOME.MOVE command sent");
UInt16 statusWord;
int isHomed = 0;
while (isHomed != 1)
{
isHomed = statusWord >> 12;
}
Console.WriteLine("Axis homed");
}
finally
{
}
static void CheckErrors(RapidCodeObject rsiObject)
Checks for errors in the given RapidCodeObject and throws an exception if any non-warning errors are ...
Helpers class provides static methods for common tasks in RMP applications.
void OriginPositionSet(double position)
Set the origin position.
void OperationModeSet(RSIOperationMode mode)
Set the axis operation mode.
NetworkNode * NetworkNode
Gets the associated NetworkNode object.
void ErrorLimitActionSet(RSIAction action)
Set the action that will occur when the Error Limit Event triggers.
Represents a single axis of motion control. This class provides an interface for commanding motion,...
Axis * AxisGet(int32_t axisNumber)
AxisGet returns a pointer to an Axis object and initializes its internals.
RSINetworkState NetworkStateGet()
static MotionController * Get()
Get an already running RMP EtherCAT controller.
void Delete(void)
Delete the MotionController and all its objects.
Represents the RMP soft motion controller. This class provides an interface to general controller con...
char * AKDASCIICommand(const char *const command)
Send a Kollmorgen AKD ASCII command (NodeType must equal KOLLMORGEN_AKD)
uint16_t StatusWordGet(int32_t axisIndex)
Get the DS402 status word.
RSINodeType TypeGet()
Get the node type, as determined by the Vendor ID and Product Code.
void ClearFaults()
Clear all faults for an Axis or MultiAxis.
void Abort()
Abort an axis.
int32_t AmpEnableSet(bool enable, int32_t ampActiveTimeoutMilliseconds=AmpEnableTimeoutMillisecondsDefault, bool overrideRestrictedState=false)
Enable all amplifiers.
int32_t NumberGet()
Get the axis number.
RSINetworkState
State of network.
RSIAction
Action to perform on an Axis.
RSINodeType
Valid Node types.
RSIOperationMode
DS402 modes of operation.