1. Client Configuration
1. Open the MasterTool IEC XE software.
2. Choose the desired Nexto Xpress model.
3. Right-click on NET1 and then click on Add Device.
4. Now select Modbus Symbol Client and click on Add Device, as shown below:
5. Now right-click on the Modbus icon that was added, which is available below NET1, and click on Add Device
6. Now select Modbus Device and click on Add Device.
7. Now go to Application and then to UserPrg.
8. A contact named Server and a coil have been declared. To link this coil with an integrated output of the PLC, click on the name of the coil and then on the button, as shown below:
9. In the window that opened, open the icon Application > SystemGVLs > IntegratedIO > DigitalOutputs > Q06. Click OK.
10. Now press Enter to confirm the address.
11. It should look like this:
12. Now go to Modbus Device again and configure the mapping as follows. Enter UserPrg.Server in the Value Variable cell. This will cause the value read by the Client to be stored in the Server variable.
13. Now in General Parameters, configure it with the address of the communication Server.
14. Now in Requests, configure as follows:
Only one coil will be read and it will be at address 1 of the Server, as will be configured ahead.
15. Now just download the application to the PLC. With the Ethernet cable connected between the computer and the PLC, go to Easy Connection and confirm that the PLC's IP is on the same network as the computer. Once this is done, click on Device and then double-click on Gateway for the software to scan the devices connected to the network.
16. Select the desired IP to connect to it. The IP should appear in bold.
17. Click on Login and put the PLC in Run mode. Done, now the network Client is operating. It is possible to Logout from the PLC.
2. Server Configuration
1. Repeat steps 1, 2, and 3 of the Client configuration.
2. Now select Modbus Symbol Server and click on Add Device.
3. Double-click on the Server icon that was added and configure the tab as shown below and then click the button with the 3 dots (...):
4. Now open the icon Application > SystemGVLS > IntegratedIO > DigitalOutputs > Q05 and click Ok.
5. Now go to UserPrg and, as done in the Client configuration, configure the ladder as follows:
6. The network Server is configured. Now you need to put the Server PLC in run mode. To do this just follow the same procedure as for the Client, as shown previously.
7. To finish the application, just connect both PLCs in run mode via the Ethernet cable.
Important: be careful with the IP addresses. They must be configured so that communication is possible. This tutorial is for illustration purposes only; changes can be made as needed.
Comments
0 comments
Please sign in to leave a comment.