Pointers and Function Blocks

Function Block 

A function block is a POU, which returns one or several values when executed. The values of the output variables and the internal variables are retained until the next execution. This means that the function block may not return the same output values, if it is called repeatedly with the same input variables. Function blocks can have methods and actions.

Download the sample from the link given above.

Next, let’s try to understand PLC data type at https://www.hemelix.com/plc/downloading-plc-program-to-actual-hardware/

Ask questions related to Hemelix sample code and design at Google group https://groups.google.com/g/hemelix