FatalStopPLCopen 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. - Breaks the application in fatal error.

Inputs

IN : BOOL     Condition

Outputs

Q : BOOL      TRUE if performed

Remarks

This function breaks the current cycle and sets the Virtual Machine in "ERROR" mode. Restarting normal execution will be performed using the debugger.

The VM is stopped only if the IN argument is TRUE. The end of the current cycle is then not performed.