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 driverClosed In computing and electronics, a driver is a software component allowing higher-level computer programs to interact with a computer hardware device. A driver typically communicates with the device through the computer bus or communications subsystem to which the hardware is connected. errors, and EtherCATClosed Ethernet ofr Control Automation Technology. EtherCAT® is an open, high-performance Ethernet-based fieldbus system. The development goal of EtherCAT is 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

//ResetClosed New start of the microprocessor. 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