Article translated with the assistance of AI tools. Images and parts of the content will still be reviewed.
This tutorial describes the procedures to enable the user to communicate a P5 HMI in OPC UA with an XPRESS PLC.
Components
Software: Fv Designer V1.6.64; MasterTool 3.52
PLC: XP340
Equipment: HMI P5150ZB
Communication Protocols: OPC UA
Tutorial Sections
1. Architecture
2. Development
2.1. Configuration in MasterTool
2.2. Configuration in Fv Designer
2.3. Finalization
1. ARCHITECTURE
In the architecture of this tutorial, the computer was connected via ethernet cable to an XP340 PLC and a P5150ZB HMI, as shown in the image below.
2. DEVELOPMENT
2.1. Configuration in MasterTool
Initially, it is necessary to add a list of global variables (GVL), which in this case was inserted in the "UserPOUs" folder by right-clicking on the folder, selecting "Add Object," and choosing the option "Global Variable List." Inside the folder, the variables to be used in the communication were placed.
Now, go to Symbol Configuration, select the GVL folder created previously, which in this case is "OPC_UA," and click "Compile."
2.2. Configuration in Fv Designer
Now it is necessary to configure the communication in Fv Designer. In the Project Explorer tab, at the bottom left corner, then in Link, and then click Add to add a new configuration.
Then configure as follows:
Here the IP of the PLC used in the communication and the OPC UA port were entered.
Now it is necessary to import the tags that will be used. Click Import, then Import again, and then open the folders until you find the GVL, then select it and click OK.
2.3. Finalization
To finish, download the project from MasterTool to the PLC. In Fv Designer, it is possible to create dynamics on the objects, linking the communication Tags as preferred, and then download to the HMI.
Comments
0 comments
Please sign in to leave a comment.