William Kane / Generic

Dependents:   LaserioLib

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers abp_ccl.h Source File

abp_ccl.h

00001 /*******************************************************************************
00002 ********************************************************************************
00003 **                                                                            **
00004 ** ABP version 7.16.01 (2015-10-14)                                           **
00005 **                                                                            */
00006 /*******************************************************************************
00007 ********************************************************************************
00008 **
00009 ** File Name
00010 ** ---------
00011 **
00012 ** abp_ccl.h
00013 **
00014 ********************************************************************************
00015 ********************************************************************************
00016 **
00017 ** Description
00018 ** -----------
00019 **
00020 ** abp_ccl - Anybus-CC Protocol - CC-Link 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_CCL_H
00046 #define ABP_CCL_H
00047 
00048 
00049 /*******************************************************************************
00050 **
00051 ** Anybus-CC CC-Link object constants.
00052 **
00053 ** Object revision: 1.
00054 **
00055 ********************************************************************************
00056 */
00057 
00058 /*------------------------------------------------------------------------------
00059 **
00060 ** CC-Link object instance number
00061 **
00062 **------------------------------------------------------------------------------
00063 */
00064 
00065 #define ABP_CCL_OI_ID                     1
00066 
00067 
00068 /*------------------------------------------------------------------------------
00069 **
00070 ** CC-Link object instance attributes.
00071 **
00072 **------------------------------------------------------------------------------
00073 */
00074 
00075 enum
00076 {
00077    ABP_CCL_IA_VENDOR_CODE            = 1,
00078    ABP_CCL_IA_SOFTWARE_VERSION       = 2,
00079    ABP_CCL_IA_MODEL_CODE             = 3,
00080    ABP_CCL_IA_NETWORK_SETTINGS       = 4,
00081    ABP_CCL_IA_SYS_AREA_HANDLER       = 5,
00082    ABP_CCL_IA_HOLD_CLEAR_SETTING     = 6
00083 };
00084 
00085 
00086 /*------------------------------------------------------------------------------
00087 **
00088 ** The data size of the CC-Link object instance attributes (in bytes).
00089 **
00090 **------------------------------------------------------------------------------
00091 */
00092 
00093 #define ABP_CCL_IA_VENDOR_CODE_DS         ABP_UINT16_SIZEOF
00094 #define ABP_CCL_IA_SOFTWARE_VERSION_DS    ABP_UINT8_SIZEOF
00095 #define ABP_CCL_IA_MODEL_CODE_DS          ABP_UINT8_SIZEOF
00096 #define ABP_CCL_IA_NETWORK_SETTINGS_DS    ( ABP_UINT8_SIZEOF +                \
00097                                             ABP_UINT8_SIZEOF +                \
00098                                             ABP_UINT8_SIZEOF )
00099 #define ABP_CCL_IA_SYS_AREA_HANDLER_DS    ABP_SINT16_SIZEOF
00100 #define ABP_CCL_IA_HOLD_CLEAR_SETTING_DS  ABP_UINT8_SIZEOF
00101 
00102 
00103 /*------------------------------------------------------------------------------
00104 **
00105 ** CC-Link object specific commands
00106 **
00107 **------------------------------------------------------------------------------
00108 */
00109 
00110 enum
00111 {
00112    ABP_CCL_CMD_INITIAL_DATA_SETTING_NOTIFICATION   = 0x10,
00113    ABP_CCL_CMD_INITIAL_DATA_PROCESSING_COMPLETED_NOTIFICATION
00114 };
00115 
00116 
00117 #endif  /* inclusion lock */
00118 
00119 /*******************************************************************************
00120 **
00121 ** end of abp_ccl.h
00122 **
00123 ********************************************************************************
00124 */