m5apiw32.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 __LINUX__
00019 #define __LINUX__
00020 #endif
00021 
00022 #ifndef M5APIW32_H
00023 #define M5APIW32_H
00024 
00025 
00026  
00027 #define M5DLLVERSION 0x5060
00028 #define MAX_MODULES 31
00029 
00030 #if defined (_WIN32)
00031 #ifndef WINAPI
00032         #define WINAPI __stdcall
00033 #endif
00034 
00035 #ifdef M5APIW32_EXPORTS
00036         #define M5DLL_API __declspec(dllexport)
00037 #else
00038         #define M5DLL_API __declspec(dllimport)
00039 #endif
00040 #endif
00041 #if defined(__LINUX__)
00042         #define WINAPI
00043         #define M5DLL_API
00044 #endif
00045 #if defined (__QNX__)
00046         #define WINAPI
00047         #define M5DLL_API
00048 #endif
00049 
00050 extern M5DLL_API int g_iM5DebugLevel;
00051 extern M5DLL_API int g_iM5DebugFile;
00052 extern M5DLL_API int g_iM5Debug;
00053 
00054 //-----------------------------------------------------------------------
00055 // new PCube Module States
00056 //-----------------------------------------------------------------------
00057 #define STATEID_MOD_ERROR                                                               0x00000001L
00058 #define STATEID_MOD_HOME                                                                0x00000002L
00059 #define STATEID_MOD_HALT                                                                0x00000004L
00060 #define STATEID_MOD_POWERFAULT                                  0x00000008L
00061 #define STATEID_MOD_TOW_ERROR                                           0x00000010L
00062 #define STATEID_MOD_COMM_ERROR                                  0x00000020L
00063 #define STATEID_MOD_SWR                                                                 0x00000040L
00064 #define STATEID_MOD_SW1                                                                 0x00000080L
00065 #define STATEID_MOD_SW2                                                                 0x00000100L
00066 #define STATEID_MOD_BRAKEACTIVE                                 0x00000200L
00067 #define STATEID_MOD_CURLIMIT                                            0x00000400L
00068 #define STATEID_MOD_MOTION                                                      0x00000800L
00069 #define STATEID_MOD_RAMP_ACC                                            0x00001000L
00070 #define STATEID_MOD_RAMP_STEADY                                 0x00002000L
00071 #define STATEID_MOD_RAMP_DEC                                            0x00004000L
00072 #define STATEID_MOD_RAMP_END                                            0x00008000L
00073 #define STATEID_MOD_INPROGRESS                                  0x00010000L
00074 #define STATEID_MOD_FULLBUFFER                                  0x00020000L
00075 #define STATEID_MOD_POW_VOLT_ERR                                0x00040000L
00076 #define STATEID_MOD_POW_FET_TEMP                                0x00080000L
00077 #define STATEID_MOD_POW_WDG_TEMP                                0x00100000L
00078 #define STATEID_MOD_POW_SHORTCUR                                0x00200000L
00079 #define STATEID_MOD_POW_HALLERR                                 0x00400000L
00080 #define STATEID_MOD_POW_INTEGRALERR                     0x00800000L
00081 #define STATEID_MOD_CPU_OVERLOAD                                0x01000000L
00082 #define STATEID_MOD_BEYOND_HARD                           0x02000000L
00083 #define STATEID_MOD_BEYOND_SOFT                                 0x04000000L
00084 #define STATEID_MOD_LOGIC_VOLT                                  0x08000000L
00085 
00086 //-----------------------------------------------------------------------
00087 // new PCube Module Config
00088 //-----------------------------------------------------------------------
00089 #define CONFIGID_MOD_ENCODER_FEEDBACK                   0x00000001L //OS: 25xx from 35xx in SETUP
00090 #define CONFIGID_MOD_RESOLVER_FEEDBACK                  0x00000002L //OS: 25xx from 35xx in SETUP
00091 #define CONFIGID_MOD_ABSOLUTE_FEEDBACK                  0x00000004L //OS: 25xx from 35xx in SETUP
00092 #define CONFIGID_MOD_BRAKE_PRESENT                              0x00000008L
00093 #define CONFIGID_MOD_BRAKE_AT_POWERON                   0x00000010L
00094 #define CONFIGID_MOD_SWR_WITH_ENCODERZERO               0x00000020L
00095 #define CONFIGID_MOD_SWR_AT_FALLING_EDGE                0x00000040L
00096 #define CONFIGID_MOD_CHANGE_SWR_TO_LIMIT                0x00000080L
00097 #define CONFIGID_MOD_SWR_ENABLED                        0x00000100L
00098 #define CONFIGID_MOD_SWR_LOW_ACTIVE                             0x00000200L
00099 #define CONFIGID_MOD_SWR_EQ_POSLIMIT                    0x00000400L //OS: 25xx
00100 #define CONFIGID_MOD_SWR_USE_EXTERNAL                   0x00000400L //OS: 35xx
00101 #define CONFIGID_MOD_SW1_ENABLED                                0x00000800L
00102 #define CONFIGID_MOD_SW1_LOW_ACTIVE                             0x00001000L
00103 #define CONFIGID_MOD_SW1_EQ_POSLIMIT                    0x00002000L //OS: 25xx
00104 #define CONFIGID_MOD_SW1_USE_EXTERNAL                   0x00002000L //OS: 35xx
00105 #define CONFIGID_MOD_SW2_ENABLED                                0x00004000L
00106 #define CONFIGID_MOD_SW2_LOW_ACTIVE                             0x00008000L
00107 #define CONFIGID_MOD_SW2_EQ_POSLIMIT                    0x00010000L //OS: 25xx
00108 #define CONFIGID_MOD_SW2_USE_EXTERNAL                   0x00010000L //OS: 35xx
00109 #define CONFIGID_MOD_LINEAR                                             0x00020000L
00110 #define CONFIGID_MOD_OPENBRAKE_ON_SW2                   0x00040000L     //OS: 25xx but not in 2512 from 35xx in SETUP
00111 #define CONFIGID_MOD_ALLOW_FULL_CUR                             0x00080000L
00112 #define CONFIGID_MOD_M3_COMPATIBLE                              0x00100000L
00113 #define CONFIGID_MOD_LINEAR_SCREW                               0x00200000L
00114 #define CONFIGID_MOD_DISABLE_ON_HALT                    0x00800000L
00115 #define CONFIGID_MOD_WATCHDOG_ENABLE                    0x01000000L
00116 #define CONFIGID_MOD_ZERO_MOVE_AFTER_HOK                0x02000000L //OS: 35xx
00117 #define CONFIGID_MOD_DISABLE_ACK                                0x04000000L
00118 #define CONFIGID_MOD_SYNC_MOTION                                0x08000000L
00119 #define CONFIGID_MOD_SYNC_TRANSMIT                              0x10000000L //OS: 36xx
00120 #define CONFIGID_MOD_CAN_RS232_COMM                             0x40000000L //OS: 25xx
00121 #define CONFIGID_MOD_PROFI_RS485_COMM                   0x80000000L //OS: 25xx
00122 
00123 //-----------------------------------------------------------------------
00124 // new PCube Module Setup
00125 //-----------------------------------------------------------------------
00126 // ---- FEEDBACK SETUP -----------
00127 #define SETUPID_MOD_ENCODER_FEEDBACK                    0x00000001L
00128 #define SETUPID_MOD_RESOLVER_FEEDBACK                   0x00000002L
00129 #define SETUPID_MOD_ABSOLUTE_FEEDBACK                   0x00000004L
00130 // ---- DIGITAL IO SETUP ---------
00131 #define SETUPID_MOD_4IN_4OUT                                    0x00000008L
00132 #define SETUPID_MOD_3IN_ENCODER_IN                              0x00000010L
00133 #define SETUPID_MOD_3IN_ENCODER_OUT                             0x00000020L
00134 // ---- COMM INTERFACE -----------
00135 #define SETUPID_MOD_RS232                                               0x00000040L
00136 #define SETUPID_MOD_CAN                                                 0x00000200L
00137 #define SETUPID_MOD_PROFIBUS                                    0x00000400L
00138 // ---- CAN ID SETUP -------------
00139 #define SETUPID_MOD_USE_M3ID                                    0x00000800L
00140 #define SETUPID_MOD_USE_M4ID                                    0x00001000L
00141 #define SETUPID_MOD_USE_CANOPEN                                 0x00002000L
00142 // ---- MOTOR SETUP --------------
00143 #define SETUPID_MOD_INVERT_MOTORDIR                             0x00004000L
00144 // ---- INPUT USAGE --------------
00145 #define SETUPID_MOD_USE_SW2_AS_ENABLE                   0x00008000L
00146 #define SETUPID_MOD_USE_SW2_AS_BRAKE                    0x00010000L
00147 // ---- OUTPUT USAGE -------------
00148 #define SETUPID_MOD_ERROR_TO_OUT0                               0x00020000L
00149 // ---- IN/OUTPUT USAGE -------------
00150 #define SETUPID_MOD_IO_GRIPPER_CONTROL                  0x00080000L
00151 
00152 //-----------------------------------------------------------------------
00153 // new PCube Module Types
00154 //-----------------------------------------------------------------------
00155 #define TYPEID_MOD_ROTARY                                               0x0f
00156 #define TYPEID_MOD_LINEAR                                               0xf0
00157 
00158 //-----------------------------------------------------------------------
00159 // new PCube Module DIO's
00160 //-----------------------------------------------------------------------
00161 #define DIOID_MOD_INBIT0                                                0x00000001L
00162 #define DIOID_MOD_INBIT1                                                0x00000002L
00163 #define DIOID_MOD_INBIT2                                                0x00000004L
00164 #define DIOID_MOD_INBIT3                                                0x00000008L
00165  
00166 #define DIOID_MOD_OUTBIT0                                               0x00000010L
00167 #define DIOID_MOD_OUTBIT1                                               0x00000020L
00168 #define DIOID_MOD_OUTBIT2                                               0x00000040L
00169 #define DIOID_MOD_OUTBIT3                                               0x00000080L
00170  
00171 #define DIOID_MOD_INSWR                                                 0x00000100L
00172 #define DIOID_MOD_INSW1                                                 0x00000200L
00173 #define DIOID_MOD_INSW2                                                 0x00000400L
00174 
00175 //-----------------------------------------------------------------------
00176 // new EMS Module Types
00177 //-----------------------------------------------------------------------
00178 #define TYPEID_EMS_DIG24V_OUT                                   10
00179 #define TYPEID_EMS_DIG24V_IN                                    11
00180 #define TYPEID_EMS_ANA10V_OUT                                   12
00181 #define TYPEID_EMS_ANA10V_IN                                    13
00182 #define TYPEID_EMS_ANA25MA_OUT                                  14
00183 #define TYPEID_EMS_ANA25MA_IN                                   15
00184 
00185 //-----------------------------------------------------------------------
00186 // new PCube Module Baudrates
00187 //-----------------------------------------------------------------------
00188 #define BAUDRATEID_MOD_CAN_125K                                 0
00189 #define BAUDRATEID_MOD_CAN_250K                                 1
00190 #define BAUDRATEID_MOD_CAN_500K                                 2
00191 #define BAUDRATEID_MOD_CAN_1000K                                3
00192 
00193 #define BAUDRATEID_MOD_RS232_1200                               0
00194 #define BAUDRATEID_MOD_RS232_2400                               1
00195 #define BAUDRATEID_MOD_RS232_4800                               2
00196 #define BAUDRATEID_MOD_RS232_9600                               3
00197 #define BAUDRATEID_MOD_RS232_19200                      4
00198 #define BAUDRATEID_MOD_RS232_38400                      5
00199 #define BAUDRATEID_MOD_RS232_57600                      6
00200 #define BAUDRATEID_MOD_RS232_115200                     7
00201 
00202 //-----------------------------------------------------------------------
00203 // new PCube Device Error Codes
00204 //-----------------------------------------------------------------------
00205 #define ERRID_DEV                                                       (-200L)         // device error
00206 #define ERRID_DEV_FUNCTIONNOTAVAILABLE          (ERRID_DEV - 1) 
00207 #define ERRID_DEV_NOINITSTRING                          (ERRID_DEV - 2)
00208 #define ERRID_DEV_NODEVICENAME                          (ERRID_DEV - 3)
00209 #define ERRID_DEV_BADINITSTRING                         (ERRID_DEV - 4)
00210 #define ERRID_DEV_INITERROR                                     (ERRID_DEV - 5)
00211 #define ERRID_DEV_NOTINITIALIZED                        (ERRID_DEV - 6)
00212 #define ERRID_DEV_WRITEERROR                            (ERRID_DEV - 7)
00213 #define ERRID_DEV_READERROR                                     (ERRID_DEV - 8)
00214 #define ERRID_DEV_WRITETIMEOUT                          (ERRID_DEV - 9)
00215 #define ERRID_DEV_READTIMEOUT                           (ERRID_DEV - 10)
00216 #define ERRID_DEV_WRONGMESSAGEID                        (ERRID_DEV - 11)
00217 #define ERRID_DEV_WRONGCOMMANDID                        (ERRID_DEV - 12)
00218 #define ERRID_DEV_WRONGPARAMETERID                      (ERRID_DEV - 13)
00219 #define ERRID_DEV_EXITERROR                                     (ERRID_DEV - 14)
00220 #define ERRID_DEV_NOMODULES                                     (ERRID_DEV - 15)
00221 #define ERRID_DEV_WRONGDEVICEID                         (ERRID_DEV - 16)
00222 #define ERRID_DEV_NOLIBRARY                                     (ERRID_DEV - 17)
00223 #define ERRID_DEV_ISINITIALIZED                         (ERRID_DEV - 18)
00224 #define ERRID_DEV_WRONGEMSMODULEID                      (ERRID_DEV - 19)
00225 #define ERRID_DEV_EMSNOTINITIALIZED                     (ERRID_DEV - 20)
00226 #define ERRID_DEV_EMSMAXNUMBER                          (ERRID_DEV - 21)
00227 #define ERRID_DEV_EMSINITERROR                          (ERRID_DEV - 22)
00228 #define ERRID_DEV_WRONGEMSTYPE                          (ERRID_DEV - 23)
00229 #define ERRID_DEV_WRONGEMSCHANNELID                     (ERRID_DEV - 24)
00230 #define ERRID_DEV_WRONGMP55MODULEID                     (ERRID_DEV - 25)
00231 #define ERRID_DEV_WRONGSCHUNKMODULEID           (ERRID_DEV - 26)
00232 #define ERRID_DEV_WRONGMODULEID                         (ERRID_DEV - 27)
00233 #define ERRID_DEV_MODULEERROR                           (ERRID_DEV - 28)
00234 #define ERRID_DEV_WAITTIMEOUT                           (ERRID_DEV - 29)
00235 #define ERRID_DEV_OPENINIFILE                           (ERRID_DEV - 30)
00236 
00237 //-----------------------------------------------------------------------
00238 // old PCube Device Error Codes
00239 //-----------------------------------------------------------------------
00240 #define CLD_OK                                                  0
00241 #define CLD_ERR                                                 -1
00242 #define CLDERR_ERROR                                    (-200)
00243 #define CLERR_FUNCTIONNOTAVAILABLE      (CLDERR_ERROR - 1)      
00244 #define CLERR_NOINITSTRING                              (CLDERR_ERROR - 2)
00245 #define CLERR_NODEVICENAME                              (CLDERR_ERROR - 3)
00246 #define CLERR_BADDEVICEINITSTRING               (CLDERR_ERROR - 4)
00247 #define CLDERR_INITIALIZATIONERROR              (CLDERR_ERROR - 5)      
00248 #define CLERR_DEVICENOTOPEN                             (CLDERR_ERROR - 6)
00249 #define CLDERR_TRANSMISSIONERROR                (CLDERR_ERROR - 7)
00250 #define CLDERR_RECEIVEERROR                             (CLDERR_ERROR - 8)
00251 #define CLERR_COMM_SENDTIMEOUT                  (CLDERR_ERROR - 9)
00252 #define CLERR_COMM_RECVTIMEOUT                  (CLDERR_ERROR - 10)
00253 #define CLDERR_DRIVE_NOMODULEFOUND              (CLDERR_ERROR - 15)
00254 #define CLERR_WRONGHANDLE                               (CLDERR_ERROR - 16)
00255 #define CLDERR_LIBRARYNOTFOUND                  (CLDERR_ERROR - 17)     
00256 
00257 //-----------------------------------------------------------------------
00258 // old PCube Module States
00259 //-----------------------------------------------------------------------
00260 #define STATE_ERROR                                                     0x00000001L
00261 #define STATE_HOME_OK                                           0x00000002L
00262 #define STATE_HALTED                                            0x00000004L
00263 #define STATE_POWERFAULT                                        0x00000008L
00264 #define STATE_TOW_ERROR                                         0x00000010L
00265 #define STATE_COMM_ERROR                                        0x00000020L
00266 #define STATE_SWR                                                       0x00000040L
00267 #define STATE_SW1                                                       0x00000080L
00268 #define STATE_SW2                                                       0x00000100L
00269 #define STATE_BRAKEACTIVE                                       0x00000200L
00270 #define STATE_CURLIMIT                                          0x00000400L
00271 #define STATE_MOTION                                            0x00000800L
00272 #define STATE_RAMP_ACC                                          0x00001000L
00273 #define STATE_RAMP_STEADY                                       0x00002000L
00274 #define STATE_RAMP_DEC                                          0x00004000L
00275 #define STATE_RAMP_END                                          0x00008000L
00276 #define STATE_INPROGRESS                                        0x00010000L
00277 #define STATE_FULLBUFFER                                        0x00020000L
00278 #define STATE_POW_VOLT_ERR                                      0x00040000L
00279 #define STATE_POW_FET_TEMP                                      0x00080000L
00280 #define STATE_POW_WDG_TEMP                                      0x00100000L
00281 #define STATE_POW_SHORTCUR                                      0x00200000L
00282 #define STATE_POW_HALLERR                                       0x00400000L
00283 #define STATE_POW_INTEGRALERR                           0x00800000L
00284 #define STATE_CPU_OVERLOAD                                      0x01000000L
00285 #define STATE_BEYOND_HARD                                       0x02000000L
00286 #define STATE_BEYOND_SOFT                                       0x04000000L
00287 
00288 //-----------------------------------------------------------------------
00289 // old PCube Module Types
00290 //-----------------------------------------------------------------------
00291 #define ROTARY_DRIVE                                            TYPEID_MOD_ROTARY
00292 #define LINEAR_DRIVE                                            TYPEID_MOD_LINEAR
00293 
00294 //-----------------------------------------------------------------------
00295 // old EMS Module Types
00296 //-----------------------------------------------------------------------
00297 #define TW_DIG24V_OUT                                           TYPEID_EMS_DIG24V_OUT
00298 #define TW_DIG24V_IN                                            TYPEID_EMS_DIG24V_IN
00299 #define TW_ANA10V_OUT                                           TYPEID_EMS_ANA10V_OUT
00300 #define TW_ANA10V_IN                                            TYPEID_EMS_ANA10V_IN
00301 #define TW_ANA25MA_OUT                                          TYPEID_EMS_ANA25MA_OUT
00302 #define TW_ANA25MA_IN                                           TYPEID_EMS_ANA25MA_IN
00303 
00304 //-----------------------------------------------------------------------
00305 // old PCube Module Config
00306 //-----------------------------------------------------------------------
00307 
00308 #define CONFIG_ENCODER_FEEDBACK                         0x00000001L
00309 #define CONFIG_RESOLVER_FEEDBACK                        0x00000002L
00310 #define CONFIG_ABSOLUTE_FEEDBACK                        0x00000004L
00311 #define CONFIG_BRAKE_PRESENT                            0x00000008L
00312 #define CONFIG_BRAKE_AT_POWERON                         0x00000010L
00313 #define CONFIG_SWR_WITH_ENCODERZERO                     0x00000020L
00314 #define CONFIG_SWR_AT_FALLING_EDGE                      0x00000040L
00315 #define CONFIG_CHANGE_SWR_TO_LIMIT                      0x00000080L
00316 #define CONFIG_SWR_ENABLED                              0x00000100L
00317 #define CONFIG_SWR_LOW_ACTIVE                           0x00000200L
00318 #define CONFIG_SWR_EQ_POSLIMIT                          0x00000400L
00319 #define CONFIG_SW1_ENABLED                                      0x00000800L
00320 #define CONFIG_SW1_LOW_ACTIVE                           0x00001000L
00321 #define CONFIG_SW1_EQ_POSLIMIT                          0x00002000L
00322 #define CONFIG_SW2_ENABLED                                      0x00004000L
00323 #define CONFIG_SW2_LOW_ACTIVE                           0x00008000L
00324 #define CONFIG_SW2_EQ_POSLIMIT                          0x00010000L
00325 #define CONFIG_LINEAR_DRIVE                                     0x00020000L
00326 #define CONFIG_OPENBRAKE_ON_SW2                         0x00040000L
00327 #define CONFIG_ALLOW_FULL_CUR                           0x00080000L
00328 #define CONFIG_M3_COMPATIBLE                            0x00100000L
00329 #define CONFIG_LINEAR_SCREW                                     0x00200000L
00330 #define CONFIG_SYNC_MOTION                                      0x08000000L
00331 #define CONFIG_CAN_RS232_COMM                           0x40000000L
00332 #define CONFIG_PROFI_RS485_COMM                         0x80000000L
00333 
00334 #define P3502_CONFIG_BRAKE_PRESENT          0x00000008L
00335 #define P3502_CONFIG_BRAKE_AT_POWERON       0x00000010L
00336 #define P3502_CONFIG_SWR_WITH_ENCODERZERO   0x00000020L
00337 #define P3502_CONFIG_SWR_AT_FALLING_EDGE    0x00000040L
00338 #define P3502_CONFIG_CHANGE_SWR_TO_LIMIT    0x00000080L
00339 #define P3502_CONFIG_SWR_ENABLED                0x00000100L
00340 #define P3502_CONFIG_SWR_LOW_ACTIVE         0x00000200L
00341 #define P3502_CONFIG_SWR_USE_EXTERNAL       0x00000400L
00342 #define P3502_CONFIG_SW1_ENABLED            0x00000800L
00343 #define P3502_CONFIG_SW1_LOW_ACTIVE         0x00001000L
00344 #define P3502_CONFIG_SW1_USE_EXTERNAL       0x00002000L
00345 #define P3502_CONFIG_SW2_ENABLED                        0x00004000L
00346 #define P3502_CONFIG_SW2_LOW_ACTIVE         0x00008000L
00347 #define P3502_CONFIG_SW2_USE_EXTERNAL           0x00010000L
00348 #define P3502_CONFIG_LINEAR_DRIVE                       0x00020000L
00349 #define P3502_CONFIG_ALLOW_FULL_CUR                     0x00080000L
00350 #define P3502_CONFIG_M3_COMPATIBLE                      0x00100000L
00351 #define P3502_CONFIG_LINEAR_SCREW                       0x00200000L
00352 #define P3502_CONFIG_DISABLE_ON_HALT            0x00800000L
00353 #define P3502_CONFIG_WATCHDOG_ENABLE            0x01000000L
00354 #define P3502_CONFIG_ZERO_MOVE_AFTER_HOK        0x02000000L
00355 #define P3502_CONFIG_DISABLE_ACK                        0x04000000L
00356 
00357 //-----------------------------------------------------------------------
00358 // old PCube Module Setup
00359 //-----------------------------------------------------------------------
00360 
00361 // ---- FEEDBACK SETUP -----------
00362 #define P3502_SETUP_ENCODER_FEEDBACK            0x00000001L
00363 #define P3502_SETUP_RESOLVER_FEEDBACK           0x00000002L
00364 #define P3502_SETUP_ABSOLUTE_FEEDBACK           0x00000004L
00365 // ---- DIGITAL IO SETUP ---------
00366 #define P3502_SETUP_4IN_4OUT                0x00000008L
00367 #define P3502_SETUP_3IN_ENCODER_IN                      0x00000010L
00368 #define P3502_SETUP_3IN_ENCODER_OUT                     0x00000020L
00369 // ---- COMM INTERFACE -----------
00370 #define P3502_SETUP_RS232                                       0x00000040L
00371 #define P3502_SETUP_RS485HD                                     0x00000080L
00372 #define P3502_SETUP_RS485FD                                     0x00000100L
00373 #define P3502_SETUP_CAN                                         0x00000200L
00374 #define P3502_SETUP_PROFIBUS                            0x00000400L
00375 // ---- CAN ID SETUP -------------
00376 #define P3502_SETUP_USE_M3ID                            0x00000800L
00377 #define P3502_SETUP_USE_M4ID                            0x00001000L
00378 #define P3502_SETUP_USE_CANOPEN                         0x00002000L
00379 // ---- MOTOR SETUP --------------
00380 #define P3502_SETUP_INVERT_MOTORDIR         0x00004000L
00381 // ---- INPUT USAGE --------------
00382 #define P3502_SETUP_USE_SW2_AS_ENABLE           0x00008000L
00383 #define P3502_SETUP_USE_SW2_AS_BRAKE            0x00010000L
00384 // ---- OUTPUT USAGE -------------
00385 #define P3502_SETUP_ERROR_TO_OUT0                       0x00020000L
00386 // ---- COUNTER SETUP ------------
00387 #define P3502_SETUP_INVERT_COUNTER                      0x00040000L
00388 
00389 //-----------------------------------------------------------------------
00390 // old PCube Functionnames
00391 //-----------------------------------------------------------------------
00392 
00393 #define PCube_getCubeState                      PCube_getModuleState
00394 #define PCube_getDefCubeVersion         PCube_getModuleVersion
00395 #define PCube_getModulesIdMap           PCube_getModuleIdMap
00396 #define PCube_getDefBurncount           PCube_getDefBurnCount
00397 #define PCube_getDefSerialNo            PCube_getModuleSerialNo
00398 #define PCube_getDefPulsesPerTurn       PCube_getDefIncPerTurn
00399 #define PCube_getDefDioSetup            PCube_getDefDioData
00400 #define PCube_getActPos                         PCube_getPos
00401 #define PCube_getActVel                         PCube_getVel
00402 #define PCube_getActPosInc                      PCube_getPosInc
00403 #define PCube_syncModule                        PCube_homeModule
00404 #define PCube_moveCurrent                       PCube_moveCur
00405 #define PCube_moveCurrentInc            PCube_moveCurInc
00406 #define PCube_moveCurrentExtended       PCube_moveCurExtended
00407 #define DLR_FTSInit                                     PCube_initDLR_FTS
00408 #define DLR_FTSGetData                          PCube_getDataDLR_FTS
00409 #define PCube_getStatusInternal         PCube_getStateInternal
00410 #define PCube_ConfigFromFile            PCube_configFromFile
00411 #define PCube_getInitString                     PCube_getDeviceInitString
00412 #define PCube_getName                           PCube_getDeviceName
00413 #define PCube_getRevision                       PCube_getDeviceRevision
00414 #define PCube_setTargetVel                      PCube_setRampVel
00415 #define PCube_setTargetAcc                      PCube_setRampAcc
00416 
00417 //-----------------------------------------------------------------------
00418 // new PCube Functionnames
00419 //-----------------------------------------------------------------------
00420 #ifdef __cplusplus
00421 extern "C" {
00422 #endif
00423 
00424 M5DLL_API int WINAPI PCube_getDllVersion( void );
00425 M5DLL_API int WINAPI PCube_setDllDebug( int iDebug, int iDebugLevel, int iDebugFile );
00426 
00427 M5DLL_API int WINAPI PCube_configFromFile( const char* acFileName );
00428 M5DLL_API int WINAPI PCube_openDevice( int* piDeviceId, const char* acInitString );
00429 M5DLL_API int WINAPI PCube_closeDevice( int iDeviceId );
00430 M5DLL_API int WINAPI PCube_closeDevices( void );
00431 M5DLL_API int WINAPI PCube_getDeviceCount( void );
00432 M5DLL_API int WINAPI PCube_getDeviceIdMap( int* aiIdMap );
00433 M5DLL_API const char* WINAPI PCube_getDeviceRevision( int iDeviceId );
00434 M5DLL_API const char* WINAPI PCube_getDeviceInitString( int iDeviceId );
00435 M5DLL_API const char* WINAPI PCube_getDeviceName( int iDeviceId );
00436 M5DLL_API int WINAPI PCube_setDeviceName( int iDeviceId, const char* acDeviceName );
00437 M5DLL_API int WINAPI PCube_setDeviceDebug( int iDeviceId, int iDebug, int iDebugLevel, int iDebugFile );
00438 
00439 M5DLL_API int WINAPI PCube_getModuleCount( int iDeviceId );
00440 M5DLL_API int WINAPI PCube_getModuleIdMap( int iDeviceId, int* aiIdMap );
00441 M5DLL_API int WINAPI PCube_getModuleState( int iDeviceId, int iModuleId, unsigned long* puiState );
00442 M5DLL_API int WINAPI PCube_getModuleType( int iDeviceId, int iModuleId, unsigned char* pucValue );
00443 M5DLL_API int WINAPI PCube_getModuleVersion( int iDeviceId, int iModuleId, unsigned short* puiValue );
00444 M5DLL_API int WINAPI PCube_getModuleSerialNo( int iDeviceId, int iModuleId, unsigned long* puiValue );
00445 
00446 M5DLL_API int WINAPI PCube_getDefConfig( int iDeviceId, int iModuleId, unsigned long* puiValue );
00447 M5DLL_API int WINAPI PCube_getDefSetup( int iDeviceId, int iModuleId, unsigned long* puiValue );        //OS: available from 35xx 
00448 M5DLL_API int WINAPI PCube_getDefBaudRate( int iDeviceId, int iModuleId, unsigned char* pucValue );
00449 M5DLL_API int WINAPI PCube_getDefBurnCount( int iDeviceId, int iModuleId, unsigned char* pucValue );
00450 M5DLL_API int WINAPI PCube_getDefGearRatio( int iDeviceId, int iModuleId, float* pfValue );
00451 M5DLL_API int WINAPI PCube_getDefLinearRatio( int iDeviceId, int iModuleId, float* pfValue );
00452 M5DLL_API int WINAPI PCube_getDefCurRatio( int iDeviceId, int iModuleId, float* pfValue );
00453 M5DLL_API int WINAPI PCube_getDefBrakeTimeOut( int iDeviceId, int iModuleId, unsigned short* puiValue );
00454 M5DLL_API int WINAPI PCube_getDefIncPerTurn( int iDeviceId, int iModuleId, unsigned long* puiValue );
00455 M5DLL_API int WINAPI PCube_getDefDioData( int iDeviceId, int iModuleId, unsigned long* puiValue );      //OS: not available from 35xx 
00456 M5DLL_API int WINAPI PCube_getDefA0( int iDeviceId, int iModuleId, short* piValue );
00457 M5DLL_API int WINAPI PCube_getDefC0( int iDeviceId, int iModuleId, short* piValue );
00458 M5DLL_API int WINAPI PCube_getDefDamp( int iDeviceId, int iModuleId, short* piValue );
00459 M5DLL_API int WINAPI PCube_getDefHomeOffset( int iDeviceId, int iModuleId, float* pfValue );
00460 M5DLL_API int WINAPI PCube_getDefHomeVel( int iDeviceId, int iModuleId, float* pfValue );
00461 M5DLL_API int WINAPI PCube_getDefMinPos( int iDeviceId, int iModuleId, float* pfValue );
00462 M5DLL_API int WINAPI PCube_getDefMaxPos( int iDeviceId, int iModuleId, float* pfValue );
00463 M5DLL_API int WINAPI PCube_getDefMaxVel( int iDeviceId, int iModuleId, float* pfValue );
00464 M5DLL_API int WINAPI PCube_getDefMaxAcc( int iDeviceId, int iModuleId, float* pfValue );
00465 M5DLL_API int WINAPI PCube_getDefMaxCur( int iDeviceId, int iModuleId, float* pfValue );
00466 M5DLL_API int WINAPI PCube_getDefMaxDeltaPos( int iDeviceId, int iModuleId, float* pfValue );
00467 
00468 M5DLL_API int WINAPI PCube_getConfig( int iDeviceId, int iModuleId, unsigned long* puiValue );
00469 M5DLL_API int WINAPI PCube_getIncRatio( int iDeviceId, int iModuleId, float* pValue );
00470 M5DLL_API int WINAPI PCube_getStateDioPos( int iDeviceId, int iModuleId, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );   //OS: available from 2518 and 3518
00471 M5DLL_API int WINAPI PCube_getDioData( int iDeviceId, int iModuleId, unsigned long* puiValue );
00472 M5DLL_API int WINAPI PCube_getA0( int iDeviceId, int iModuleId, short* piValue );
00473 M5DLL_API int WINAPI PCube_getC0( int iDeviceId, int iModuleId, short* piValue );
00474 M5DLL_API int WINAPI PCube_getDamp( int iDeviceId, int iModuleId, short* piValue );
00475 M5DLL_API int WINAPI PCube_getHomeOffset( int iDeviceId, int iModuleId, float* pValue );
00476 M5DLL_API int WINAPI PCube_getHomeOffsetInc( int iDeviceId, int iModuleId, long* piValue );
00477 M5DLL_API int WINAPI PCube_getHomeVel( int iDeviceId, int iModuleId, float* pfValue );          //OS: available from 2518 and 3518
00478 M5DLL_API int WINAPI PCube_getHomeVelInc( int iDeviceId, int iModuleId, long* piValue );        //OS: available from 2518 and 3518
00479 M5DLL_API int WINAPI PCube_getPos( int iDeviceId, int iModuleId, float* pfPos );
00480 M5DLL_API int WINAPI PCube_getPosInc( int iDeviceId, int iModuleId, long* piValue );
00481 M5DLL_API int WINAPI PCube_getPosCountInc( int iDeviceId, int iModuleId, long* piValue );
00482 M5DLL_API int WINAPI PCube_getVel( int iDeviceId, int iModuleId, float* pfVel );
00483 M5DLL_API int WINAPI PCube_getVelInc( int iDeviceId, int iModuleId, long* piValue );
00484 M5DLL_API int WINAPI PCube_getIPolVel( int iDeviceId, int iModuleId, float* pValue );
00485 M5DLL_API int WINAPI PCube_getCur( int iDeviceId, int iModuleId, float* pfCur );
00486 M5DLL_API int WINAPI PCube_getCurInc( int iDeviceId, int iModuleId, short* piValue );
00487 M5DLL_API int WINAPI PCube_getMinPos( int iDeviceId, int iModuleId, float* pfValue );
00488 M5DLL_API int WINAPI PCube_getMinPosInc( int iDeviceId, int iModuleId, long* piValue );
00489 M5DLL_API int WINAPI PCube_getMaxPos( int iDeviceId, int iModuleId, float* pfValue );
00490 M5DLL_API int WINAPI PCube_getMaxPosInc( int iDeviceId, int iModuleId, long* piValue );
00491 M5DLL_API int WINAPI PCube_getMaxVel( int iDeviceId, int iModuleId, float* pfValue );
00492 M5DLL_API int WINAPI PCube_getMaxVelInc( int iDeviceId, int iModuleId, long* piValue );
00493 M5DLL_API int WINAPI PCube_getMaxAcc( int iDeviceId, int iModuleId, float* pfValue );
00494 M5DLL_API int WINAPI PCube_getMaxAccInc( int iDeviceId, int iModuleId, long* piValue );
00495 M5DLL_API int WINAPI PCube_getMaxCur( int iDeviceId, int iModuleId, float* pfValue );
00496 M5DLL_API int WINAPI PCube_getDeltaPos( int iDeviceId, int iModuleId, float* pfValue );
00497 M5DLL_API int WINAPI PCube_getDeltaPosInc( int iDeviceId, int iModuleId, long* piValue );
00498 M5DLL_API int WINAPI PCube_getMaxDeltaPos( int iDeviceId, int iModuleId, float* pfValue );
00499 M5DLL_API int WINAPI PCube_getMaxDeltaPosInc( int iDeviceId, int iModuleId, long* piValue );
00500 M5DLL_API int WINAPI PCube_getSavePos( int iDeviceId, int iModuleId, float* pfValue );  //OS: available from 2518 and 3518
00501 M5DLL_API int WINAPI PCube_getSyncTime( int iDeviceId, int iModuleId, short* piValue ); //OS: available from 3602
00502 
00503 M5DLL_API int WINAPI PCube_setConfig( int iDeviceId, int iModuleId, unsigned long uiValue );
00504 M5DLL_API int WINAPI PCube_setDioData( int iDeviceId, int iModuleId, unsigned long uiValue );
00505 M5DLL_API int WINAPI PCube_setA0( int iDeviceId, int iModuleId, short iValue );
00506 M5DLL_API int WINAPI PCube_setC0( int iDeviceId, int iModuleId, short iValue );
00507 M5DLL_API int WINAPI PCube_setDamp( int iDeviceId, int iModuleId, short iValue );
00508 M5DLL_API int WINAPI PCube_setHomeOffset( int iDeviceId, int iModuleId, float fValue );
00509 M5DLL_API int WINAPI PCube_setHomeOffsetInc( int iDeviceId, int iModuleId, long iValue );
00510 M5DLL_API int WINAPI PCube_setHomeVel( int iDeviceId, int iModuleId, float fValue );    //OS: available from 2518 and 3518
00511 M5DLL_API int WINAPI PCube_setHomeVelInc( int iDeviceId, int iModuleId, long iValue );  //OS: available from 2518 and 3518
00512 M5DLL_API int WINAPI PCube_setRampVel( int iDeviceId, int iModuleId, float fValue );                    
00513 M5DLL_API int WINAPI PCube_setRampVelInc( int iDeviceId, int iModuleId, long iValue );
00514 M5DLL_API int WINAPI PCube_setRampAcc( int iDeviceId, int iModuleId, float fValue );                    
00515 M5DLL_API int WINAPI PCube_setRampAccInc( int iDeviceId, int iModuleId, long iValue );
00516 M5DLL_API int WINAPI PCube_setMinPos( int iDeviceId, int iModuleId, float fValue );
00517 M5DLL_API int WINAPI PCube_setMinPosInc( int iDeviceId, int iModuleId, long iValue );
00518 M5DLL_API int WINAPI PCube_setMaxPos( int iDeviceId, int iModuleId, float fValue );
00519 M5DLL_API int WINAPI PCube_setMaxPosInc( int iDeviceId, int iModuleId, long iValue );
00520 M5DLL_API int WINAPI PCube_setMaxVel( int iDeviceId, int iModuleId, float fValue );
00521 M5DLL_API int WINAPI PCube_setMaxVelInc( int iDeviceId, int iModuleId, long iValue );
00522 M5DLL_API int WINAPI PCube_setMaxAcc( int iDeviceId, int iModuleId, float fValue );
00523 M5DLL_API int WINAPI PCube_setMaxAccInc( int iDeviceId, int iModuleId, long iValue );
00524 M5DLL_API int WINAPI PCube_setMaxCur( int iDeviceId, int iModuleId, float fValue );
00525 M5DLL_API int WINAPI PCube_setMaxDeltaPos( int iDeviceId, int iModuleId, float fValue );
00526 M5DLL_API int WINAPI PCube_setMaxDeltaPosInc( int iDeviceId, int iModuleId, long iValue );
00527 M5DLL_API int WINAPI PCube_setSyncTime( int iDeviceId, int iModuleId, short iValue );   //OS: available from 3602
00528 
00529 M5DLL_API int WINAPI PCube_homeModule( int iDeviceId, int iModuleId );
00530 M5DLL_API int WINAPI PCube_haltModule( int iDeviceId, int iModuleId );
00531 M5DLL_API int WINAPI PCube_resetModule( int iDeviceId, int iModuleId );
00532 M5DLL_API int WINAPI PCube_recalcPIDParams( int iDeviceId, int iModuleId );
00533 
00534 M5DLL_API int WINAPI PCube_movePos( int iDeviceId, int iModuleId, float fPos );
00535 M5DLL_API int WINAPI PCube_movePosInc( int iDeviceId, int iModuleId, long iPos );
00536 M5DLL_API int WINAPI PCube_movePosExtended( int iDeviceId, int iModuleId, float fPos, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );
00537 M5DLL_API int WINAPI PCube_moveRamp( int iDeviceId, int iModuleId, float fPos, float fVel, float fAcc );
00538 M5DLL_API int WINAPI PCube_moveRampInc( int iDeviceId, int iModuleId, long iPos, long iVel, long iAcc );
00539 M5DLL_API int WINAPI PCube_moveRampExtended( int iDeviceId, int iModuleId, float fPos, float fVel, float fAcc, unsigned long* puiState, unsigned char* pucDio, float* pfPos );
00540 M5DLL_API int WINAPI PCube_moveVel( int iDeviceId, int iModuleId, float fVel );
00541 M5DLL_API int WINAPI PCube_moveVelInc( int iDeviceId, int iModuleId, long iVel );
00542 M5DLL_API int WINAPI PCube_moveVelExtended( int iDeviceId, int iModuleId, float fCur, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );
00543 M5DLL_API int WINAPI PCube_moveCur( int iDeviceId, int iModuleId, float fCur );
00544 M5DLL_API int WINAPI PCube_moveCurInc( int iDeviceId, int iModuleId, long iCur );
00545 M5DLL_API int WINAPI PCube_moveCurExtended( int iDeviceId, int iModuleId, float fCur, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );
00546 M5DLL_API int WINAPI PCube_moveStep( int iDeviceId, int iModuleId, float fPos, unsigned short uiTime );
00547 M5DLL_API int WINAPI PCube_moveStepInc( int iDeviceId, int iModuleId, long iPos, unsigned short uiTime );
00548 M5DLL_API int WINAPI PCube_moveStepExtended( int iDeviceId, int iModuleId, float fPos, unsigned short uiTime, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );
00549 
00550 M5DLL_API int WINAPI PCube_homeAll( int iDeviceId );
00551 M5DLL_API int WINAPI PCube_resetAll( int iDeviceId );
00552 M5DLL_API int WINAPI PCube_haltAll( int iDeviceId );
00553 M5DLL_API int WINAPI PCube_serveWatchdogAll( int iDeviceId );
00554 M5DLL_API int WINAPI PCube_setBaudRateAll( int iDeviceId, unsigned char pucValue );
00555 M5DLL_API int WINAPI PCube_startMotionAll( int iDeviceId );
00556 M5DLL_API int WINAPI PCube_savePosAll( int iDeviceId );
00557 
00558 M5DLL_API int WINAPI PCube_waitForHomeEnd( int iDeviceId, int iModuleId, unsigned long uiTime );
00559 M5DLL_API int WINAPI PCube_waitForMotionEnd( int iDeviceId, int iModuleId, unsigned long uiTime );
00560 M5DLL_API int WINAPI PCube_waitForRampEnd( int iDeviceId, int iModuleId, unsigned long uiTime );
00561 M5DLL_API int WINAPI PCube_waitForRampDec( int iDeviceId, int iModuleId, unsigned long uiTime );
00562 M5DLL_API int WINAPI PCube_waitForRampSteady( int iDeviceId, int iModuleId, unsigned long uiTime );
00563 M5DLL_API int WINAPI PCube_waitForHomeEndAll( int iDeviceId, unsigned long uiTime );
00564 M5DLL_API int WINAPI PCube_waitForMotionEndAll( int iDeviceId, unsigned long uiTime );
00565 M5DLL_API int WINAPI PCube_waitForRampEndAll( int iDeviceId, unsigned long uiTime );
00566 M5DLL_API int WINAPI PCube_waitForStartMotionAll( int iDeviceId );
00567 
00568 M5DLL_API int WINAPI PCube_xmit8Bytes( int iDeviceId, int iModuleId, void* pBytes );
00569 M5DLL_API int WINAPI PCube_xack8Bytes( int iDeviceId, int iModuleId, void* pBytes );
00570 M5DLL_API int WINAPI PCube_doInternal( int iDeviceId, int iModuleId, void* pBytes );
00571 M5DLL_API int WINAPI PCube_getStateInternal( int iDeviceId, int iModuleId, unsigned long* puiState );
00572 M5DLL_API int WINAPI PCube_updateModuleIdMap( int iDeviceId );
00573 
00574 M5DLL_API int WINAPI PCube_initEMS_IO( int iDeviceId, unsigned char ucType, unsigned long uiSerialNo );
00575 M5DLL_API int WINAPI PCube_getDataEMS_DIO( int iDeviceId, int iModuleId, int iChannelId, int* piData );
00576 M5DLL_API int WINAPI PCube_getDataEMS_AIO( int iDeviceId, int iModuleId, int iChannelId, float* pfData );
00577 M5DLL_API int WINAPI PCube_setDataEMS_DIO( int iDeviceId, int iModuleId, int iChannelId, int iData );
00578 M5DLL_API int WINAPI PCube_setDataEMS_AIO( int iDeviceId, int iModuleId, int iChannelId, float fData );
00579 
00580 M5DLL_API int WINAPI PCube_initDLR_FTS( int iDeviceId );
00581 M5DLL_API int WINAPI PCube_getDataDLR_FTS( int iDeviceId, float* pfDataFX, float* pfDataFY, float* pfDataFZ, float* pfDataTX, float* pfDataTY, float* pfDataTZ, long* piState );
00582 
00583 M5DLL_API int WINAPI PCube_getDataSCHUNK_FTC( int iDeviceId, int iModulId, int iChannelTypeId, float* pfDataFX, float* pfDataFY, float* pfDataFZ, float* pfDataTX, float* pfDataTY, float* pfDataTZ, short* piState );
00584 M5DLL_API int WINAPI PCube_setNullSCHUNK_FTC( int iDeviceId, int iModulId, short* piState );
00585 
00586 M5DLL_API int WINAPI PCube_getDataMP55_IO( int iDeviceId, int iModuleId, float* pfData );
00587 M5DLL_API int WINAPI PCube_setTaraMP55_IO( int iDeviceId, int iModuleId, float fData );
00588 
00589 M5DLL_API int WINAPI PCube_getDefCurOffset( int iDeviceId, int iModuleId, float* pfValue );
00590 
00591 M5DLL_API int WINAPI PCube_getDataMP55_IO_fast( int iDeviceId, int iModuleId, float* pfData );
00592 M5DLL_API int WINAPI PCube_setInitMP55_IO_fast( int iDeviceId, int iModuleId );
00593 
00594 M5DLL_API int WINAPI PCube_getRawMotorCurrent( int iDeviceId, int iModuleId, short* piValue );
00595 M5DLL_API int WINAPI PCube_getRawMotorSupply( int iDeviceId, int iModuleId, short* piValue );
00596 M5DLL_API int WINAPI PCube_getRawTemperature( int iDeviceId, int iModuleId, short* piValue );
00597 M5DLL_API int WINAPI PCube_getRawLogicSupply( int iDeviceId, int iModuleId, short* piValue );
00598 
00599 M5DLL_API int WINAPI PCube_getCanOpenRawAbsEnc( int iDeviceId, int iModuleId, short* piValue );
00600 
00601 M5DLL_API int WINAPI PCube_getLoadLimit( int iDeviceId, int iModuleId, long* piValue );
00602 M5DLL_API int WINAPI PCube_getMaxLoadGradient( int iDeviceId, int iModuleId, long* piValue );
00603 M5DLL_API int WINAPI PCube_getLoadDeltaTime( int iDeviceId, int iModuleId, unsigned short* piValue );
00604 M5DLL_API int WINAPI PCube_setLoadLimit( int iDeviceId, int iModuleId, long iValue );
00605 M5DLL_API int WINAPI PCube_setMaxLoadGradient( int iDeviceId, int iModuleId, long iValue );
00606 M5DLL_API int WINAPI PCube_setLoadDeltaTime( int iDeviceId, int iModuleId, unsigned short iValue );
00607 
00608 M5DLL_API int WINAPI PCube_saveParameters( int iDeviceId, int iModuleId );
00609 
00610 M5DLL_API int WINAPI PCube_getDefCANBaudRate( int iDeviceId, int iModuleId, unsigned char* pucValue );
00611 M5DLL_API int WINAPI PCube_getDefRSBaudRate( int iDeviceId, int iModuleId, unsigned char* pucValue );
00612 M5DLL_API int WINAPI PCube_setDefGearRatio( int iDeviceId, int iModuleId, float fValue );
00613 M5DLL_API int WINAPI PCube_setDefLinRatio( int iDeviceId, int iModuleId, float fValue );
00614 M5DLL_API int WINAPI PCube_setDefCurRatio( int iDeviceId, int iModuleId, float fValue );
00615 M5DLL_API int WINAPI PCube_setDefHomeAcc( int iDeviceId, int iModuleId, float fValue );
00616 M5DLL_API int WINAPI PCube_setModuleSerialNo( int iDeviceId, int iModuleId, unsigned long uiValue );
00617 M5DLL_API int WINAPI PCube_setDefIncPerTurn( int iDeviceId, int iModuleId, unsigned long uiValue );
00618 M5DLL_API int WINAPI PCube_setDefBrakeTimeOut( int iDeviceId, int iModuleId, unsigned short uiValue );
00619 M5DLL_API int WINAPI PCube_setDefAddress( int iDeviceId, int iModuleId, unsigned char uiValue );
00620 M5DLL_API int WINAPI PCube_setDefCANBaudRate( int iDeviceId, int iModuleId, unsigned char uiValue );
00621 M5DLL_API int WINAPI PCube_setDefRSBaudRate( int iDeviceId, int iModuleId, unsigned char uiValue );
00622 M5DLL_API int WINAPI PCube_setDefSetup( int iDeviceId, int iModuleId, unsigned long uiValue );
00623 
00624 M5DLL_API int WINAPI PCube_getMotorCurrent( int iDeviceId, int iModuleId, float* pfValue );
00625 M5DLL_API int WINAPI PCube_getMotorSupply( int iDeviceId, int iModuleId, float* pfValue );
00626 M5DLL_API int WINAPI PCube_getTemperature( int iDeviceId, int iModuleId, float* pfValue );
00627 M5DLL_API int WINAPI PCube_getLogicSupply( int iDeviceId, int iModuleId, float* pfValue );
00628 M5DLL_API int WINAPI PCube_getMinLogicVoltage( int iDeviceId, int iModuleId, float* pfValue );
00629 M5DLL_API int WINAPI PCube_getMaxLogicVoltage( int iDeviceId, int iModuleId, float* pfValue );
00630 M5DLL_API int WINAPI PCube_getMinMotorVoltage( int iDeviceId, int iModuleId, float* pfValue );
00631 M5DLL_API int WINAPI PCube_getMaxMotorVoltage( int iDeviceId, int iModuleId, float* pfValue );
00632 M5DLL_API int WINAPI PCube_getNominalMotorCurrent( int iDeviceId, int iModuleId, float* pfValue );
00633 M5DLL_API int WINAPI PCube_getMaximumMotorCurrent( int iDeviceId, int iModuleId, float* pfValue );
00634 M5DLL_API int WINAPI PCube_getLogicUndershootTime( int iDeviceId, int iModuleId, long* piValue );
00635 M5DLL_API int WINAPI PCube_getLogicOvershootTime( int iDeviceId, int iModuleId, long* piValue );
00636 M5DLL_API int WINAPI PCube_getMotorUndershootTime( int iDeviceId, int iModuleId, long* piValue );
00637 M5DLL_API int WINAPI PCube_getMotorOvershootTime( int iDeviceId, int iModuleId, long* piValue );
00638 M5DLL_API int WINAPI PCube_getNomCurOvershootTime( int iDeviceId, int iModuleId, long* piValue );
00639 M5DLL_API int WINAPI PCube_getHMaxCurOvershootTime( int iDeviceId, int iModuleId, long* piValue );
00640 M5DLL_API int WINAPI PCube_setMinLogicVoltage( int iDeviceId, int iModuleId, float fValue );
00641 M5DLL_API int WINAPI PCube_setMaxLogicVoltage( int iDeviceId, int iModuleId, float fValue );
00642 M5DLL_API int WINAPI PCube_setMinMotorVoltage( int iDeviceId, int iModuleId, float fValue );
00643 M5DLL_API int WINAPI PCube_setMaxMotorVoltage( int iDeviceId, int iModuleId, float fValue );
00644 M5DLL_API int WINAPI PCube_setNominalMotorCurrent( int iDeviceId, int iModuleId, float fValue );
00645 M5DLL_API int WINAPI PCube_setMaximumMotorCurrent( int iDeviceId, int iModuleId, float fValue );
00646 M5DLL_API int WINAPI PCube_setLogicUndershootTime( int iDeviceId, int iModuleId, long iValue );
00647 M5DLL_API int WINAPI PCube_setLogicOvershootTime( int iDeviceId, int iModuleId, long iValue );
00648 M5DLL_API int WINAPI PCube_setMotorUndershootTime( int iDeviceId, int iModuleId, long iValue );
00649 M5DLL_API int WINAPI PCube_setMotorOvershootTime( int iDeviceId, int iModuleId, long iValue );
00650 M5DLL_API int WINAPI PCube_setNomCurOvershootTime( int iDeviceId, int iModuleId, long iValue );
00651 M5DLL_API int WINAPI PCube_setHMaxCurOvershootTime( int iDeviceId, int iModuleId, long iValue );
00652 
00653 M5DLL_API int WINAPI PCube_getKpPWMLimit( int iDeviceId, int iModuleId, long* piValue );
00654 M5DLL_API int WINAPI PCube_getCurrentLimit( int iDeviceId, int iModuleId, float* pfValue );
00655 M5DLL_API int WINAPI PCube_getMaxPWMOutput( int iDeviceId, int iModuleId, long* piValue );
00656 M5DLL_API int WINAPI PCube_setKpPWMLimit( int iDeviceId, int iModuleId, long iValue );
00657 M5DLL_API int WINAPI PCube_setCurrentLimit( int iDeviceId, int iModuleId, float fValue );
00658 
00659 #ifdef __cplusplus
00660         }
00661 #endif
00662 
00663 #endif


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