There are many ways for EVE UN200 and S7-300 to communicate: one way is to build a DP network through EM277, with S7-300 as the DP master and S7-200 as the DP slave; another way is for S7-300 to communicate with EVE UN200 via MODBUS through EVE CP341; there are other ways as well. The following describes the specific process and steps of the first way.
For S7-300 and EVE UN200 to communicate via PROFIBUS DP through EVE EM277, the S7-300 station needs to be configured in STEP7. In the EVE UN200 system, no communication configuration or programming is required. You only need to organize and store the data to be communicated in the V memory area, and make sure it corresponds to the hardware I/O address of the EVE EM277 slave station configured in the S7-300.
Insert an S7-300 station:
Download a GSD file for the EVE EM277 from the EVE official website:
In the STEP7 hardware configuration window, select the menu Option -> Install new GSD , import the Yiwei EM277 GSD file, and install the EM277 slave configuration file, as shown in the following figure:
After importing the GSD file, locate the EM277 slave station in the device selection list on the right . In the find: dialog box, type EM 277 and click find. Locate EM277 PROFIBUS-DP, drag and drop the EM277 PROFIBUS DP onto the configured PROFIBUS(1):DP master system. Release the mouse when a "+" sign appears. Also, select a communication method based on your communication byte count. In this example, 8 bytes input/8 bytes output is selected, as shown in the following figure:
Double-click the UN277 icon in the image above to bring up the "Properties - DP Slave" settings dialog box . Click the "PROFIBUS..." button to set the address of the EM277 (Note: the set address must be consistent with the DIP switch of the EM277).
Enable parameter assignment:
Enter the offset (I/O offset) of the V variable area in the EVE UN200 relative to VB0 corresponding to the EM277 address. This offset can be entered arbitrarily, as long as the VB variable area in the EVE UN200 is not used by the UN200 program.
Double-click the EM277 component to bring up the Properties – DP slave dialog box as shown in the figure . You can modify the address of EM277. This address corresponds to the address configured in S7-300. Therefore, this address cannot be the same as other configured addresses in S7-300. You can use the system default address or set it yourself.
Below are the configuration addresses for other hardware in the S7-300:
The addresses 0...7 of EM277 above correspond to PIB0-PIB7 and PQB0-PQB7 in S7_300. Since the offset of the variable in UN200 is 1000, PQB0-PQB7 corresponds to VB1000-VB1007 in UN200, and PIB0-PIB7 corresponds to VB1008-VB1015 in UN200. That is, when PQB0-PIB7 and PIB0-PQB7 are operated on, it is actually operating on VB1000-VB1007 and VB1008-VB1015 in UN200 at the same time.
The above command means to transfer the data in VB1010 of the EVE UN200 to MB2 of the S7-300.
Finally, set the DIP switch address of the EM277 hardware to be consistent with the DP address of the EM277 configured in the S7-300. To reiterate, after the above configuration, no communication-related programs need to be written in either the EVE UN200 or the S7-300. If MPI communication is used, no program needs to be written in the EVE UN200, but a communication program needs to be written in the S7-300.
For more services, please follow Yiwei's WeChat service account (unimat2014)!