瀏覽代碼

update wago ao

chenkui 2 月之前
父節點
當前提交
ad21ac97b9
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Framework/Common/Device/Wago/WagoControllerCfgManager.cs

+ 2 - 3
Framework/Common/Device/Wago/WagoControllerCfgManager.cs

@@ -543,12 +543,11 @@ namespace MECF.Framework.Common.Device.Wago
                     {
                         if (wagoAO.DataType == "short")
                         {
-                            writeByts = BitConverter.GetBytes((short)var.Item2);
-                            Array.Reverse(writeByts);
+                            writeByts = byteTransform.GetBytes((short)var.Item2);
                         }
                         else
                         {
-                            writeByts = BitConverter.GetBytes((ushort)var.Item2);
+                            writeByts = byteTransform.GetBytes((ushort)var.Item2);
                         }
                     }
                 }