Refactor AGV error handling: Standardize AGVErrorCode usage and update SetRunStepError
This commit is contained in:
@@ -425,7 +425,7 @@ namespace Project
|
||||
}
|
||||
if (VAR.BOOL[eVarBool.FLAG_AUTORUN] == false) //자동상태가 아니라면
|
||||
{
|
||||
PUB.AGV.AGVErrorReset();
|
||||
ResetSystemError();
|
||||
if (Prompt)
|
||||
{
|
||||
if (UTIL.MsgQ("AGV상태를 자동으로 전환 할까요?") != DialogResult.Yes) return;
|
||||
@@ -454,6 +454,13 @@ namespace Project
|
||||
PUB.log.AddI("Clear Resultclear");
|
||||
}
|
||||
|
||||
public void ResetSystemError()
|
||||
{
|
||||
PUB.AGV.AGVErrorReset();
|
||||
Resultclear();
|
||||
PUB.log.AddI("System Error Reset");
|
||||
}
|
||||
|
||||
|
||||
void CheckFreeSpace()
|
||||
{
|
||||
@@ -768,7 +775,7 @@ namespace Project
|
||||
switch (title.ToLower())
|
||||
{
|
||||
case "emg":
|
||||
PUB.AGV.AGVErrorReset();
|
||||
ResetSystemError();
|
||||
break;
|
||||
case "itm":
|
||||
var itemon = VAR.BOOL[eVarBool.ITEMON];
|
||||
|
||||
Reference in New Issue
Block a user