The purpose of this tutorial is to explain how to insert the Util library into a MasterTool X project.
Components
Equipment: 1 computer/laptop.
Software: MasterTool X
Tutorial Sections
- ARCHITECTURE
- DEVELOPMENT
1. ARCHITECTURE
A computer/laptop will be required to use MasterTool X.
Figure 1. Computer running MasterTool X
2. DEVELOPMENT
During the development of a project in MasterTool IEC XE, it may be necessary to use features that are not available by default in the environment. For this, the software allows the addition of complementary libraries, which expand the project’s functionalities.
These libraries may contain:
- Additional functions
- Function blocks
- Operators
- Specific resources for certain applications
Proper use of libraries makes the project more complete, modular, and scalable.
Inserting libraries into the project
To add a new library to the project, follow the steps below:
- In the project tree, locate the item Library Manager.
- Right-click on it.
- Select the option Add Library.
After this action, a window (popup) will open containing the libraries available in the environment.
Figure 2. Accessing the Library Manager
Library selection
In the selection window, the user can locate the desired library in two ways:
Option 1 – Navigation through the structure:
- Navigate to:
Application → Common → Util - Select the desired library
- Confirm the selection
Figure 3. 1st way to add a library to the project
Option 2 – Direct search:
- Use the search field located at the top of the window
- Type the name of the desired library (example: Util)
- Select the library from the displayed list
- Confirm the selection
Figure 4. 2nd way to add a library to the project
After insertion
Once added:
- The library will appear listed inside the Library Manager
- Its resources will be available for use in the project
- It is not necessary to restart the software
Figure 5. Verifying the insertion of the library into the project
Best practices
- Add only libraries that are truly necessary for the project
- Avoid excess libraries to prevent overloading the project
- Use reliable libraries compatible with the controller
Practical application
Adding libraries is used when the programmer needs to:
- Expand system functionalities
- Use specific features not available by default
- Standardize solutions using existing libraries
In summary, using the Library Manager allows adding complementary libraries to the project, expanding development possibilities and making the logic more robust and flexible within MasterTool X.
Comments
0 comments
Please sign in to leave a comment.