William Kane / Generic

Dependents:   LaserioLib

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers abp_cpc.h Source File

abp_cpc.h

00001 /*******************************************************************************
00002 ********************************************************************************
00003 **                                                                            **
00004 ** ABP version 7.16.01 (2015-10-14)                                           **
00005 **                                                                            */
00006 /*******************************************************************************
00007 ********************************************************************************
00008 **
00009 ** File Name
00010 ** ---------
00011 **
00012 ** abp_cpc.h
00013 **
00014 ********************************************************************************
00015 ********************************************************************************
00016 **
00017 ** Description
00018 ** -----------
00019 **
00020 ** ABP - Anybus-CC CIP Port Configuration Object Protocol Definitions.
00021 **
00022 ** This software component contains CPC definitions used by Anybus-CC
00023 ** modules 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_CPC_H
00046 #define ABP_CPC_H
00047 
00048 
00049 /*******************************************************************************
00050 **
00051 ** CIP Port Configuration object constants.
00052 **
00053 ** Object revision: 1.
00054 **
00055 ********************************************************************************
00056 */
00057 
00058 /*------------------------------------------------------------------------------
00059 **
00060 ** The CIP Port Configuration object specific object attributes.
00061 **
00062 **------------------------------------------------------------------------------
00063 */
00064 
00065 #define ABP_CPC_OA_MAX_INST               11    /* Max number of instances    */
00066 
00067 
00068 /*------------------------------------------------------------------------------
00069 **
00070 ** The data size of the Anybus-CC CIP Port Configuration object specific
00071 ** attributes (in bytes).
00072 **
00073 **------------------------------------------------------------------------------
00074 */
00075 
00076 #define ABP_CPC_OA_MAX_INST_DS            ABP_UINT16_SIZEOF
00077 
00078 
00079 /*------------------------------------------------------------------------------
00080 **
00081 ** The CIP Port Configuration instance attributes.
00082 **
00083 **------------------------------------------------------------------------------
00084 */
00085 
00086 #define ABP_CPC_IA_PORT_TYPE              1     /* Port type                  */
00087 #define ABP_CPC_IA_PORT_NUMBER            2     /* Port number                */
00088 #define ABP_CPC_IA_LINK_PATH              3     /* Link path                  */
00089 #define ABP_CPC_IA_PORT_NAME              4     /* Port name                  */
00090 #define ABP_CPC_IA_NODE_ADDRESS           7     /* Node address               */
00091 #define ABP_CPC_IA_PORT_NODE_RANGE        8     /* Port node range            */
00092 
00093 
00094 /*------------------------------------------------------------------------------
00095 **
00096 ** The data size of the Anybus-CC CIP Port Configuration object instance
00097 ** attributes (in bytes).
00098 **
00099 **------------------------------------------------------------------------------
00100 */
00101 
00102 #define ABP_CPC_IA_PORT_TYPE_DS           ABP_UINT16_SIZEOF
00103 #define ABP_CPC_IA_PORT_NUMBER_DS         ABP_UINT16_SIZEOF
00104 #define ABP_CPC_IA_LINK_PATH_MAX_DS       12
00105 #define ABP_CPC_IA_PORT_NAME_MAX_DS       64
00106 #define ABP_CPC_IA_NODE_ADDRESS_MAX_DS    64
00107 #define ABP_CPC_IA_PORT_NODE_RANGE_DS     ( 2 * ABP_UINT16_SIZEOF )
00108 
00109 
00110 #endif  /* inclusion lock */
00111 
00112 /*******************************************************************************
00113 **
00114 ** End of abp_cpc.h
00115 **
00116 ********************************************************************************
00117 */