APIs, concepts, guides, and more

◆ Delete()

void Delete ( void )
Description:

Delete the MotionController and all its objects. This includes all of the first-class RapidCode objects (Axis, MultiAxis, NetworkNode, IO, IOPoint, etc.). After a MotionController and all its objects have been deleted, you can use Create() again.

Every single first-class object pointer will now be pointing to free'd memory. You will get access violation exceptions (or worse). We suggest setting the MotionController pointer to null after this is called.

Sample Code:
// -- C++ -- //
static MotionController * Create()
Initialize and start the RMP EtherCAT controller.
Represents the RMP soft motion controller. This class provides an interface to general controller con...
Definition rsi.h:794
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
AxisConfiguration.cpp, CalculateAccelerationFromVelocity.cpp, ControllerInterrupts.cpp, DifferenceOfPositionUserLimit.cpp, HardwareLimits.cpp, HelperFunctions.cs, MathBlock.cs, Memory.cpp, MotionHoldReleasedBySoftwareAddress.cpp, MultiaxisMotion.cpp, PVTmotionMultiAxis.cpp, PathMotion.cpp, PhantomAxis.cpp, PointToPoint.cpp, PrintNetworkTopology.cpp, RecordPerformance.cpp, SingleAxisSyncOutputs.cpp, StreamingMotionBufferManagement.cpp, SyncInterrupt.cpp, SyncOutputWithMotion.cpp, Template.cpp, Template.cs, UpdateBufferPoints.cpp, and UserLimitDigitalInputAction.cpp.