You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TwoLaserHead-PushJig/LaiPuLaser/CreaterPlatformMove.cpp

49 lines
1.2 KiB
C++

#include "StdAfx.h"
#include "CreaterPlatformMove.h"
#include "WorkCmdPciPortCheck.h"
#include "GlobalFunction.h"
#include "WorkCmdMovePlatformXY.h"
//<2F>ƶ<EFBFBD><C6B6><EFBFBD>ԭ<EFBFBD><D4AD>
#define TO_ORIGIN _T("TO_ORIGIN")
//<2F>ƶ<EFBFBD><C6B6><EFBFBD>ȡ<EFBFBD>ϵ<EFBFBD>
#define TO_WORK_PT _T("TO_WORK_PT")
CCreaterPlatformMove::CCreaterPlatformMove(const CString &str)
:CCreaterWorkCmd(str)
{
}
CCreaterPlatformMove::~CCreaterPlatformMove(void)
{
}
void CCreaterPlatformMove::Creat()
{
//<2F><><EFBFBD><EFBFBD>1 <20><>ʾ<EFBFBD>˿ڿ<CBBF><DABF>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD><EFBFBD>
CString MoveMode = GetPar(1);
if(MoveMode == TO_ORIGIN)//<2F><><EFBFBD>ع<EFBFBD><D8B9><EFBFBD>ԭ<EFBFBD><D4AD>
{
CWorkCmdMovePlatformXY *pCmd = new CWorkCmdMovePlatformXY();
Dbxy MovePt;
Dbxy TargetPt;
#ifdef __PROGRAM_SHILAN_TUIHUO__
pCmd->SetMoveOrder(2);//Y <20><><EFBFBD>ȶ<EFBFBD>
#endif
pCmd->MoveToTargetPt(MovePt,TargetPt);
AddCmd(pCmd);
}
else if(MoveMode == TO_WORK_PT)//ȡ<>ϵ<EFBFBD>
{
CWorkCmdMovePlatformXY *pCmd = new CWorkCmdMovePlatformXY();
Dbxy MovePt;
Dbxy TargetPt(gPlatformXY->GetProductPoint());
#ifdef __LPS_IS3000__
pCmd->SetMoveOrder(2);//X <20><><EFBFBD>ȶ<EFBFBD>
#endif
pCmd->MoveToTargetPt(MovePt,TargetPt);
AddCmd(pCmd);
}
}