From 74c849149eadcce558b163169a1b829dfb81248e Mon Sep 17 00:00:00 2001 From: "qianhao.xu" Date: Thu, 7 Nov 2024 21:56:43 +0800 Subject: [PATCH] 1 --- Infrastructure/PLC/PCLTool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Infrastructure/PLC/PCLTool.cs b/Infrastructure/PLC/PCLTool.cs index f6b869a..47bd0b4 100644 --- a/Infrastructure/PLC/PCLTool.cs +++ b/Infrastructure/PLC/PCLTool.cs @@ -43,7 +43,7 @@ namespace DOAN.Infrastructure.PLC public static int Write(string addr,int num) { - OperateResult write = siemensTcpNet.Write(addr, num); + OperateResult write = siemensTcpNet.Write(addr, (byte)num); if (write.IsSuccess) {