Chapter 4 - Software
62
From the variable properties dialog, select
l
Creating a Programming Organization Unit
Logical Program Organization Units (POUs) are the language
elements of a program. They are small, independent software units
containing the program code. The name of a POU must be unique
within the project.
There are three different POU types:
: contains a logical combination of function or function
Program
n
block calls. Programs have input and output parameters and they
can have an internal memory.
: POUs with multiple input/output parameters and
Function Block
n
internal memory.
: POUs with multiple input parameters and exactly one
Function
n
output parameter.
To create a POU
1.
Click
IEC Programming Workspace
Page, click
Program with IEC61131-3
2.
From the
Project Tree Window
>
/
Insert
Program
3.
Enter the
for the new POU.
Name
from the toolbar, or from Home
.
, right-click
/
Function Block
Function
, and click
Retain
and select
Logical POUs
, the
dialog appears.
Insert
.
OK