29 lines
587 B
C
29 lines
587 B
C
|
#pragma once
|
||
|
#include "BaseClient.h"
|
||
|
#include <map>
|
||
|
#include "../config/bean/IOCfg.h"
|
||
|
|
||
|
class PowderCarClient :public TcpClient
|
||
|
{
|
||
|
public:
|
||
|
PowderCarClient(CommunicationCfg* pconfig);
|
||
|
~PowderCarClient();
|
||
|
|
||
|
void InitCommand();
|
||
|
|
||
|
void GetWeightValue(float& pcar1, float& pcar2, float &ccar1, float &ccar2);
|
||
|
private:
|
||
|
void static PorcWeightValue(void* pobject, Command* pcommand);
|
||
|
void CycleBegin();
|
||
|
private:
|
||
|
map<char, float> m_WeightValues;
|
||
|
|
||
|
IOCfg* m_PrintStorageCar1Connect;
|
||
|
IOCfg* m_PrintStorageCar2Connect;
|
||
|
IOCfg* m_CleanStorageCar1Connect;
|
||
|
IOCfg* m_CleanStorageCar2Connect;
|
||
|
|
||
|
|
||
|
};
|
||
|
|