?? pb_err.h
字號:
#define LLI_FMA7_RC1 1 /* error while activating SAP (result in AD) */
#define LLI_FMA7_RC2 2 /* error while deactivating SAP (result in AD) */
#define LLI_FMA7_RC3 3 /* error during FDL_XXX_UPDATE (result in AD) */
#define LLI_FMA7_RC4 4 /* error while activ. poll list entry (see AD) */
#define LLI_FMA7_RC5 5 /* error while deactiv. poll list entry (see AD)*/
#define LLI_FMA7_RC6 6 /* illegal FDL prim. during ASS or ABT (see AD) */
#define LLI_FMA7_RC7 7 /* illegal FDL prim. in data transfer (see AD) */
#define LLI_FMA7_RC8 8 /* unknown FDL primitive */
#define LLI_FMA7_RC9 9 /* unknown LLI primitive */
#define LLI_FMA7_RC10 10 /* illegal LLI prim. during ASS or ABT (see AD) */
#define LLI_FMA7_RC11 11 /* illegal LLI prim. in data transfer (see AD) */
#define LLI_FMA7_RC12 12 /* SDA failed (result in AD) */
#define LLI_FMA7_RC13 13 /* CSRD transmission failed (result in AD) */
#define LLI_FMA7_RC14 14 /* SRD failed (result in AD) */
#define LLI_FMA7_RC15 15 /* SDN failed (result in AD) */
#define LLI_FMA7_RC16 16 /* CSRD reception failed (result in AD) */
#define LLI_FMA7_RC17 17 /* poll list loading failed (result in AD) */
#define LLI_FMA7_RC18 18 /* timer 1 expired (associate) */
#define LLI_FMA7_RC19 19 /* timer 2 expired (abort) */
#define LLI_FMA7_RC20 20 /* poll list deactivation failed (result in AD) */
#define LLI_FMA7_RC21 21 /* no matching comm. reference found */
#define LLI_FMA7_RC22 22 /* illegal FMA1/2 prim. (see AD) */
#define LLI_FMA7_RC23 23 /* illegal FDL prim. during LLI start (see AD) */
#define LLI_FMA7_RC24 24 /* confirm / indication mode error */
#define LLI_FMA7_RC25 25 /* timer error */
#define LLI_FMA7_RC26 26 /* resource transfer to FDL failed */
#define LLI_FMA7_RC27 27 /* resource error during associate */
#define LLI_FMA7_RC28 28 /* resource error in data transfer phase */
#define LLI_FMA7_RC29 29 /* resource error during abort */
#define LLI_FMA7_RC30 30 /* LLI state error */
#endif
/****************************************************************************/
/*********************** FM2 EVENT CODES *****************************/
/****************************************************************************/
#define FM2_FAULT_ADDRESS 0x01 /* duplicate address recognized */
#define FM2_FAULT_PHY 0x02 /* phys.layer is malfunctioning */
#define FM2_FAULT_TTO 0x03 /* time out on bus detected */
#define FM2_FAULT_SYN 0x04 /* no receiver synchronization */
#define FM2_FAULT_OUT_OF_RING 0x05 /* station out of ring */
#define FM2_GAP_EVENT 0x06 /* new station in ring */
#if (PB_VER < 500)
#define FMA2_FAULT_ADDRESS 0x01 /* duplicate address recognized */
#define FMA2_FAULT_TRANSCEIVER 0x02 /* transceiver error occured */
#define FMA2_FAULT_TTO 0x03 /* time out on bus detected */
#define FMA2_FAULT_SYN 0x04 /* no receiver synchronization */
#define FMA2_FAULT_OUT_OF_RING 0x05 /* station out of ring */
#define FMA2_GAP_EVENT 0x06 /* new station in ring */
#endif
/* --- Additional FM2-Events ---------------------------------------------- */
#define FM2_MAC_ERROR 0x13 /* fatal MAC error */
#define FM2_HW_ERROR 0x14 /* fatal HW error */
/****************************************************************************/
/************* FMB ERROR CLASSES and ERROR CODES *********************/
/****************************************************************************/
#define E_FMB_RESOURCE_OTHER 0x0200
#define E_FMB_RESOURCE_MEM_UNAVAILABLE 0x0201
#define E_FMB_SERV_OTHER 0x0300
#define E_FMB_SERV_OBJ_STATE_CONFLICT 0x0301
#define E_FMB_SERV_OBJ_CONSTR_CONFLICT 0x0302
#define E_FMB_SERV_PARAM_INCONSIST 0x0303
#define E_FMB_SERV_ILLEGAL_PARAM 0x0304
#define E_FMB_SERV_PERM_INTERN_FAULT 0x0305
#define E_FMB_SERV_LOCAL_DISCONNECT 0x0306
#define E_FMB_SERV_NO_ACKNOWLEDGE 0x0307
#define E_FMB_ACCESS_OTHER 0x0500
#define E_FMB_ACCESS_OBJ_ACC_UNSUP 0x0501
#define E_FMB_ACCESS_OBJ_NON_EXIST 0x0502
#define E_FMB_ACCESS_OBJ_ACCESS_DENIED 0x0503
#define E_FMB_ACCESS_HARDWARE_FAULT 0x0504
#define E_FMB_ACCESS_TYPE_CONFLICT 0x0505
#define E_FMB_OTHER 0x0700
#define E_FMB_CFG_DP_OTHER 0x0900
#define E_FMB_CFG_DP_TOO_MANY_SLAVES 0x0901
#define E_FMB_CFG_DP_WRONG_IO_DATA_LEN 0x0902
#define E_FMB_CFG_DP_IO_ALIGNMENT_ERROR 0x0903
#define E_FMB_CFG_DP_TOO_FEW_DIAG_ENTRIES 0x0904
#define E_FMB_CFG_DP_WRONG_DIAG_DATA_LEN 0x0905
#define E_FMB_CFG_DP_WRONG_BUS_PARA_LEN 0x0906
#define E_FMB_CFG_DP_WRONG_SLAVE_PARA_LEN 0x0907
#define E_FMB_CFG_DP_DPRAM_ERROR 0x0908
/****************************************************************************/
/************* DP ERROR CLASSES and ERROR CODES *********************/
/****************************************************************************/
/*--- DP SERVICE RESULTS ---------------------------------------------------*/
#define E_DP_OK 0x0000 /* acknowledgement positive */
#define E_DP_UE 0x0001 /* remote user error */
#define E_DP_RR 0x0002 /* remote resource insufficient */
#define E_DP_RS 0x0003 /* remote service/SAP deactivated */
#define E_DP_RA 0x0004 /* access of remote SAP blocked */
#define E_DP_NA 0x0011 /* no reaction from remote station */
#define E_DP_DS 0x0012 /* local entity disconnected */
#define E_DP_NO 0x0013 /* not possible in this state */
#define E_DP_LR 0x0014 /* local resource not available */
#define E_DP_IV 0x0015 /* invalid parameter in request */
#define E_DP_TO 0x0016 /* timeout expired */
#define E_DP_FE 0x00C1 /* format error in request frame */
#define E_DP_NI 0x00C2 /* function not implemented */
#define E_DP_AD 0x00C3 /* access denied */
#define E_DP_EA 0x00C4 /* area too large */
#define E_DP_LE 0x00C5 /* data block length exceeded */
#define E_DP_RE 0x00C6 /* format error in response frame */
#define E_DP_IP 0x00C7 /* invalid parameter */
#define E_DP_SC 0x00C8 /* sequence conflict */
#define E_DP_SE 0x00C9 /* sequence error */
#define E_DP_NE 0x00CA /* area non-existent */
#define E_DP_DI 0x00CB /* data incomplete */
#define E_DP_NC 0x00CC /* not connected */
#define E_DP_DATA_ALIGNMENT 0x0100
#define E_DP_TOO_MANY_SLAVES 0x0200
#define E_DP_WRONG_SLAVE_ADD 0x0300
#define E_DP_AAM_NOT_SUPPORTED 0x0400
#define E_DP_TOO_FEW_DIAG_ENTRIES 0x0500
#define E_DP_WRONG_PRM_DATA_LEN 0x0600
#define E_DP_WRONG_CFG_DATA_LEN 0x0700
#define E_DP_WRONG_DIAG_LEN 0x0800
#define E_DP_WRONG_BUS_PARA_LEN 0x0900
#define E_DP_WRONG_SLAVE_PARA_LEN 0x0A00
#define E_DP_WRONG_IO_DATA_LEN 0x0B00
#define E_DP_NOT_ENOUGH_MEMORY 0x0C00
#define E_DP_WRONG_USIF_STATE 0x0D00
#define E_DP_SLAVE_ACCESS_DENIED 0x0E00
#define E_DP_WRONG_AREA_CODE 0x0F00
#define E_DP_NOT_SUPPORTED 0x1000
#define E_DP_PRM_DATA_FAULT 0x1100
#define E_DP_CFG_DATA_FAULT 0x1200
#define E_DP_AAT_DATA_FAULT 0x1300
#define E_DP_USER_DATA_FAULT 0x1400
#define E_DP_SLAVE_PARA_FAULT 0x1500
#define E_DP_AREA_NOT_ACCESSED 0x1600
#define E_DP_WRONG_BAUDRATE 0x1700
#define E_DP_WRONG_BP_FLAG 0x1800
#define E_DP_WRONG_FDL_STATE 0x1900
#define E_DP_WRONG_ACTIVATION 0x1A00
#define E_DP_WRONG_MASTER_ADD 0x1B00
#define E_DP_DPRAM_INIT_ERROR 0x1C00
#define E_DP_WRONG_LEN 0x1D00
#define E_DP_WRONG_IDENTIFIER 0x1F00
#define E_DP_LOAD_BUS_PARAMETER 0x2000
#define E_DP_ACTIVATE_SAP 0x2100
#define E_DP_WRONG_REMOTE_SERVICE 0x2200
#define E_DP_ILLEGAL_INDEX 0x2300
#define E_DP_ILLEGAL_SLOT 0x2400
#define E_DP_ILLEGAL_LENGTH 0x2500
#define E_DP_ILLEGAL_EXTENSION 0x2600
/****************************************************************************/
/************* DP ERROR CODE DEFINITIONS ****************************/
/****************************************************************************/
/*--- DPS SERVICE RESULTS ---------------------------------------------------*/
#define E_DPS_OK 0x0000 /* acknowledgement positive */
#define E_DPS_UE 0x0001 /* remote user error */
#define E_DPS_RR 0x0002 /* remote resource insufficient */
#define E_DPS_RS 0x0003 /* remote service/SAP deactivated */
#define E_DPS_RA 0x0004 /* access of remote SAP blocked */
#define E_DPS_NA 0x0011 /* no reaction from remote station */
#define E_DPS_DS 0x0012 /* local entity disconnected */
#define E_DPS_NO 0x0013 /* not possible in this state */
#define E_DPS_LR 0x0014 /* local resource not available */
#define E_DPS_IV 0x0015 /* invalid parameter in request */
#define E_DPS_TO 0x0016 /* timeout expired */
#define E_DPS_FE 0x00C1 /* format error in request frame */
#define E_DPS_NI 0x00C2 /* function not implemented */
#define E_DPS_AD 0x00C3 /* access denied */
#define E_DPS_EA 0x00C4 /* area too large */
#define E_DPS_LE 0x00C5 /* data block length exceeded */
#define E_DPS_RE 0x00C6 /* format error in response frame */
#define E_DPS_IP 0x00C7 /* invalid parameter */
#define E_DPS_SC 0x00C8 /* sequence conflict */
#define E_DPS_SE 0x00C9 /* sequence error */
#define E_DPS_NE 0x00CA /* area non-existent */
#define E_DPS_DI 0x00CB /* data incomplete */
#define E_DPS_NC 0x00CC /* not connected */
/*--- DPS ERROR EXTENSIONS --------------------------------------------------*/
#define E_DPS_DUPLICATED_SERVICE 0x0100
#define E_DPS_WRONG_SLAVE_ADDRESS 0x0200
#define E_DPS_WRONG_CFG_LEN 0x0300
#define E_DPS_WRONG_PRM_LEN 0x0400
#define E_DPS_WRONG_DIAG_LEN 0x0500
#define E_DPS_WRONG_SSA_LEN 0x0600
#define E_DPS_WRONG_ENHANCED_INIT_LEN 0x0700
#define E_DPS_ILLEGAL_CFG_DATA 0x0800
#define E_DPS_NOT_ENOUGH_FRAME_MEMORY 0x0900
#define E_DPS_WRONG_INPUT_LEN 0x0A00
#define E_DPS_WRONG_OUTPUT_LEN 0x0B00
#define E_DPS_INVALID_DIAG_STATE 0x0C00
#define E_DPS_INVALID_EXT_DIAG_DATA 0x0D00
#define E_DPS_SSA_REQUIRED 0x0E00
#define E_DPS_SSA_NOT_SUPPORTED 0x0F00
/*****************************************************************************/
/************* DP/V1 ERROR PDU CODING *********************/
/*****************************************************************************/
#define DP_ERROR_DECODE_DPV1 128 /* error_decode */
#define DP_ERROR_DECODE_FMS 254
#define DP_ERROR_DECODE_HART 255
/* error_code_1 */
/* If error_decode is DP_ERROR_DECODE_DPV1, the following is valid */
/* error classes 0 to 9 are reserved, classes 13 to 15 are slave specific */
#define DP_ERROR_CLASS_APPLICATION 0xA0
/* errors 3 to 7 are reserved, errors 10 to 15 are slave specific */
#define DP_ERROR_APP_READ (DP_ERROR_CLASS_APPLICATION | 0x00)
#define DP_ERROR_APP_WRITE (DP_ERROR_CLASS_APPLICATION | 0x01)
#define DP_ERROR_APP_MODUL_FAILURE (DP_ERROR_CLASS_APPLICATION | 0x02)
#define DP_ERROR_APP_VERSION_CONFLICT (DP_ERROR_CLASS_APPLICATION | 0x08)
#define DP_ERROR_APP_FEATURE (DP_ERROR_CLASS_APPLICATION | 0x09)
#define DP_ERROR_CLASS_ACCESS 0xB0
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -