|
|
|
@ -178,6 +178,14 @@ namespace Rs.MotionPlat
|
|
|
|
|
if (btnWholeHome.Visible == false)
|
|
|
|
|
btnWholeHome.Visible = true;
|
|
|
|
|
}
|
|
|
|
|
if(MachineManage.Instance.RunMode== ERunMode.Automatic && !switchButton1.Checked)
|
|
|
|
|
{
|
|
|
|
|
switchButton1.Checked = true;
|
|
|
|
|
}
|
|
|
|
|
else if (MachineManage.Instance.RunMode == ERunMode.Manual && switchButton1.Checked)
|
|
|
|
|
{
|
|
|
|
|
switchButton1.Checked = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void FormMain_Load(object sender, EventArgs e)
|
|
|
|
@ -269,7 +277,7 @@ namespace Rs.MotionPlat
|
|
|
|
|
//StockManager.Instance.Start();
|
|
|
|
|
LoadStockStatus();
|
|
|
|
|
HOperatorSet.ReadImage(out defaultImage, "default.bmp");
|
|
|
|
|
switchButton1.Checked = GlobalVar.DeviceIsAuto;
|
|
|
|
|
switchButton1.Checked = MachineManage.Instance.RunMode == ERunMode.Automatic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -653,7 +661,15 @@ namespace Rs.MotionPlat
|
|
|
|
|
|
|
|
|
|
private void switchButton1_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
GlobalVar.DeviceIsAuto = switchButton1.Checked;
|
|
|
|
|
//GlobalVar.DeviceIsAuto = switchButton1.Checked;
|
|
|
|
|
if(switchButton1.Checked)
|
|
|
|
|
{
|
|
|
|
|
MachineManage.Instance.RunMode = ERunMode.Automatic;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MachineManage.Instance.RunMode = ERunMode.Manual;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|