POU
POUs (Program Organization Units) are the basic building blocks of a PLC program. They can be functions, function blocks, or programs. POUs are created in logiccloud via the project tree. Within the node POUs you can create a new POU. To do this, right-click or go to the icon with the three dots and select Add POU, assign a name, select the type of POU you want to create, and the language you want to use. The structure is created automatically.
POU types
There are three types of POUs in logiccloud:
- Function: A function is a block of code that performs a specific task. Functions can be called with or without parameters.
- Function block: A function block is a block of code that performs a specific task. Function blocks can have input and output variables and can be called multiple times.
- Program: A program is a block of code that performs a specific task. Programs can have input and output variables and can be called multiple times.