William Kane / Generic

Dependents:   LaserioLib

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers abp_nwccl.h Source File

abp_nwccl.h

00001 /*******************************************************************************
00002 ********************************************************************************
00003 **                                                                            **
00004 ** ABP version 7.16.01 (2015-10-14)                                           **
00005 **                                                                            */
00006 /*******************************************************************************
00007 ********************************************************************************
00008 **
00009 ** File Name
00010 ** ---------
00011 **
00012 ** abp_nwccl.h
00013 **
00014 ********************************************************************************
00015 ********************************************************************************
00016 **
00017 ** Description
00018 ** -----------
00019 **
00020 ** abp_nwccl - Anybus-CC Protocol - Network CC-Link object definitions
00021 **
00022 ** This software component contains protocol definitions used by the CC-Link
00023 ** Anybus-CC module as well as applications designed to use such modules.
00024 **
00025 ********************************************************************************
00026 ********************************************************************************
00027 **                                                                            **
00028 ** COPYRIGHT NOTIFICATION (c) 2008 HMS Industrial Networks AB                 **
00029 **                                                                            **
00030 ** This code is the property of HMS Industrial Networks AB.                   **
00031 ** The source code may not be reproduced, distributed, or used without        **
00032 ** permission. When used together with a product from HMS, this code can be   **
00033 ** modified, reproduced and distributed in binary form without any            **
00034 ** restrictions.                                                              **
00035 **                                                                            **
00036 ** THE CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. HMS DOES NOT    **
00037 ** WARRANT THAT THE FUNCTIONS OF THE CODE WILL MEET YOUR REQUIREMENTS, OR     **
00038 ** THAT THE OPERATION OF THE CODE WILL BE UNINTERRUPTED OR ERROR-FREE, OR     **
00039 ** THAT DEFECTS IN IT CAN BE CORRECTED.                                       **
00040 **                                                                            **
00041 ********************************************************************************
00042 ********************************************************************************
00043 */
00044 
00045 #ifndef ABP_NWCCL_H
00046 #define ABP_NWCCL_H
00047 
00048 
00049 /*******************************************************************************
00050 **
00051 ** Anybus-CC Network CC-Link object constants.
00052 **
00053 ** Object revision: 1.
00054 **
00055 ********************************************************************************
00056 */
00057 
00058 /*------------------------------------------------------------------------------
00059 **
00060 ** Network CC-Link object instance number
00061 **
00062 **------------------------------------------------------------------------------
00063 */
00064 
00065 #define ABP_NWCCL_OI_ID                   1
00066 
00067 
00068 /*------------------------------------------------------------------------------
00069 **
00070 ** Network CC-Link object instance attributes.
00071 **
00072 **------------------------------------------------------------------------------
00073 */
00074 
00075 enum
00076 {
00077    ABP_NWCCL_IA_NETWORK_SETTINGS        = 1,
00078    ABP_NWCCL_IA_SYSTEM_AREA_HANDLER     = 2,
00079    ABP_NWCCL_IA_ERROR_CODE_POSITION     = 3,
00080    ABP_NWCCL_IA_LAST_MAPPING_INFO       = 4,
00081    ABP_NWCCL_IA_CCL_CONF_TEST_MODE      = 5,
00082    ABP_NWCCL_IA_ERROR_INFO              = 6
00083 };
00084 
00085 
00086 /*------------------------------------------------------------------------------
00087 **
00088 ** The data size of the Network CC-Link object instance attributes (in bytes).
00089 **
00090 **------------------------------------------------------------------------------
00091 */
00092 
00093 #define ABP_NWCCL_IA_NETWORK_SETTINGS_DS     ABP_CCL_IA_NETWORK_SETTINGS_DS
00094 #define ABP_NWCCL_IA_SYSTEM_AREA_HANDLER_DS  ABP_SINT16_SIZEOF
00095 #define ABP_NWCCL_IA_ERROR_CODE_POSITION_DS  ABP_SINT8_SIZEOF
00096 #define ABP_NWCCL_IA_LAST_MAPPING_INFO_DS    ( ABP_UINT8_SIZEOF +             \
00097                                              ABP_UINT16_SIZEOF +              \
00098                                              ABP_UINT16_SIZEOF )
00099 #define ABP_NWCCL_IA_CCL_CONF_TEST_MODE_DS   ABP_BOOL_SIZEOF
00100 #define ABP_NWCCL_IA_ERROR_INFO_DS           ( ABP_UINT8_SIZEOF +             \
00101                                                ABP_UINT8_SIZEOF +             \
00102                                                ABP_UINT8_SIZEOF )
00103 
00104 /*------------------------------------------------------------------------------
00105 **
00106 ** Network CC-Link object specific commands
00107 **
00108 **------------------------------------------------------------------------------
00109 */
00110 
00111 typedef enum ABP_NWCCL_MsgCmdType
00112 {
00113    ABP_NWCCL_CMD_MAP_ADI_SPEC_WRITE_AREA   = 0x10,
00114    ABP_NWCCL_CMD_MAP_ADI_SPEC_READ_AREA    = 0x11,
00115    ABP_NWCCL_CMD_CCL_CONF_TEST_MODE        = 0x12
00116 }ABP_NWCCL_MsgCmdType;
00117 
00118 
00119 /*------------------------------------------------------------------------------
00120 **
00121 ** The Network CC-Link object specific error codes.
00122 **
00123 **------------------------------------------------------------------------------
00124 */
00125 
00126 typedef enum ABP_NWCCL_MsgErrorCodeType
00127 {
00128    ABP_NWCCL_ERR_INVALID_ADI_DATA_TYPE   = 0x01,
00129    ABP_NWCCL_ERR_INVALID_NUM_ELEMENTS    = 0x02,
00130    ABP_NWCCL_ERR_INVALID_TOTAL_SIZE      = 0x03,
00131    ABP_NWCCL_ERR_INVALID_ORDER_NUM       = 0x04,
00132    ABP_NWCCL_ERR_INVALID_MAP_CMD_SEQ     = 0x05,
00133    ABP_NWCCL_ERR_INVALID_CCL_AREA        = 0x06,
00134    ABP_NWCCL_ERR_INVALID_OFFSET          = 0x07,
00135    ABP_NWCCL_ERR_DATA_OVERLAPPING        = 0x08
00136 }ABP_NWCCL_MsgErrorCodeType;
00137 
00138 #endif  /* inclusion lock */
00139 
00140 /*******************************************************************************
00141 **
00142 ** end of abp_nwccl.h
00143 **
00144 ********************************************************************************
00145 */