MLMotionRstErr

PLCopen motion icon Pipe Network motion icon

 FunctionClosed 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 EtherCATClosed ***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. MLMotionRstErr will return the motion engine status to the Stopped state.

Returns TRUE if the function succeeded.

Return Type

BOOL

ST Language

//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;

FBD Language

FFLD Language

See Also