WinAC 是西门子的一款基于 PC 的自动化解决方案的软件控制器,允许在 PC 上执行实时功能、确定性的控制功能,简而言之就是一款“软PLC”。但是直接在 VMWare 里安装会发现软件是启动不起来的,需要做些处理才可以。如果你苦于没有一个真实的西门子 CPU 来做开发和调试,那么来试试本文这个方案吧。
一、安装
在《WINAC RTX 2010 Sp2 and VM》(https://support.industry.siemens.com/tf/ww/en/posts/winac-rtx-2010-sp2-and-vm/89078/?page=0&pageSize=10#top)里 LBEBENEK 给出了解决方案:
1.Create VM at hardware compatibility 9 Version. (1 processor with 2 cores , 1 Ethernet Bridged Network Adapter)
2.In Vmware 9 VMX file You must add this lines (very important):
ethernet0.virtualDev = “e1000e”
bios440.filename = “FUJITSU211_314.ROM”
3.Copy into VM folder file from attachment (ROM FILE).
4.Install WINAC RTX 2010 on OS
5.In station configuration Add in slot IF1 IE General card . If You prompted to install drivers from RTX then accept this. From Guest OS this card was removed. Its normal don,t panic .
文中提到的 ROM 下载:WINACRTX_VM.zip
二、原理
帮助文件里提到 WinAC 支持以下 IE General 网卡作为 PROFINET 接口:
- Intel 82573L (Intel PRO/1000 PL)
- Intel 82541PI (Intel PRO/1000 GT )
- Intel 82571EB (Intel PRO/1000 PT Dual Port)
- Intel 82574L (Intel 9301CT Gigabit CT )
上文修改网卡为 e1000e 目的为仿真82574网卡。Vmware文档说 “ E1000e: This feature emulates a newer model of Intel Gigabit NIC (number 82574) in the virtual hardware. This is known as the “e1000e” vNIC. e1000e is available only on hardware version 8 (and newer) virtual machines in vSphere 5. It is the default vNIC for Windows 8 and newer (Windows) guest operating systems. For Linux guests, e1000e is not available from the UI (e1000, flexible vmxnet, enhanced vmxnet, and vmxnet3 are available for Linux). ”
三、应用
1. PROFINET IO 通信
LT 尝试用来连接 ET200S,可以通信成功,但是不稳定:表现为过段时间通信就会中断,重新启动 CPU可以恢复,但是随后又会中断,反复如是。推测是 Vmware 的桥接网络性能不好导致。
为了排除是否是 VMWare 的桥接网络性能而导致的通信中断,LT又使用单独的 IPC 安装WinAC来测试 PROFINET-IO,结果连接很稳定。测试用 IPC 的网卡型号为 Intel I210 (PCI\VEN_8086&DEV_1533,参见 https://support.industry.siemens.com/cs/cr/en/view/99005716 Support of the new Ethernet interface controller Intel i210T for PROFINET (RT)),整体连接如下图:
2. S7 通信
测试PC 应用程序的 S7 通信,正常。
3. OUC 通信
测试 Open User Communication 通信,与PC通信,正常。
WinAC 支持以下 FB ( 摘自帮助文件 ) :
- FB 63 / TSEND / Send data to a remote partner via TCP
- FB 64 / TRCV / Receive data from a remote partner via TCP
- FB 65 / TCON / Establish connection
- FB 66 / TDISCON / Disconnect
- FB 67 / TUSEND / Send data to a remote partner via UDP
- FB 68 / TURVC / Receive data from a remote partner via UDP
4. ModbusTCP 通信
TIA 中提供了 MODBUSPN 指令,可以实现通过PN接口进行 ModbusTCP 通信。
关于其中设置要注意的参考新的博文《用 WinAC 测试 ModbusTCP 通信》
5.OPC Server 通信
安装 SIMATIC NET 后可以提供OPC功能,具体设置参见《WinAC 的 OPC UA 通信》
扩展阅读
- Current correction versions for SIMATIC WinAC RTX F
https://support.industry.siemens.com/cs/ww/en/view/41728620 - VMware Player 6.0.7
https://my.vmware.com/cn/web/vmware/free#desktop_end_user_computing/vmware_player/6_0|PLAYER-607|product_downloads - 应用探讨——STEP 7 PLCSIM功能和使用技巧探讨
http://www.ad.siemens.com.cn/club/bbs/post.aspx?b_id=4&a_id=890803 - SIMATIC WinAC RTX – SIMATIC S7 用作软件控制器
http://www.industry.siemens.com.cn/automation/cn/zh/automation-systems/industrial-automation/simatic-controller/software-plc/simatic-winac-rtx/Pages/Default.aspx - WinAC RTX 2010 快速入门
https://support.industry.siemens.com/cs/#document/91113003/winac-rtx-2010-%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8?dti=0&lc=zh-CN - Choosing a network adapter for your virtual machine (1001805)
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1001805 - How do you program the communication blocks FB63 “TSEND”, FB64 “TRCV”, FB65 “TCON” and FB66 “TDISCON” in order to use the TCP protocol for data exchange by means of the integrated PROFINET interface of an S7-300/S7-400 CPU?
https://support.industry.siemens.com/cs/de/en/view/29737950 - Which “local_device_id” do you parameterize in order to establish a connection with FB65 “TCON” for Open User Communication (OUC) via Industrial Ethernet?
https://support.industry.siemens.com/cs/ww/en/view/51339682 - Transferring data with variable message lengths via the TCP protocol
https://support.industry.siemens.com/cs/ww/en/view/19033929 - How is data with variable message length transferred via the TCP protocol and received by an S7-300 station via the Industrial Ethernet CP?
https://support.industry.siemens.com/cs/ww/en/view/51101016 - WinAC TCP/UDP Protocol
https://support.industry.siemens.com/tf/ww/en/posts/winac-tcp-udp-protocol/74915/?page=0&pageSize=10 - SIMATIC S7-1500 SW Controller in a VM
http://www.plctalk.net/qanda/showthread.php?t=100908 - PLCSIM仿真S7-400之间的S7通讯
https://support.industry.siemens.com/cs/cn/zh/view/80925383 - PLCSIM V5.4 SP3 AND FB63,FB64,FB65, FB66
https://support.industry.siemens.com/tf/ww/en/posts/plcsim-v5-4-sp3-and-fb63-fb64-fb65-fb66/92117/?page=0&pageSize=10 - How do you configure communication via Modbus/TCP with WinAC RTX (F) in TIA Portal V13 SP1?
https://support.industry.siemens.com/cs/ru/en/view/109482560 - How do you use the blocks for MODBUS/TCP communication via an Industrial Ethernet CP of S7-300 and S7-400 in STEP 7 Professional (TIA Portal)?
https://support.industry.siemens.com/cs/ru/en/view/75312612 - How do you use the Modbus block “MODBUSPN” to communicate with multiple Modbus devices via a connection resource of the CPU?
https://support.industry.siemens.com/cs/us/en/view/109479369 - Intel I210 Gigabit Network Connection
https://certification.ubuntu.com/certification/catalog/component/pci/8086:1533/?&page=1 - S7-300 ModBUS Preotocol support
https://support.industry.siemens.com/tf/ww/en/posts/s7-300-modbus-preotocol-support/52532/?page=0&pageSize=10 - 使用 SIMATIC NET OPC-Server 通过 STEP 7 符号访问 WinAC 的数据区域
https://support.industry.siemens.com/cs/cn/zh/view/17490972 - WinAC RTX 2010 的实验效果
http://www.ad.siemens.com.cn/club/bbs/post_like.aspx?a_id=1522488&b_id=4
我这现场也有一个工控机安装了winAC使用profinet的读写站、SEW变频器都是正常的,但是组态ET200S HF 时就是不行,怀疑软PLC是不是不支持这个类型的ET200S
可以问问西门子热线来看看是否支持
请问你用的WINAC的是什么版本?
4.6.2
2010 SP2?
应该是吧,2010 版本是 4.6.0。我是单独的一个安装文件夹。
您好:
我用VMWare12虚拟机安装WinLC RTX 2010时总是报错“1158:”,OS是win7_32bit_旗舰,物理机操作系统是win7_64bit_旗舰,我应该怎么办?求您帮帮我把,谢谢!
1158的内容呢?
啥内容没有,空的,您方便给我个邮箱吗?我把截图发给您,我怀疑是兼容性问题,但是虚拟机系统XP和WIN7我都试过了,问题一样的,会不会和宿主机操作系统有关系?
在导航栏“关于”里有我的邮箱
给您邮箱发了邮件,请查收,期待您的回复,谢谢
我的邮箱:jcy314@163.com,如果不方便写在这您给我发邮件也可以,拜托