ModuleErrors.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2012 SCHUNK GmbH & Co. KG
00003  * Copyright (c) 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  *   http://www.apache.org/licenses/LICENSE-2.0
00010 
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef MODULEERRORS_H
00019 #define MODULEERRORS_H
00020 
00021         // Module States
00022         
00023 #define STATEID_MOD_ERROR                                               0x00000001L
00024 #define STATEID_MOD_HOME                                                0x00000002L
00025 #define STATEID_MOD_HALT                                                0x00000004L
00026 #define STATEID_MOD_POWERFAULT                                  0x00000008L
00027 #define STATEID_MOD_TOW_ERROR                                   0x00000010L
00028 #define STATEID_MOD_COMM_ERROR                                  0x00000020L
00029 #define STATEID_MOD_SWR                                                 0x00000040L
00030 #define STATEID_MOD_SW1                                                 0x00000080L
00031 #define STATEID_MOD_SW2                                                 0x00000100L
00032 #define STATEID_MOD_BRAKEACTIVE                                 0x00000200L
00033 #define STATEID_MOD_CURLIMIT                                    0x00000400L
00034 #define STATEID_MOD_MOTION                                              0x00000800L
00035 #define STATEID_MOD_RAMP_ACC                                    0x00001000L
00036 #define STATEID_MOD_RAMP_STEADY                                 0x00002000L
00037 #define STATEID_MOD_RAMP_DEC                                    0x00004000L
00038 #define STATEID_MOD_RAMP_END                                    0x00008000L
00039 #define STATEID_MOD_INPROGRESS                                  0x00010000L
00040 #define STATEID_MOD_FULLBUFFER                                  0x00020000L
00041 #define STATEID_MOD_POW_VOLT_ERR                                0x00040000L
00042 #define STATEID_MOD_POW_FET_TEMP                                0x00080000L
00043 #define STATEID_MOD_POW_WDG_TEMP                                0x00100000L
00044 #define STATEID_MOD_POW_SHORTCUR                                0x00200000L
00045 #define STATEID_MOD_POW_HALLERR                                 0x00400000L
00046 #define STATEID_MOD_POW_INTEGRALERR                             0x00800000L
00047 #define STATEID_MOD_CPU_OVERLOAD                                0x01000000L
00048 #define STATEID_MOD_BEYOND_HARD                                 0x02000000L
00049 #define STATEID_MOD_BEYOND_SOFT                                 0x04000000L
00050 
00051         // Module Config
00052 
00053 #define CONFIGID_MOD_ENCODER_FEEDBACK                   0x00000001L //OS: 25xx from 35xx in SETUP
00054 #define CONFIGID_MOD_RESOLVER_FEEDBACK                  0x00000002L //OS: 25xx from 35xx in SETUP
00055 #define CONFIGID_MOD_ABSOLUTE_FEEDBACK                  0x00000004L //OS: 25xx from 35xx in SETUP
00056 #define CONFIGID_MOD_BRAKE_PRESENT                              0x00000008L
00057 #define CONFIGID_MOD_BRAKE_AT_POWERON                   0x00000010L
00058 #define CONFIGID_MOD_SWR_WITH_ENCODERZERO               0x00000020L
00059 #define CONFIGID_MOD_SWR_AT_FALLING_EDGE                0x00000040L
00060 #define CONFIGID_MOD_CHANGE_SWR_TO_LIMIT                0x00000080L
00061 #define CONFIGID_MOD_SWR_ENABLED                        0x00000100L
00062 #define CONFIGID_MOD_SWR_LOW_ACTIVE                             0x00000200L
00063 #define CONFIGID_MOD_SWR_EQ_POSLIMIT                    0x00000400L //OS: 25xx
00064 #define CONFIGID_MOD_SWR_USE_EXTERNAL                   0x00000400L //OS: 35xx
00065 #define CONFIGID_MOD_SW1_ENABLED                                0x00000800L
00066 #define CONFIGID_MOD_SW1_LOW_ACTIVE                             0x00001000L
00067 #define CONFIGID_MOD_SW1_EQ_POSLIMIT                    0x00002000L //OS: 25xx
00068 #define CONFIGID_MOD_SW1_USE_EXTERNAL                   0x00002000L //OS: 35xx
00069 #define CONFIGID_MOD_SW2_ENABLED                                0x00004000L
00070 #define CONFIGID_MOD_SW2_LOW_ACTIVE                             0x00008000L
00071 #define CONFIGID_MOD_SW2_EQ_POSLIMIT                    0x00010000L //OS: 25xx
00072 #define CONFIGID_MOD_SW2_USE_EXTERNAL                   0x00010000L //OS: 35xx
00073 #define CONFIGID_MOD_LINEAR                                             0x00020000L
00074 #define CONFIGID_MOD_OPENBRAKE_ON_SW2                   0x00040000L     //OS: 25xx but not in 2512 from 35xx in SETUP
00075 #define CONFIGID_MOD_ALLOW_FULL_CUR                             0x00080000L
00076 #define CONFIGID_MOD_M3_COMPATIBLE                              0x00100000L
00077 #define CONFIGID_MOD_LINEAR_SCREW                               0x00200000L
00078 #define CONFIGID_MOD_DISABLE_ON_HALT                    0x00800000L
00079 #define CONFIGID_MOD_WATCHDOG_ENABLE                    0x01000000L
00080 #define CONFIGID_MOD_ZERO_MOVE_AFTER_HOK                0x02000000L //OS: 35xx
00081 #define CONFIGID_MOD_DISABLE_ACK                                0x04000000L
00082 #define CONFIGID_MOD_SYNC_MOTION                                0x08000000L
00083 #define CONFIGID_MOD_SYNC_TRANSMIT                              0x10000000L
00084 #define CONFIGID_MOD_CAN_RS232_COMM                             0x40000000L //OS: 25xx
00085 #define CONFIGID_MOD_PROFI_RS485_COMM                   0x80000000L //OS: 25xx
00086 
00087         // Module Setup
00088 
00089 // ---- FEEDBACK SETUP -----------
00090 #define SETUPID_MOD_ENCODER_FEEDBACK                    0x00000001L
00091 #define SETUPID_MOD_RESOLVER_FEEDBACK                   0x00000002L
00092 #define SETUPID_MOD_ABSOLUTE_FEEDBACK                   0x00000004L
00093 // ---- DIGITAL IO SETUP ---------
00094 #define SETUPID_MOD_4IN_4OUT                                    0x00000008L
00095 #define SETUPID_MOD_3IN_ENCODER_IN                              0x00000010L
00096 #define SETUPID_MOD_3IN_ENCODER_OUT                             0x00000020L
00097 // ---- COMM INTERFACE -----------
00098 #define SETUPID_MOD_RS232                                               0x00000040L
00099 #define SETUPID_MOD_CAN                                                 0x00000200L
00100 #define SETUPID_MOD_PROFIBUS                                    0x00000400L
00101 // ---- CAN ID SETUP -------------
00102 #define SETUPID_MOD_USE_M3ID                                    0x00000800L
00103 #define SETUPID_MOD_USE_M4ID                                    0x00001000L
00104 #define SETUPID_MOD_USE_CANOPEN                                 0x00002000L
00105 // ---- MOTOR SETUP --------------
00106 #define SETUPID_MOD_INVERT_MOTORDIR                             0x00004000L
00107 // ---- INPUT USAGE --------------
00108 #define SETUPID_MOD_USE_SW2_AS_ENABLE                   0x00008000L
00109 #define SETUPID_MOD_USE_SW2_AS_BRAKE                    0x00010000L
00110 // ---- OUTPUT USAGE -------------
00111 #define SETUPID_MOD_ERROR_TO_OUT0                               0x00020000L
00112 // ---- IN/OUTPUT USAGE -------------
00113 #define SETUPID_MOD_IO_GRIPPER_CONTROL                  0x00080000L
00114 
00115         // Module Types
00116 
00117 #define TYPEID_MOD_ROTARY                                               0x0f
00118 #define TYPEID_MOD_LINEAR                                               0xf0
00119 
00120         // Module DIO's
00121 
00122 #define DIOID_MOD_INBIT0                                                0x00000001L
00123 #define DIOID_MOD_INBIT1                                                0x00000002L
00124 #define DIOID_MOD_INBIT2                                                0x00000004L
00125 #define DIOID_MOD_INBIT3                                                0x00000008L
00126  
00127 #define DIOID_MOD_OUTBIT0                                               0x00000010L
00128 #define DIOID_MOD_OUTBIT1                                               0x00000020L
00129 #define DIOID_MOD_OUTBIT2                                               0x00000040L
00130 #define DIOID_MOD_OUTBIT3                                               0x00000080L
00131  
00132 #define DIOID_MOD_INSWR                                                 0x00000100L
00133 #define DIOID_MOD_INSW1                                                 0x00000200L
00134 #define DIOID_MOD_INSW2                                                 0x00000400L
00135 
00136         // Module Baudrates
00137 
00138 #define BAUDRATEID_MOD_CAN_125K                                 0
00139 #define BAUDRATEID_MOD_CAN_250K                                 1
00140 #define BAUDRATEID_MOD_CAN_500K                                 2
00141 #define BAUDRATEID_MOD_CAN_1000K                                3
00142 
00143 #define BAUDRATEID_MOD_RS232_1200                               0
00144 #define BAUDRATEID_MOD_RS232_2400                               1
00145 #define BAUDRATEID_MOD_RS232_4800                               2
00146 #define BAUDRATEID_MOD_RS232_9600                               3
00147 #define BAUDRATEID_MOD_RS232_19200                              4
00148 #define BAUDRATEID_MOD_RS232_38400                              5
00149 #define BAUDRATEID_MOD_RS232_56700                              6
00150 
00151         // Module Errors
00152         
00153 #define ERRID_MOD                                       (-300L)         // module error
00154 #define ERRID_MOD_INITERROR                     (ERRID_MOD - 1)
00155 #define ERRID_MOD_ISINITIALIZED         (ERRID_MOD - 2)
00156 #define ERRID_MOD_NOTINITIALIZED        (ERRID_MOD - 3)
00157 #define ERRID_MOD_WRONGMODULEID         (ERRID_MOD - 4)
00158 #define ERRID_MOD_DEVICENOTFOUND        (ERRID_MOD - 5)
00159 #define ERRID_MOD_DEVICENOTINIT         (ERRID_MOD - 6)
00160 #define ERRID_MOD_MODULEERROR           (ERRID_MOD - 7)
00161 #define ERRID_MOD_WAITTIMEOUT           (ERRID_MOD - 8)
00162 #define ERRID_MOD_CONNECTIONNOTINIT     (ERRID_MOD - 9)
00163 #define ERRID_MOD_PARSERERROR           (ERRID_MOD - 10)
00164 #endif


schunk_libm5api
Author(s): Florian Weisshardt
autogenerated on Sat Jun 8 2019 20:25:13