beautypg.com

Compiling and building a library, Figure 11.4—build udfb library for execution – Watlow LogicPro User Manual

Page 190

background image

Chapter 11: User Defined Function Blocks

LogicPro User’s Guide

174

Watlow Anafaze

Doc.# 28002-00 Rev 3.00

Compiling and Building a Library

Once the code is written and is ready to test, the user can
either:

Compile the UDFB file.

Build a library.

To compile the UDFB file from within the editor window:

1.

Select the

File

menu.

2.

Select the

UDFB

menu.

3.

Select

Compile for Execution

-or-

Compile for Simulation

.

Either of these options causes LogicPro to compile your
UDFB. A DOS screen will appear momentarily as the
compiler works. Once the DOS screen disappears, your
UDFB is compiled. The simulation library will be used in
simulation mode and the execution library in runtime.

To build a library:

1.

Select

Build Execution Lib

from the

UDFB

menu.

The

Build UDFB Library for Execution

dialog box,

shown in Figure 11.4, appears.

2.

Click the UDFBs that you want to put into the library
since only the selected UDFBs will be in the finished
library.

3.

Click

[OK]

to compile the files and build a library.

Figure 11.4 Build UDFB Library for Execution

The library is named

xxxUDFB.lib

with a prefix indicating

the kind of resource that is currently opened.