Attention

IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.

RETURN

The RETURN statement causes an early exit from the current program organization unit.

IEC 61131-3

Section 3.3.2.5

Support

Supported

Syntax

RETURN ;

Description

RETURN terminates execution of the current program, function, or function block. In a function, the return value is the last value assigned to the function name before RETURN executes. In a program or function block, execution resumes at the caller.

Example

See Also