The RMP Motion Controller API

◆ CreateFromSoftware() [1/3]

static MotionController* CreateFromSoftware ( )
static

Initialize and start the RMP EtherCAT controller.

Description:
CreateFromSoftware returns a pointer to the MotionController object it represents, and starts RMP.rta if it is not already running
Returns
(MotionController*) A static pointer to the controller specified.

ℹ This function is avaliable in RapidCode

Part of the Create and Initialize RapidCode Objects method group.

Sample Code:
Initialize the RMP EtherCAT motion controller.
// -- C++ -- //
MotionController *controller = MotionController::CreateFromSoftware();
// -- C# -- //
MotionController myController = MotionController.CreateFromSoftware();
Note
The controller is initialized when this function is called. During the initialization process, if RMP.rta is not running, it will be started. The EtherCAT network is NOT started.
See also
NetworkStart, NetworkStateGet, Delete
Examples
ControllerInterrupts.cpp, Gantry.cpp, HardwareLimits.cpp, Memory.cpp, MotionHoldReleasedBySoftwareAddress.cpp, MultiaxisMotion.cpp, PathMotion.cpp, PVTmotionMultiAxis.cpp, SingleAxisSyncOutputs.cpp, StreamingMotionBufferManagement.cpp, SyncInterrupt.cpp, SyncOutputWithMotion.cpp, Template.cpp, UpdateBufferPoints.cpp, and UserLimitDigitalInputAction.cpp.