Real COM Mode for NPort Modbus TCP master to the MGate 5101 -PBM-MN. 7.2.2. The first test is to write data to the Input module of the PROFIBUS sla ve. Moxa Tech Note PROFIBUS Configuration
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Moxa Tech Note PROFIBUS Configuration for Moxa MGate 5101-PBM-MN and Siemens S7-300
About Moxa Moxa manufactures one of the world’s leading brands of device networking solutions. Products include serial boards, USB-to-serial hubs, media converters, device servers, embedded computers, Ethernet I/O servers, terminal servers, Modbus gateways, industrial switches, and Ethernet-to-fiber converters. Our products are key components of many networking applications, including industrial automation, manufacturing, POS, and medical treatment facilities.
6. Moxa’s PROFIBUS device configuration ...................................................... 15 6.1. Install the GSD file ................................................................................15 6.2. Device configuration with MGate Manager ................................................16
7. Communication Test ................................................................................... 19 7.1. Create Variable Table.............................................................................19 7.2. Modify and monitor I/O data ..................................................................21
1. Introduction This application note describes the configuration of Moxa MGate device as a PROFIBUS DP master to connect to a Siemens S7-300 PLC as a PROFIBUS DP slave. One word input and one word output data are configured in this example.
5.1.1. Start SIMATIC Manager and create a new project by selecting File New. The user must assign a name for this project. In this example, we use “Demo1” as the project name.
Moxa Tech Note PROFIBUS Configuration for Moxa MGate 5101-PBM-MN and Siemens S7-300
5.2.2. Double-click the Hardware icon and the HW Config window will appear:
Drag the Rail item located under SIMATIC 300 RACK-300 (in the hardware catalog window on the right) to the upper half of the Station window on the left:
An empty grid will then appear in the upper half of the Station window as shown below:
Moxa Tech Note PROFIBUS Configuration for Moxa MGate 5101-PBM-MN and Siemens S7-300
5.2.3. You must add the proper version firmware for the CPU module hardware model. In the figure below, we use CPU 315-2 PN/DP as an example. Drag the proper version of the CPU module firmware from the Hardware Catalog window on the right and drop it into the empty grid in the Station window on the left.
You will then be prompted to enter the proper IP address for the CPU module:
Moxa Tech Note PROFIBUS Configuration for Moxa MGate 5101-PBM-MN and Siemens S7-300
Assign the address for PROFIBUS master module under the Parameters tab and click the New… button to create a new subnet.
5.3.2. Select the proper transmission rate for this subnet. After completing these modifications, click the OK button to return to the Properties – MPI/DP – (R0/S2.1) window.
Moxa Tech Note PROFIBUS Configuration for Moxa MGate 5101-PBM-MN and Siemens S7-300
5.3.3. Close the HW Config window and return to the main window of the “Demo1” project.
5.4. Create PROFIBUS slave device 5.4.1. Follow Step 5.2 to create a PROFIBUS slave device and name it “DP_Slave.”
5.4.2. Double-click on DP_Slave Hardware to open the HW Config window. Repeat steps 5.2.2 to 5.2.3 to add the proper CPU module to the PROFIBUS slave device.
5.4.3. Double-click on the MPI/DP field and the Properties – MPI/DP window will appear for you to configure the PROFIBUS DP module. Set the interface type to PROFIBUS.
Moxa Tech Note PROFIBUS Configuration for Moxa MGate 5101-PBM-MN and Siemens S7-300
5.4.4. Select PROFIBUS(1) to connect it to the subnet created in Step 5.3.2. Then click the OK button to return to the Properties – MPI/DP – (R0/S2.1) window.
5.4.5. Select the Operating Mode tab and set the mode to DP slave.
Moxa Tech Note PROFIBUS Configuration for Moxa MGate 5101-PBM-MN and Siemens S7-300
6.2.3. Select the PROFIBUS tab and click the PROFIBUS Settings button to start PROFIBUS configurations.
6.2.4. Select PROFIBUS AutoScan or click the AutoScan button to enable the AutoScan function to scan the network for the PROFIBUS slave device automatically.
Moxa Tech Note PROFIBUS Configuration for Moxa MGate 5101-PBM-MN and Siemens S7-300
6.2.5. The MGate 5101-PBM-MN will find the PROFIBUS slave device as shown below:
Based on the settings of Siemens S7-300, modify the “general ID” to: 1st general ID 2nd general ID 3rd general ID Select the checkbox as shown in the following screenshot:
Then click OK button and the MGate 5101-PBM-MN will finish the configuration for you.
6.2.6. After verifying all the settings, click File Save to save the configuration and click File Exit to exit the PROFIBUS Settings window.
Moxa Tech Note PROFIBUS Configuration for Moxa MGate 5101-PBM-MN and Siemens S7-300
6.2.7. On the main window, click the OK button to save the changes and the MGate
5101-PBM-MN will reboot for the changes to take effect.
7. Communication Test 7.1. Create Variable Table
To monitor the internal memory of the Siemens S7-300, add a Variable Table to modify or monitor the I/O modules we have created.
7.1.1. Return to the Step 7 in project “Demo1” and click DP_Slave CPU 315-2 PN/DP. You will then be able to select Insert S7 Block Variable Tables from the menu bar to add a Variable Table.
Moxa Tech Note PROFIBUS Configuration for Moxa MGate 5101-PBM-MN and Siemens S7-300