123
This commit is contained in:
@ -963,6 +963,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(sendIP);
|
TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(sendIP);
|
||||||
byte[] lightOn = Helper.OutstoreLight(v.Value, LightColor, 1);
|
byte[] lightOn = Helper.OutstoreLight(v.Value, LightColor, 1);
|
||||||
tCPClient.Send(lightOn);
|
tCPClient.Send(lightOn);
|
||||||
|
Logs.Write("出库,库位灯亮:" + BitConverter.ToString(lightOn));
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
}
|
}
|
||||||
//报警灯亮
|
//报警灯亮
|
||||||
@ -988,6 +989,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(si[i].ClientIp);
|
TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(si[i].ClientIp);
|
||||||
byte[] warnlightOn = Helper.OutstoreWarnLight(si[i].LightId, LightColor, 1, 0);
|
byte[] warnlightOn = Helper.OutstoreWarnLight(si[i].LightId, LightColor, 1, 0);
|
||||||
tCPClient.Send(warnlightOn);
|
tCPClient.Send(warnlightOn);
|
||||||
|
Logs.Write("出库,报警灯亮:" + BitConverter.ToString(warnlightOn));
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1324,6 +1326,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(sendIP);
|
TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(sendIP);
|
||||||
byte[] lightOn = Helper.OutstoreLight(v.Value, LightColor, 0);
|
byte[] lightOn = Helper.OutstoreLight(v.Value, LightColor, 0);
|
||||||
tCPClient.Send(lightOn);
|
tCPClient.Send(lightOn);
|
||||||
|
Logs.Write("出库,库位灯灭:" + BitConverter.ToString(lightOn));
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
}
|
}
|
||||||
//报警灯灭
|
//报警灯灭
|
||||||
@ -1349,6 +1352,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(si[i].ClientIp);
|
TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(si[i].ClientIp);
|
||||||
byte[] warnlightOn = Helper.OutstoreWarnLight(si[i].LightId, LightColor, 0, 0);
|
byte[] warnlightOn = Helper.OutstoreWarnLight(si[i].LightId, LightColor, 0, 0);
|
||||||
tCPClient.Send(warnlightOn);
|
tCPClient.Send(warnlightOn);
|
||||||
|
Logs.Write("出库,报警灯灭:" + BitConverter.ToString(warnlightOn));
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user