版本-v1.2.4 上传公共服务器

This commit is contained in:
CPL 2024-03-13 11:12:05 +08:00
parent 2d525bb984
commit 813f41017e
3 changed files with 38 additions and 1 deletions

0
.tgitconfig Normal file
View File

View File

@ -244,6 +244,7 @@ namespace AssistClient.Device
//errorCode = instantDiCtrl.ReadBit(startPort, bit, out data); //errorCode = instantDiCtrl.ReadBit(startPort, bit, out data);
if (BioFailed(result)) if (BioFailed(result))
{ {
INEvent?.Invoke(999, 0xff);
//throw new Exception(); //throw new Exception();
continue; continue;
} }
@ -255,7 +256,7 @@ namespace AssistClient.Device
INEvent?.Invoke(i, DIData[i]); INEvent?.Invoke(i, DIData[i]);
} }
} }
Thread.Sleep(10); Thread.Sleep(100);
} while (IsInit); } while (IsInit);
} }

View File

@ -1584,23 +1584,59 @@ namespace AssistClient
{ {
AddTextEvent("中断命令", $"{portIndex}-HEX:{Convert.ToString(data, 16)}"); AddTextEvent("中断命令", $"{portIndex}-HEX:{Convert.ToString(data, 16)}");
if (compareIOInput(CMDName.) && this.tsbtnStart.Enabled) if (compareIOInput(CMDName.) && this.tsbtnStart.Enabled)
{
AddTextEvent("中断命令", $"启动-按钮");
startCommand(); startCommand();
AddTextEvent("中断命令", $"启动-完成");
}
else if (compareIOInput(CMDName.) && this.tsbtnPause.Enabled) else if (compareIOInput(CMDName.) && this.tsbtnPause.Enabled)
{
AddTextEvent("中断命令", $"暂停-按钮");
warning(WarningEnum.Low, false); warning(WarningEnum.Low, false);
AddTextEvent("中断命令", $"暂停-完成");
}
else if (compareIOInput(CMDName.) && this.tsbtnGoDownPT.Enabled) else if (compareIOInput(CMDName.) && this.tsbtnGoDownPT.Enabled)
{
AddTextEvent("中断命令", $"完成-按钮");
gotoDownPT(); gotoDownPT();
AddTextEvent("中断命令", $"完成-完成");
}
else if (compareIOInput(CMDName.)) else if (compareIOInput(CMDName.))
{
AddTextEvent("中断命令", $"下光源-按钮");
openLowerLight(); openLowerLight();
AddTextEvent("中断命令", $"下光源-完成");
}
else if (compareIOInput(CMDName.) && currentState == CurrentStateEnum. && currDefectIndex > 0) else if (compareIOInput(CMDName.) && currentState == CurrentStateEnum. && currDefectIndex > 0)
{
AddTextEvent("中断命令", $"上一张图-按钮");
gotoPrePic(); gotoPrePic();
AddTextEvent("中断命令", $"上一张图-完成");
}
else if (compareIOInput(CMDName.) && currentState == CurrentStateEnum. && currDefectIndex < defectList.Count - 1) else if (compareIOInput(CMDName.) && currentState == CurrentStateEnum. && currDefectIndex < defectList.Count - 1)
{
AddTextEvent("中断命令", $"下一张图-按钮");
gotoNextPic(); gotoNextPic();
AddTextEvent("中断命令", $"下一张图-完成");
}
else if (compareIOInput(CMDName.) && currentState == CurrentStateEnum. && currDefectIndex > 0) else if (compareIOInput(CMDName.) && currentState == CurrentStateEnum. && currDefectIndex > 0)
{
AddTextEvent("中断命令", $"上一缺陷-按钮");
gotoDefctListIndex(--currDefectIndex, currDefectIndex + 1); gotoDefctListIndex(--currDefectIndex, currDefectIndex + 1);
AddTextEvent("中断命令", $"上一缺陷-完成");
}
else if (compareIOInput(CMDName.) && currentState == CurrentStateEnum. && currDefectIndex < defectList.Count - 1) else if (compareIOInput(CMDName.) && currentState == CurrentStateEnum. && currDefectIndex < defectList.Count - 1)
{
AddTextEvent("中断命令", $"下一缺陷-按钮");
gotoDefctListIndex(++currDefectIndex, currDefectIndex - 1); gotoDefctListIndex(++currDefectIndex, currDefectIndex - 1);
AddTextEvent("中断命令", $"下一缺陷-完成");
}
else if (compareIOInput(CMDName.) && this.tsbtnReset.Enabled) else if (compareIOInput(CMDName.) && this.tsbtnReset.Enabled)
{
AddTextEvent("中断命令", $"复位-按钮");
resetCommand(); resetCommand();
AddTextEvent("中断命令", $"复位-完成");
}
// //
if (devContainer.state && warningLevel == WarningEnum.Normal if (devContainer.state && warningLevel == WarningEnum.Normal