2024-07-04 15:22:11 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "../Machine/Machine.h"
|
|
|
|
|
#include "../PLC/MachineCtrl.h"
|
|
|
|
|
#include "../PLC/CoreCommunication.h"
|
|
|
|
|
#include "../Config/ConfigManager.h"
|
|
|
|
|
#include "../Communication/ComServer.h"
|
|
|
|
|
#include "../remote/RemoteClient.h"
|
|
|
|
|
#include "../Purifier/BasePurifier.h"
|
|
|
|
|
#include <thread>
|
|
|
|
|
#include "../Registration/Registration.h"
|
|
|
|
|
#include "FileDialog.h"
|
|
|
|
|
#include "../additional/Calibration.h"
|
|
|
|
|
|
|
|
|
|
class Controller {
|
|
|
|
|
public:
|
|
|
|
|
Controller();
|
|
|
|
|
~Controller();
|
|
|
|
|
|
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
|
|
void StartSend(); //发送辅机的参数
|
|
|
|
|
void StopSend();
|
|
|
|
|
|
|
|
|
|
void UpdateFile(const string& filePath);
|
|
|
|
|
void PreperBeforeShow();
|
|
|
|
|
|
|
|
|
|
void ContinueTask(); //继续任务
|
|
|
|
|
public:
|
|
|
|
|
Machine* m_Machine;
|
|
|
|
|
CoreCommunication* m_CoreCommunication;
|
|
|
|
|
PLCAxis* m_Axis;
|
|
|
|
|
StateCtrlWrapper* m_StateCtrlWrapper;
|
|
|
|
|
SysParamWrapper* m_SysParamWrapper;
|
|
|
|
|
AxisRecordWrapper* m_AxisRecordWrapper;
|
|
|
|
|
SignalStateWrapper* m_SignalStateWrapper;
|
|
|
|
|
|
|
|
|
|
MachineCtrl* m_MachineCtrl;
|
|
|
|
|
RemoteClient* m_RemoteClient;
|
|
|
|
|
ComServer* m_ComServer;
|
|
|
|
|
BasePurifier* m_Purifier;
|
|
|
|
|
|
|
|
|
|
JobController m_jobController;
|
|
|
|
|
ScannerCtrl* m_ScannerCtrl;
|
|
|
|
|
|
|
|
|
|
MachineCfg* m_MachineCfg;
|
|
|
|
|
ExtCfg* m_ExtCfg;
|
|
|
|
|
|
|
|
|
|
Registration* m_reg;
|
|
|
|
|
HBDCamera* m_Camera;
|
|
|
|
|
|
|
|
|
|
FileDialog m_fileDialog;
|
|
|
|
|
|
|
|
|
|
InfraredTemp* m_InfraredTemp;
|
|
|
|
|
InfraredTempCfg* m_InfraredTempCfg;
|
|
|
|
|
Calibration* m_Calibration;
|
|
|
|
|
JobAssist m_JobAssist;
|
|
|
|
|
private:
|
|
|
|
|
bool m_sendTdExitFlag;
|
|
|
|
|
thread m_sendParamThread;
|
|
|
|
|
};
|