Browse Source

update tagmonitor write bool

pull/15/head
Gavin 8 years ago
parent
commit
26d416e615
  1. BIN
      SCADA/Example/BatchCoreTest.exe
  2. BIN
      SCADA/Example/CoreTest.exe
  3. 5
      SCADA/Program/CoreTest/TagMonitor.xaml.cs
  4. BIN
      SCADA/dll/ModbusDriver.dll

BIN
SCADA/Example/BatchCoreTest.exe

Binary file not shown.

BIN
SCADA/Example/CoreTest.exe

Binary file not shown.

5
SCADA/Program/CoreTest/TagMonitor.xaml.cs

@ -135,6 +135,11 @@ namespace CoreTest
public int Write(string value)
{
if (string.IsNullOrEmpty(value)) return -1;
if (_tag.Address.VarType == DataType.BOOL)
{
if (value == "1") value = "true";
if (value == "0") value = "false";
}
return _tag.Write(value);
}

BIN
SCADA/dll/ModbusDriver.dll

Binary file not shown.
Loading…
Cancel
Save