William Kane / Generic

Dependents:   LaserioLib

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers abp_mod.h Source File

abp_mod.h

00001 /*******************************************************************************
00002 ********************************************************************************
00003 **                                                                            **
00004 ** ABP version 7.16.01 (2015-10-14)                                           **
00005 **                                                                            */
00006 /*******************************************************************************
00007 ********************************************************************************
00008 **
00009 ** File Name
00010 ** ---------
00011 **
00012 ** abp_mod.h
00013 **
00014 ********************************************************************************
00015 ********************************************************************************
00016 **
00017 ** Description
00018 ** -----------
00019 **
00020 ** ABP - Anybus-CC Protocol Definitions for Modbus.
00021 **
00022 ** This file contains network specific definitions used by the Anybus-CC
00023 ** Modbus module as well as applications designed to use such module.
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_MOD_H
00046 #define ABP_MOD_H
00047 
00048 
00049 /*******************************************************************************
00050 **
00051 ** Anybus-CC Modbus object constants.
00052 **
00053 ** Object revision: 1.
00054 **
00055 ********************************************************************************
00056 */
00057 
00058 /*------------------------------------------------------------------------------
00059 **
00060 ** The Anybus-CC Modbus Object instance attributes.
00061 **
00062 **------------------------------------------------------------------------------
00063 */
00064 
00065 #define ABP_MOD_IA_VENDOR_NAME              1
00066 #define ABP_MOD_IA_PRODUCT_CODE             2
00067 #define ABP_MOD_IA_REVISION                 3
00068 #define ABP_MOD_IA_VENDOR_URL               4
00069 #define ABP_MOD_IA_PRODUCT_NAME             5
00070 #define ABP_MOD_IA_MODEL_NAME               6
00071 #define ABP_MOD_IA_USER_APP_NAME            7
00072 #define ABP_MOD_IA_DEVICE_ID                8
00073 #define ABP_MOD_IA_ADI_INDEXING_BITS        9
00074 #define ABP_MOD_IA_MESSAGE_FORWARDING       10
00075 #define ABP_MOD_IA_RW_OFFSET                11
00076 
00077 
00078 /*------------------------------------------------------------------------------
00079 **
00080 ** The data size of the Anybus-CC Modbus Object instance attributes (in
00081 ** bytes).
00082 **
00083 **------------------------------------------------------------------------------
00084 */
00085 
00086 #define ABP_MOD_IA_ADI_INDEXING_BITS_DS            ABP_UINT8_SIZEOF
00087 #define ABP_MOD_IA_MESSAGE_FORWARDING_DS           ABP_BOOL_SIZEOF
00088 #define ABP_MOD_IA_RW_OFFSET_DS                    ( 2 * ABP_SINT16_SIZEOF )
00089 
00090 
00091 /*------------------------------------------------------------------------------
00092 **
00093 ** The Anybus-CC Modbus Object specific message commands.
00094 **
00095 **------------------------------------------------------------------------------
00096 */
00097 
00098 #define ABP_MOD_CMD_PROCESS_MODBUS_MESSAGE         0x10
00099 
00100 /*------------------------------------------------------------------------------
00101 **
00102 ** Exception information codes.
00103 **
00104 **------------------------------------------------------------------------------
00105 */
00106 #define ABP_MOD_NW_EXCPT_MISSING_MAC_ADDRESS 1
00107 
00108 #endif  /* inclusion lock */
00109 
00110 /*******************************************************************************
00111 **
00112 ** End of abp_mod.h
00113 **
00114 ********************************************************************************
00115 */