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.

26 lines
512 B
C++

#include "StdAfx.h"
#include "CreaterMotorToOffsetPos.h"
#include "WorkCmdMotorToOffsetPos.h"
#include "Laser.h"
CCreaterMotorToOffsetPos::CCreaterMotorToOffsetPos(const CString &str)
:CCreaterWorkCmd(str)
{
}
CCreaterMotorToOffsetPos::~CCreaterMotorToOffsetPos(void)
{
}
void CCreaterMotorToOffsetPos::Creat()
{
CWorkCmdMotorToOffsetPos *pCmd = NULL;
//参数1 表示那个电机
CString Motor = GetPar(1);
pCmd = new CWorkCmdMotorToOffsetPos(*(CMotor::GetMotor(Motor)));
AddCmd(pCmd);
}