const int NETERR_OK = 0;
const int INVALIDITEMTYPE = -2;
const int PNAMELENGTH = 12; // 点名长度
const int INAMELENGTH = 2; // 项名长度
struct DB_Read_Request_Head
{
short shPointNum; // 点数
};
struct DB_Read_Request_Body
{
CString strPointName; // 点名
CString strItemName; // 项名
};
struct DB_Read_Reply_Head
{
short shPointNum; // 点数
};
struct DB_Read_Reply_Body
{
short shItemType; // 项类型
short shItemLength; // 项长度
};
// 实时数据库多点多项读接口
int RTDB_Read(char* pRequestBuf, int nRequestBufLen, char* pReplyBuf, int nReplyBufLen,
int nTimedOut = -1);
/*
Function: RTDB_ReadMultiItemMUMDWrap
Identifier:
Description: 读取数据库点的当前值、量程上下限
Input: strPointName: 点名
strItemName: 项名
Output: lpCurVal: 当前值
lpMU: 量程上限值
lpMD: 量程下限值
Return: TRUE: