資源簡介
該例程實現C#與Codesys通過共享內存的方式完成數據交互,這樣有利于垮軟件平臺之間進行通訊,相較于其他通信方式(Modbus、TCP/IP等)更加方便快捷。
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Threading.Tasks;
using?System.Windows.Forms;
namespace?ShareMemory_Test
{
????static?class?Program
????{
????????///?
????????///?應用程序的主入口點。
????????///?
????????[STAThread]
????????static?void?Main()
????????{
????????????Application.EnableVisualstyles();
????????????Application.SetCompatibleTextRenderingDefault(false);
????????????Application.Run(new?ShareMemory());
????????}
????}
}
- 上一篇:C#編寫的圖像均衡化、去噪、高斯模糊等功能程序
- 下一篇:c#xm
l讀寫demo
評論
共有 條評論