Project elements
POUs
A POU (Program Organisation Unit) contains a precisely defined part of the program for modularisation and structuring. The POU has a defined interface with inputs and outputs and can be called and executed multiple times. POUs can be programs, functions or function blocks.
Configuration
Access Variablen
Access variables are variables that are also available outside the program. They are used to display and describe values in the HMI or to establish connections to the program via data connections.
Config Variables
Can be used to give initial values to certain variables in different POUs. These are defined via the project tree under Config Variables.
Tasks
Tasks control the execution of programs, functions and function blocks. They can be executed cyclically or trigger-controlled.
Data types
Data types are separate definitions of data types that can be used throughout the entire project.
// Data Type
TYPE
ENERGY : REAL;
END_TYPE
// POU
VAR_INPUT
EnergyInput : ENERGY;
END_VAR