A program is a POU that yields one or more values when executed. All values remain unchanged after program execution until the next execution. The call order of programs in an application are defined in task objects.
You add the object to the application or the project by clicking “Project Add Object POU”. In the device tree and in the “POUs” view, the program POUs have the “(PRG)” suffix.
The editor of a program consists of the declaration part and the implementation part.
The top line of the declaration part contains the following declaration:
PROGRAM <program>
-
Calling a program