m5apiw32.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012 SCHUNK GmbH & Co. KG
3  * Copyright (c) 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10 
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef __LINUX__
19 #define __LINUX__
20 #endif
21 
22 #ifndef M5APIW32_H
23 #define M5APIW32_H
24 
25 
26 
27 #define M5DLLVERSION 0x5060
28 #define MAX_MODULES 31
29 
30 #if defined (_WIN32)
31 #ifndef WINAPI
32  #define WINAPI __stdcall
33 #endif
34 
35 #ifdef M5APIW32_EXPORTS
36  #define M5DLL_API __declspec(dllexport)
37 #else
38  #define M5DLL_API __declspec(dllimport)
39 #endif
40 #endif
41 #if defined(__LINUX__)
42  #define WINAPI
43  #define M5DLL_API
44 #endif
45 #if defined (__QNX__)
46  #define WINAPI
47  #define M5DLL_API
48 #endif
49 
50 extern M5DLL_API int g_iM5DebugLevel;
51 extern M5DLL_API int g_iM5DebugFile;
52 extern M5DLL_API int g_iM5Debug;
53 
54 //-----------------------------------------------------------------------
55 // new PCube Module States
56 //-----------------------------------------------------------------------
57 #define STATEID_MOD_ERROR 0x00000001L
58 #define STATEID_MOD_HOME 0x00000002L
59 #define STATEID_MOD_HALT 0x00000004L
60 #define STATEID_MOD_POWERFAULT 0x00000008L
61 #define STATEID_MOD_TOW_ERROR 0x00000010L
62 #define STATEID_MOD_COMM_ERROR 0x00000020L
63 #define STATEID_MOD_SWR 0x00000040L
64 #define STATEID_MOD_SW1 0x00000080L
65 #define STATEID_MOD_SW2 0x00000100L
66 #define STATEID_MOD_BRAKEACTIVE 0x00000200L
67 #define STATEID_MOD_CURLIMIT 0x00000400L
68 #define STATEID_MOD_MOTION 0x00000800L
69 #define STATEID_MOD_RAMP_ACC 0x00001000L
70 #define STATEID_MOD_RAMP_STEADY 0x00002000L
71 #define STATEID_MOD_RAMP_DEC 0x00004000L
72 #define STATEID_MOD_RAMP_END 0x00008000L
73 #define STATEID_MOD_INPROGRESS 0x00010000L
74 #define STATEID_MOD_FULLBUFFER 0x00020000L
75 #define STATEID_MOD_POW_VOLT_ERR 0x00040000L
76 #define STATEID_MOD_POW_FET_TEMP 0x00080000L
77 #define STATEID_MOD_POW_WDG_TEMP 0x00100000L
78 #define STATEID_MOD_POW_SHORTCUR 0x00200000L
79 #define STATEID_MOD_POW_HALLERR 0x00400000L
80 #define STATEID_MOD_POW_INTEGRALERR 0x00800000L
81 #define STATEID_MOD_CPU_OVERLOAD 0x01000000L
82 #define STATEID_MOD_BEYOND_HARD 0x02000000L
83 #define STATEID_MOD_BEYOND_SOFT 0x04000000L
84 #define STATEID_MOD_LOGIC_VOLT 0x08000000L
85 
86 //-----------------------------------------------------------------------
87 // new PCube Module Config
88 //-----------------------------------------------------------------------
89 #define CONFIGID_MOD_ENCODER_FEEDBACK 0x00000001L //OS: 25xx from 35xx in SETUP
90 #define CONFIGID_MOD_RESOLVER_FEEDBACK 0x00000002L //OS: 25xx from 35xx in SETUP
91 #define CONFIGID_MOD_ABSOLUTE_FEEDBACK 0x00000004L //OS: 25xx from 35xx in SETUP
92 #define CONFIGID_MOD_BRAKE_PRESENT 0x00000008L
93 #define CONFIGID_MOD_BRAKE_AT_POWERON 0x00000010L
94 #define CONFIGID_MOD_SWR_WITH_ENCODERZERO 0x00000020L
95 #define CONFIGID_MOD_SWR_AT_FALLING_EDGE 0x00000040L
96 #define CONFIGID_MOD_CHANGE_SWR_TO_LIMIT 0x00000080L
97 #define CONFIGID_MOD_SWR_ENABLED 0x00000100L
98 #define CONFIGID_MOD_SWR_LOW_ACTIVE 0x00000200L
99 #define CONFIGID_MOD_SWR_EQ_POSLIMIT 0x00000400L //OS: 25xx
100 #define CONFIGID_MOD_SWR_USE_EXTERNAL 0x00000400L //OS: 35xx
101 #define CONFIGID_MOD_SW1_ENABLED 0x00000800L
102 #define CONFIGID_MOD_SW1_LOW_ACTIVE 0x00001000L
103 #define CONFIGID_MOD_SW1_EQ_POSLIMIT 0x00002000L //OS: 25xx
104 #define CONFIGID_MOD_SW1_USE_EXTERNAL 0x00002000L //OS: 35xx
105 #define CONFIGID_MOD_SW2_ENABLED 0x00004000L
106 #define CONFIGID_MOD_SW2_LOW_ACTIVE 0x00008000L
107 #define CONFIGID_MOD_SW2_EQ_POSLIMIT 0x00010000L //OS: 25xx
108 #define CONFIGID_MOD_SW2_USE_EXTERNAL 0x00010000L //OS: 35xx
109 #define CONFIGID_MOD_LINEAR 0x00020000L
110 #define CONFIGID_MOD_OPENBRAKE_ON_SW2 0x00040000L //OS: 25xx but not in 2512 from 35xx in SETUP
111 #define CONFIGID_MOD_ALLOW_FULL_CUR 0x00080000L
112 #define CONFIGID_MOD_M3_COMPATIBLE 0x00100000L
113 #define CONFIGID_MOD_LINEAR_SCREW 0x00200000L
114 #define CONFIGID_MOD_DISABLE_ON_HALT 0x00800000L
115 #define CONFIGID_MOD_WATCHDOG_ENABLE 0x01000000L
116 #define CONFIGID_MOD_ZERO_MOVE_AFTER_HOK 0x02000000L //OS: 35xx
117 #define CONFIGID_MOD_DISABLE_ACK 0x04000000L
118 #define CONFIGID_MOD_SYNC_MOTION 0x08000000L
119 #define CONFIGID_MOD_SYNC_TRANSMIT 0x10000000L //OS: 36xx
120 #define CONFIGID_MOD_CAN_RS232_COMM 0x40000000L //OS: 25xx
121 #define CONFIGID_MOD_PROFI_RS485_COMM 0x80000000L //OS: 25xx
122 
123 //-----------------------------------------------------------------------
124 // new PCube Module Setup
125 //-----------------------------------------------------------------------
126 // ---- FEEDBACK SETUP -----------
127 #define SETUPID_MOD_ENCODER_FEEDBACK 0x00000001L
128 #define SETUPID_MOD_RESOLVER_FEEDBACK 0x00000002L
129 #define SETUPID_MOD_ABSOLUTE_FEEDBACK 0x00000004L
130 // ---- DIGITAL IO SETUP ---------
131 #define SETUPID_MOD_4IN_4OUT 0x00000008L
132 #define SETUPID_MOD_3IN_ENCODER_IN 0x00000010L
133 #define SETUPID_MOD_3IN_ENCODER_OUT 0x00000020L
134 // ---- COMM INTERFACE -----------
135 #define SETUPID_MOD_RS232 0x00000040L
136 #define SETUPID_MOD_CAN 0x00000200L
137 #define SETUPID_MOD_PROFIBUS 0x00000400L
138 // ---- CAN ID SETUP -------------
139 #define SETUPID_MOD_USE_M3ID 0x00000800L
140 #define SETUPID_MOD_USE_M4ID 0x00001000L
141 #define SETUPID_MOD_USE_CANOPEN 0x00002000L
142 // ---- MOTOR SETUP --------------
143 #define SETUPID_MOD_INVERT_MOTORDIR 0x00004000L
144 // ---- INPUT USAGE --------------
145 #define SETUPID_MOD_USE_SW2_AS_ENABLE 0x00008000L
146 #define SETUPID_MOD_USE_SW2_AS_BRAKE 0x00010000L
147 // ---- OUTPUT USAGE -------------
148 #define SETUPID_MOD_ERROR_TO_OUT0 0x00020000L
149 // ---- IN/OUTPUT USAGE -------------
150 #define SETUPID_MOD_IO_GRIPPER_CONTROL 0x00080000L
151 
152 //-----------------------------------------------------------------------
153 // new PCube Module Types
154 //-----------------------------------------------------------------------
155 #define TYPEID_MOD_ROTARY 0x0f
156 #define TYPEID_MOD_LINEAR 0xf0
157 
158 //-----------------------------------------------------------------------
159 // new PCube Module DIO's
160 //-----------------------------------------------------------------------
161 #define DIOID_MOD_INBIT0 0x00000001L
162 #define DIOID_MOD_INBIT1 0x00000002L
163 #define DIOID_MOD_INBIT2 0x00000004L
164 #define DIOID_MOD_INBIT3 0x00000008L
165 
166 #define DIOID_MOD_OUTBIT0 0x00000010L
167 #define DIOID_MOD_OUTBIT1 0x00000020L
168 #define DIOID_MOD_OUTBIT2 0x00000040L
169 #define DIOID_MOD_OUTBIT3 0x00000080L
170 
171 #define DIOID_MOD_INSWR 0x00000100L
172 #define DIOID_MOD_INSW1 0x00000200L
173 #define DIOID_MOD_INSW2 0x00000400L
174 
175 //-----------------------------------------------------------------------
176 // new EMS Module Types
177 //-----------------------------------------------------------------------
178 #define TYPEID_EMS_DIG24V_OUT 10
179 #define TYPEID_EMS_DIG24V_IN 11
180 #define TYPEID_EMS_ANA10V_OUT 12
181 #define TYPEID_EMS_ANA10V_IN 13
182 #define TYPEID_EMS_ANA25MA_OUT 14
183 #define TYPEID_EMS_ANA25MA_IN 15
184 
185 //-----------------------------------------------------------------------
186 // new PCube Module Baudrates
187 //-----------------------------------------------------------------------
188 #define BAUDRATEID_MOD_CAN_125K 0
189 #define BAUDRATEID_MOD_CAN_250K 1
190 #define BAUDRATEID_MOD_CAN_500K 2
191 #define BAUDRATEID_MOD_CAN_1000K 3
192 
193 #define BAUDRATEID_MOD_RS232_1200 0
194 #define BAUDRATEID_MOD_RS232_2400 1
195 #define BAUDRATEID_MOD_RS232_4800 2
196 #define BAUDRATEID_MOD_RS232_9600 3
197 #define BAUDRATEID_MOD_RS232_19200 4
198 #define BAUDRATEID_MOD_RS232_38400 5
199 #define BAUDRATEID_MOD_RS232_57600 6
200 #define BAUDRATEID_MOD_RS232_115200 7
201 
202 //-----------------------------------------------------------------------
203 // new PCube Device Error Codes
204 //-----------------------------------------------------------------------
205 #define ERRID_DEV (-200L) // device error
206 #define ERRID_DEV_FUNCTIONNOTAVAILABLE (ERRID_DEV - 1)
207 #define ERRID_DEV_NOINITSTRING (ERRID_DEV - 2)
208 #define ERRID_DEV_NODEVICENAME (ERRID_DEV - 3)
209 #define ERRID_DEV_BADINITSTRING (ERRID_DEV - 4)
210 #define ERRID_DEV_INITERROR (ERRID_DEV - 5)
211 #define ERRID_DEV_NOTINITIALIZED (ERRID_DEV - 6)
212 #define ERRID_DEV_WRITEERROR (ERRID_DEV - 7)
213 #define ERRID_DEV_READERROR (ERRID_DEV - 8)
214 #define ERRID_DEV_WRITETIMEOUT (ERRID_DEV - 9)
215 #define ERRID_DEV_READTIMEOUT (ERRID_DEV - 10)
216 #define ERRID_DEV_WRONGMESSAGEID (ERRID_DEV - 11)
217 #define ERRID_DEV_WRONGCOMMANDID (ERRID_DEV - 12)
218 #define ERRID_DEV_WRONGPARAMETERID (ERRID_DEV - 13)
219 #define ERRID_DEV_EXITERROR (ERRID_DEV - 14)
220 #define ERRID_DEV_NOMODULES (ERRID_DEV - 15)
221 #define ERRID_DEV_WRONGDEVICEID (ERRID_DEV - 16)
222 #define ERRID_DEV_NOLIBRARY (ERRID_DEV - 17)
223 #define ERRID_DEV_ISINITIALIZED (ERRID_DEV - 18)
224 #define ERRID_DEV_WRONGEMSMODULEID (ERRID_DEV - 19)
225 #define ERRID_DEV_EMSNOTINITIALIZED (ERRID_DEV - 20)
226 #define ERRID_DEV_EMSMAXNUMBER (ERRID_DEV - 21)
227 #define ERRID_DEV_EMSINITERROR (ERRID_DEV - 22)
228 #define ERRID_DEV_WRONGEMSTYPE (ERRID_DEV - 23)
229 #define ERRID_DEV_WRONGEMSCHANNELID (ERRID_DEV - 24)
230 #define ERRID_DEV_WRONGMP55MODULEID (ERRID_DEV - 25)
231 #define ERRID_DEV_WRONGSCHUNKMODULEID (ERRID_DEV - 26)
232 #define ERRID_DEV_WRONGMODULEID (ERRID_DEV - 27)
233 #define ERRID_DEV_MODULEERROR (ERRID_DEV - 28)
234 #define ERRID_DEV_WAITTIMEOUT (ERRID_DEV - 29)
235 #define ERRID_DEV_OPENINIFILE (ERRID_DEV - 30)
236 
237 //-----------------------------------------------------------------------
238 // old PCube Device Error Codes
239 //-----------------------------------------------------------------------
240 #define CLD_OK 0
241 #define CLD_ERR -1
242 #define CLDERR_ERROR (-200)
243 #define CLERR_FUNCTIONNOTAVAILABLE (CLDERR_ERROR - 1)
244 #define CLERR_NOINITSTRING (CLDERR_ERROR - 2)
245 #define CLERR_NODEVICENAME (CLDERR_ERROR - 3)
246 #define CLERR_BADDEVICEINITSTRING (CLDERR_ERROR - 4)
247 #define CLDERR_INITIALIZATIONERROR (CLDERR_ERROR - 5)
248 #define CLERR_DEVICENOTOPEN (CLDERR_ERROR - 6)
249 #define CLDERR_TRANSMISSIONERROR (CLDERR_ERROR - 7)
250 #define CLDERR_RECEIVEERROR (CLDERR_ERROR - 8)
251 #define CLERR_COMM_SENDTIMEOUT (CLDERR_ERROR - 9)
252 #define CLERR_COMM_RECVTIMEOUT (CLDERR_ERROR - 10)
253 #define CLDERR_DRIVE_NOMODULEFOUND (CLDERR_ERROR - 15)
254 #define CLERR_WRONGHANDLE (CLDERR_ERROR - 16)
255 #define CLDERR_LIBRARYNOTFOUND (CLDERR_ERROR - 17)
256 
257 //-----------------------------------------------------------------------
258 // old PCube Module States
259 //-----------------------------------------------------------------------
260 #define STATE_ERROR 0x00000001L
261 #define STATE_HOME_OK 0x00000002L
262 #define STATE_HALTED 0x00000004L
263 #define STATE_POWERFAULT 0x00000008L
264 #define STATE_TOW_ERROR 0x00000010L
265 #define STATE_COMM_ERROR 0x00000020L
266 #define STATE_SWR 0x00000040L
267 #define STATE_SW1 0x00000080L
268 #define STATE_SW2 0x00000100L
269 #define STATE_BRAKEACTIVE 0x00000200L
270 #define STATE_CURLIMIT 0x00000400L
271 #define STATE_MOTION 0x00000800L
272 #define STATE_RAMP_ACC 0x00001000L
273 #define STATE_RAMP_STEADY 0x00002000L
274 #define STATE_RAMP_DEC 0x00004000L
275 #define STATE_RAMP_END 0x00008000L
276 #define STATE_INPROGRESS 0x00010000L
277 #define STATE_FULLBUFFER 0x00020000L
278 #define STATE_POW_VOLT_ERR 0x00040000L
279 #define STATE_POW_FET_TEMP 0x00080000L
280 #define STATE_POW_WDG_TEMP 0x00100000L
281 #define STATE_POW_SHORTCUR 0x00200000L
282 #define STATE_POW_HALLERR 0x00400000L
283 #define STATE_POW_INTEGRALERR 0x00800000L
284 #define STATE_CPU_OVERLOAD 0x01000000L
285 #define STATE_BEYOND_HARD 0x02000000L
286 #define STATE_BEYOND_SOFT 0x04000000L
287 
288 //-----------------------------------------------------------------------
289 // old PCube Module Types
290 //-----------------------------------------------------------------------
291 #define ROTARY_DRIVE TYPEID_MOD_ROTARY
292 #define LINEAR_DRIVE TYPEID_MOD_LINEAR
293 
294 //-----------------------------------------------------------------------
295 // old EMS Module Types
296 //-----------------------------------------------------------------------
297 #define TW_DIG24V_OUT TYPEID_EMS_DIG24V_OUT
298 #define TW_DIG24V_IN TYPEID_EMS_DIG24V_IN
299 #define TW_ANA10V_OUT TYPEID_EMS_ANA10V_OUT
300 #define TW_ANA10V_IN TYPEID_EMS_ANA10V_IN
301 #define TW_ANA25MA_OUT TYPEID_EMS_ANA25MA_OUT
302 #define TW_ANA25MA_IN TYPEID_EMS_ANA25MA_IN
303 
304 //-----------------------------------------------------------------------
305 // old PCube Module Config
306 //-----------------------------------------------------------------------
307 
308 #define CONFIG_ENCODER_FEEDBACK 0x00000001L
309 #define CONFIG_RESOLVER_FEEDBACK 0x00000002L
310 #define CONFIG_ABSOLUTE_FEEDBACK 0x00000004L
311 #define CONFIG_BRAKE_PRESENT 0x00000008L
312 #define CONFIG_BRAKE_AT_POWERON 0x00000010L
313 #define CONFIG_SWR_WITH_ENCODERZERO 0x00000020L
314 #define CONFIG_SWR_AT_FALLING_EDGE 0x00000040L
315 #define CONFIG_CHANGE_SWR_TO_LIMIT 0x00000080L
316 #define CONFIG_SWR_ENABLED 0x00000100L
317 #define CONFIG_SWR_LOW_ACTIVE 0x00000200L
318 #define CONFIG_SWR_EQ_POSLIMIT 0x00000400L
319 #define CONFIG_SW1_ENABLED 0x00000800L
320 #define CONFIG_SW1_LOW_ACTIVE 0x00001000L
321 #define CONFIG_SW1_EQ_POSLIMIT 0x00002000L
322 #define CONFIG_SW2_ENABLED 0x00004000L
323 #define CONFIG_SW2_LOW_ACTIVE 0x00008000L
324 #define CONFIG_SW2_EQ_POSLIMIT 0x00010000L
325 #define CONFIG_LINEAR_DRIVE 0x00020000L
326 #define CONFIG_OPENBRAKE_ON_SW2 0x00040000L
327 #define CONFIG_ALLOW_FULL_CUR 0x00080000L
328 #define CONFIG_M3_COMPATIBLE 0x00100000L
329 #define CONFIG_LINEAR_SCREW 0x00200000L
330 #define CONFIG_SYNC_MOTION 0x08000000L
331 #define CONFIG_CAN_RS232_COMM 0x40000000L
332 #define CONFIG_PROFI_RS485_COMM 0x80000000L
333 
334 #define P3502_CONFIG_BRAKE_PRESENT 0x00000008L
335 #define P3502_CONFIG_BRAKE_AT_POWERON 0x00000010L
336 #define P3502_CONFIG_SWR_WITH_ENCODERZERO 0x00000020L
337 #define P3502_CONFIG_SWR_AT_FALLING_EDGE 0x00000040L
338 #define P3502_CONFIG_CHANGE_SWR_TO_LIMIT 0x00000080L
339 #define P3502_CONFIG_SWR_ENABLED 0x00000100L
340 #define P3502_CONFIG_SWR_LOW_ACTIVE 0x00000200L
341 #define P3502_CONFIG_SWR_USE_EXTERNAL 0x00000400L
342 #define P3502_CONFIG_SW1_ENABLED 0x00000800L
343 #define P3502_CONFIG_SW1_LOW_ACTIVE 0x00001000L
344 #define P3502_CONFIG_SW1_USE_EXTERNAL 0x00002000L
345 #define P3502_CONFIG_SW2_ENABLED 0x00004000L
346 #define P3502_CONFIG_SW2_LOW_ACTIVE 0x00008000L
347 #define P3502_CONFIG_SW2_USE_EXTERNAL 0x00010000L
348 #define P3502_CONFIG_LINEAR_DRIVE 0x00020000L
349 #define P3502_CONFIG_ALLOW_FULL_CUR 0x00080000L
350 #define P3502_CONFIG_M3_COMPATIBLE 0x00100000L
351 #define P3502_CONFIG_LINEAR_SCREW 0x00200000L
352 #define P3502_CONFIG_DISABLE_ON_HALT 0x00800000L
353 #define P3502_CONFIG_WATCHDOG_ENABLE 0x01000000L
354 #define P3502_CONFIG_ZERO_MOVE_AFTER_HOK 0x02000000L
355 #define P3502_CONFIG_DISABLE_ACK 0x04000000L
356 
357 //-----------------------------------------------------------------------
358 // old PCube Module Setup
359 //-----------------------------------------------------------------------
360 
361 // ---- FEEDBACK SETUP -----------
362 #define P3502_SETUP_ENCODER_FEEDBACK 0x00000001L
363 #define P3502_SETUP_RESOLVER_FEEDBACK 0x00000002L
364 #define P3502_SETUP_ABSOLUTE_FEEDBACK 0x00000004L
365 // ---- DIGITAL IO SETUP ---------
366 #define P3502_SETUP_4IN_4OUT 0x00000008L
367 #define P3502_SETUP_3IN_ENCODER_IN 0x00000010L
368 #define P3502_SETUP_3IN_ENCODER_OUT 0x00000020L
369 // ---- COMM INTERFACE -----------
370 #define P3502_SETUP_RS232 0x00000040L
371 #define P3502_SETUP_RS485HD 0x00000080L
372 #define P3502_SETUP_RS485FD 0x00000100L
373 #define P3502_SETUP_CAN 0x00000200L
374 #define P3502_SETUP_PROFIBUS 0x00000400L
375 // ---- CAN ID SETUP -------------
376 #define P3502_SETUP_USE_M3ID 0x00000800L
377 #define P3502_SETUP_USE_M4ID 0x00001000L
378 #define P3502_SETUP_USE_CANOPEN 0x00002000L
379 // ---- MOTOR SETUP --------------
380 #define P3502_SETUP_INVERT_MOTORDIR 0x00004000L
381 // ---- INPUT USAGE --------------
382 #define P3502_SETUP_USE_SW2_AS_ENABLE 0x00008000L
383 #define P3502_SETUP_USE_SW2_AS_BRAKE 0x00010000L
384 // ---- OUTPUT USAGE -------------
385 #define P3502_SETUP_ERROR_TO_OUT0 0x00020000L
386 // ---- COUNTER SETUP ------------
387 #define P3502_SETUP_INVERT_COUNTER 0x00040000L
388 
389 //-----------------------------------------------------------------------
390 // old PCube Functionnames
391 //-----------------------------------------------------------------------
392 
393 #define PCube_getCubeState PCube_getModuleState
394 #define PCube_getDefCubeVersion PCube_getModuleVersion
395 #define PCube_getModulesIdMap PCube_getModuleIdMap
396 #define PCube_getDefBurncount PCube_getDefBurnCount
397 #define PCube_getDefSerialNo PCube_getModuleSerialNo
398 #define PCube_getDefPulsesPerTurn PCube_getDefIncPerTurn
399 #define PCube_getDefDioSetup PCube_getDefDioData
400 #define PCube_getActPos PCube_getPos
401 #define PCube_getActVel PCube_getVel
402 #define PCube_getActPosInc PCube_getPosInc
403 #define PCube_syncModule PCube_homeModule
404 #define PCube_moveCurrent PCube_moveCur
405 #define PCube_moveCurrentInc PCube_moveCurInc
406 #define PCube_moveCurrentExtended PCube_moveCurExtended
407 #define DLR_FTSInit PCube_initDLR_FTS
408 #define DLR_FTSGetData PCube_getDataDLR_FTS
409 #define PCube_getStatusInternal PCube_getStateInternal
410 #define PCube_ConfigFromFile PCube_configFromFile
411 #define PCube_getInitString PCube_getDeviceInitString
412 #define PCube_getName PCube_getDeviceName
413 #define PCube_getRevision PCube_getDeviceRevision
414 #define PCube_setTargetVel PCube_setRampVel
415 #define PCube_setTargetAcc PCube_setRampAcc
416 
417 //-----------------------------------------------------------------------
418 // new PCube Functionnames
419 //-----------------------------------------------------------------------
420 #ifdef __cplusplus
421 extern "C" {
422 #endif
423 
425 M5DLL_API int WINAPI PCube_setDllDebug( int iDebug, int iDebugLevel, int iDebugFile );
426 
427 M5DLL_API int WINAPI PCube_configFromFile( const char* acFileName );
428 M5DLL_API int WINAPI PCube_openDevice( int* piDeviceId, const char* acInitString );
429 M5DLL_API int WINAPI PCube_closeDevice( int iDeviceId );
432 M5DLL_API int WINAPI PCube_getDeviceIdMap( int* aiIdMap );
433 M5DLL_API const char* WINAPI PCube_getDeviceRevision( int iDeviceId );
434 M5DLL_API const char* WINAPI PCube_getDeviceInitString( int iDeviceId );
435 M5DLL_API const char* WINAPI PCube_getDeviceName( int iDeviceId );
436 M5DLL_API int WINAPI PCube_setDeviceName( int iDeviceId, const char* acDeviceName );
437 M5DLL_API int WINAPI PCube_setDeviceDebug( int iDeviceId, int iDebug, int iDebugLevel, int iDebugFile );
438 
439 M5DLL_API int WINAPI PCube_getModuleCount( int iDeviceId );
440 M5DLL_API int WINAPI PCube_getModuleIdMap( int iDeviceId, int* aiIdMap );
441 M5DLL_API int WINAPI PCube_getModuleState( int iDeviceId, int iModuleId, unsigned long* puiState );
442 M5DLL_API int WINAPI PCube_getModuleType( int iDeviceId, int iModuleId, unsigned char* pucValue );
443 M5DLL_API int WINAPI PCube_getModuleVersion( int iDeviceId, int iModuleId, unsigned short* puiValue );
444 M5DLL_API int WINAPI PCube_getModuleSerialNo( int iDeviceId, int iModuleId, unsigned long* puiValue );
445 
446 M5DLL_API int WINAPI PCube_getDefConfig( int iDeviceId, int iModuleId, unsigned long* puiValue );
447 M5DLL_API int WINAPI PCube_getDefSetup( int iDeviceId, int iModuleId, unsigned long* puiValue ); //OS: available from 35xx
448 M5DLL_API int WINAPI PCube_getDefBaudRate( int iDeviceId, int iModuleId, unsigned char* pucValue );
449 M5DLL_API int WINAPI PCube_getDefBurnCount( int iDeviceId, int iModuleId, unsigned char* pucValue );
450 M5DLL_API int WINAPI PCube_getDefGearRatio( int iDeviceId, int iModuleId, float* pfValue );
451 M5DLL_API int WINAPI PCube_getDefLinearRatio( int iDeviceId, int iModuleId, float* pfValue );
452 M5DLL_API int WINAPI PCube_getDefCurRatio( int iDeviceId, int iModuleId, float* pfValue );
453 M5DLL_API int WINAPI PCube_getDefBrakeTimeOut( int iDeviceId, int iModuleId, unsigned short* puiValue );
454 M5DLL_API int WINAPI PCube_getDefIncPerTurn( int iDeviceId, int iModuleId, unsigned long* puiValue );
455 M5DLL_API int WINAPI PCube_getDefDioData( int iDeviceId, int iModuleId, unsigned long* puiValue ); //OS: not available from 35xx
456 M5DLL_API int WINAPI PCube_getDefA0( int iDeviceId, int iModuleId, short* piValue );
457 M5DLL_API int WINAPI PCube_getDefC0( int iDeviceId, int iModuleId, short* piValue );
458 M5DLL_API int WINAPI PCube_getDefDamp( int iDeviceId, int iModuleId, short* piValue );
459 M5DLL_API int WINAPI PCube_getDefHomeOffset( int iDeviceId, int iModuleId, float* pfValue );
460 M5DLL_API int WINAPI PCube_getDefHomeVel( int iDeviceId, int iModuleId, float* pfValue );
461 M5DLL_API int WINAPI PCube_getDefMinPos( int iDeviceId, int iModuleId, float* pfValue );
462 M5DLL_API int WINAPI PCube_getDefMaxPos( int iDeviceId, int iModuleId, float* pfValue );
463 M5DLL_API int WINAPI PCube_getDefMaxVel( int iDeviceId, int iModuleId, float* pfValue );
464 M5DLL_API int WINAPI PCube_getDefMaxAcc( int iDeviceId, int iModuleId, float* pfValue );
465 M5DLL_API int WINAPI PCube_getDefMaxCur( int iDeviceId, int iModuleId, float* pfValue );
466 M5DLL_API int WINAPI PCube_getDefMaxDeltaPos( int iDeviceId, int iModuleId, float* pfValue );
467 
468 M5DLL_API int WINAPI PCube_getConfig( int iDeviceId, int iModuleId, unsigned long* puiValue );
469 M5DLL_API int WINAPI PCube_getIncRatio( int iDeviceId, int iModuleId, float* pValue );
470 M5DLL_API int WINAPI PCube_getStateDioPos( int iDeviceId, int iModuleId, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos ); //OS: available from 2518 and 3518
471 M5DLL_API int WINAPI PCube_getDioData( int iDeviceId, int iModuleId, unsigned long* puiValue );
472 M5DLL_API int WINAPI PCube_getA0( int iDeviceId, int iModuleId, short* piValue );
473 M5DLL_API int WINAPI PCube_getC0( int iDeviceId, int iModuleId, short* piValue );
474 M5DLL_API int WINAPI PCube_getDamp( int iDeviceId, int iModuleId, short* piValue );
475 M5DLL_API int WINAPI PCube_getHomeOffset( int iDeviceId, int iModuleId, float* pValue );
476 M5DLL_API int WINAPI PCube_getHomeOffsetInc( int iDeviceId, int iModuleId, long* piValue );
477 M5DLL_API int WINAPI PCube_getHomeVel( int iDeviceId, int iModuleId, float* pfValue ); //OS: available from 2518 and 3518
478 M5DLL_API int WINAPI PCube_getHomeVelInc( int iDeviceId, int iModuleId, long* piValue ); //OS: available from 2518 and 3518
479 M5DLL_API int WINAPI PCube_getPos( int iDeviceId, int iModuleId, float* pfPos );
480 M5DLL_API int WINAPI PCube_getPosInc( int iDeviceId, int iModuleId, long* piValue );
481 M5DLL_API int WINAPI PCube_getPosCountInc( int iDeviceId, int iModuleId, long* piValue );
482 M5DLL_API int WINAPI PCube_getVel( int iDeviceId, int iModuleId, float* pfVel );
483 M5DLL_API int WINAPI PCube_getVelInc( int iDeviceId, int iModuleId, long* piValue );
484 M5DLL_API int WINAPI PCube_getIPolVel( int iDeviceId, int iModuleId, float* pValue );
485 M5DLL_API int WINAPI PCube_getCur( int iDeviceId, int iModuleId, float* pfCur );
486 M5DLL_API int WINAPI PCube_getCurInc( int iDeviceId, int iModuleId, short* piValue );
487 M5DLL_API int WINAPI PCube_getMinPos( int iDeviceId, int iModuleId, float* pfValue );
488 M5DLL_API int WINAPI PCube_getMinPosInc( int iDeviceId, int iModuleId, long* piValue );
489 M5DLL_API int WINAPI PCube_getMaxPos( int iDeviceId, int iModuleId, float* pfValue );
490 M5DLL_API int WINAPI PCube_getMaxPosInc( int iDeviceId, int iModuleId, long* piValue );
491 M5DLL_API int WINAPI PCube_getMaxVel( int iDeviceId, int iModuleId, float* pfValue );
492 M5DLL_API int WINAPI PCube_getMaxVelInc( int iDeviceId, int iModuleId, long* piValue );
493 M5DLL_API int WINAPI PCube_getMaxAcc( int iDeviceId, int iModuleId, float* pfValue );
494 M5DLL_API int WINAPI PCube_getMaxAccInc( int iDeviceId, int iModuleId, long* piValue );
495 M5DLL_API int WINAPI PCube_getMaxCur( int iDeviceId, int iModuleId, float* pfValue );
496 M5DLL_API int WINAPI PCube_getDeltaPos( int iDeviceId, int iModuleId, float* pfValue );
497 M5DLL_API int WINAPI PCube_getDeltaPosInc( int iDeviceId, int iModuleId, long* piValue );
498 M5DLL_API int WINAPI PCube_getMaxDeltaPos( int iDeviceId, int iModuleId, float* pfValue );
499 M5DLL_API int WINAPI PCube_getMaxDeltaPosInc( int iDeviceId, int iModuleId, long* piValue );
500 M5DLL_API int WINAPI PCube_getSavePos( int iDeviceId, int iModuleId, float* pfValue ); //OS: available from 2518 and 3518
501 M5DLL_API int WINAPI PCube_getSyncTime( int iDeviceId, int iModuleId, short* piValue ); //OS: available from 3602
502 
503 M5DLL_API int WINAPI PCube_setConfig( int iDeviceId, int iModuleId, unsigned long uiValue );
504 M5DLL_API int WINAPI PCube_setDioData( int iDeviceId, int iModuleId, unsigned long uiValue );
505 M5DLL_API int WINAPI PCube_setA0( int iDeviceId, int iModuleId, short iValue );
506 M5DLL_API int WINAPI PCube_setC0( int iDeviceId, int iModuleId, short iValue );
507 M5DLL_API int WINAPI PCube_setDamp( int iDeviceId, int iModuleId, short iValue );
508 M5DLL_API int WINAPI PCube_setHomeOffset( int iDeviceId, int iModuleId, float fValue );
509 M5DLL_API int WINAPI PCube_setHomeOffsetInc( int iDeviceId, int iModuleId, long iValue );
510 M5DLL_API int WINAPI PCube_setHomeVel( int iDeviceId, int iModuleId, float fValue ); //OS: available from 2518 and 3518
511 M5DLL_API int WINAPI PCube_setHomeVelInc( int iDeviceId, int iModuleId, long iValue ); //OS: available from 2518 and 3518
512 M5DLL_API int WINAPI PCube_setRampVel( int iDeviceId, int iModuleId, float fValue );
513 M5DLL_API int WINAPI PCube_setRampVelInc( int iDeviceId, int iModuleId, long iValue );
514 M5DLL_API int WINAPI PCube_setRampAcc( int iDeviceId, int iModuleId, float fValue );
515 M5DLL_API int WINAPI PCube_setRampAccInc( int iDeviceId, int iModuleId, long iValue );
516 M5DLL_API int WINAPI PCube_setMinPos( int iDeviceId, int iModuleId, float fValue );
517 M5DLL_API int WINAPI PCube_setMinPosInc( int iDeviceId, int iModuleId, long iValue );
518 M5DLL_API int WINAPI PCube_setMaxPos( int iDeviceId, int iModuleId, float fValue );
519 M5DLL_API int WINAPI PCube_setMaxPosInc( int iDeviceId, int iModuleId, long iValue );
520 M5DLL_API int WINAPI PCube_setMaxVel( int iDeviceId, int iModuleId, float fValue );
521 M5DLL_API int WINAPI PCube_setMaxVelInc( int iDeviceId, int iModuleId, long iValue );
522 M5DLL_API int WINAPI PCube_setMaxAcc( int iDeviceId, int iModuleId, float fValue );
523 M5DLL_API int WINAPI PCube_setMaxAccInc( int iDeviceId, int iModuleId, long iValue );
524 M5DLL_API int WINAPI PCube_setMaxCur( int iDeviceId, int iModuleId, float fValue );
525 M5DLL_API int WINAPI PCube_setMaxDeltaPos( int iDeviceId, int iModuleId, float fValue );
526 M5DLL_API int WINAPI PCube_setMaxDeltaPosInc( int iDeviceId, int iModuleId, long iValue );
527 M5DLL_API int WINAPI PCube_setSyncTime( int iDeviceId, int iModuleId, short iValue ); //OS: available from 3602
528 
529 M5DLL_API int WINAPI PCube_homeModule( int iDeviceId, int iModuleId );
530 M5DLL_API int WINAPI PCube_haltModule( int iDeviceId, int iModuleId );
531 M5DLL_API int WINAPI PCube_resetModule( int iDeviceId, int iModuleId );
532 M5DLL_API int WINAPI PCube_recalcPIDParams( int iDeviceId, int iModuleId );
533 
534 M5DLL_API int WINAPI PCube_movePos( int iDeviceId, int iModuleId, float fPos );
535 M5DLL_API int WINAPI PCube_movePosInc( int iDeviceId, int iModuleId, long iPos );
536 M5DLL_API int WINAPI PCube_movePosExtended( int iDeviceId, int iModuleId, float fPos, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );
537 M5DLL_API int WINAPI PCube_moveRamp( int iDeviceId, int iModuleId, float fPos, float fVel, float fAcc );
538 M5DLL_API int WINAPI PCube_moveRampInc( int iDeviceId, int iModuleId, long iPos, long iVel, long iAcc );
539 M5DLL_API int WINAPI PCube_moveRampExtended( int iDeviceId, int iModuleId, float fPos, float fVel, float fAcc, unsigned long* puiState, unsigned char* pucDio, float* pfPos );
540 M5DLL_API int WINAPI PCube_moveVel( int iDeviceId, int iModuleId, float fVel );
541 M5DLL_API int WINAPI PCube_moveVelInc( int iDeviceId, int iModuleId, long iVel );
542 M5DLL_API int WINAPI PCube_moveVelExtended( int iDeviceId, int iModuleId, float fCur, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );
543 M5DLL_API int WINAPI PCube_moveCur( int iDeviceId, int iModuleId, float fCur );
544 M5DLL_API int WINAPI PCube_moveCurInc( int iDeviceId, int iModuleId, long iCur );
545 M5DLL_API int WINAPI PCube_moveCurExtended( int iDeviceId, int iModuleId, float fCur, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );
546 M5DLL_API int WINAPI PCube_moveStep( int iDeviceId, int iModuleId, float fPos, unsigned short uiTime );
547 M5DLL_API int WINAPI PCube_moveStepInc( int iDeviceId, int iModuleId, long iPos, unsigned short uiTime );
548 M5DLL_API int WINAPI PCube_moveStepExtended( int iDeviceId, int iModuleId, float fPos, unsigned short uiTime, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );
549 
550 M5DLL_API int WINAPI PCube_homeAll( int iDeviceId );
551 M5DLL_API int WINAPI PCube_resetAll( int iDeviceId );
552 M5DLL_API int WINAPI PCube_haltAll( int iDeviceId );
553 M5DLL_API int WINAPI PCube_serveWatchdogAll( int iDeviceId );
554 M5DLL_API int WINAPI PCube_setBaudRateAll( int iDeviceId, unsigned char pucValue );
555 M5DLL_API int WINAPI PCube_startMotionAll( int iDeviceId );
556 M5DLL_API int WINAPI PCube_savePosAll( int iDeviceId );
557 
558 M5DLL_API int WINAPI PCube_waitForHomeEnd( int iDeviceId, int iModuleId, unsigned long uiTime );
559 M5DLL_API int WINAPI PCube_waitForMotionEnd( int iDeviceId, int iModuleId, unsigned long uiTime );
560 M5DLL_API int WINAPI PCube_waitForRampEnd( int iDeviceId, int iModuleId, unsigned long uiTime );
561 M5DLL_API int WINAPI PCube_waitForRampDec( int iDeviceId, int iModuleId, unsigned long uiTime );
562 M5DLL_API int WINAPI PCube_waitForRampSteady( int iDeviceId, int iModuleId, unsigned long uiTime );
563 M5DLL_API int WINAPI PCube_waitForHomeEndAll( int iDeviceId, unsigned long uiTime );
564 M5DLL_API int WINAPI PCube_waitForMotionEndAll( int iDeviceId, unsigned long uiTime );
565 M5DLL_API int WINAPI PCube_waitForRampEndAll( int iDeviceId, unsigned long uiTime );
566 M5DLL_API int WINAPI PCube_waitForStartMotionAll( int iDeviceId );
567 
568 M5DLL_API int WINAPI PCube_xmit8Bytes( int iDeviceId, int iModuleId, void* pBytes );
569 M5DLL_API int WINAPI PCube_xack8Bytes( int iDeviceId, int iModuleId, void* pBytes );
570 M5DLL_API int WINAPI PCube_doInternal( int iDeviceId, int iModuleId, void* pBytes );
571 M5DLL_API int WINAPI PCube_getStateInternal( int iDeviceId, int iModuleId, unsigned long* puiState );
572 M5DLL_API int WINAPI PCube_updateModuleIdMap( int iDeviceId );
573 
574 M5DLL_API int WINAPI PCube_initEMS_IO( int iDeviceId, unsigned char ucType, unsigned long uiSerialNo );
575 M5DLL_API int WINAPI PCube_getDataEMS_DIO( int iDeviceId, int iModuleId, int iChannelId, int* piData );
576 M5DLL_API int WINAPI PCube_getDataEMS_AIO( int iDeviceId, int iModuleId, int iChannelId, float* pfData );
577 M5DLL_API int WINAPI PCube_setDataEMS_DIO( int iDeviceId, int iModuleId, int iChannelId, int iData );
578 M5DLL_API int WINAPI PCube_setDataEMS_AIO( int iDeviceId, int iModuleId, int iChannelId, float fData );
579 
580 M5DLL_API int WINAPI PCube_initDLR_FTS( int iDeviceId );
581 M5DLL_API int WINAPI PCube_getDataDLR_FTS( int iDeviceId, float* pfDataFX, float* pfDataFY, float* pfDataFZ, float* pfDataTX, float* pfDataTY, float* pfDataTZ, long* piState );
582 
583 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 );
584 M5DLL_API int WINAPI PCube_setNullSCHUNK_FTC( int iDeviceId, int iModulId, short* piState );
585 
586 M5DLL_API int WINAPI PCube_getDataMP55_IO( int iDeviceId, int iModuleId, float* pfData );
587 M5DLL_API int WINAPI PCube_setTaraMP55_IO( int iDeviceId, int iModuleId, float fData );
588 
589 M5DLL_API int WINAPI PCube_getDefCurOffset( int iDeviceId, int iModuleId, float* pfValue );
590 
591 M5DLL_API int WINAPI PCube_getDataMP55_IO_fast( int iDeviceId, int iModuleId, float* pfData );
592 M5DLL_API int WINAPI PCube_setInitMP55_IO_fast( int iDeviceId, int iModuleId );
593 
594 M5DLL_API int WINAPI PCube_getRawMotorCurrent( int iDeviceId, int iModuleId, short* piValue );
595 M5DLL_API int WINAPI PCube_getRawMotorSupply( int iDeviceId, int iModuleId, short* piValue );
596 M5DLL_API int WINAPI PCube_getRawTemperature( int iDeviceId, int iModuleId, short* piValue );
597 M5DLL_API int WINAPI PCube_getRawLogicSupply( int iDeviceId, int iModuleId, short* piValue );
598 
599 M5DLL_API int WINAPI PCube_getCanOpenRawAbsEnc( int iDeviceId, int iModuleId, short* piValue );
600 
601 M5DLL_API int WINAPI PCube_getLoadLimit( int iDeviceId, int iModuleId, long* piValue );
602 M5DLL_API int WINAPI PCube_getMaxLoadGradient( int iDeviceId, int iModuleId, long* piValue );
603 M5DLL_API int WINAPI PCube_getLoadDeltaTime( int iDeviceId, int iModuleId, unsigned short* piValue );
604 M5DLL_API int WINAPI PCube_setLoadLimit( int iDeviceId, int iModuleId, long iValue );
605 M5DLL_API int WINAPI PCube_setMaxLoadGradient( int iDeviceId, int iModuleId, long iValue );
606 M5DLL_API int WINAPI PCube_setLoadDeltaTime( int iDeviceId, int iModuleId, unsigned short iValue );
607 
608 M5DLL_API int WINAPI PCube_saveParameters( int iDeviceId, int iModuleId );
609 
610 M5DLL_API int WINAPI PCube_getDefCANBaudRate( int iDeviceId, int iModuleId, unsigned char* pucValue );
611 M5DLL_API int WINAPI PCube_getDefRSBaudRate( int iDeviceId, int iModuleId, unsigned char* pucValue );
612 M5DLL_API int WINAPI PCube_setDefGearRatio( int iDeviceId, int iModuleId, float fValue );
613 M5DLL_API int WINAPI PCube_setDefLinRatio( int iDeviceId, int iModuleId, float fValue );
614 M5DLL_API int WINAPI PCube_setDefCurRatio( int iDeviceId, int iModuleId, float fValue );
615 M5DLL_API int WINAPI PCube_setDefHomeAcc( int iDeviceId, int iModuleId, float fValue );
616 M5DLL_API int WINAPI PCube_setModuleSerialNo( int iDeviceId, int iModuleId, unsigned long uiValue );
617 M5DLL_API int WINAPI PCube_setDefIncPerTurn( int iDeviceId, int iModuleId, unsigned long uiValue );
618 M5DLL_API int WINAPI PCube_setDefBrakeTimeOut( int iDeviceId, int iModuleId, unsigned short uiValue );
619 M5DLL_API int WINAPI PCube_setDefAddress( int iDeviceId, int iModuleId, unsigned char uiValue );
620 M5DLL_API int WINAPI PCube_setDefCANBaudRate( int iDeviceId, int iModuleId, unsigned char uiValue );
621 M5DLL_API int WINAPI PCube_setDefRSBaudRate( int iDeviceId, int iModuleId, unsigned char uiValue );
622 M5DLL_API int WINAPI PCube_setDefSetup( int iDeviceId, int iModuleId, unsigned long uiValue );
623 
624 M5DLL_API int WINAPI PCube_getMotorCurrent( int iDeviceId, int iModuleId, float* pfValue );
625 M5DLL_API int WINAPI PCube_getMotorSupply( int iDeviceId, int iModuleId, float* pfValue );
626 M5DLL_API int WINAPI PCube_getTemperature( int iDeviceId, int iModuleId, float* pfValue );
627 M5DLL_API int WINAPI PCube_getLogicSupply( int iDeviceId, int iModuleId, float* pfValue );
628 M5DLL_API int WINAPI PCube_getMinLogicVoltage( int iDeviceId, int iModuleId, float* pfValue );
629 M5DLL_API int WINAPI PCube_getMaxLogicVoltage( int iDeviceId, int iModuleId, float* pfValue );
630 M5DLL_API int WINAPI PCube_getMinMotorVoltage( int iDeviceId, int iModuleId, float* pfValue );
631 M5DLL_API int WINAPI PCube_getMaxMotorVoltage( int iDeviceId, int iModuleId, float* pfValue );
632 M5DLL_API int WINAPI PCube_getNominalMotorCurrent( int iDeviceId, int iModuleId, float* pfValue );
633 M5DLL_API int WINAPI PCube_getMaximumMotorCurrent( int iDeviceId, int iModuleId, float* pfValue );
634 M5DLL_API int WINAPI PCube_getLogicUndershootTime( int iDeviceId, int iModuleId, long* piValue );
635 M5DLL_API int WINAPI PCube_getLogicOvershootTime( int iDeviceId, int iModuleId, long* piValue );
636 M5DLL_API int WINAPI PCube_getMotorUndershootTime( int iDeviceId, int iModuleId, long* piValue );
637 M5DLL_API int WINAPI PCube_getMotorOvershootTime( int iDeviceId, int iModuleId, long* piValue );
638 M5DLL_API int WINAPI PCube_getNomCurOvershootTime( int iDeviceId, int iModuleId, long* piValue );
639 M5DLL_API int WINAPI PCube_getHMaxCurOvershootTime( int iDeviceId, int iModuleId, long* piValue );
640 M5DLL_API int WINAPI PCube_setMinLogicVoltage( int iDeviceId, int iModuleId, float fValue );
641 M5DLL_API int WINAPI PCube_setMaxLogicVoltage( int iDeviceId, int iModuleId, float fValue );
642 M5DLL_API int WINAPI PCube_setMinMotorVoltage( int iDeviceId, int iModuleId, float fValue );
643 M5DLL_API int WINAPI PCube_setMaxMotorVoltage( int iDeviceId, int iModuleId, float fValue );
644 M5DLL_API int WINAPI PCube_setNominalMotorCurrent( int iDeviceId, int iModuleId, float fValue );
645 M5DLL_API int WINAPI PCube_setMaximumMotorCurrent( int iDeviceId, int iModuleId, float fValue );
646 M5DLL_API int WINAPI PCube_setLogicUndershootTime( int iDeviceId, int iModuleId, long iValue );
647 M5DLL_API int WINAPI PCube_setLogicOvershootTime( int iDeviceId, int iModuleId, long iValue );
648 M5DLL_API int WINAPI PCube_setMotorUndershootTime( int iDeviceId, int iModuleId, long iValue );
649 M5DLL_API int WINAPI PCube_setMotorOvershootTime( int iDeviceId, int iModuleId, long iValue );
650 M5DLL_API int WINAPI PCube_setNomCurOvershootTime( int iDeviceId, int iModuleId, long iValue );
651 M5DLL_API int WINAPI PCube_setHMaxCurOvershootTime( int iDeviceId, int iModuleId, long iValue );
652 
653 M5DLL_API int WINAPI PCube_getKpPWMLimit( int iDeviceId, int iModuleId, long* piValue );
654 M5DLL_API int WINAPI PCube_getCurrentLimit( int iDeviceId, int iModuleId, float* pfValue );
655 M5DLL_API int WINAPI PCube_getMaxPWMOutput( int iDeviceId, int iModuleId, long* piValue );
656 M5DLL_API int WINAPI PCube_setKpPWMLimit( int iDeviceId, int iModuleId, long iValue );
657 M5DLL_API int WINAPI PCube_setCurrentLimit( int iDeviceId, int iModuleId, float fValue );
658 
659 #ifdef __cplusplus
660  }
661 #endif
662 
663 #endif
M5DLL_API int WINAPI PCube_setLogicUndershootTime(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2805
M5DLL_API int WINAPI PCube_setLoadDeltaTime(int iDeviceId, int iModuleId, unsigned short iValue)
Definition: m5apiw32.cpp:2361
M5DLL_API int WINAPI PCube_getDeviceCount(void)
Definition: m5apiw32.cpp:518
M5DLL_API int WINAPI PCube_closeDevices(void)
Definition: m5apiw32.cpp:446
M5DLL_API int WINAPI PCube_setDefAddress(int iDeviceId, int iModuleId, unsigned char uiValue)
Definition: m5apiw32.cpp:2493
M5DLL_API int WINAPI PCube_moveRampExtended(int iDeviceId, int iModuleId, float fPos, float fVel, float fAcc, unsigned long *puiState, unsigned char *pucDio, float *pfPos)
Definition: m5apiw32.cpp:1768
M5DLL_API int WINAPI PCube_waitForHomeEndAll(int iDeviceId, unsigned long uiTime)
Definition: m5apiw32.cpp:1960
M5DLL_API int WINAPI PCube_getPosCountInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1108
M5DLL_API int WINAPI PCube_getDefMaxAcc(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:832
M5DLL_API int WINAPI PCube_setMaxPosInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1444
M5DLL_API int WINAPI PCube_getIncRatio(int iDeviceId, int iModuleId, float *pValue)
Definition: m5apiw32.cpp:904
M5DLL_API int WINAPI PCube_moveRampInc(int iDeviceId, int iModuleId, long iPos, long iVel, long iAcc)
Definition: m5apiw32.cpp:1708
M5DLL_API int WINAPI PCube_movePos(int iDeviceId, int iModuleId, float fPos)
Definition: m5apiw32.cpp:1636
M5DLL_API int WINAPI PCube_setBaudRateAll(int iDeviceId, unsigned char pucValue)
Definition: m5apiw32.cpp:1864
M5DLL_API int WINAPI PCube_getDeltaPosInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1204
#define WINAPI
Definition: m5apiw32.h:42
M5DLL_API int WINAPI PCube_getDefC0(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:748
M5DLL_API int WINAPI PCube_getDefA0(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:736
M5DLL_API int WINAPI PCube_getDefMaxPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:808
M5DLL_API int WINAPI PCube_getMinPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1000
M5DLL_API int WINAPI PCube_getMaxDeltaPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1072
M5DLL_API int WINAPI PCube_getMinPosInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1156
M5DLL_API int WINAPI PCube_getDefMaxDeltaPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:856
M5DLL_API int WINAPI PCube_setMaxVelInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1456
M5DLL_API int WINAPI PCube_getMaxPWMOutput(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2901
M5DLL_API int WINAPI PCube_moveVelExtended(int iDeviceId, int iModuleId, float fCur, unsigned long *puiShortState, unsigned char *pucDio, float *pfPos)
Definition: m5apiw32.cpp:1780
M5DLL_API int WINAPI PCube_waitForRampDec(int iDeviceId, int iModuleId, unsigned long uiTime)
Definition: m5apiw32.cpp:1936
M5DLL_API int WINAPI PCube_moveVelInc(int iDeviceId, int iModuleId, long iVel)
Definition: m5apiw32.cpp:1720
M5DLL_API int WINAPI PCube_getPos(int iDeviceId, int iModuleId, float *pfPos)
Definition: m5apiw32.cpp:964
M5DLL_API int WINAPI PCube_getDioData(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:916
M5DLL_API int WINAPI PCube_getVelInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1132
M5DLL_API int WINAPI PCube_setMaximumMotorCurrent(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2793
M5DLL_API int WINAPI PCube_closeDevice(int iDeviceId)
Definition: m5apiw32.cpp:427
M5DLL_API int WINAPI PCube_getModuleType(int iDeviceId, int iModuleId, unsigned char *pucValue)
Definition: m5apiw32.cpp:580
M5DLL_API int WINAPI PCube_xack8Bytes(int iDeviceId, int iModuleId, void *pBytes)
Definition: m5apiw32.cpp:2020
M5DLL_API int WINAPI PCube_setDllDebug(int iDebug, int iDebugLevel, int iDebugFile)
Definition: m5apiw32.cpp:129
M5DLL_API int WINAPI PCube_setModuleSerialNo(int iDeviceId, int iModuleId, unsigned long uiValue)
Definition: m5apiw32.cpp:2457
M5DLL_API int WINAPI PCube_getDefBaudRate(int iDeviceId, int iModuleId, unsigned char *pucValue)
Definition: m5apiw32.cpp:640
M5DLL_API int WINAPI PCube_getDefGearRatio(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:664
M5DLL_API int WINAPI PCube_getMinMotorVoltage(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2613
M5DLL_API int WINAPI PCube_setRampVel(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1516
M5DLL_API int WINAPI PCube_setHomeOffset(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1288
M5DLL_API int WINAPI PCube_getCurInc(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:1144
M5DLL_API int WINAPI PCube_getMotorUndershootTime(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2685
M5DLL_API int WINAPI PCube_serveWatchdogAll(int iDeviceId)
Definition: m5apiw32.cpp:1852
M5DLL_API int WINAPI PCube_getLogicUndershootTime(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2661
M5DLL_API int WINAPI PCube_getVel(int iDeviceId, int iModuleId, float *pfVel)
Definition: m5apiw32.cpp:976
M5DLL_API int WINAPI PCube_getMaxVel(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1024
M5DLL_API int WINAPI PCube_moveCurExtended(int iDeviceId, int iModuleId, float fCur, unsigned long *puiShortState, unsigned char *pucDio, float *pfPos)
Definition: m5apiw32.cpp:1792
M5DLL_API int WINAPI PCube_setKpPWMLimit(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2913
M5DLL_API int WINAPI PCube_setLoadLimit(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2337
M5DLL_API int WINAPI PCube_moveCur(int iDeviceId, int iModuleId, float fCur)
Definition: m5apiw32.cpp:1672
M5DLL_API int WINAPI PCube_openDevice(int *piDeviceId, const char *acInitString)
Definition: m5apiw32.cpp:366
M5DLL_API int g_iM5DebugLevel
Definition: m5apiw32.cpp:32
M5DLL_API int WINAPI PCube_setMaxDeltaPos(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1420
M5DLL_API int WINAPI PCube_getDataMP55_IO(int iDeviceId, int iModuleId, float *pfData)
Definition: m5apiw32.cpp:2181
M5DLL_API int WINAPI PCube_getDefSetup(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:628
M5DLL_API int WINAPI PCube_getHomeVelInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1252
M5DLL_API int WINAPI PCube_getCur(int iDeviceId, int iModuleId, float *pfCur)
Definition: m5apiw32.cpp:988
M5DLL_API int WINAPI PCube_setDamp(int iDeviceId, int iModuleId, short iValue)
Definition: m5apiw32.cpp:1348
M5DLL_API int WINAPI PCube_updateModuleIdMap(int iDeviceId)
Definition: m5apiw32.cpp:1576
M5DLL_API int WINAPI PCube_setTaraMP55_IO(int iDeviceId, int iModuleId, float fData)
Definition: m5apiw32.cpp:2193
M5DLL_API int WINAPI PCube_getDefMaxCur(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:844
M5DLL_API int WINAPI PCube_setRampVelInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1528
M5DLL_API int WINAPI PCube_getIPolVel(int iDeviceId, int iModuleId, float *pValue)
Definition: m5apiw32.cpp:1096
M5DLL_API int WINAPI PCube_getMaxVelInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1180
M5DLL_API int WINAPI PCube_getRawTemperature(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:2265
M5DLL_API int WINAPI PCube_setHMaxCurOvershootTime(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2865
M5DLL_API int WINAPI PCube_setDeviceDebug(int iDeviceId, int iDebug, int iDebugLevel, int iDebugFile)
Definition: m5apiw32.cpp:505
M5DLL_API int WINAPI PCube_getDefConfig(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:616
M5DLL_API int WINAPI PCube_getLoadLimit(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2301
M5DLL_API int WINAPI PCube_startMotionAll(int iDeviceId)
Definition: m5apiw32.cpp:1876
M5DLL_API int WINAPI PCube_getMaxMotorVoltage(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2625
M5DLL_API int WINAPI PCube_getNomCurOvershootTime(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2709
M5DLL_API int WINAPI PCube_waitForRampEndAll(int iDeviceId, unsigned long uiTime)
Definition: m5apiw32.cpp:1984
M5DLL_API int WINAPI PCube_resetAll(int iDeviceId)
Definition: m5apiw32.cpp:1828
M5DLL_API int WINAPI PCube_getLogicOvershootTime(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2673
M5DLL_API int WINAPI PCube_setMaxLogicVoltage(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2745
M5DLL_API int WINAPI PCube_getMotorSupply(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2553
M5DLL_API int WINAPI PCube_setHomeOffsetInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1300
M5DLL_API int WINAPI PCube_getCanOpenRawAbsEnc(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:2289
M5DLL_API int WINAPI PCube_setRampAccInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1552
M5DLL_API int WINAPI PCube_setLogicOvershootTime(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2817
M5DLL_API int WINAPI PCube_getHomeVel(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1240
M5DLL_API int WINAPI PCube_getRawMotorCurrent(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:2241
M5DLL_API int WINAPI PCube_getDefHomeOffset(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:772
M5DLL_API int WINAPI PCube_getModuleState(int iDeviceId, int iModuleId, unsigned long *puiState)
Definition: m5apiw32.cpp:568
M5DLL_API int WINAPI PCube_getCurrentLimit(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2889
M5DLL_API int WINAPI PCube_setDataEMS_DIO(int iDeviceId, int iModuleId, int iChannelId, int iData)
Definition: m5apiw32.cpp:2144
M5DLL_API int WINAPI PCube_getStateInternal(int iDeviceId, int iModuleId, unsigned long *puiState)
Definition: m5apiw32.cpp:2044
M5DLL_API int WINAPI PCube_getMaxPosInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1168
M5DLL_API int WINAPI PCube_getDataEMS_DIO(int iDeviceId, int iModuleId, int iChannelId, int *piData)
Definition: m5apiw32.cpp:2130
M5DLL_API int WINAPI PCube_setMaxVel(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1384
M5DLL_API int WINAPI PCube_xmit8Bytes(int iDeviceId, int iModuleId, void *pBytes)
Definition: m5apiw32.cpp:2008
M5DLL_API int WINAPI PCube_homeAll(int iDeviceId)
Definition: m5apiw32.cpp:1816
#define M5DLL_API
Definition: m5apiw32.h:43
M5DLL_API int WINAPI PCube_moveVel(int iDeviceId, int iModuleId, float fVel)
Definition: m5apiw32.cpp:1660
M5DLL_API int WINAPI PCube_getDefMinPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:796
M5DLL_API int WINAPI PCube_moveStepExtended(int iDeviceId, int iModuleId, float fPos, unsigned short uiTime, unsigned long *puiShortState, unsigned char *pucDio, float *pfPos)
Definition: m5apiw32.cpp:1804
M5DLL_API int WINAPI PCube_setNomCurOvershootTime(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2853
M5DLL_API int WINAPI PCube_getDeltaPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1060
M5DLL_API int WINAPI PCube_getKpPWMLimit(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2877
M5DLL_API int WINAPI PCube_getNominalMotorCurrent(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2637
M5DLL_API int WINAPI PCube_moveStepInc(int iDeviceId, int iModuleId, long iPos, unsigned short uiTime)
Definition: m5apiw32.cpp:1744
M5DLL_API int WINAPI PCube_getPosInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1120
M5DLL_API int WINAPI PCube_getModuleSerialNo(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:604
M5DLL_API int WINAPI PCube_getDefHomeVel(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:784
M5DLL_API int WINAPI PCube_getDefCurOffset(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2205
M5DLL_API int WINAPI PCube_getSyncTime(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:1264
M5DLL_API int WINAPI PCube_setCurrentLimit(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2925
M5DLL_API int WINAPI PCube_moveCurInc(int iDeviceId, int iModuleId, long iCur)
Definition: m5apiw32.cpp:1732
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)
Definition: m5apiw32.cpp:2087
M5DLL_API int WINAPI PCube_getMaxAcc(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1036
M5DLL_API int WINAPI PCube_movePosExtended(int iDeviceId, int iModuleId, float fPos, unsigned long *puiShortState, unsigned char *pucDio, float *pfPos)
Definition: m5apiw32.cpp:1756
M5DLL_API int WINAPI PCube_getRawMotorSupply(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:2253
M5DLL_API int WINAPI PCube_waitForMotionEnd(int iDeviceId, int iModuleId, unsigned long uiTime)
Definition: m5apiw32.cpp:1912
M5DLL_API int WINAPI PCube_setMotorOvershootTime(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2841
M5DLL_API int WINAPI PCube_setMaxLoadGradient(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2349
M5DLL_API int WINAPI PCube_doInternal(int iDeviceId, int iModuleId, void *pBytes)
Definition: m5apiw32.cpp:2032
M5DLL_API int WINAPI PCube_setMinMotorVoltage(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2757
M5DLL_API int WINAPI PCube_setMaxMotorVoltage(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2769
M5DLL_API int WINAPI PCube_getMaxCur(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1048
M5DLL_API int WINAPI PCube_haltAll(int iDeviceId)
Definition: m5apiw32.cpp:1840
M5DLL_API int WINAPI PCube_setMinPos(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1360
M5DLL_API int WINAPI PCube_getHomeOffsetInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:892
M5DLL_API int WINAPI PCube_getMaxLogicVoltage(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2601
M5DLL_API int WINAPI PCube_setMinLogicVoltage(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2733
M5DLL_API int WINAPI PCube_setDefLinRatio(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2421
M5DLL_API int WINAPI PCube_getDataEMS_AIO(int iDeviceId, int iModuleId, int iChannelId, float *pfData)
Definition: m5apiw32.cpp:2157
M5DLL_API int WINAPI PCube_saveParameters(int iDeviceId, int iModuleId)
Definition: m5apiw32.cpp:2373
M5DLL_API int WINAPI PCube_getMotorCurrent(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2541
M5DLL_API int WINAPI PCube_configFromFile(const char *acFileName)
Definition: m5apiw32.cpp:144
M5DLL_API int WINAPI PCube_getSavePos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1084
M5DLL_API int WINAPI PCube_setDefGearRatio(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2409
M5DLL_API int WINAPI PCube_getModuleIdMap(int iDeviceId, int *aiIdMap)
Definition: m5apiw32.cpp:551
M5DLL_API int WINAPI PCube_getDataDLR_FTS(int iDeviceId, float *pfDataFX, float *pfDataFY, float *pfDataFZ, float *pfDataTX, float *pfDataTY, float *pfDataTZ, long *piState)
Definition: m5apiw32.cpp:2068
M5DLL_API int WINAPI PCube_getLogicSupply(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2577
M5DLL_API int WINAPI PCube_getHomeOffset(int iDeviceId, int iModuleId, float *pValue)
Definition: m5apiw32.cpp:880
M5DLL_API const char *WINAPI PCube_getDeviceInitString(int iDeviceId)
Definition: m5apiw32.cpp:483
M5DLL_API int WINAPI PCube_waitForRampSteady(int iDeviceId, int iModuleId, unsigned long uiTime)
Definition: m5apiw32.cpp:1948
M5DLL_API int WINAPI PCube_setHomeVel(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1492
M5DLL_API int WINAPI PCube_getDefIncPerTurn(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:712
M5DLL_API int WINAPI PCube_getDefDioData(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:724
M5DLL_API int WINAPI PCube_setDefCurRatio(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2433
M5DLL_API int WINAPI PCube_getMaxAccInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1192
M5DLL_API const char *WINAPI PCube_getDeviceRevision(int iDeviceId)
Definition: m5apiw32.cpp:461
M5DLL_API int WINAPI PCube_waitForMotionEndAll(int iDeviceId, unsigned long uiTime)
Definition: m5apiw32.cpp:1972
M5DLL_API int WINAPI PCube_getModuleCount(int iDeviceId)
Definition: m5apiw32.cpp:541
M5DLL_API int WINAPI PCube_initEMS_IO(int iDeviceId, unsigned char ucType, unsigned long uiSerialNo)
Definition: m5apiw32.cpp:2118
M5DLL_API int WINAPI PCube_recalcPIDParams(int iDeviceId, int iModuleId)
Definition: m5apiw32.cpp:1624
M5DLL_API int WINAPI PCube_waitForStartMotionAll(int iDeviceId)
Definition: m5apiw32.cpp:1996
M5DLL_API int WINAPI PCube_getDefDamp(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:760
M5DLL_API int WINAPI PCube_setDefIncPerTurn(int iDeviceId, int iModuleId, unsigned long uiValue)
Definition: m5apiw32.cpp:2469
M5DLL_API int WINAPI PCube_getDefLinearRatio(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:676
M5DLL_API int WINAPI PCube_setMaxCur(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1408
M5DLL_API int WINAPI PCube_setMaxAcc(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1396
M5DLL_API int WINAPI PCube_getConfig(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:868
M5DLL_API int WINAPI PCube_setMaxAccInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1468
M5DLL_API int WINAPI PCube_moveRamp(int iDeviceId, int iModuleId, float fPos, float fVel, float fAcc)
Definition: m5apiw32.cpp:1648
M5DLL_API int WINAPI PCube_getA0(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:928
M5DLL_API int WINAPI PCube_setDataEMS_AIO(int iDeviceId, int iModuleId, int iChannelId, float fData)
Definition: m5apiw32.cpp:2169
M5DLL_API int WINAPI PCube_setMaxPos(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1372
M5DLL_API int WINAPI PCube_getModuleVersion(int iDeviceId, int iModuleId, unsigned short *puiValue)
Definition: m5apiw32.cpp:592
M5DLL_API int WINAPI PCube_setMinPosInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1432
M5DLL_API int WINAPI PCube_getDefCANBaudRate(int iDeviceId, int iModuleId, unsigned char *pucValue)
Definition: m5apiw32.cpp:2385
M5DLL_API int WINAPI PCube_getHMaxCurOvershootTime(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2721
M5DLL_API int WINAPI PCube_setDioData(int iDeviceId, int iModuleId, unsigned long uiValue)
Definition: m5apiw32.cpp:1312
M5DLL_API int WINAPI PCube_getDefRSBaudRate(int iDeviceId, int iModuleId, unsigned char *pucValue)
Definition: m5apiw32.cpp:2397
M5DLL_API int WINAPI PCube_resetModule(int iDeviceId, int iModuleId)
Definition: m5apiw32.cpp:1612
M5DLL_API int WINAPI PCube_haltModule(int iDeviceId, int iModuleId)
Definition: m5apiw32.cpp:1600
M5DLL_API int WINAPI PCube_getDefBrakeTimeOut(int iDeviceId, int iModuleId, unsigned short *puiValue)
Definition: m5apiw32.cpp:700
M5DLL_API int WINAPI PCube_setConfig(int iDeviceId, int iModuleId, unsigned long uiValue)
Definition: m5apiw32.cpp:1276
M5DLL_API int WINAPI PCube_getLoadDeltaTime(int iDeviceId, int iModuleId, unsigned short *piValue)
Definition: m5apiw32.cpp:2325
M5DLL_API int WINAPI PCube_setHomeVelInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1504
M5DLL_API int WINAPI PCube_getMaxPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1012
M5DLL_API int WINAPI PCube_getDeviceIdMap(int *aiIdMap)
Definition: m5apiw32.cpp:528
M5DLL_API int WINAPI PCube_setDefRSBaudRate(int iDeviceId, int iModuleId, unsigned char uiValue)
Definition: m5apiw32.cpp:2517
M5DLL_API int WINAPI PCube_getDefCurRatio(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:688
M5DLL_API int WINAPI PCube_waitForRampEnd(int iDeviceId, int iModuleId, unsigned long uiTime)
Definition: m5apiw32.cpp:1924
M5DLL_API int WINAPI PCube_getDefBurnCount(int iDeviceId, int iModuleId, unsigned char *pucValue)
Definition: m5apiw32.cpp:652
M5DLL_API int WINAPI PCube_getDllVersion(void)
Definition: m5apiw32.cpp:124
M5DLL_API int WINAPI PCube_setDeviceName(int iDeviceId, const char *acDeviceName)
Definition: m5apiw32.cpp:494
M5DLL_API int WINAPI PCube_initDLR_FTS(int iDeviceId)
Definition: m5apiw32.cpp:2056
M5DLL_API int WINAPI PCube_waitForHomeEnd(int iDeviceId, int iModuleId, unsigned long uiTime)
Definition: m5apiw32.cpp:1900
M5DLL_API int WINAPI PCube_setMaxDeltaPosInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1480
M5DLL_API const char *WINAPI PCube_getDeviceName(int iDeviceId)
Definition: m5apiw32.cpp:472
M5DLL_API int WINAPI PCube_setRampAcc(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1540
M5DLL_API int WINAPI PCube_getStateDioPos(int iDeviceId, int iModuleId, unsigned long *puiShortState, unsigned char *pucDio, float *pfPos)
Definition: m5apiw32.cpp:1228
M5DLL_API int WINAPI PCube_getMaximumMotorCurrent(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2649
M5DLL_API int WINAPI PCube_setInitMP55_IO_fast(int iDeviceId, int iModuleId)
Definition: m5apiw32.cpp:2217
M5DLL_API int WINAPI PCube_getMaxLoadGradient(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2313
M5DLL_API int WINAPI PCube_getDefMaxVel(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:820
M5DLL_API int WINAPI PCube_moveStep(int iDeviceId, int iModuleId, float fPos, unsigned short uiTime)
Definition: m5apiw32.cpp:1684
M5DLL_API int WINAPI PCube_setNullSCHUNK_FTC(int iDeviceId, int iModulId, short *piState)
Definition: m5apiw32.cpp:2106
M5DLL_API int WINAPI PCube_savePosAll(int iDeviceId)
Definition: m5apiw32.cpp:1888
M5DLL_API int WINAPI PCube_setNominalMotorCurrent(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2781
M5DLL_API int WINAPI PCube_getRawLogicSupply(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:2277
M5DLL_API int g_iM5Debug
Definition: m5apiw32.cpp:34
M5DLL_API int WINAPI PCube_setA0(int iDeviceId, int iModuleId, short iValue)
Definition: m5apiw32.cpp:1324
M5DLL_API int WINAPI PCube_homeModule(int iDeviceId, int iModuleId)
Definition: m5apiw32.cpp:1588
M5DLL_API int WINAPI PCube_getMinLogicVoltage(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2589
M5DLL_API int WINAPI PCube_getMaxDeltaPosInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1216
M5DLL_API int WINAPI PCube_movePosInc(int iDeviceId, int iModuleId, long iPos)
Definition: m5apiw32.cpp:1696
M5DLL_API int WINAPI PCube_setDefCANBaudRate(int iDeviceId, int iModuleId, unsigned char uiValue)
Definition: m5apiw32.cpp:2505
M5DLL_API int WINAPI PCube_setDefBrakeTimeOut(int iDeviceId, int iModuleId, unsigned short uiValue)
Definition: m5apiw32.cpp:2481
M5DLL_API int WINAPI PCube_getTemperature(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2565
M5DLL_API int WINAPI PCube_getC0(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:940
M5DLL_API int WINAPI PCube_setSyncTime(int iDeviceId, int iModuleId, short iValue)
Definition: m5apiw32.cpp:1564
M5DLL_API int g_iM5DebugFile
Definition: m5apiw32.cpp:33
M5DLL_API int WINAPI PCube_setMotorUndershootTime(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2829
M5DLL_API int WINAPI PCube_getDataMP55_IO_fast(int iDeviceId, int iModuleId, float *pfData)
Definition: m5apiw32.cpp:2229
M5DLL_API int WINAPI PCube_setC0(int iDeviceId, int iModuleId, short iValue)
Definition: m5apiw32.cpp:1336
M5DLL_API int WINAPI PCube_getDamp(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:952
M5DLL_API int WINAPI PCube_setDefHomeAcc(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2445
M5DLL_API int WINAPI PCube_getMotorOvershootTime(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2697
M5DLL_API int WINAPI PCube_setDefSetup(int iDeviceId, int iModuleId, unsigned long uiValue)
Definition: m5apiw32.cpp:2529


schunk_libm5api
Author(s): Florian Weisshardt
autogenerated on Mon Nov 25 2019 03:48:19