MLMotionRstErr
Function A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Clears motion engine errors, motion bus driver errors, and EtherCAT ***EtherCAT is an open, high-performance Ethernet-based fieldbus system. The development goal of EtherCAT was to apply Ethernet to automation applications which require short data update times (also called cycle times) with low communication jitter (for synchronization purposes) and low hardware costs network errors.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
|
BOOL |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Remarks
- Re-initializes the motion engine after a motion error.
- MLMotionRstErr returns the motion engine status to the Stopped state if an error condition was cleared successfully.
- Motion errors are for example communication errors of the motion bus.
- Returns TRUE if the function succeeded.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Reset and restart motion engine
//Done to restart EtherCAT after controller error such as
//E30 or E33 that stops network communication
//First have to reset error, then start network again
ON ResetMotionEngineError DO
MLMotionRstErr();
END_DO;
MotionEngineStatus:= MLMotionStatus();
ON StartMotionEngine DO
MLMotionStart();
END_DO;
See Also