In this tutorial, you will learn the guidelines and procedures to simulate a simple logic and communicate
Components
Software: MasterTool IEC XE 3.34
PLC: XP340; Firmware: 1.11.10.0; NX3020; Firmware: 1.10.8.0
Ethernet Cable
Tutorial Sections
1. ARCHITECTURE
2. DEVELOPMENT
2.1 Creating a new project in Mastertool
2.2 Add Device in NX3020 scanner
2.3 Add device in XP340 ServeR
3.0 VIDEO
1. ARCHITECTURE
2. DEVELOPMENT
We will monitor the variables communicating through two pages of MasterTool.
2.1. Creating a new project in Mastertool
Create a new project by clicking on "New Project", enter the name and the folder path where you want to save it.
For this simulation we will use the XP 340 and the NX 3020, since the NX3020 will be the Adapter we must open a program to configure it first, using it as hardware. So we will select the NX3020 and the programming language as LADDER; click next ensuring all languages are in ladder until "FINISH" appears and then the program will open.
NOTE: the communication simulation was done with the NX3020 but it could be ANOTHER CPU that you have physically.
2.2. Add Device NX3020 Scanner
Right-click on NET1 and select the option "Add device" >> Fieldbusses click on Ethernet IP >> Ethernet IP Interface select and click "Add".
After that, select the added device, click again on Ethernet IP and select the Ethernet IP adapter option, double-click and close the window.
Select the added Ethernet IP Adapter (last device added), right-click >> add device. In the next window, click again on Ethernet IP and add 2 modules and click close.
The configuration of the added devices will look like the image below.
Double-click on one of the modules and the parameterization window will open. One of the modules will be configured as Byte Input module and the other as Byte Output Module.
Click again on the Ethernet IP Adapter, click on export EDS file and select a location to save the file. After that, download the file to the adapter CPU and set it to RUN.
2.3 Add device in XP340 Server
Open a new project, now choosing the CPU you are using as Scanner.
Right-click on NET1 then click on Fieldbusses >> Ethernet/IP Interface >> select Ethernet IP Interface and click add.
With the add devices window still open, select the added module, click on Ethernet/IP Scanner >> select Ethernet IP Scanner and click add.
Now we will install the adapter configuration file. In Tools >> device repository. Click Install and look for your file that you saved previously, when we configured the adapter.
Look for the EDS configuration file and click open. It will show that it was added, then click close.
Select the Ethernet IP Scanner device, right-click>> add device and add the Ethernet IP Adapter device, click add and close
In the EthernetIP_Adapter tab click on general and enter the IP address of your PLC that will be the Adapter slave, that is, the address of the PLC that was loaded with the first program.
Select your network master PLC and download the program by clicking on the gear Then split the screen between the MasterTool project for the NX3020 (PLC Adapter) with the project for the XP 340 (scanner)
3. VIDEO
These videos show the same procedure.
Part 1
Part 2
Comments
0 comments
Please sign in to leave a comment.