// OmronTempCtrlE5CN.h: interface for the COmronTempCtrlE5CN class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_OMRONTEMPCTRLE5CN_H__AB3B6F85_9106_44F5_B39E_4CE4312926B0__INCLUDED_)
#define AFX_OMRONTEMPCTRLE5CN_H__AB3B6F85_9106_44F5_B39E_4CE4312926B0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "OmronCompoWayF.h"

#ifdef  BUILD_COMMDLL
#define     COMMDLL_DLLCLASS    __declspec(dllexport)
#else
#define     COMMDLL_DLLCLASS    __declspec(dllimport)
#endif

class COMMDLL_DLLCLASS COmronTempCtrlE5CN : public COmronCompoWayF
{
public:
    bool ReadCurrentTemperature(CString csNodeNo, double &dCurrentTemp, DWORD dwTimeout = 2000);
    bool WriteSetTemperature(CString csNodeNo, double dSetTemp, DWORD dwTimeout = 2000);
    bool ReadSetTemperature(CString csNodeNo, double &dSetTemp, DWORD dwTimeout = 2000);
    void DecodeReceiveData();
    COmronTempCtrlE5CN(CString csNodeNo = "00");
    virtual ~COmronTempCtrlE5CN();

private:
    CString m_csSetTemperature;
    CString m_csCurrentTemperature;
    CString m_csVariableAdd;
    CString m_csVariableType;

    CMutex m_mutexOmronTempCtrl;
};

#endif // !defined(AFX_OMRONTEMPCTRLE5CN_H__AB3B6F85_9106_44F5_B39E_4CE4312926B0__INCLUDED_)
