|
|
|
@ -201,9 +201,19 @@ namespace SlnMesnac.Business
|
|
|
|
|
this.SaveBusbarTemp(busbar.busbarCode, busbar.cabinetCode, _realTemperatureInfo,busbar.isPictures);
|
|
|
|
|
Task.Delay(1000).Wait();
|
|
|
|
|
|
|
|
|
|
if (!_plc.writeDoubleByAddress("VD1525", 0))
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentException($"母排检测完成向PLC升降距离写0失败;VD1525写0");
|
|
|
|
|
}
|
|
|
|
|
_log.Info($"母排检测完成向PLC升降距离写0成功;VD1525写0");
|
|
|
|
|
|
|
|
|
|
if (busbar.isEnd == 1)
|
|
|
|
|
{
|
|
|
|
|
_plc.writeInt16ByAddress("VD1513", 1); //尾排检测完成
|
|
|
|
|
if(!_plc.writeInt16ByAddress("VD1513", 1))
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentException($"最后一层检测完成向PLC写入检测完成信号失败;VD1513写1");
|
|
|
|
|
}
|
|
|
|
|
_log.Info($"最后一层检测完成向PLC写入检测完成信号成功;VD1513写1");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(busbar.isRotate == 1)
|
|
|
|
|