diff --git a/SCADA/Program/DataService/PLCGroup.cs b/SCADA/Program/DataService/PLCGroup.cs index ecffaaf..536570c 100644 --- a/SCADA/Program/DataService/PLCGroup.cs +++ b/SCADA/Program/DataService/PLCGroup.cs @@ -313,6 +313,18 @@ namespace DataService { if (_plcReader.IsClosed) return -1; byte[] cache = (byte[])_cacheReader.Cache; + if (_items.Count == 1) + { + byte[] rcvBytes = _plcReader.ReadBytes(_items[0].Address, (ushort)cache.Length); + if (rcvBytes == null) return -1; + for (int j = 0; j < rcvBytes.Length; j++) + { + if (cache[j] != rcvBytes[j]) + _changedList.Add(0); + cache[j] = rcvBytes[j]; + } + return 1; + } int offset = 0; foreach (PDUArea area in _rangeList) { diff --git a/SCADA/Program/HMIControl/bin/Debug/DataHelper.dll b/SCADA/Program/HMIControl/bin/Debug/DataHelper.dll index 2c141f8..5ab722f 100644 Binary files a/SCADA/Program/HMIControl/bin/Debug/DataHelper.dll and b/SCADA/Program/HMIControl/bin/Debug/DataHelper.dll differ diff --git a/SCADA/Program/HMIControl/bin/Debug/DataService.dll b/SCADA/Program/HMIControl/bin/Debug/DataService.dll index 0668ebe..5e2ae61 100644 Binary files a/SCADA/Program/HMIControl/bin/Debug/DataService.dll and b/SCADA/Program/HMIControl/bin/Debug/DataService.dll differ diff --git a/SCADA/Program/HMIControl/bin/Debug/HMIControl.VisualStudio.Design.dll b/SCADA/Program/HMIControl/bin/Debug/HMIControl.VisualStudio.Design.dll index fde0077..529fb0c 100644 Binary files a/SCADA/Program/HMIControl/bin/Debug/HMIControl.VisualStudio.Design.dll and b/SCADA/Program/HMIControl/bin/Debug/HMIControl.VisualStudio.Design.dll differ diff --git a/SCADA/Program/HMIControl/bin/Debug/HMIControl.dll b/SCADA/Program/HMIControl/bin/Debug/HMIControl.dll index 15ed836..a858de3 100644 Binary files a/SCADA/Program/HMIControl/bin/Debug/HMIControl.dll and b/SCADA/Program/HMIControl/bin/Debug/HMIControl.dll differ diff --git a/SCADA/TagConfig/TagConfig/obj/x86/Debug/TagConfig.csproj.FileListAbsolute.txt b/SCADA/TagConfig/TagConfig/obj/x86/Debug/TagConfig.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..846101c --- /dev/null +++ b/SCADA/TagConfig/TagConfig/obj/x86/Debug/TagConfig.csproj.FileListAbsolute.txt @@ -0,0 +1 @@ +C:\Users\Yinan\Documents\Github\SharpSCADA\SCADA\TagConfig\TagConfig\bin\Debug\TagConfig.exe.config