L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 68

Advertising
background image

L-force | PLC Designer

Concepts and Base Components

66

DMS 4.1 EN 03/2011 TD29

Each POU consists of a declaration part and a implementation part. The body is written
in one of the available programming languages, e.g. IL, ST, SFC, FBD, LD or CFC.
»PLC Designer« supports all POUs described by the standard IEC 61131-3. If you want
to use these POUs in your project, you must include the library standard.library.

Calling POUs:
POUs can call other POUs. Recursions however are not allowed.
When a POU assigned to an application calls another POU just by its name (without
any namespace added), regard the following order of browsing the project for the POU
to be called:
1. Current application, 2. Library Manager of current application, 3. POUs view, 4.
Library Manager in POUs view.
If a POU with the name specified in the call is available in a library of the applications
library manager as well as as object in the POUs view, there is no syntax for explicitly
calling the POU in the POUs view just by using its name. In this case you would have to
move the concerned library from the applications library manager to the POUs view
library manager. Then you could call the POU from the POUs view just by its name (and
if needed that from the library by preceding the library namespace).

Note: The following fact should be described in the online help: When in a POU in an
Application, you call another POU just by its name (for example, "GetVersion"), »PLC
Designer« will try to find that POU first in the application, then in the Library
Manager in the application, then in POUs, then in the Library Manager in POUs. So
when you have two GetVersion functions, in Application/Library
Manager/Conveying and in POUs, the first one has priority. There is no syntax for
calling the second one - you have to move the Conveying library from the
Application library manager to a POUs Library Manager, then you can call the
Conveying GetVersion by "Conveying.GetVersion" and your own GetVersion by
"GetVersion".

Note: Regard the special POUs for implicit checks.

Advertising