Browse Source

mysql support;fix bug

pull/6/merge
Gavin 9 years ago
parent
commit
d0b9779e36
  1. 12
      SCADA/Program/DataService/PLCGroup.cs
  2. BIN
      SCADA/Program/HMIControl/bin/Debug/DataHelper.dll
  3. BIN
      SCADA/Program/HMIControl/bin/Debug/DataService.dll
  4. BIN
      SCADA/Program/HMIControl/bin/Debug/HMIControl.VisualStudio.Design.dll
  5. BIN
      SCADA/Program/HMIControl/bin/Debug/HMIControl.dll
  6. 1
      SCADA/TagConfig/TagConfig/obj/x86/Debug/TagConfig.csproj.FileListAbsolute.txt

12
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)
{

BIN
SCADA/Program/HMIControl/bin/Debug/DataHelper.dll

Binary file not shown.

BIN
SCADA/Program/HMIControl/bin/Debug/DataService.dll

Binary file not shown.

BIN
SCADA/Program/HMIControl/bin/Debug/HMIControl.VisualStudio.Design.dll

Binary file not shown.

BIN
SCADA/Program/HMIControl/bin/Debug/HMIControl.dll

Binary file not shown.

1
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
Loading…
Cancel
Save