Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个西门子 PLC (S7 315-2 PN/DP PLC),它有一个内置的以太网端口。
我想通过 TCP/IP(基于 VB.NET 的程序)在 PLC 和我的 PC 之间建立通信。
如何做呢 ?有任何可用的演示或示例程序吗?
也可以尝试Snap7, 32/64 位,已准备好 .NET/mono 包装器
Libnodave有许多语言的示例,VB.NET 就是其中之一。我在 Pascal 和 C 中经常使用它。
如果您想根据事件发送数据,您还可以使用 315 的内置以太网通信块,并在每次发生有趣的事情时发送数据包(如模拟 XML 或 JSON)。我做了几次,效果很好。