Browse Source

update twincate write invert value

chenkui 9 hours ago
parent
commit
ed95c3d270
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Framework/Common/TwinCat/TwincatAdoManager.cs

+ 4 - 0
Framework/Common/TwinCat/TwincatAdoManager.cs

@@ -291,6 +291,10 @@ namespace MECF.Framework.Common.TwinCat
                                 _bitOperatedAddressValueDic[item.Address] = (byte)convertedValue;
                             }
                         }
+                        else
+                        {
+                            _adsClient.WriteAny(handle, convertedValue);
+                        }
                     }
                     else
                     {