|
|
|
@ -1043,16 +1043,16 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
bool unPackWarn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机堵料停螺旋"));
|
|
|
|
|
if (unPackWarn)
|
|
|
|
|
{
|
|
|
|
|
Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
{
|
|
|
|
|
Msg.MsgShow("拆包机堵料停螺旋,请先处理再开机!!", 1, 5);
|
|
|
|
|
});
|
|
|
|
|
//bool unPackWarn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机堵料停螺旋"));
|
|
|
|
|
//if (unPackWarn)
|
|
|
|
|
//{
|
|
|
|
|
// Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
// {
|
|
|
|
|
// Msg.MsgShow("拆包机堵料停螺旋,请先处理再开机!!", 1, 5);
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// return;
|
|
|
|
|
//}
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
{
|
|
|
|
|
plc.writeBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机远程急停"), false);
|
|
|
|
@ -1134,16 +1134,16 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//判断报警---
|
|
|
|
|
bool magNetWarn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("磁选机设备故障反馈"));
|
|
|
|
|
if (magNetWarn)
|
|
|
|
|
{
|
|
|
|
|
Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
{
|
|
|
|
|
Msg.MsgShow("磁选机设备故障,请检查后再启动", 1, 5);
|
|
|
|
|
});
|
|
|
|
|
//bool magNetWarn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("磁选机设备故障反馈"));
|
|
|
|
|
//if (magNetWarn)
|
|
|
|
|
//{
|
|
|
|
|
// Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
// {
|
|
|
|
|
// Msg.MsgShow("磁选机设备故障,请检查后再启动", 1, 5);
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// return;
|
|
|
|
|
//}
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
{
|
|
|
|
|
SendPulseSignal("磁选机一键启动");
|
|
|
|
@ -1314,15 +1314,15 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
|
}
|
|
|
|
|
bool spiralWarn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("螺旋1变频器状态"));
|
|
|
|
|
bool spira2Warn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("螺旋2变频器状态"));
|
|
|
|
|
if (spiralWarn || spira2Warn)
|
|
|
|
|
{
|
|
|
|
|
Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
{
|
|
|
|
|
Msg.MsgShow("螺旋1或螺旋2设备故障,请检查后再启动", 1, 5);
|
|
|
|
|
});
|
|
|
|
|
//if (spiralWarn || spira2Warn)
|
|
|
|
|
//{
|
|
|
|
|
// Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
// {
|
|
|
|
|
// Msg.MsgShow("螺旋1或螺旋2设备故障,请检查后再启动", 1, 5);
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// return;
|
|
|
|
|
//}
|
|
|
|
|
plc.writeBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("螺旋1启动"), true);
|
|
|
|
|
plc.writeFloatByAddress(baseBusiness.GetPlcAddressByConfigKey("螺旋1速度设置"), recipeManageCache.useRecipeManage.Spiral1);
|
|
|
|
|
}
|
|
|
|
@ -1364,16 +1364,16 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
|
{
|
|
|
|
|
bool spiralWarn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("螺旋1变频器状态"));
|
|
|
|
|
bool spira2Warn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("螺旋2变频器状态"));
|
|
|
|
|
if (spiralWarn || spira2Warn)
|
|
|
|
|
{
|
|
|
|
|
Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
{
|
|
|
|
|
Msg.MsgShow("螺旋1或螺旋2设备故障,请检查后再启动", 1, 5);
|
|
|
|
|
//if (spiralWarn || spira2Warn)
|
|
|
|
|
//{
|
|
|
|
|
// Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
// {
|
|
|
|
|
// Msg.MsgShow("螺旋1或螺旋2设备故障,请检查后再启动", 1, 5);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// return;
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
plc.writeBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("螺旋2启动"), true);
|
|
|
|
|
plc.writeFloatByAddress(baseBusiness.GetPlcAddressByConfigKey("螺旋2速度设置"), recipeManageCache.useRecipeManage.Spiral2);
|
|
|
|
@ -1446,12 +1446,12 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
bool hotWarn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("烘干机堵料报警"));
|
|
|
|
|
if (hotWarn)
|
|
|
|
|
{
|
|
|
|
|
MessageBoxAndLog("请先处理烘干机堵料报警,再重新启动!", true);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//bool hotWarn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("烘干机堵料报警"));
|
|
|
|
|
//if (hotWarn)
|
|
|
|
|
//{
|
|
|
|
|
// MessageBoxAndLog("请先处理烘干机堵料报警,再重新启动!", true);
|
|
|
|
|
// return;
|
|
|
|
|
//}
|
|
|
|
|
SendPulseSignal("烘干机螺旋启动");
|
|
|
|
|
plc.writeFloatByAddress(baseBusiness.GetPlcAddressByConfigKey("烘干机螺旋频率设定"), recipeManageCache.useRecipeManage.DryerSpiral);
|
|
|
|
|
|
|
|
|
@ -1473,12 +1473,12 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
bool hotWarn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("烘干机堵料报警"));
|
|
|
|
|
if (hotWarn)
|
|
|
|
|
{
|
|
|
|
|
MessageBoxAndLog("请先处理烘干机堵料报警,再重新启动!", true);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//bool hotWarn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("烘干机堵料报警"));
|
|
|
|
|
//if (hotWarn)
|
|
|
|
|
//{
|
|
|
|
|
// MessageBoxAndLog("请先处理烘干机堵料报警,再重新启动!", true);
|
|
|
|
|
// return;
|
|
|
|
|
//}
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
{
|
|
|
|
|
SendPulseSignal("烘干机风机启动");
|
|
|
|
@ -1502,12 +1502,12 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
bool hotWarn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("烘干机堵料报警"));
|
|
|
|
|
if (hotWarn)
|
|
|
|
|
{
|
|
|
|
|
MessageBoxAndLog("请先处理烘干机堵料报警,再重新启动!", true);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//bool hotWarn = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("烘干机堵料报警"));
|
|
|
|
|
//if (hotWarn)
|
|
|
|
|
//{
|
|
|
|
|
// MessageBoxAndLog("请先处理烘干机堵料报警,再重新启动!", true);
|
|
|
|
|
// return;
|
|
|
|
|
//}
|
|
|
|
|
SendPulseSignal("烘干机燃烧启动");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|