MLMotionRstErr

PLCopen motion icon Pipe Network motion icon

 Function - Clears motion engine errors, motion bus driver errors, and EtherCAT network errors.

Inputs


  • There are no Inputs for this function / function block.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

FALSE, TRUE

N/A

Returns TRUE if errors have been reset.

See Function - General Rules.

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