缓存区重量启停所有设备

dev
liuwf 4 weeks ago
parent 90b4b8de92
commit 856ddfa978

@ -226,8 +226,9 @@ namespace SlnMesnac.WPF.Page
bool unPackStatus = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机系统运行状态"));
if (recipeManageCache.SystemStatus == "1" && unPackStatus && (Cache_MaxWeight <= Cache_Weight))
{
// 停拆包机
StopMachine(0);
// 停所有设备
StopMachine(99);
// StopMachine(0);
_logger.LogWarning($"设备缓存区当前重量:{Cache_Weight},预设最大重量值:{Cache_MaxWeight},已经超重并且拆包机运行,系统下发停机命令!");
}
@ -237,7 +238,8 @@ namespace SlnMesnac.WPF.Page
if (!unPackWarn && plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机MES允许远程")) == true)
{
StartUnPack();
StartAll();
// StartUnPack();
}
}

Loading…
Cancel
Save