Attention

IronPLC supports IEC 61131-3 Structured Text excluding I/O mapping.

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