手动点检自动打开LDD

main
wyj 3 months ago
parent d968c5e7ac
commit 595d07d8f5

@ -1822,7 +1822,7 @@ void CCommonFlowMgr::InsertMoveRetListExt(CListCtrl &List,int Line,int Idx,CMove
#endif #endif
#if 1 #if 1
//创建点检准备cmd //创建点检准备cmd
void CCommonFlowMgr::CreatPowCheckPrepareCmd(CWorkCmdInvoker &WorkCmdInvoker) void CCommonFlowMgr::CreatPowCheckPrepareCmd(CWorkCmdInvoker &WorkCmdInvoker, eLaserDeviceType PowCheckType)
{ {
CMotor &MotorZ = *(CMotor::GetMotor(MOTOR_Z)); CMotor &MotorZ = *(CMotor::GetMotor(MOTOR_Z));
//关闭光闸 //关闭光闸
@ -1833,6 +1833,25 @@ void CCommonFlowMgr::CreatPowCheckPrepareCmd(CWorkCmdInvoker &WorkCmdInvoker)
pCmd->SetBoolParVal(bCLOSE); pCmd->SetBoolParVal(bCLOSE);
WorkCmdInvoker.AddCmd(pCmd); WorkCmdInvoker.AddCmd(pCmd);
} }
//¼ì²éLDD ״̬
if (gDeviceStateMgr->QueryUsedFunc(_EUsedFunc_LaserDeviceCtrl))
{
eFlowCheckType FlowCheckType = _FlowCheck_Null;
if (_LaserDeviceType_MainLaser1 == PowCheckType)
{
FlowCheckType = _FlowCheck_Laser1LDD;
}
else if (_LaserDeviceType_MainLaser2 == PowCheckType)
{
FlowCheckType = _FlowCheck_Laser2LDD;
}
CWorkCmdExcuteAction *pCmd = new CWorkCmdExcuteAction();
CExcuteActionPar ActionPar;
ActionPar.m_ExcuteAction = _ExcuteAction_FlowCheck;
ActionPar.AddFlowCheck(FlowCheckType);
pCmd->SetExcuteActionPar(ActionPar);
WorkCmdInvoker.AddCmd(pCmd);
}
if(gDeviceStateMgr->QueryUsedFunc(_EUsedFunc_RotatoDimmer)) if(gDeviceStateMgr->QueryUsedFunc(_EUsedFunc_RotatoDimmer))
{ {
//衰减器1旋转到0 (Home) //衰减器1旋转到0 (Home)
@ -1948,7 +1967,7 @@ bool CCommonFlowMgr::LaserPowCheckFlow(bool bWaitcooling)
} }
} }
//创建点检准备cmd //创建点检准备cmd
CreatPowCheckPrepareCmd(WorkCmdInvoker); CreatPowCheckPrepareCmd(WorkCmdInvoker, CurPowCheckType);
CSetMainLaserPar CurLaserPar; CSetMainLaserPar CurLaserPar;
CurLaserPar.m_Laser1_PRF = CurPowCheckPar.m_PulseFre;//点检的激光频率 CurLaserPar.m_Laser1_PRF = CurPowCheckPar.m_PulseFre;//点检的激光频率

@ -221,7 +221,7 @@ private:
bool CheckLaserSpotData(); bool CheckLaserSpotData();
void DrawTestLineVec(CDC* pDC); void DrawTestLineVec(CDC* pDC);
void CreatAutoFindFocusInvokerCmd(CWorkCmdInvoker &WorkCmdInvoker,bool bToLaserFocus); void CreatAutoFindFocusInvokerCmd(CWorkCmdInvoker &WorkCmdInvoker,bool bToLaserFocus);
void CreatPowCheckPrepareCmd(CWorkCmdInvoker &CmdInvoker); void CreatPowCheckPrepareCmd(CWorkCmdInvoker &CmdInvoker, eLaserDeviceType PowCheckType);
void CreatLaserBeamFlowCmd(CWorkCmdInvoker &CmdInvoker,CWafer *pWafer,bool bEdiCheckCmd); void CreatLaserBeamFlowCmd(CWorkCmdInvoker &CmdInvoker,CWafer *pWafer,bool bEdiCheckCmd);
void AutomationWorkJobFlow(); void AutomationWorkJobFlow();
void AutomationWorkJobFlow_CJob(CControlJob &ControlJob); void AutomationWorkJobFlow_CJob(CControlJob &ControlJob);

Loading…
Cancel
Save