refactor: Use SetRunStepError within RunStep sequences
- Refactored _SM_RUN_ENTER, _EXIT, _BUFFER_IN, _BUFFER_OUT, and _Util to use SetRunStepError helper. - Corrected AGV_RUN_FAIL and MESSAGE_ERROR codes in _SM_RUN_ENTER, _EXIT, and _CHARGE_GO. - Added new error codes AGV_SPEED_SET_FAIL and AGV_RUN_FAIL to EnumData.cs.
This commit is contained in:
@@ -131,35 +131,6 @@ namespace Project
|
||||
vcChargeSearchTime.Value = PUB.setting.ChargeSearchTime;
|
||||
vcChargeEmergencyLevel.Value = PUB.setting.ChargeEmergencyLevel;
|
||||
vcChargeWaitSec.Value = PUB.setting.ChargetWaitSec;
|
||||
// chkAutoCharge_CheckedChanged(chkAutoCharge, null);
|
||||
|
||||
//태그
|
||||
vcTagPOT.Value = PUB.setting.TAGPOT;
|
||||
vcTagNOT.Value = PUB.setting.TAGNOT;
|
||||
|
||||
vcTagQAQC.Value = PUB.setting.TAG_QA_QC;
|
||||
vcTagQCF1.Value = PUB.setting.TAG_QC_F1;
|
||||
vcTagF1F2.Value = PUB.setting.TAG_F1_F2;
|
||||
vcTagF2F3.Value = PUB.setting.TAG_F2_F3;
|
||||
vcTagF3F4.Value = PUB.setting.TAG_F3_F4;
|
||||
vcTagF4F5.Value = PUB.setting.TAG_F4_F5;
|
||||
|
||||
vcTagQAA.Value = PUB.setting.TAGQAA;
|
||||
vcTagQCA.Value = PUB.setting.TAGQCA;
|
||||
vcTagF1A.Value = PUB.setting.TAGF1A;
|
||||
vcTagF2A.Value = PUB.setting.TAGF2A;
|
||||
vcTagF3A.Value = PUB.setting.TAGF3A;
|
||||
vcTagF4A.Value = PUB.setting.TAGF4A;
|
||||
vcTagF5A.Value = PUB.setting.TAGF5A;
|
||||
|
||||
vcTagQAB.Value = PUB.setting.TAGQAB;
|
||||
vcTagQCB.Value = PUB.setting.TAGQCB;
|
||||
vcTagF1B.Value = PUB.setting.TAGF1B;
|
||||
vcTagF2B.Value = PUB.setting.TAGF2B;
|
||||
vcTagF3B.Value = PUB.setting.TAGF3B;
|
||||
vcTagF4B.Value = PUB.setting.TAGF4B;
|
||||
vcTagF5B.Value = PUB.setting.TAGF5B;
|
||||
|
||||
tbMCID.Text = PUB.setting.MCID;
|
||||
|
||||
timer1.Start();
|
||||
@@ -286,34 +257,6 @@ namespace Project
|
||||
PUB.setting.datetime_Reset_1 = cleartime1.Value.ToString("HH:mm");
|
||||
PUB.setting.datetime_Reset_2 = cleartime2.Value.ToString("HH:mm");
|
||||
|
||||
|
||||
//태그
|
||||
PUB.setting.TAGPOT = (int)vcTagPOT.Value;
|
||||
PUB.setting.TAGNOT = (int)vcTagNOT.Value;
|
||||
|
||||
PUB.setting.TAG_QA_QC = (int)vcTagQAQC.Value;
|
||||
PUB.setting.TAG_QC_F1 = (int)vcTagQCF1.Value;
|
||||
PUB.setting.TAG_F1_F2 = (int)vcTagF1F2.Value;
|
||||
PUB.setting.TAG_F2_F3 = (int)vcTagF2F3.Value;
|
||||
PUB.setting.TAG_F3_F4 = (int)vcTagF3F4.Value;
|
||||
PUB.setting.TAG_F4_F5 = (int)vcTagF4F5.Value;
|
||||
|
||||
PUB.setting.TAGQAA = (int)vcTagQAA.Value;
|
||||
PUB.setting.TAGQCA = (int)vcTagQCA.Value;
|
||||
PUB.setting.TAGF1A = (int)vcTagF1A.Value;
|
||||
PUB.setting.TAGF2A = (int)vcTagF2A.Value;
|
||||
PUB.setting.TAGF3A = (int)vcTagF3A.Value;
|
||||
PUB.setting.TAGF4A = (int)vcTagF4A.Value;
|
||||
PUB.setting.TAGF5A = (int)vcTagF5A.Value;
|
||||
|
||||
PUB.setting.TAGQAB = (int)vcTagQAB.Value;
|
||||
PUB.setting.TAGQCB = (int)vcTagQCB.Value;
|
||||
PUB.setting.TAGF1B = (int)vcTagF1B.Value;
|
||||
PUB.setting.TAGF2B = (int)vcTagF2B.Value;
|
||||
PUB.setting.TAGF3B = (int)vcTagF3B.Value;
|
||||
PUB.setting.TAGF4B = (int)vcTagF4B.Value;
|
||||
PUB.setting.TAGF5B = (int)vcTagF5B.Value;
|
||||
|
||||
//PLC옵션
|
||||
//PUB.setting.musicvol = (int)nudMusicVol.Value;
|
||||
PUB.SetVolume((int)nudMusicVol.Value);
|
||||
@@ -322,34 +265,6 @@ namespace Project
|
||||
PUB.setting.alarmSoundTerm = (int)nudDoorSoundTerm.Value;
|
||||
if (PUB.setting.alarmSoundTerm < 1) PUB.setting.alarmSoundTerm = 15; //기본값 15초
|
||||
|
||||
////핀설정
|
||||
//var baL = new System.Collections.BitArray(new byte[] { PUB.setting.PinReverse_DI_Low });
|
||||
//var baH = new System.Collections.BitArray(new byte[] { PUB.setting.PInReverse_DI_High });
|
||||
//baL[0] = chkdi0.Checked;
|
||||
//baL[1] = chkdi1.Checked;
|
||||
//baL[2] = chkdi2.Checked;
|
||||
//baL[3] = chkdi3.Checked;
|
||||
//baL[4] = chkdi4.Checked;
|
||||
//baL[5] = chkdi5.Checked;
|
||||
//baL[6] = chkdi6.Checked;
|
||||
//baL[7] = chkdi7.Checked;
|
||||
|
||||
//baH[0] = chkdi8.Checked;
|
||||
//baH[1] = chkdi9.Checked;
|
||||
//baH[2] = chkdi10.Checked;
|
||||
//baH[3] = chkdi11.Checked;
|
||||
//baH[4] = chkdi12.Checked;
|
||||
//baH[5] = chkdi13.Checked;
|
||||
//baH[6] = chkdi14.Checked;
|
||||
//baH[7] = chkdi15.Checked;
|
||||
|
||||
//byte[] dataL = new byte[] { 0 };
|
||||
//byte[] dataH = new byte[] { 0 };
|
||||
//baL.CopyTo(dataL, 0);
|
||||
//baH.CopyTo(dataH, 0);
|
||||
|
||||
//PUB.setting.PinReverse_DI_Low = dataL[0];
|
||||
//PUB.setting.PInReverse_DI_High = dataH[0];
|
||||
PUB.setting.musicfile = tbMusic.Text.Trim();
|
||||
PUB.setting.FullScreen = this.chkFullScreen.Checked;
|
||||
PUB.setting.ChargeEmergencyLevel = (int)this.vcChargeEmergencyLevel.Value;
|
||||
@@ -567,39 +482,9 @@ namespace Project
|
||||
}
|
||||
}
|
||||
|
||||
private void button4_Click(object sender, EventArgs e)
|
||||
{
|
||||
vcTagNOT.Value = 9000;
|
||||
|
||||
vcTagQAQC.Value = 9250;
|
||||
vcTagQCF1.Value = 9350;
|
||||
vcTagF1F2.Value = 9450;
|
||||
vcTagF2F3.Value = 9550;
|
||||
vcTagF3F4.Value = 9650;
|
||||
vcTagF4F5.Value = 9750;
|
||||
|
||||
vcTagQAB.Value = 9200;
|
||||
vcTagQCB.Value = 9300;
|
||||
vcTagF1B.Value = 9400;
|
||||
vcTagF2B.Value = 9500;
|
||||
vcTagF3B.Value = 9600;
|
||||
vcTagF4B.Value = 9700;
|
||||
vcTagF5B.Value = 9800;
|
||||
|
||||
vcTagQAA.Value = 9201;
|
||||
vcTagQCA.Value = 9301;
|
||||
vcTagF1A.Value = 9401;
|
||||
vcTagF2A.Value = 9501;
|
||||
vcTagF3A.Value = 9601;
|
||||
vcTagF4A.Value = 9701;
|
||||
vcTagF5A.Value = 9801;
|
||||
|
||||
vcTagPOT.Value = 9900;
|
||||
}
|
||||
|
||||
private void arLabel1_Click(object sender, EventArgs e)
|
||||
{
|
||||
var buts = new arCtl.arLabel[] { bt0, bt1, bt2, bt3, bt4, bt5 };
|
||||
var buts = new arCtl.arLabel[] { bt0, bt1, bt2, bt3, bt5 };
|
||||
foreach (var lb in buts)
|
||||
{
|
||||
lb.BackColor = Color.DimGray;
|
||||
|
||||
Reference in New Issue
Block a user