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.

39 lines
1.6 KiB
C++

#pragma once
#include "module.h"
#include "GlobalDefine.h"
class CMachineGateMgr :public CModule
{
friend class CSemiSecsCommMgr;
public:
CMachineGateMgr(void);
~CMachineGateMgr(void);
virtual CMFCPropertyGridProperty *CreatGridProperty();
virtual MODULE GetModuleType(){return _MACHINE_GATE_PROP;};
virtual CString GetParDirName(){return "MachineGateMgr";};
void SetbMachineGateOrg(bool b){m_bMachineGateOrg = b;};
bool IsbMachineGateOrg(){return m_bMachineGateOrg;};
double GetMachineGateMoveVal(){return m_MachineGateMoveVal;};
double GetMotorWSpeed();
eTwoIOPtCtrlState GetMachineGateState();
void FindOrg();
void CheckState(bool bOpen);
int GetMachineGateCheckDelay(){return m_MachineGateCheckDelay;};
bool IsbMachineGateNeedInit(){return m_bMachineGateNeedInit;};
bool IsbCloseMachineGateOnTestDlgClose(){return m_bCloseMachineGateOnTestDlgClose;};
bool IsbMachineGateCheck(){return m_bMachineGateCheck;};
private:
private:
int m_MachineGateMoveVal;//光闸翻转的坐标(保存值)
int m_MachineGateCheckDelay;//光闸检测延时描述ms(保存值)
bool m_bMachineGateNeedInit;//打开光闸时需要初始化(保存值)
bool m_bCloseMachineGateOnTestDlgClose;//关闭调试界面的时候自动关闭光闸(保存值)
bool m_bMachineGateCheck;//手动开关机械光闸时不要检查状态(保存值)
bool m_bMachineGateOrg;//光闸是否初始化
};
extern CMachineGateMgr *gMachineGateMgr;