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.

38 lines
720 B
C++

#pragma once
#include <string>
#include "CommMgr.h"
#include "JelExportDefine.h"
#include "GlobalDefine.h"
class _declspec(dllexport) JelExcecute
{
public:
JelExcecute();
~JelExcecute();
public:
bool InitJelRobot(int serialPort, int baudRate);
bool SendRobotCmd(CRobotCmdInfo& RobotCmd);
public:
void OnRobotCommRecv();
private:
void RobotJel_GetSendCmd(CRobotCmdInfo& RobotCmd);
eGlobalVariableType RobotJel_SendCmdToRobotExt(CRobotCmdInfo &RobotCmd);
private:
int m_nWaitTime = 60; //最大等待时间为60S
CCommMgr m_RobotComm;//和机械手通信用的串口对象
int m_nBaud = 9600; //波特率
int m_nPort = 2; //串口
bool m_IsbJelCommRecv = false;//是否收到串口消息
public:
bool m_armIsExistWafer = false;
};