📄 fms_user.h
字号:
#define ALI_REMOTE_ERR 0x81 /* Negative response from remote station */
#define ALI_F_VFD_WRONG_STATE 0x87 /* VFD inoperable (check config.) */
#define ALI_FMS_MSG_F 0x88 /* FMS set MSG.F in the answer */
#define ALI_RECOVERY_ERR 0x88 /* Recoverable error - abort and then send again*/
/*---------------------------------------------------------------------------------------------------*/
/* Error means something is wrong with the message the user send to the board */
/* It makes no sense to repeat the command. Please show the error, because this is normaly a system */
/* error in the user application or the user driver. */
/*---------------------------------------------------------------------------------------------------*/
#define ALI_TASK_NOT_INIT 0x89 /* reserved */
#define ALI_DATA_TYPE_INVALID 0x8A /* Invalid PROFIBUS-datatype */
#define ALI_DATA_CNT_INVALID 0x8C /* Check Messagelength and Datacount */
#define ALI_UNKNOWN_FMS_SERVICE 0x8D /* */
#define ALI_USER_UNKNOWN_ID 0x8E /* Unknown MSG.NR = ID get from user */
#define ALI_USER_ANSWER_NON_EXPECTED 0x8F /* Non expected reply received from user */
#define ALI_OD_ACCESS_TYPE 0x90 /* Unknown bAccess */
#define ALI_OD_ACCESS_MODE 0x91 /* Unknown Access Mode */
#define ALI_OD_ACCESS_ERR 0x92 /* OV_NEXT without OV_FIRST */
#define ALI_OD_OBJ_ERR 0x93 /* Access error for local object */
#define ALI_OD_ACCESS_OBJ 0x94 /* Local object non exsistent */
#define ALI_USER_DATA_ERR 0x95 /* Too less data received from the user */
#define ALI_FMS_UNKNOWN_ID 0x96 /* Invalid Invoke ID from FMS */
#define ALI_CR_INVALID 0x97 /* Invalid CR */
#define ALI_MESSAGE_LEN 0x98 /* Message length < Telegram header */
#define ALI_SEGMENT_MISSING 0x9A /* Currently no segments available at ALI */
#define ALI_UNKNOWN_SERVICE 0x9B /* Unknown PROFIBUS-service=> check 'srv'-byte */
#define ALI_B_UNKNOWN 0x9C /* Unknown command > check msg.b */
#define ALI_A_UNKNOWN 0x9D /* Unknown answer > check msg.a */
#define ALI_FDL_UNKNOWN_SERVICE 0xA0 /* Unknown service forv FDL defined */
#define ALI_FDL_DATA_TYPE 0xA1 /* Invalid bData Type for FDL defined */
#define ALI_FDL_DATA_CNT 0xA2 /* Invalid bDataCnt for FDL defined */
#define ALI_LOCAL_SAP_INVALID 0xA3 /* Local SAP non existing on actual CR for FDL */
/* communication */
#define ALI_FDL_ID_ERROR 0xA4 /* Unknown FDL reply */
#define ALI_REMOTE_DATA_ERR 0xA5 /* Error at reply from FDL defined */
#define ALI_FDL_TO_LESS_DATA 0xA6 /* Reply from FDL defined containes to less */
/* data */
#define ALI_VFD_F_LOGICAL 0xB0 /* Invalid logical state */
#define ALI_VFD_F_PHYSICAL 0xB1 /* Invalid physical state */
#define ALI_VFD_F_DEATIL_LEN 0xB2 /* Invalid DetailLen by setting VFD state */
#define ALI_MESSGAE_ERR 0xBF /* Message error - delete command */
/*---------------------------------------------------------------------------------------------------*/
/* System error during startung phase of the system. */
/* Please show the error number and call Hilscher. */
/*---------------------------------------------------------------------------------------------------*/
#define ALI_INIT_DBM_ERR 0xC1 /* Database error during initialisation */
#define ALI_INIT_OC_NOT_SUPPORTED 0xC2 /* Not supportded OC at OD */
#define ALI_MAX_KR_ERR 0xC4 /* To many Communication References */
#define ALI_F_DBM 0xC6 /* Error during access at the database */
/* Initiate negativ error codes -------------------------------------------------------------------- */
/* Used as bErrorCode in INITIATE_ERR -------------------------------------------------------------- */
/* EN 50170-6-2:1996 page 438 ---------------------------------------------------------------------- */
#define ERR_INITIATE_OTHER 0
#define ERR_INITIATE_MAX_PDU_SIZE_UNSUFFICIENT 1
#define ERR_INITIATE_FEATURE_NOT_SUPPORTED 2
#define ERR_INITIATE_VERSION_OD_INCOMPATIBLE 3
#define ERR_INITIATE_USER_INITIATE_DENIED 4
#define ERR_INITIATE_PASSWORD 5
#define ERR_INITIATE_PROFILE_NUMBER_INCOMPATIBLE 6
/* Reject codes ------------------------------------------------------------------------------------ */
/* Used at REJECT_IND ------------------------------------------------------------------------------ */
#define REJ_OTHER 0
#define REJ_INVOKE_ID_EXIST 1
#define REJ_MAX_SERVICE_OVERFLOW 2
#define REJ_FEATURE_NOT_SUPPORTED_CO 3 /* Connnection oriented */
#define REJ_FEATURE_NOT_SUPPORTED_CL 4 /* Connectionless */
#define REJ_PDU_SIZE 5
/* FDL error codes --------------------------------------------------------------------------------- */
/* Code 0x01 - 0x1F is used as Msg.f 0x61 - 0x7F --------------------------------------------------- */
/* If Code > 0x1F than Msg.f is 0x60 --------------------------------------------------------------- */
#define CON_OK 0x00 /* No error */
#define CON_UE 0x01 /* Remote-DDLM/FDL interface error */
#define CON_RR 0x02 /* Negative acknowledgement, resource of the */
/* Remote FDL controller not available or not */
/* Sufficent and reply data not available */
#define CON_RS 0x03 /* Service not activated at Remote-SAP */
#define CON_RA 0x04 /* ACK. negative: access-point blocked */
/* 0x05 reserved */
/* 0x06 reserved */
/* 0x07 reserved */
#define CON_DL 0x08 /* Negative acknowledgment for send data, */
/* resource of the remote FDL controller not */
/* available or not sufficent, reply data with */
/* low priority available */
#define CON_NR 0x09 /* Negative acknowledgment for send data, */
/* resource of the remote FDL controller not */
/* available or not sufficent, reply data with */
/* high priority available */
#define CON_DH 0x0A /* Response-data (l_sdu) high available */
/* 0x0B reserved */
#define CON_RDL 0x0C /* Response-data (l_sdu) low available, */
/* but negative-ACK for send-data */
#define CON_RDH 0x0D /* Response-data (l_sdu) high available, */
/* but negative-ACK for send-data */
/* 0x0E reserved */
/* 0x0F reserved */
#define CON_LS 0x10 /* Service not activated at local sap */
#define CON_NA 0x11 /* Keine Reaktion vom Remote-Teilnehmer */
#define CON_DS 0x12 /* Local-FDL/PHY-Steuerung nicht im Ring */
#define CON_NO 0x13 /* Dienst in diesem Zustand nicht m攇liche */
#define CON_LR 0x14 /* Resource of local FDL not available */
#define CON_IV 0x15 /* Ilegale Parameter at request */
#define CON_BR 0x16 /* Buffer return for sda, srd, sdn */
#define CON_NM 0x17 /* Noice, more than one station */
#define CON_NC 0x18 /* Incompatibel master parameter set */
#define CON_NP 0x19 /* No plausible reaction from remote station */
#define CON_NL 0x1A /* Local configurator variable is set */
#define CON_RD 0x1B /* Reply data available */
#define CON_SV 0x1C /* Sequence violation by sm-time service */
/* 0x1D reserved */
/* 0x1E reserved */
/* 0x1F reserved */
#define CON_LO 0x20 /* Low-prior response-data are sent at this srd */
#define CON_HI 0x21 /* High-prior response-data are sent at this srd*/
#define CON_NO_DATA 0x22 /* NO-DATA are sent at this srd */
/* 0x23 reserved */
/* ... */
/* 0x2F reserved */
#define CON_TO 0x30 /* Timout function */
#define CON_FE 0x31 /* Format error at request telegram */
#define CON_RE 0x32 /* Format error at response telegram */
#define CON_LE 0x33 /* Data block size to large (Up-/Download) */
#define CON_NI 0x34 /* Function not available at Responder */
#define CON_EA 0x35 /* Ilegale range (UP-/Download) */
#define CON_AD 0x36 /* Access denied */
#define CON_IP 0x37 /* Ilegale parameter */
#define CON_SC 0x38 /* Ilegale function */
#define CON_SE 0x39 /* Sequence error */
#define CON_NE 0x3A /* Data range not availabel at responder */
#define CON_DI 0x3B /* Data not complete or ilegale */
/* 0x3C reserved */
/* ... */
/* 0x4F reserved */
#define CON_LEN 0x50 /* Data not complete or ilegale */
/* Remote error class / codes ---------------------------------------------------------------------- */
/* Used at chErrorClass and chErrorCode in Error_Type --------------------------------------------- */
/* EN 50170-6-2:1996 page 432 --------------------------------------------------------------------- */
#define ERR_TYPE_CLASS_VFD_STATE 1
#define ERR_TYPE_CLASS_APP_REFERENCE 2
#define ERR_TYPE_CODE_APP_UNREACHABLE 1
#define ERR_TYPE_CLASS_DEFINITION 3
#define ERR_TYPE_CODE_OBJ_UNDEFINED 1
#define ERR_TYPE_CODE_OBJ_ATTRIBUTE_INCONSISTEND 2
#define ERR_TYPE_CODE_NAME_ALREADY_EXIST 3
#define ERR_TYPE_CLASS_RESOURCE 4
#define ERR_TYPE_CODE_MEMORY_UNAVAILABLE 1
#define ERR_TYPE_CLASS_SERVICE 5
#define ERR_TYPE_OBJ_STATE_CONFLICT 1
#define ERR_TYPE_PDU_SIZE 2
#define ERR_TYPE_CODE_OBJ_CONSTRAINT_CONFLICT 3
#define ERR_TYPE_PARAMETER_INCONSISTENT 4
#define ERR_TYPE_ILLEGAL_PARAMETER 5
#define ERR_TYPE_CLASS_ACCESS 6
#define ERR_TYPE_CODE_OBJ_INVALIDATED 1
#define ERR_TYPE_CODE_HARDWARE_FAULT 2
#define ERR_TYPE_CODE_OBJ_ACCESS_DENIED 3
#define ERR_TYPE_CODE_INVALID_ADDRESS 4
#define ERR_TYPE_CODE_OBJ_ATTRIBUTES_INCONSISTENT 5
#define ERR_TYPE_CODE_OBJ_ACCESS_UNSUPPORTED 6
#define ERR_TYPE_CODE_OBJ_NON_EXISTENT 7
#define ERR_TYPE_CODE_TYPE_CONFLICT 8
#define ERR_TYPE_CODE_NAMED_ACCESS_UNSUPPORTED 9
#define ERR_TYPE_CLASS_OD 7
#define ERR_TYPE_NAME_LENGTH_OVERFLOW 1
#define ERR_TYPE_OD_OVERFLOW 2
#define ERR_TYPE_OD_WRITE_PROTECTED 3
#define ERR_TYPE_EXTENSION_LENGTH_OVERFLOW 4
#define ERR_TYPE_OD_DESCRIPTION_LENGTH_OVERFLOW 5
#define ERR_TYPE_OPERATIONAL_PROBLEM 6
#define ERR_TYPE_CLASS_OTHER 8
#define ERR_TYPE_CODE_OTHER 0
/* Abort Identifier / Reason Code ------------------------------------------------------------------ */
/* Used at bAbortIdentifier / bReasonCode in ABORT_IND -------------------------------------------- */
/* EN 50170-5-2:1996 page 308 and EN 50170-6-2:1996 page 684 -------------------------------------- */
#define USER_ABT_IDENTIFIER 0
#define FMS_ABT_IDENTIFIER 1
#define LLI_ABT_IDENTIFIER 2
#define FDL_ABT_IDENTIFIER 3
#define USER_ABT_RC1 0
#define USER_ABT_RC2 1
#define USER_ABT_RC3 2
#define USER_ABT_RC4 3
#define USER_ABT_RC5 4
#define USER_ABT_RC6 5
#define FMS_ABT_RC1 0
#define FMS_ABT_RC2 1
#define FMS_ABT_RC3 2
#define FMS_ABT_RC4 3
#define FMS_ABT_RC5 4
#define FMS_ABT_RC6 5
#define FMS_ABT_RC7 6
#define FMS_ABT_RC8 7
#define FMS_ABT_RC9 8
#define FMS_ABT_RC10 9
#define FMS_ABT_RC11 10
#define FMS_ABT_RC12 11
#define FMS_ABT_RC13 12
#define LLI_ABT_RC1 0
#define LLI_ABT_RC2 1
#define LLI_ABT_RC3 2
#define LLI_ABT_RC4 3
#define LLI_ABT_RC5 4
#define LLI_ABT_RC6 5
#define LLI_ABT_RC7 6
#define LLI_ABT_RC8 7
#define LLI_ABT_RC9 8
#define LLI_ABT_RC10 9
#define LLI_ABT_RC11 10
#define LLI_ABT_RC12 11
#define LLI_ABT_RC13 12
#define LLI_ABT_RC14 13
#define LLI_ABT_RC15 14
#define LLI_ABT_RC16 15
#define LLI_ABT_RC17 16
#define LLI_ABT_RC18 17
#define LLI_ABT_RC19 18
#define LLI_ABT_RC20 19
#define LLI_ABT_RC21 20
#define LLI_ABT_RC22 21
#define LLI_ABT_RC23 22
#define LLI_ABT_RC24 23
#define LLI_ABT_RC25 24
#define LLI_ABT_RC26 25
#define LLI_ABT_RC27 26
#define LLI_ABT_RC28 27
#define FDL_ABT_OK 0
#define FDL_ABT_UE 1
#define FDL_ABT_RR 2
#define FDL_ABT_RS 3
#define FDL_ABT_RDL 12
#define FDL_ABT_RDH 13
#define FDL_ABT_LS 16
#define FDL_ABT_NA 17
#define FDL_ABT_DS 18
#define FDL_ABT_NO 19
#define FDL_ABT_LR 20
#define FDL_ABT_IV 21
#if defined( _MSC_VER) /* Microsoft C */
#pragma pack() /* Byte Alignment */
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -