Insert' 'additional library, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 407

Advertising
background image

L-force | PLC Designer

The Resources



DMS 3.2 EN 02/2011 TD29

405

If you have implemented POUs in other programming languages, e.g. C, and want to
get them into a library, then save the project using data type External Library *.lib).
You will get the library file but additionally a file with the extension "*.h". This file is
structured like a C header file and contains the declarations of all POUs, data types
and global variables, which are available with the library. If an external library is used
in a project, then in simulation mode that implementation of the POUs will be
executed, which was written with »PLC Designer«; but on the target the C-written
implementation will be processed.

If you want to add licensing information to a library, then press button Edit license
info...
and insert the appropriate settings in the dialog 'Edit Licensing Information'.
See the corresponding description at 'File' 'Save as...' resp. at License Management in
»PLC Designer«.

8.5.4

'Insert' 'Additional Library'

With this command you can attach an additional library to your project.

The command opens the dialog for opening a file. If the currently set directory does
not contain the desired library, you can select another directory in field Library
directory
where all directories will be offered, which are defined in 'Project' 'Options'
'Directories' 'Libraries' (File type "*.lib"). Choose the desired library - multiple selection

is possible - and confirm with OK. The dialog will close and the library gets inserted to
the Library Manager. Now you can use the objects of the library in the project like
user-defined objects.

Library paths

Regard which libraries directories are currently defined in the project options. If you
insert a library from a directory which is not defined there, the library will be entered

with the respective path.

Example: You insert library standard.lib from directory
"D:\plcdesigner\libraries\standard".

• If this directory is defined in the project options, the entry in the library manager

will be: "standard.lib <date and time of file>".

• If in the project options there is just defined a directory "D:\plcdesigner\libraries",

then the entry in the library manager will be: "standard\standard.lib <date and
time of file>".

• If no matching directory at all is defined in the project options, then the complete

path will be entered: "D:\plcdesigner\libraries\standard\standard.lib <date and
time of file>".

Advertising