<< Click to Display Table of Contents >> Navigation: »No topics above this level« RETURN statement |
mapp Services V5.16
The RETURN statement can be used to exit a POU (function, function block or program) prematurely.
If a RETURN statement is used in a function or function block, the program execution in the calling POU is continued immediately after the function or function block is called.
A RETURN statement in an action does not exit the POU; it only exits the action. Program execution continues in the calling POU immediately after the action is called.
RETURN;
IF Var1 < Var2 THEN
RETURN;
END_IF;