Unconditional Return from Function-Block
The RET command causes the return from a called function block to the main program.
In the POU header, all input and output variables are declared that are used for programming this function.
(* In midst of some function block *) |
||
LD |
var_1 |
(* Load var_1 in accu *) |
MUL |
var_2 |
(* Multiply accu by var_2 *) |
ST |
var_3 |
(* Store accu in var_3 *) |
RET |
(* Continue execution with statement, following the statement that called the function block *) |