Delete the MotionController and all its objects.
- Description:
- Deletes the MotionController pointer and all the objects it created. This includes all of the first-class RapidCode objects (Axis, MultiAxis, IO, IOPoint, etc.). After a MotionController and all its objects have been deleted, you can use Create() again.
- Sample Code:
- Note
- RapidCode object destructors are private. Delete() provides users a method to clean up all RapidCode objects. This method is required if you are planning to re-create the MotionController or to fully destroy (and free) all objects when you application closes.
- See also
- CreateFromSoftware, Create
- Examples
- AbsoluteMotion.cpp, AxisSettling.cpp, AxisStatus.cpp, Camming.cpp, ConfigAmpFault.cpp, ControllerInterrupts.cpp, CustomEtherCATHome.cpp, CustomHome.cpp, DedicatedIO.cpp, ErrorLog.cpp, FeedRate.cpp, FinalVelocity.cpp, Gearing.cpp, HardwareLimits.cpp, Home.cpp, HomeToNegativeLimit.cpp, HomingWithAKDdrive.cpp, IOwithAKD.cpp, Memory.cpp, MotionHoldReleasedByDigitalInput.cpp, MotionHoldReleasedByPosition.cpp, MotionHoldReleasedBySoftwareAddress.cpp, MultiaxisMotion.cpp, PathMotion.cpp, PhantomAxis.cpp, PointToPointMultiaxisMotion.cpp, PTmotion.cpp, PTmotionWhileStopping.cpp, PVTmotion.cpp, PVTmotionMultiAxis.cpp, Recorder.cpp, RelativeMotion.cpp, SCurveMotion.cpp, SettleCriteria.cpp, SetUserUnits.cpp, SingleAxisSyncOutputs.cpp, StopRate.cpp, StreamingMotionBufferManagement.cpp, SyncInterrupt.cpp, SyncOutputWithMotion.cpp, Template.cpp, UpdateBufferPoints.cpp, UserLimitDigitalInputAction.cpp, UserLimitDigitalInputOneCondition.cpp, UserLimitDigitalInputTwoCondition.cpp, UserLimitGainChangeBasedOnPosition.cpp, UserLimitPositionOneCondition.cpp, UserLimitStateAction.cpp, and VelocitySetByAnalogInputValue.cpp.