Siemens PLC丨virtual machine running emulator for physical host

foreword

The purpose of this tutorial is to save learning costs. You don’t need to purchase the PLC main body for development. It is similar to Siemens PLC丨PROFINET communication simulation (virtual communication). The difference lies in the location of the Portal emulator, one is on the physical host and the other is on the On the virtual machine, this article is to deploy the Portal on the virtual machine to save the storage space of the C drive, and at the same time make full use of the advantages of the virtual machine for low-cost learning and application.

virtual machine settings

Please refer to VMWare virtual machine network configuration. This blog post will introduce several methods of virtual machine network configuration. Here we need to use bridge mode, that is, to regard the virtual machine as a physical host and place the real physical host on the same network segment.

Virtual machine internal settings

emulator settings

Please refer to the author's past Siemens PLC丨PROFINET communication simulation (virtual communication) blog post, and confirm the emulator (two ticks and one removal).

Application of Ethernet address translation software NetToPLCsim

Consistent with the physical host, the only difference to note is that the "Network IP Address" item is the IP address of the virtual machine, where the virtual machine and the physical host must be on the same network segment (that is, the Ping connection).

Test on a physical host

Use the PLC-Recorder wave recording software for recording test, if you can access and record, it is a success.
insert image description here

epilogue

This article focuses on the setting of the same network segment between the virtual machine and the physical host, which needs to be paid attention to.
The software mentioned in the article is here, if you don’t have points, you can contact me directly

Guess you like

Origin blog.csdn.net/qq_44879321/article/details/123012174