|
|
|
@ -151,17 +151,24 @@ namespace Rs.MotionPlat.Commom
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void Start()
|
|
|
|
|
{
|
|
|
|
|
//先检测门禁
|
|
|
|
|
if(IoManager.Instance.ReadIn("后安全门禁")==0)
|
|
|
|
|
{
|
|
|
|
|
MessageQueue.Instance.Warn("door opened,please close door!!!");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
bool run = true;
|
|
|
|
|
if(GlobalVar.EnableVirtuleBarCode)
|
|
|
|
|
if (GlobalVar.EnableVirtuleBarCode)
|
|
|
|
|
{
|
|
|
|
|
DialogResult dr = Msg.ShowQuestion("device run use virtual bar code?");
|
|
|
|
|
if(dr== DialogResult.Cancel)
|
|
|
|
|
DialogResult dr = Msg.ShowQuestion("device run use virtual barcode?");
|
|
|
|
|
if (dr == DialogResult.Cancel)
|
|
|
|
|
{
|
|
|
|
|
run = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(run)
|
|
|
|
|
if (run)
|
|
|
|
|
{
|
|
|
|
|
Task.Run(() => {
|
|
|
|
|
if (MachineManage.Instance.MachineStatus == EMachineStatus.Homed || MachineManage.Instance.MachineStatus == EMachineStatus.Stop)
|
|
|
|
@ -187,6 +194,7 @@ namespace Rs.MotionPlat.Commom
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void Stop()
|
|
|
|
|
{
|
|
|
|
|