44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
// protocol for control SevenOcean's Machine
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
#ifndef AFX_KEYENCE__LASER_H__B422904C_2CEB_495B_B7BD_B45AB30286DD__INCLUDED_
|
|
#define AFX_KEYENCE__LASER_H__B422904C_2CEB_495B_B7BD_B45AB30286DD__INCLUDED_
|
|
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "LkIF.h"
|
|
|
|
typedef BOOL (WINAPI* pLKIF_GetCalcData)(OUT LKIF_FLOATVALUE *CalcData1,OUT LKIF_FLOATVALUE *CalcData2);
|
|
// Starting the Data Storage
|
|
typedef BOOL (WINAPI* pLKIF_DataStorageStart)(void);
|
|
// Stopping the Data Storage
|
|
typedef BOOL (WINAPI* pLKIF_DataStorageStop)(void);
|
|
// Initializing the Data Storage
|
|
typedef BOOL (WINAPI* pLKIF_DataStorageInit)(void);
|
|
// Outputting the Data Storage
|
|
typedef BOOL (WINAPI* pLKIF_DataStorageGetData)(IN int OutNo,IN int NumOutBuffer,OUT LKIF_FLOATVALUE *OutBuffer,OUT int *NumReceived);
|
|
// Data Storage Accumulation Status Output
|
|
typedef BOOL (WINAPI* pLKIF_DataStorageGetStatus)(IN int OutNo,OUT BOOL *IsStorage,OUT int *NumStorageData);
|
|
|
|
|
|
//======================================================================================
|
|
class CKeyence_Laser
|
|
{
|
|
public:
|
|
|
|
CKeyence_Laser();
|
|
virtual ~CKeyence_Laser();
|
|
|
|
//»ñÈ¡Êý¾ÝµÄº¯ÊýÖ¸Õë
|
|
pLKIF_GetCalcData m_pGetCalcData;
|
|
HINSTANCE m_hLkif;
|
|
void KeyenceLaserInit(void);
|
|
void Get_KeyenceLaserData(float *LaserValue1,float *LaserValue2);
|
|
|
|
};
|
|
|
|
#endif
|