Tani OpcPipe protocol  1.0.5
Tani OpcPipe protocol
Macros
Quality values, conforming to OPC

Macros

#define QUALITY_MASK   0xfff
 the mask for the quality variable which contains more bits than the quality number
 
#define QUALITY_GOOD   0
 value good
 
#define QUALITY_CONFIGURATION_ERROR   1
 value not ok because of configuration error
 
#define QUALITY_NOT_CONNECTED   2
 value not ok because of connection not exist
 
#define QUALITY_DEVICE_FAILURE   3
 value not pl because of device failure
 
#define QUALITY_SENSOR_FAILURE   4
 value not ok because of sensor failure
 
#define QUALITY_LAST_KNOWN_VALUE   5
 last known good value (for resend from cache)
 
#define QUALITY_COMM_FAILURE   6
 value not ok because of connection failure. The connection does exist
 
#define QUALITY_OUT_OF_SERVICE   7
 value not ok because of device is out of service
 
#define QUALITY_WAITING_INITIAL_DATA   8
 no value retrieved yet
 
#define QUALITY_WRITE_PROTECTED   9
 write failed because value is read only
 
#define QUALITY_CORRECTED_VALUE   10
 invalid float to min or max
 
#define QUALITY_MORE_TO_COME   11
 in browse lists in last entry: call more.NoElements -> next offset
 
#define QUALITY_READ_PROTECTED   12
 read failed because value is not readable
 
#define QUALITY_CONVERT_FAILED   13
 data conversion failed
 
#define QUALITY_OVERLOAD   14
 not enough resources to handle the data
 
#define QUALITY_CERTIFICATE_BAD   15
 mostly UA
 
#define QUALITY_CERTIFICATE_UNTRUSTED   16
 mostly UA
 
#define QUALITY_CERTIFICATE_EXPIRED   17
 mostly UA
 
#define QUALITY_CERTIFICATE_CHAIN   18
 mostly UA
 
#define QUALITY_CERTIFICATE_SECURITY   19
 mostly UA
 
#define QUALITY_CERTIFICATE_REVOKED   20
 mostly UA
 
#define QUALITY_CERTIFICATE_HOST   21
 mostly UA
 
#define QUALITY_CERTIFICATE_ISSUER   22
 mostly UA
 
#define QUALITY_BOUND_NOT_FOUND   23
 for historian, marks oldest/newest value
 
#define QUALITY_DATA_LOST   24
 for historian, marks power off/on
 
#define QUALITY_DATA_SUBNORMAL   25
 for historian, marks aggregates with bad values
 
#define QUALITY_NO_DATA   100
 for user data and browsing
 
#define QUALITY_WAIT   101
 request completes asynchronously; used only between app and pipe lib
 
#define QUALITY_OPC_GOOD   QUALITY_GOOD
 value good
 

Detailed Description