The objective of this tutorial is to demonstrate the insertion of parallel contacts to create an OR logic in a MasterTool X project.
Components
Equipment: 1 computer/notebook.
Software: MasterTool X
Tutorial Sections
1. ARCHITECTURE
2. DEVELOPMENT
1. ARCHITECTURE
A computer/notebook will be required to use MasterTool X.
Figure 1. Computer running MasterTool X
2. DEVELOPMENT
With UserPrg open, at least one contact or block must already be inserted in the network, as the parallel contact will be added in relation to an existing element.
The parallel contact can be inserted in the following ways:
- Top menu:
Select the existing contact in the logic and click on the Insert Parallel Contact Below option. - Context menu (right-click):
Right-click on the existing contact or block and select Insert Parallel Contact Below. - Toolbox (right side of the screen):
Select the parallel contact, click and drag it to the logic area. During the drag, the software will display visual indicators showing the points where it is possible to insert the parallel contact.
Figure 2. Inserting parallel contacts to build OR logic
Building the OR logic
- Insert a normally open contact into the network.
- Select this contact and add a second parallel contact, using one of the options described.
- Associate a variable with each contact.
- At the end of the network, insert a coil associated with the output variable.
This structure represents the OR logic, where the coil will be activated whenever any of the parallel contacts is in the TRUE state.
Figure 3. OR Logic Construction
After assembling the logic with two contacts in parallel and the respective coil, it is necessary to download the application so that the program can be executed.
To do this, log in to the project and put the CPU in RUN mode. With the program running, the user can manipulate the variables associated with the contacts, either through Ladder logic or the variable table, changing their values to verify the operation of the OR logic.
This type of logic is commonly used for:
- Alternative commands
- Activation by multiple conditions
- Selection of operating modes
Figure 4. OR Logic Operation
Comments
0 comments
Please sign in to leave a comment.