RET

Unconditional Return from Function-Block

The RET command causes the return from a called function block to the main program.

NOTE
  • Operator only available in IL programming language.
  • This command takes no operand.

Example

POU header

In the POU header, all input and output variables are declared that are used for programming this function.

IL body

(* 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 *)

Modified on: 2019-01-25Feedback on this pagePanasonic hotline