Trusted
Libraries

Each
Trusted®
project contains one global library. The global library is made up of functions and function blocks available for reuse throughout a
Trusted
project. Using the IEC 61131-3 languages, you can write functions (FBD, LD, or ST) and function blocks (FBD, LD, or ST). You cannot remove the global library from a project.
Library functions and function blocks must have unique names within a project. When these have the same names as those defined in a project in which the functions or function blocks are used, only those from the project are recognized.
Library functions and function blocks are compiled with the project. However, you can verify the syntax for the Global library.
Tasks to perform with libraries are:
Task
Procedure
Add a function or function block to the library
  1. In the
    Application View
    , expand
    Libraries
    , then
    Global
    , and then right-click the
    Functions
    or
    Function Blocks
    element, and then do one of these:
    • Right-click the
      Functions
      element, then point to
      Add Functions
      , and then click the required programming language.
    • Right-click the
      Function Blocks
      element, then point to
      Add Function Blocks
      , and then click the required programming language.
  2. To define the parameters for the function or function block, right-click the required element, and then click
    Parameters
    .
Copy and paste function or function block
Copy and paste functions and function blocks between the
Global
library and the project, and vice versa.
  1. In the
    Application View
    , right-click the function block in the
    Global
    library, and then click
    Copy
    .
  2. Right-click the respective section of the library or project, and then click
    Paste
    .
Export a function or function block
Export functions or function blocks as exchange files (*.txf) to import them into projects or global libraries on different workstations.
TIP: Exporting a function or function block also exports its local variables and local defined words.
In the
Application View
, right-click the function or function block, and then click
Export...
.
  1. In the
    Save As
    dialog box, browse for the location to store the
    Trusted
    exchange file, and then click
    Save
    . The function or function block is exported as an exchange file.
Add a function or function block from an exchange file
Import functions or function blocks previously exported as exchange files (*.txf).
  1. In the
    Application View
    , right-click the
    Functions
    or
    Function Blocks
    element of the global library, and do one of the following:
    • Point to
      Add Functions
      , and then click
      Existing Function...
      .
    • Point to
      Add Function Blocks
      , and then click
      Existing Function Block...
      .
  2. In the
    Select Exchange File
    dialog box, locate the
    Trusted
    exchange file containing the function or function block, and then click
    Open
    . The function or function block is imported into the project.
Drag and drop a function or function block between the Global library and the project
  • From the
    Global
    library, drag the function or function block to the respective section in the
    Trusted
    project or vice versa.
Verify syntax of library elements
In the
Application View
, expand
Libraries
, then right-click
Global
, and then click
Verify
.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal