Commit 6b7f5145 authored by wangjunqiang's avatar wangjunqiang

添加moudbus控制自动校准

parent 6635628f
...@@ -566,7 +566,19 @@ namespace GcDevicePc.Common ...@@ -566,7 +566,19 @@ namespace GcDevicePc.Common
static void slavewirtehreg(ushort address, ushort value) static void slavewirtehreg(ushort address, ushort value)
{ {
// Console.WriteLine("MoudbusSlave Wirte adder:" + address.ToString() + " value:" + value.ToString()); if (address == 100 || address == 99 || address == 101)
{
if (value == 1)
{
CurveDisPlay.curdisp.SetAutoAdjust();
}
else if(value == 0)
{
CurveDisPlay.curdisp.StopAutoAdjust();
}
}
Log.Info("MoudbusSlave Wirte adder:" + address.ToString() + " value:" + value.ToString());
} }
SlaveReadCoilsRegister MySlaveReadCoilsRegister; SlaveReadCoilsRegister MySlaveReadCoilsRegister;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment