William Kane / Generic

Dependents:   LaserioLib

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers abp_cpn.h Source File

abp_cpn.h

00001 /*******************************************************************************
00002 ********************************************************************************
00003 **                                                                            **
00004 ** ABP version 7.16.01 (2015-10-14)                                           **
00005 **                                                                            */
00006 /*******************************************************************************
00007 ********************************************************************************
00008 **
00009 ** File Name
00010 ** ---------
00011 **
00012 ** abp_cpn.h
00013 **
00014 ********************************************************************************
00015 ********************************************************************************
00016 **
00017 ** Description
00018 ** -----------
00019 **
00020 ** ABP - Anybus-CC Protocol Definitions for CompoNet Object.
00021 **
00022 ** This file contains network specific definitions used by the Anybus-CC
00023 ** CompoNet module as well as applications designed to use such module.
00024 **
00025 ********************************************************************************
00026 ********************************************************************************
00027 **                                                                            **
00028 ** COPYRIGHT NOTIFICATION (c) 2009 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 ** Company: HMS Industrial Networks AB
00045 **          Stationsgatan 37
00046 **          S-302 45  Halmstad
00047 **          SWEDEN
00048 **          Tel:     +46 (0)35 - 17 29 00
00049 **          Fax:     +46 (0)35 - 17 29 09
00050 **          e-mail:  info@hms.se
00051 **
00052 ********************************************************************************
00053 ********************************************************************************
00054 */
00055 
00056 #ifndef ABP_CPN_H
00057 #define ABP_CPN_H
00058 
00059 
00060 /*******************************************************************************
00061 **
00062 ** Anybus-CC CompoNet object constants.
00063 **
00064 ** Object revision: 1.
00065 **
00066 ********************************************************************************
00067 */
00068 
00069 /*------------------------------------------------------------------------------
00070 **
00071 ** The Anybus-CC CompoNet Object instance attributes.
00072 **
00073 **------------------------------------------------------------------------------
00074 */
00075 
00076 #define ABP_CPN_IA_VENDOR_ID                1
00077 #define ABP_CPN_IA_DEVICE_TYPE              2
00078 #define ABP_CPN_IA_PRODUCT_CODE             3
00079 #define ABP_CPN_IA_REVISION                 4
00080 #define ABP_CPN_IA_SERIAL_NUMBER            5
00081 #define ABP_CPN_IA_PRODUCT_NAME             6
00082 #define ABP_CPN_IA_PROD_INSTANCE            7
00083 #define ABP_CPN_IA_CONS_INSTANCE            8
00084 #define ABP_CPN_IA_ENABLE_APP_CIP_OBJECTS   11
00085 #define ABP_CPN_IA_ENABLE_PARAM_OBJECT      12
00086 #define ABP_CPN_IA_BIT_SLAVE                13
00087 
00088 
00089 /*------------------------------------------------------------------------------
00090 **
00091 ** The data size of the Anybus-CC CompoNet Object instance attributes (in
00092 ** bytes).
00093 **
00094 **------------------------------------------------------------------------------
00095 */
00096 
00097 #define ABP_CPN_IA_VENDOR_ID_DS                    ABP_UINT16_SIZEOF
00098 #define ABP_CPN_IA_DEVICE_TYPE_DS                  ABP_UINT16_SIZEOF
00099 #define ABP_CPN_IA_PRODUCT_CODE_DS                 ABP_UINT16_SIZEOF
00100 #define ABP_CPN_IA_REVISION_DS                     ( 2 * ABP_UINT8_SIZEOF )
00101 #define ABP_CPN_IA_SERIAL_NUMBER_DS                ABP_UINT32_SIZEOF
00102 #define ABP_CPN_IA_PROD_INSTANCE_DS                ABP_UINT16_SIZEOF
00103 #define ABP_CPN_IA_CONS_INSTANCE_DS                ABP_UINT16_SIZEOF
00104 #define ABP_CPN_IA_ENABLE_APP_CIP_OBJECTS_DS       ABP_BOOL_SIZEOF
00105 #define ABP_CPN_IA_ENABLE_PARAM_OBJECT_DS          ABP_BOOL_SIZEOF
00106 #define ABP_CPN_IA_BIT_SLAVE_DS                    ABP_BOOL_SIZEOF
00107 
00108 
00109 /*------------------------------------------------------------------------------
00110 **
00111 ** The Anybus-CC CompoNet Object specific message commands.
00112 **
00113 **------------------------------------------------------------------------------
00114 */
00115 
00116 #define ABP_CPN_CMD_PROCESS_CIP_OBJ_REQUEST     0x10
00117 
00118 
00119 /*------------------------------------------------------------------------------
00120 **
00121 ** The Anybus-CC CompoNet Object specific exception codes.
00122 **
00123 **------------------------------------------------------------------------------
00124 */
00125 
00126 #define ABP_CPN_NW_EXCPT_INFO_INVALID_SY_INST   0x01
00127 
00128 
00129 #endif  /* inclusion lock */
00130 
00131 /*******************************************************************************
00132 **
00133 ** End of abp_cpn.h
00134 **
00135 ********************************************************************************
00136 */