📄 comacrsrvr.tlh
字号:
long nType,
long nArray,
long * nSize,
long * nAddr ) = 0;
virtual HRESULT __stdcall raw_IsFlagSet (
long nFlagGrp,
long nFlagNdx,
VARIANT_BOOL * bFlagSet ) = 0;
virtual HRESULT __stdcall raw_TestConnect (
VARIANT_BOOL * pVal ) = 0;
virtual HRESULT __stdcall raw_GetParmInfo (
long nParameter,
long * nType,
long * nCode,
long * nIndex,
BSTR * bstrCatagory,
BSTR * bstrDesc,
VARIANT_BOOL * bFound ) = 0;
virtual HRESULT __stdcall raw_SetWatchdog (
long nInterval,
long nRetries ) = 0;
virtual HRESULT __stdcall raw_GetACRGroupRaw (
long nType,
long nCode,
long nIndex,
VARIANT * Status ) = 0;
virtual HRESULT __stdcall raw_AddACRGroupRaw (
long nType,
long nCode,
long nIndex,
long * nMsgid ) = 0;
virtual HRESULT __stdcall raw_GetParmType (
long nParameter,
long * pVal ) = 0;
virtual HRESULT __stdcall raw_GetParmAddr (
long nParameter,
long * nAddr ) = 0;
};
struct __declspec(uuid("b1e87cfe-70a7-444d-9528-321f6928d4b4"))
Control;
// [ default ] interface IControl
struct __declspec(uuid("57da70aa-3b42-4345-a3a4-c19756a5056a"))
IControl : IDispatch
{
//
// Property data
//
__declspec(property(get=GetbstrVersion))
_bstr_t bstrVersion;
__declspec(property(get=GetnPort,put=PutnPort))
long nPort;
__declspec(property(get=GetnBPS,put=PutnBPS))
long nBPS;
__declspec(property(get=GetbstrIP,put=PutbstrIP))
_bstr_t bstrIP;
__declspec(property(get=GetnBus,put=PutnBus))
long nBus;
__declspec(property(get=GetisOffline))
VARIANT_BOOL isOffline;
__declspec(property(get=GetnMoveProfile,put=PutnMoveProfile))
long nMoveProfile;
__declspec(property(get=GetfMoveVEL,put=PutfMoveVEL))
float fMoveVEL;
__declspec(property(get=GetfMoveFVEL,put=PutfMoveFVEL))
float fMoveFVEL;
__declspec(property(get=GetfMoveACC,put=PutfMoveACC))
float fMoveACC;
__declspec(property(get=GetnMoveMode,put=PutnMoveMode))
long nMoveMode;
__declspec(property(get=GetbMoveAbsolute,put=PutbMoveAbsolute))
VARIANT_BOOL bMoveAbsolute;
__declspec(property(get=GetnMoveCounter,put=PutnMoveCounter))
long nMoveCounter;
__declspec(property(get=GetnArcMode,put=PutnArcMode))
long nArcMode;
__declspec(property(get=GetbArcAbsolute,put=PutbArcAbsolute))
VARIANT_BOOL bArcAbsolute;
__declspec(property(get=GetbArcCCW,put=PutbArcCCW))
VARIANT_BOOL bArcCCW;
__declspec(property(get=GetbOnConnectTest,put=PutbOnConnectTest))
VARIANT_BOOL bOnConnectTest;
__declspec(property(get=GetnCard))
long nCard;
//
// Wrapper methods for error-handling
//
_bstr_t GetbstrVersion ( );
long GetnPort ( );
void PutnPort (
long pVal );
long GetnBPS ( );
void PutnBPS (
long pVal );
_bstr_t GetbstrIP ( );
void PutbstrIP (
_bstr_t pVal );
long GetnBus ( );
void PutnBus (
long pVal );
VARIANT_BOOL GetisOffline ( );
long GetnMoveProfile ( );
void PutnMoveProfile (
long pVal );
float GetfMoveVEL ( );
void PutfMoveVEL (
float pVal );
float GetfMoveFVEL ( );
void PutfMoveFVEL (
float pVal );
float GetfMoveACC ( );
void PutfMoveACC (
float pVal );
long GetnMoveMode ( );
void PutnMoveMode (
long pVal );
VARIANT_BOOL GetbMoveAbsolute ( );
void PutbMoveAbsolute (
VARIANT_BOOL pVal );
long GetnMoveCounter ( );
void PutnMoveCounter (
long pVal );
long GetnArcMode ( );
void PutnArcMode (
long pVal );
VARIANT_BOOL GetbArcAbsolute ( );
void PutbArcAbsolute (
VARIANT_BOOL pVal );
VARIANT_BOOL GetbArcCCW ( );
void PutbArcCCW (
VARIANT_BOOL pVal );
VARIANT_BOOL GetbOnConnectTest ( );
void PutbOnConnectTest (
VARIANT_BOOL pVal );
long GetnCard ( );
HRESULT Disconnect ( );
HRESULT Connect (
long nTransport,
long nIndex );
HRESULT SetFlag (
long nBit,
VARIANT_BOOL bValue,
VARIANT_BOOL bFast );
HRESULT SetParmFloat (
long nPparm,
float fValue,
VARIANT_BOOL bFast );
HRESULT SetParmLong (
long nPparm,
long nValue,
VARIANT_BOOL bFast );
HRESULT SetGlobal (
long nCard,
long nGlobal,
double dValue,
VARIANT_BOOL bFast );
HRESULT Move (
long nMask,
const _variant_t & targets );
HRESULT Arc (
long nMask,
const _variant_t & targets );
HRESULT Stop (
VARIANT_BOOL bDecel );
HRESULT SendRES (
long nMask );
VARIANT_BOOL TestConnect ( );
HRESULT SetWatchdog (
long nInterval,
long nRetries );
HRESULT GetMoveCounter (
long * nCounter,
long * nIncrement );
HRESULT SetMoveCounter (
long nCounter,
long nIncrement );
HRESULT SetACRMemory (
long nType,
long nAddress,
const _variant_t & values );
HRESULT SetACRMemoryMask (
long nAddress,
long nNAND,
long nOR );
HRESULT SetParmLongMask (
long nPparm,
long nNAND,
long nOR );
HRESULT SetFOV (
long nMask,
float fValue );
HRESULT SetROV (
long nMask,
float fValue );
HRESULT InitPerformance ( );
_variant_t GetPerformance ( );
HRESULT MoveBatch (
long nType,
const _variant_t & moves );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_bstrVersion (
BSTR * pVal ) = 0;
virtual HRESULT __stdcall get_nPort (
long * pVal ) = 0;
virtual HRESULT __stdcall put_nPort (
long pVal ) = 0;
virtual HRESULT __stdcall get_nBPS (
long * pVal ) = 0;
virtual HRESULT __stdcall put_nBPS (
long pVal ) = 0;
virtual HRESULT __stdcall get_bstrIP (
BSTR * pVal ) = 0;
virtual HRESULT __stdcall put_bstrIP (
BSTR pVal ) = 0;
virtual HRESULT __stdcall get_nBus (
long * pVal ) = 0;
virtual HRESULT __stdcall put_nBus (
long pVal ) = 0;
virtual HRESULT __stdcall get_isOffline (
VARIANT_BOOL * pVal ) = 0;
virtual HRESULT __stdcall get_nMoveProfile (
long * pVal ) = 0;
virtual HRESULT __stdcall put_nMoveProfile (
long pVal ) = 0;
virtual HRESULT __stdcall get_fMoveVEL (
float * pVal ) = 0;
virtual HRESULT __stdcall put_fMoveVEL (
float pVal ) = 0;
virtual HRESULT __stdcall get_fMoveFVEL (
float * pVal ) = 0;
virtual HRESULT __stdcall put_fMoveFVEL (
float pVal ) = 0;
virtual HRESULT __stdcall get_fMoveACC (
float * pVal ) = 0;
virtual HRESULT __stdcall put_fMoveACC (
float pVal ) = 0;
virtual HRESULT __stdcall get_nMoveMode (
long * pVal ) = 0;
virtual HRESULT __stdcall put_nMoveMode (
long pVal ) = 0;
virtual HRESULT __stdcall get_bMoveAbsolute (
VARIANT_BOOL * pVal ) = 0;
virtual HRESULT __stdcall put_bMoveAbsolute (
VARIANT_BOOL pVal ) = 0;
virtual HRESULT __stdcall get_nMoveCounter (
long * pVal ) = 0;
virtual HRESULT __stdcall put_nMoveCounter (
long pVal ) = 0;
virtual HRESULT __stdcall get_nArcMode (
long * pVal ) = 0;
virtual HRESULT __stdcall put_nArcMode (
long pVal ) = 0;
virtual HRESULT __stdcall get_bArcAbsolute (
VARIANT_BOOL * pVal ) = 0;
virtual HRESULT __stdcall put_bArcAbsolute (
VARIANT_BOOL pVal ) = 0;
virtual HRESULT __stdcall get_bArcCCW (
VARIANT_BOOL * pVal ) = 0;
virtual HRESULT __stdcall put_bArcCCW (
VARIANT_BOOL pVal ) = 0;
virtual HRESULT __stdcall get_bOnConnectTest (
VARIANT_BOOL * pVal ) = 0;
virtual HRESULT __stdcall put_bOnConnectTest (
VARIANT_BOOL pVal ) = 0;
virtual HRESULT __stdcall get_nCard (
long * pVal ) = 0;
virtual HRESULT __stdcall raw_Disconnect ( ) = 0;
virtual HRESULT __stdcall raw_Connect (
long nTransport,
long nIndex ) = 0;
virtual HRESULT __stdcall raw_SetFlag (
long nBit,
VARIANT_BOOL bValue,
VARIANT_BOOL bFast ) = 0;
virtual HRESULT __stdcall raw_SetParmFloat (
long nPparm,
float fValue,
VARIANT_BOOL bFast ) = 0;
virtual HRESULT __stdcall raw_SetParmLong (
long nPparm,
long nValue,
VARIANT_BOOL bFast ) = 0;
virtual HRESULT __stdcall raw_SetGlobal (
long nCard,
long nGlobal,
double dValue,
VARIANT_BOOL bFast ) = 0;
virtual HRESULT __stdcall raw_Move (
long nMask,
VARIANT targets ) = 0;
virtual HRESULT __stdcall raw_Arc (
long nMask,
VARIANT targets ) = 0;
virtual HRESULT __stdcall raw_Stop (
VARIANT_BOOL bDecel ) = 0;
virtual HRESULT __stdcall raw_SendRES (
long nMask ) = 0;
virtual HRESULT __stdcall raw_TestConnect (
VARIANT_BOOL * pVal ) = 0;
virtual HRESULT __stdcall raw_SetWatchdog (
long nInterval,
long nRetries ) = 0;
virtual HRESULT __stdcall raw_GetMoveCounter (
long * nCounter,
long * nIncrement ) = 0;
virtual HRESULT __stdcall raw_SetMoveCounter (
long nCounter,
long nIncrement ) = 0;
virtual HRESULT __stdcall raw_SetACRMemory (
long nType,
long nAddress,
VARIANT values ) = 0;
virtual HRESULT __stdcall raw_SetACRMemoryMask (
long nAddress,
long nNAND,
long nOR ) = 0;
virtual HRESULT __stdcall raw_SetParmLongMask (
long nPparm,
long nNAND,
long nOR ) = 0;
virtual HRESULT __stdcall raw_SetFOV (
long nMask,
float fValue ) = 0;
virtual HRESULT __stdcall raw_SetROV (
long nMask,
float fValue ) = 0;
virtual HRESULT __stdcall raw_InitPerformance ( ) = 0;
virtual HRESULT __stdcall raw_GetPerformance (
VARIANT * data ) = 0;
virtual HRESULT __stdcall raw_MoveBatch (
long nType,
VARIANT moves ) = 0;
};
//
// Named GUID constants initializations
//
extern "C" const GUID __declspec(selectany) LIBID_BOXBRIDGELib =
{0xed506ee7,0x375e,0x4bf3,{0xbb,0xad,0xba,0x71,0x7e,0x28,0xa7,0x1d}};
extern "C" const GUID __declspec(selectany) CLSID_Utility =
{0xfb28dd27,0x1ac4,0x43b9,{0xaf,0xd7,0x8c,0xa6,0x00,0x3e,0xeb,0x7d}};
extern "C" const GUID __declspec(selectany) IID_IUtility =
{0xd49ec970,0x1b96,0x4514,{0xbe,0x5a,0xbf,0xc0,0xe5,0xaf,0xfc,0x4b}};
extern "C" const GUID __declspec(selectany) DIID__ITerminalEvents =
{0xa1c9e9e2,0x49bb,0x40a8,{0x8a,0x9b,0x30,0x10,0x51,0xd2,0x24,0xf2}};
extern "C" const GUID __declspec(selectany) CLSID_Terminal =
{0xe8393629,0x2efe,0x428a,{0xbf,0x36,0x36,0x5a,0x46,0x94,0x07,0x35}};
extern "C" const GUID __declspec(selectany) IID_ITerminal =
{0x2ee309a6,0x546f,0x4fa4,{0xb9,0xae,0xf7,0x6d,0x91,0xaa,0x01,0x33}};
extern "C" const GUID __declspec(selectany) CLSID_Config =
{0x36682cac,0xf0a6,0x45b3,{0xad,0x99,0xa1,0xa6,0xf8,0xa5,0xb0,0x5f}};
extern "C" const GUID __declspec(selectany) IID_IConfig =
{0x1a2c9178,0xa91b,0x47b2,{0xa8,0x83,0x63,0x83,0x5a,0x73,0x2d,0x57}};
extern "C" const GUID __declspec(selectany) DIID__IStatusEvents =
{0x548f6282,0xaee7,0x4afa,{0xb1,0xf6,0x8c,0x85,0x38,0x9d,0xd6,0x97}};
extern "C" const GUID __declspec(selectany) CLSID_Status =
{0x454fe70d,0x5dc2,0x4128,{0xa2,0xc8,0x89,0xb6,0xd9,0x8f,0x67,0xc2}};
extern "C" const GUID __declspec(selectany) IID_IStatus =
{0xd71eadd4,0x66cd,0x44b2,{0xa6,0x66,0x9a,0x8a,0x6d,0x2f,0xfd,0x24}};
extern "C" const GUID __declspec(selectany) CLSID_Control =
{0xb1e87cfe,0x70a7,0x444d,{0x95,0x28,0x32,0x1f,0x69,0x28,0xd4,0xb4}};
extern "C" const GUID __declspec(selectany) IID_IControl =
{0x57da70aa,0x3b42,0x4345,{0xa3,0xa4,0xc1,0x97,0x56,0xa5,0x05,0x6a}};
//
// Wrapper method implementations
//
#include "ComACRsrvr.tli"
#pragma pack(pop)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -