private void CBtnRobotTestRunAction_Click(object sender, EventArgs e) { DataStruct.SysStat.RobotVacuoCheck = false; VisualSortingStation.m_ScanQRCode = false; TimerRobotTestRunAction.Stop(); if (m_ManualRobot.IsConnected()) { m_ManualRobot.RunAction((int)RobotAction.Action_Manual_Grap_1 + ComBoxRobotActions.SelectedIndex); TimerRobotTestRunAction.Start(); } }
private void TimerRobotTestRunAction_Tick(object sender, EventArgs e) { if (DataStruct.SysStat.RobotVacuoCheck) //监听机器人的通信线程设置此RobotVacuoCheck { DataStruct.SysStat.RobotVacuoCheck = false; m_ManualRobot.RunAction((int)RobotAction.Action_QRCodeScan); } if (VisualSortingStation.m_ScanQRCode) //二维码格式检查在QRCodeRecvData中 { VisualSortingStation.m_ScanQRCode = false; m_ManualRobot.RunAction((int)RobotAction.Action_Manual_Put_1 + ComBoxRobotActions.SelectedIndex); } if (DataStruct.SysStat.RobotVacuoCheck) //监听机器人的通信线程设置此RobotVacuoCheck { TimerRobotTestRunAction.Stop(); Global.MessageBoxShow(Global.StrRobotSortFinished); } }