RETURN  RET  RETC  RETNC  RETCN

Statement - Jump to the end of the program.

Remarks

  • When used within an action block of a SFC step, the RETURN statement jumps to the end of the action block.

FBD Language Example

  • The return statement is represented by the <RETURN> symbol.
    • The input of the symbol must be connected to a valid Boolean signal.
    • The jump is performed only if the input is TRUE.

In this example, the TON block will not be called if bIgnore is TRUE.

FFLD Language Example

  • The <RETURN> symbol is used as a coil at the end of a rung.
    • The jump is performed only if the rung state is TRUE.

In this example, all the networks above 5 are skipped if ENABLE is FALSE.

IL Language Example

Not available.

ST Language Example

IF NOT bEnable THEN
   RETURN;
END_IF;
(* the rest of the program is not executed if bEnable is FALSE *)

See Also