📄 ibhnet.tli
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8447.0 (36740eec).
//
// ibhnet.tli
//
// Wrapper implementations for Win32 type library ibhnet.dll
// compiler-generated file created 11/10/04 at 14:15:37 - DO NOT EDIT!
#pragma once
//
// interface IIIBHnet wrapper method implementations
//
inline HRESULT IIIBHnet::FirstStation ( BSTR * pVal ) {
HRESULT _hr = raw_FirstStation(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IIIBHnet::NextStation ( BSTR * pVal ) {
HRESULT _hr = raw_NextStation(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IIIBHnet::Connect ( _bstr_t Station, long MPIAdr ) {
HRESULT _hr = raw_Connect(Station, MPIAdr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IIIBHnet::Disconnect ( ) {
HRESULT _hr = raw_Disconnect();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IIIBHnet::ReadVal ( long typ, long nr, long DBNr, long size, long * val ) {
HRESULT _hr = raw_ReadVal(typ, nr, DBNr, size, val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IIIBHnet::ReadVals ( long typ, long nr, long DBNr, long size, SAFEARRAY * vals ) {
HRESULT _hr = raw_ReadVals(typ, nr, DBNr, size, vals);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IIIBHnet::WriteVal ( long typ, long nr, long DBNr, long size, long val ) {
HRESULT _hr = raw_WriteVal(typ, nr, DBNr, size, val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IIIBHnet::WriteVals ( long typ, long nr, long DBNr, long size, SAFEARRAY * vals ) {
HRESULT _hr = raw_WriteVals(typ, nr, DBNr, size, vals);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IIIBHnet::PLC_Store ( ) {
HRESULT _hr = raw_PLC_Store();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IIIBHnet::PLC_Restore ( ) {
HRESULT _hr = raw_PLC_Restore();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline long IIIBHnet::GetPLC_Run ( ) {
long _result;
HRESULT _hr = get_PLC_Run(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IIIBHnet::GetPLC_Version ( ) {
long _result;
HRESULT _hr = get_PLC_Version(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IIIBHnet::GetPLC_Cycles ( ) {
long _result;
HRESULT _hr = get_PLC_Cycles(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IIIBHnet::PutPLC_Stop ( long _arg1 ) {
HRESULT _hr = put_PLC_Stop(_arg1);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void IIIBHnet::PutPLC_Run_OB100 ( long _arg1 ) {
HRESULT _hr = put_PLC_Run_OB100(_arg1);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void IIIBHnet::PutPLC_Run_OB101 ( long _arg1 ) {
HRESULT _hr = put_PLC_Run_OB101(_arg1);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void IIIBHnet::PutPLC_Terminate ( long _arg1 ) {
HRESULT _hr = put_PLC_Terminate(_arg1);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t IIIBHnet::GetPLC_SerialNr ( ) {
BSTR _result;
HRESULT _hr = get_PLC_SerialNr(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IIIBHnet::GetPLC_Name ( ) {
BSTR _result;
HRESULT _hr = get_PLC_Name(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IIIBHnet::GetPLC_Firma ( ) {
BSTR _result;
HRESULT _hr = get_PLC_Firma(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IIIBHnet::GetPLC_Mlfb ( ) {
BSTR _result;
HRESULT _hr = get_PLC_Mlfb(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline long IIIBHnet::GetPLC_CycleAct ( ) {
long _result;
HRESULT _hr = get_PLC_CycleAct(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IIIBHnet::GetPLC_CycleMin ( ) {
long _result;
HRESULT _hr = get_PLC_CycleMin(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IIIBHnet::GetPLC_CycleMax ( ) {
long _result;
HRESULT _hr = get_PLC_CycleMax(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IIIBHnet::GetPLC_JitterMax ( ) {
long _result;
HRESULT _hr = get_PLC_JitterMax(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IIIBHnet::GetPLC_JitterAct ( ) {
long _result;
HRESULT _hr = get_PLC_JitterAct(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IIIBHnet::PutPLC_Load ( long _arg1 ) {
HRESULT _hr = put_PLC_Load(_arg1);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t IIIBHnet::GetPLC_InitPath ( ) {
BSTR _result;
HRESULT _hr = get_PLC_InitPath(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline long IIIBHnet::GetPLC_MemTotal ( ) {
long _result;
HRESULT _hr = get_PLC_MemTotal(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IIIBHnet::PutPLC_MemTotal ( long pVal ) {
HRESULT _hr = put_PLC_MemTotal(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IIIBHnet::GetPLC_MemFree ( ) {
long _result;
HRESULT _hr = get_PLC_MemFree(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IIIBHnet::PutPLC_MemFree ( long pVal ) {
HRESULT _hr = put_PLC_MemFree(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IIIBHnet::GetMD ( long nr ) {
long _result;
HRESULT _hr = get_MD(nr, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IIIBHnet::PutMD ( long nr, long pVal ) {
HRESULT _hr = put_MD(nr, pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IIIBHnet::GetMW ( long nr ) {
long _result;
HRESULT _hr = get_MW(nr, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IIIBHnet::PutMW ( long nr, long pVal ) {
HRESULT _hr = put_MW(nr, pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IIIBHnet::GetMB ( long nr ) {
long _result;
HRESULT _hr = get_MB(nr, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IIIBHnet::PutMB ( long nr, long pVal ) {
HRESULT _hr = put_MB(nr, pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IIIBHnet::GetM ( long nr, long bit ) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -