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
PCube_doInternal
M5DLL_API int WINAPI PCube_doInternal(int iDeviceId, int iModuleId, void *pBytes)
Definition: m5apiw32.cpp:2032
PCube_setNominalMotorCurrent
M5DLL_API int WINAPI PCube_setNominalMotorCurrent(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2781
g_iM5DebugLevel
M5DLL_API int g_iM5DebugLevel
Definition: m5apiw32.cpp:32
PCube_getDefMaxPos
M5DLL_API int WINAPI PCube_getDefMaxPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:808
PCube_setCurrentLimit
M5DLL_API int WINAPI PCube_setCurrentLimit(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2925
PCube_getPos
M5DLL_API int WINAPI PCube_getPos(int iDeviceId, int iModuleId, float *pfPos)
Definition: m5apiw32.cpp:964
PCube_getCurInc
M5DLL_API int WINAPI PCube_getCurInc(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:1144
PCube_waitForHomeEndAll
M5DLL_API int WINAPI PCube_waitForHomeEndAll(int iDeviceId, unsigned long uiTime)
Definition: m5apiw32.cpp:1960
PCube_getSyncTime
M5DLL_API int WINAPI PCube_getSyncTime(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:1264
PCube_serveWatchdogAll
M5DLL_API int WINAPI PCube_serveWatchdogAll(int iDeviceId)
Definition: m5apiw32.cpp:1852
g_iM5DebugFile
M5DLL_API int g_iM5DebugFile
Definition: m5apiw32.cpp:33
PCube_haltAll
M5DLL_API int WINAPI PCube_haltAll(int iDeviceId)
Definition: m5apiw32.cpp:1840
PCube_movePos
M5DLL_API int WINAPI PCube_movePos(int iDeviceId, int iModuleId, float fPos)
Definition: m5apiw32.cpp:1636
PCube_getRawLogicSupply
M5DLL_API int WINAPI PCube_getRawLogicSupply(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:2277
PCube_getLoadLimit
M5DLL_API int WINAPI PCube_getLoadLimit(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2301
PCube_getMinPos
M5DLL_API int WINAPI PCube_getMinPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1000
PCube_getMaxDeltaPos
M5DLL_API int WINAPI PCube_getMaxDeltaPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1072
PCube_getMaximumMotorCurrent
M5DLL_API int WINAPI PCube_getMaximumMotorCurrent(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2649
PCube_getPosCountInc
M5DLL_API int WINAPI PCube_getPosCountInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1108
PCube_setMaxLoadGradient
M5DLL_API int WINAPI PCube_setMaxLoadGradient(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2349
PCube_resetAll
M5DLL_API int WINAPI PCube_resetAll(int iDeviceId)
Definition: m5apiw32.cpp:1828
PCube_getDefMaxAcc
M5DLL_API int WINAPI PCube_getDefMaxAcc(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:832
PCube_getMaxPWMOutput
M5DLL_API int WINAPI PCube_getMaxPWMOutput(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2901
PCube_setMotorUndershootTime
M5DLL_API int WINAPI PCube_setMotorUndershootTime(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2829
PCube_getDefRSBaudRate
M5DLL_API int WINAPI PCube_getDefRSBaudRate(int iDeviceId, int iModuleId, unsigned char *pucValue)
Definition: m5apiw32.cpp:2397
PCube_getCanOpenRawAbsEnc
M5DLL_API int WINAPI PCube_getCanOpenRawAbsEnc(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:2289
PCube_setMaxDeltaPos
M5DLL_API int WINAPI PCube_setMaxDeltaPos(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1420
PCube_setDataEMS_DIO
M5DLL_API int WINAPI PCube_setDataEMS_DIO(int iDeviceId, int iModuleId, int iChannelId, int iData)
Definition: m5apiw32.cpp:2144
PCube_getDefIncPerTurn
M5DLL_API int WINAPI PCube_getDefIncPerTurn(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:712
PCube_setMaxAcc
M5DLL_API int WINAPI PCube_setMaxAcc(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1396
PCube_getMinLogicVoltage
M5DLL_API int WINAPI PCube_getMinLogicVoltage(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2589
PCube_setDefRSBaudRate
M5DLL_API int WINAPI PCube_setDefRSBaudRate(int iDeviceId, int iModuleId, unsigned char uiValue)
Definition: m5apiw32.cpp:2517
PCube_setRampVelInc
M5DLL_API int WINAPI PCube_setRampVelInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1528
PCube_getMinPosInc
M5DLL_API int WINAPI PCube_getMinPosInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1156
PCube_getC0
M5DLL_API int WINAPI PCube_getC0(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:940
PCube_getVel
M5DLL_API int WINAPI PCube_getVel(int iDeviceId, int iModuleId, float *pfVel)
Definition: m5apiw32.cpp:976
PCube_getDefMaxVel
M5DLL_API int WINAPI PCube_getDefMaxVel(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:820
PCube_setHMaxCurOvershootTime
M5DLL_API int WINAPI PCube_setHMaxCurOvershootTime(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2865
PCube_setSyncTime
M5DLL_API int WINAPI PCube_setSyncTime(int iDeviceId, int iModuleId, short iValue)
Definition: m5apiw32.cpp:1564
PCube_setDefGearRatio
M5DLL_API int WINAPI PCube_setDefGearRatio(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2409
PCube_moveCur
M5DLL_API int WINAPI PCube_moveCur(int iDeviceId, int iModuleId, float fCur)
Definition: m5apiw32.cpp:1672
PCube_getDefGearRatio
M5DLL_API int WINAPI PCube_getDefGearRatio(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:664
PCube_setRampAccInc
M5DLL_API int WINAPI PCube_setRampAccInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1552
PCube_getDefDamp
M5DLL_API int WINAPI PCube_getDefDamp(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:760
PCube_updateModuleIdMap
M5DLL_API int WINAPI PCube_updateModuleIdMap(int iDeviceId)
Definition: m5apiw32.cpp:1576
PCube_getMaxMotorVoltage
M5DLL_API int WINAPI PCube_getMaxMotorVoltage(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2625
PCube_getDataEMS_DIO
M5DLL_API int WINAPI PCube_getDataEMS_DIO(int iDeviceId, int iModuleId, int iChannelId, int *piData)
Definition: m5apiw32.cpp:2130
PCube_setDefSetup
M5DLL_API int WINAPI PCube_setDefSetup(int iDeviceId, int iModuleId, unsigned long uiValue)
Definition: m5apiw32.cpp:2529
PCube_getRawTemperature
M5DLL_API int WINAPI PCube_getRawTemperature(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:2265
PCube_setDefIncPerTurn
M5DLL_API int WINAPI PCube_setDefIncPerTurn(int iDeviceId, int iModuleId, unsigned long uiValue)
Definition: m5apiw32.cpp:2469
PCube_setMaxAccInc
M5DLL_API int WINAPI PCube_setMaxAccInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1468
PCube_getHomeVel
M5DLL_API int WINAPI PCube_getHomeVel(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1240
PCube_setDefAddress
M5DLL_API int WINAPI PCube_setDefAddress(int iDeviceId, int iModuleId, unsigned char uiValue)
Definition: m5apiw32.cpp:2493
PCube_getMotorUndershootTime
M5DLL_API int WINAPI PCube_getMotorUndershootTime(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2685
PCube_getMaxDeltaPosInc
M5DLL_API int WINAPI PCube_getMaxDeltaPosInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1216
PCube_getModuleState
M5DLL_API int WINAPI PCube_getModuleState(int iDeviceId, int iModuleId, unsigned long *puiState)
Definition: m5apiw32.cpp:568
PCube_getMaxPos
M5DLL_API int WINAPI PCube_getMaxPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1012
PCube_setLogicOvershootTime
M5DLL_API int WINAPI PCube_setLogicOvershootTime(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2817
PCube_getPosInc
M5DLL_API int WINAPI PCube_getPosInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1120
PCube_getRawMotorSupply
M5DLL_API int WINAPI PCube_getRawMotorSupply(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:2253
PCube_getNomCurOvershootTime
M5DLL_API int WINAPI PCube_getNomCurOvershootTime(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2709
PCube_getRawMotorCurrent
M5DLL_API int WINAPI PCube_getRawMotorCurrent(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:2241
PCube_getLogicOvershootTime
M5DLL_API int WINAPI PCube_getLogicOvershootTime(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2673
PCube_getHMaxCurOvershootTime
M5DLL_API int WINAPI PCube_getHMaxCurOvershootTime(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2721
PCube_getMaxVelInc
M5DLL_API int WINAPI PCube_getMaxVelInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1180
PCube_waitForMotionEndAll
M5DLL_API int WINAPI PCube_waitForMotionEndAll(int iDeviceId, unsigned long uiTime)
Definition: m5apiw32.cpp:1972
PCube_setMaxVelInc
M5DLL_API int WINAPI PCube_setMaxVelInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1456
PCube_getMinMotorVoltage
M5DLL_API int WINAPI PCube_getMinMotorVoltage(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2613
PCube_getDefC0
M5DLL_API int WINAPI PCube_getDefC0(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:748
PCube_setRampVel
M5DLL_API int WINAPI PCube_setRampVel(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1516
PCube_waitForRampEndAll
M5DLL_API int WINAPI PCube_waitForRampEndAll(int iDeviceId, unsigned long uiTime)
Definition: m5apiw32.cpp:1984
PCube_setHomeOffset
M5DLL_API int WINAPI PCube_setHomeOffset(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1288
PCube_savePosAll
M5DLL_API int WINAPI PCube_savePosAll(int iDeviceId)
Definition: m5apiw32.cpp:1888
PCube_getDefBrakeTimeOut
M5DLL_API int WINAPI PCube_getDefBrakeTimeOut(int iDeviceId, int iModuleId, unsigned short *puiValue)
Definition: m5apiw32.cpp:700
PCube_setMinPosInc
M5DLL_API int WINAPI PCube_setMinPosInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1432
PCube_getModuleType
M5DLL_API int WINAPI PCube_getModuleType(int iDeviceId, int iModuleId, unsigned char *pucValue)
Definition: m5apiw32.cpp:580
PCube_setDeviceDebug
M5DLL_API int WINAPI PCube_setDeviceDebug(int iDeviceId, int iDebug, int iDebugLevel, int iDebugFile)
Definition: m5apiw32.cpp:505
PCube_getDefBaudRate
M5DLL_API int WINAPI PCube_getDefBaudRate(int iDeviceId, int iModuleId, unsigned char *pucValue)
Definition: m5apiw32.cpp:640
PCube_recalcPIDParams
M5DLL_API int WINAPI PCube_recalcPIDParams(int iDeviceId, int iModuleId)
Definition: m5apiw32.cpp:1624
PCube_getHomeOffsetInc
M5DLL_API int WINAPI PCube_getHomeOffsetInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:892
PCube_setTaraMP55_IO
M5DLL_API int WINAPI PCube_setTaraMP55_IO(int iDeviceId, int iModuleId, float fData)
Definition: m5apiw32.cpp:2193
PCube_getMaxPosInc
M5DLL_API int WINAPI PCube_getMaxPosInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1168
PCube_moveRampExtended
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
PCube_setMaxVel
M5DLL_API int WINAPI PCube_setMaxVel(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1384
PCube_getMaxAccInc
M5DLL_API int WINAPI PCube_getMaxAccInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1192
PCube_getLogicUndershootTime
M5DLL_API int WINAPI PCube_getLogicUndershootTime(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2661
M5DLL_API
#define M5DLL_API
Definition: m5apiw32.h:43
PCube_getTemperature
M5DLL_API int WINAPI PCube_getTemperature(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2565
PCube_setHomeOffsetInc
M5DLL_API int WINAPI PCube_setHomeOffsetInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1300
PCube_setRampAcc
M5DLL_API int WINAPI PCube_setRampAcc(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1540
PCube_waitForRampEnd
M5DLL_API int WINAPI PCube_waitForRampEnd(int iDeviceId, int iModuleId, unsigned long uiTime)
Definition: m5apiw32.cpp:1924
PCube_moveStepExtended
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
WINAPI
#define WINAPI
Definition: m5apiw32.h:42
PCube_getKpPWMLimit
M5DLL_API int WINAPI PCube_getKpPWMLimit(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2877
PCube_getConfig
M5DLL_API int WINAPI PCube_getConfig(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:868
PCube_getCur
M5DLL_API int WINAPI PCube_getCur(int iDeviceId, int iModuleId, float *pfCur)
Definition: m5apiw32.cpp:988
PCube_getModuleSerialNo
M5DLL_API int WINAPI PCube_getModuleSerialNo(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:604
PCube_getDataEMS_AIO
M5DLL_API int WINAPI PCube_getDataEMS_AIO(int iDeviceId, int iModuleId, int iChannelId, float *pfData)
Definition: m5apiw32.cpp:2157
PCube_setMaxPos
M5DLL_API int WINAPI PCube_setMaxPos(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1372
PCube_getDefMaxDeltaPos
M5DLL_API int WINAPI PCube_getDefMaxDeltaPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:856
PCube_setMinMotorVoltage
M5DLL_API int WINAPI PCube_setMinMotorVoltage(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2757
PCube_getModuleIdMap
M5DLL_API int WINAPI PCube_getModuleIdMap(int iDeviceId, int *aiIdMap)
Definition: m5apiw32.cpp:551
PCube_setLoadLimit
M5DLL_API int WINAPI PCube_setLoadLimit(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2337
PCube_movePosInc
M5DLL_API int WINAPI PCube_movePosInc(int iDeviceId, int iModuleId, long iPos)
Definition: m5apiw32.cpp:1696
PCube_getHomeOffset
M5DLL_API int WINAPI PCube_getHomeOffset(int iDeviceId, int iModuleId, float *pValue)
Definition: m5apiw32.cpp:880
PCube_getIncRatio
M5DLL_API int WINAPI PCube_getIncRatio(int iDeviceId, int iModuleId, float *pValue)
Definition: m5apiw32.cpp:904
PCube_movePosExtended
M5DLL_API int WINAPI PCube_movePosExtended(int iDeviceId, int iModuleId, float fPos, unsigned long *puiShortState, unsigned char *pucDio, float *pfPos)
Definition: m5apiw32.cpp:1756
PCube_getHomeVelInc
M5DLL_API int WINAPI PCube_getHomeVelInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1252
PCube_setDamp
M5DLL_API int WINAPI PCube_setDamp(int iDeviceId, int iModuleId, short iValue)
Definition: m5apiw32.cpp:1348
PCube_getDeviceCount
M5DLL_API int WINAPI PCube_getDeviceCount(void)
Definition: m5apiw32.cpp:518
PCube_getA0
M5DLL_API int WINAPI PCube_getA0(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:928
PCube_setMaxLogicVoltage
M5DLL_API int WINAPI PCube_setMaxLogicVoltage(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2745
PCube_getDefCANBaudRate
M5DLL_API int WINAPI PCube_getDefCANBaudRate(int iDeviceId, int iModuleId, unsigned char *pucValue)
Definition: m5apiw32.cpp:2385
PCube_initEMS_IO
M5DLL_API int WINAPI PCube_initEMS_IO(int iDeviceId, unsigned char ucType, unsigned long uiSerialNo)
Definition: m5apiw32.cpp:2118
PCube_getMaxLoadGradient
M5DLL_API int WINAPI PCube_getMaxLoadGradient(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2313
PCube_waitForRampSteady
M5DLL_API int WINAPI PCube_waitForRampSteady(int iDeviceId, int iModuleId, unsigned long uiTime)
Definition: m5apiw32.cpp:1948
PCube_setLoadDeltaTime
M5DLL_API int WINAPI PCube_setLoadDeltaTime(int iDeviceId, int iModuleId, unsigned short iValue)
Definition: m5apiw32.cpp:2361
PCube_getDefDioData
M5DLL_API int WINAPI PCube_getDefDioData(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:724
PCube_getDefA0
M5DLL_API int WINAPI PCube_getDefA0(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:736
PCube_setDefCurRatio
M5DLL_API int WINAPI PCube_setDefCurRatio(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2433
PCube_closeDevice
M5DLL_API int WINAPI PCube_closeDevice(int iDeviceId)
Definition: m5apiw32.cpp:427
PCube_getDeviceIdMap
M5DLL_API int WINAPI PCube_getDeviceIdMap(int *aiIdMap)
Definition: m5apiw32.cpp:528
PCube_getDefCurRatio
M5DLL_API int WINAPI PCube_getDefCurRatio(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:688
PCube_getDefBurnCount
M5DLL_API int WINAPI PCube_getDefBurnCount(int iDeviceId, int iModuleId, unsigned char *pucValue)
Definition: m5apiw32.cpp:652
PCube_getDefMinPos
M5DLL_API int WINAPI PCube_getDefMinPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:796
PCube_getCurrentLimit
M5DLL_API int WINAPI PCube_getCurrentLimit(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2889
PCube_getDataSCHUNK_FTC
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
PCube_getDefConfig
M5DLL_API int WINAPI PCube_getDefConfig(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:616
PCube_getNominalMotorCurrent
M5DLL_API int WINAPI PCube_getNominalMotorCurrent(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2637
PCube_setNullSCHUNK_FTC
M5DLL_API int WINAPI PCube_setNullSCHUNK_FTC(int iDeviceId, int iModulId, short *piState)
Definition: m5apiw32.cpp:2106
PCube_setMotorOvershootTime
M5DLL_API int WINAPI PCube_setMotorOvershootTime(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2841
PCube_setC0
M5DLL_API int WINAPI PCube_setC0(int iDeviceId, int iModuleId, short iValue)
Definition: m5apiw32.cpp:1336
PCube_getVelInc
M5DLL_API int WINAPI PCube_getVelInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1132
PCube_setMaxPosInc
M5DLL_API int WINAPI PCube_setMaxPosInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1444
PCube_homeAll
M5DLL_API int WINAPI PCube_homeAll(int iDeviceId)
Definition: m5apiw32.cpp:1816
PCube_closeDevices
M5DLL_API int WINAPI PCube_closeDevices(void)
Definition: m5apiw32.cpp:446
PCube_getDefHomeOffset
M5DLL_API int WINAPI PCube_getDefHomeOffset(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:772
PCube_getDioData
M5DLL_API int WINAPI PCube_getDioData(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:916
PCube_xack8Bytes
M5DLL_API int WINAPI PCube_xack8Bytes(int iDeviceId, int iModuleId, void *pBytes)
Definition: m5apiw32.cpp:2020
PCube_getLoadDeltaTime
M5DLL_API int WINAPI PCube_getLoadDeltaTime(int iDeviceId, int iModuleId, unsigned short *piValue)
Definition: m5apiw32.cpp:2325
PCube_waitForRampDec
M5DLL_API int WINAPI PCube_waitForRampDec(int iDeviceId, int iModuleId, unsigned long uiTime)
Definition: m5apiw32.cpp:1936
PCube_setMinPos
M5DLL_API int WINAPI PCube_setMinPos(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1360
PCube_setDioData
M5DLL_API int WINAPI PCube_setDioData(int iDeviceId, int iModuleId, unsigned long uiValue)
Definition: m5apiw32.cpp:1312
PCube_setMinLogicVoltage
M5DLL_API int WINAPI PCube_setMinLogicVoltage(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2733
PCube_startMotionAll
M5DLL_API int WINAPI PCube_startMotionAll(int iDeviceId)
Definition: m5apiw32.cpp:1876
PCube_waitForHomeEnd
M5DLL_API int WINAPI PCube_waitForHomeEnd(int iDeviceId, int iModuleId, unsigned long uiTime)
Definition: m5apiw32.cpp:1900
PCube_setDefLinRatio
M5DLL_API int WINAPI PCube_setDefLinRatio(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2421
PCube_setMaxCur
M5DLL_API int WINAPI PCube_setMaxCur(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1408
PCube_configFromFile
M5DLL_API int WINAPI PCube_configFromFile(const char *acFileName)
Definition: m5apiw32.cpp:144
PCube_homeModule
M5DLL_API int WINAPI PCube_homeModule(int iDeviceId, int iModuleId)
Definition: m5apiw32.cpp:1588
PCube_getMaxVel
M5DLL_API int WINAPI PCube_getMaxVel(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1024
PCube_setKpPWMLimit
M5DLL_API int WINAPI PCube_setKpPWMLimit(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2913
PCube_openDevice
M5DLL_API int WINAPI PCube_openDevice(int *piDeviceId, const char *acInitString)
Definition: m5apiw32.cpp:366
PCube_initDLR_FTS
M5DLL_API int WINAPI PCube_initDLR_FTS(int iDeviceId)
Definition: m5apiw32.cpp:2056
PCube_moveStepInc
M5DLL_API int WINAPI PCube_moveStepInc(int iDeviceId, int iModuleId, long iPos, unsigned short uiTime)
Definition: m5apiw32.cpp:1744
PCube_setHomeVelInc
M5DLL_API int WINAPI PCube_setHomeVelInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1504
PCube_waitForMotionEnd
M5DLL_API int WINAPI PCube_waitForMotionEnd(int iDeviceId, int iModuleId, unsigned long uiTime)
Definition: m5apiw32.cpp:1912
PCube_saveParameters
M5DLL_API int WINAPI PCube_saveParameters(int iDeviceId, int iModuleId)
Definition: m5apiw32.cpp:2373
PCube_getDataMP55_IO
M5DLL_API int WINAPI PCube_getDataMP55_IO(int iDeviceId, int iModuleId, float *pfData)
Definition: m5apiw32.cpp:2181
PCube_getDefCurOffset
M5DLL_API int WINAPI PCube_getDefCurOffset(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2205
PCube_setMaximumMotorCurrent
M5DLL_API int WINAPI PCube_setMaximumMotorCurrent(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2793
PCube_setDllDebug
M5DLL_API int WINAPI PCube_setDllDebug(int iDebug, int iDebugLevel, int iDebugFile)
Definition: m5apiw32.cpp:129
PCube_getDefMaxCur
M5DLL_API int WINAPI PCube_getDefMaxCur(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:844
PCube_getIPolVel
M5DLL_API int WINAPI PCube_getIPolVel(int iDeviceId, int iModuleId, float *pValue)
Definition: m5apiw32.cpp:1096
PCube_getDefSetup
M5DLL_API int WINAPI PCube_getDefSetup(int iDeviceId, int iModuleId, unsigned long *puiValue)
Definition: m5apiw32.cpp:628
PCube_getMaxLogicVoltage
M5DLL_API int WINAPI PCube_getMaxLogicVoltage(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2601
PCube_setBaudRateAll
M5DLL_API int WINAPI PCube_setBaudRateAll(int iDeviceId, unsigned char pucValue)
Definition: m5apiw32.cpp:1864
PCube_resetModule
M5DLL_API int WINAPI PCube_resetModule(int iDeviceId, int iModuleId)
Definition: m5apiw32.cpp:1612
PCube_getDefHomeVel
M5DLL_API int WINAPI PCube_getDefHomeVel(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:784
PCube_setConfig
M5DLL_API int WINAPI PCube_setConfig(int iDeviceId, int iModuleId, unsigned long uiValue)
Definition: m5apiw32.cpp:1276
PCube_getDataDLR_FTS
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
PCube_getStateDioPos
M5DLL_API int WINAPI PCube_getStateDioPos(int iDeviceId, int iModuleId, unsigned long *puiShortState, unsigned char *pucDio, float *pfPos)
Definition: m5apiw32.cpp:1228
PCube_moveRampInc
M5DLL_API int WINAPI PCube_moveRampInc(int iDeviceId, int iModuleId, long iPos, long iVel, long iAcc)
Definition: m5apiw32.cpp:1708
PCube_setHomeVel
M5DLL_API int WINAPI PCube_setHomeVel(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:1492
PCube_setLogicUndershootTime
M5DLL_API int WINAPI PCube_setLogicUndershootTime(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2805
PCube_moveStep
M5DLL_API int WINAPI PCube_moveStep(int iDeviceId, int iModuleId, float fPos, unsigned short uiTime)
Definition: m5apiw32.cpp:1684
PCube_getDefLinearRatio
M5DLL_API int WINAPI PCube_getDefLinearRatio(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:676
PCube_getMotorCurrent
M5DLL_API int WINAPI PCube_getMotorCurrent(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2541
PCube_haltModule
M5DLL_API int WINAPI PCube_haltModule(int iDeviceId, int iModuleId)
Definition: m5apiw32.cpp:1600
PCube_setA0
M5DLL_API int WINAPI PCube_setA0(int iDeviceId, int iModuleId, short iValue)
Definition: m5apiw32.cpp:1324
PCube_getMotorOvershootTime
M5DLL_API int WINAPI PCube_getMotorOvershootTime(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:2697
PCube_getMaxCur
M5DLL_API int WINAPI PCube_getMaxCur(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1048
PCube_waitForStartMotionAll
M5DLL_API int WINAPI PCube_waitForStartMotionAll(int iDeviceId)
Definition: m5apiw32.cpp:1996
PCube_getDeviceRevision
const M5DLL_API char *WINAPI PCube_getDeviceRevision(int iDeviceId)
Definition: m5apiw32.cpp:461
PCube_getDataMP55_IO_fast
M5DLL_API int WINAPI PCube_getDataMP55_IO_fast(int iDeviceId, int iModuleId, float *pfData)
Definition: m5apiw32.cpp:2229
PCube_moveVelInc
M5DLL_API int WINAPI PCube_moveVelInc(int iDeviceId, int iModuleId, long iVel)
Definition: m5apiw32.cpp:1720
PCube_setDefHomeAcc
M5DLL_API int WINAPI PCube_setDefHomeAcc(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2445
PCube_xmit8Bytes
M5DLL_API int WINAPI PCube_xmit8Bytes(int iDeviceId, int iModuleId, void *pBytes)
Definition: m5apiw32.cpp:2008
g_iM5Debug
M5DLL_API int g_iM5Debug
Definition: m5apiw32.cpp:34
PCube_getDeviceInitString
const M5DLL_API char *WINAPI PCube_getDeviceInitString(int iDeviceId)
Definition: m5apiw32.cpp:483
PCube_setMaxMotorVoltage
M5DLL_API int WINAPI PCube_setMaxMotorVoltage(int iDeviceId, int iModuleId, float fValue)
Definition: m5apiw32.cpp:2769
PCube_getDeltaPos
M5DLL_API int WINAPI PCube_getDeltaPos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1060
PCube_getDllVersion
M5DLL_API int WINAPI PCube_getDllVersion(void)
Definition: m5apiw32.cpp:124
PCube_moveCurExtended
M5DLL_API int WINAPI PCube_moveCurExtended(int iDeviceId, int iModuleId, float fCur, unsigned long *puiShortState, unsigned char *pucDio, float *pfPos)
Definition: m5apiw32.cpp:1792
PCube_moveVel
M5DLL_API int WINAPI PCube_moveVel(int iDeviceId, int iModuleId, float fVel)
Definition: m5apiw32.cpp:1660
PCube_moveRamp
M5DLL_API int WINAPI PCube_moveRamp(int iDeviceId, int iModuleId, float fPos, float fVel, float fAcc)
Definition: m5apiw32.cpp:1648
PCube_moveVelExtended
M5DLL_API int WINAPI PCube_moveVelExtended(int iDeviceId, int iModuleId, float fCur, unsigned long *puiShortState, unsigned char *pucDio, float *pfPos)
Definition: m5apiw32.cpp:1780
PCube_setNomCurOvershootTime
M5DLL_API int WINAPI PCube_setNomCurOvershootTime(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:2853
PCube_getDamp
M5DLL_API int WINAPI PCube_getDamp(int iDeviceId, int iModuleId, short *piValue)
Definition: m5apiw32.cpp:952
PCube_getDeltaPosInc
M5DLL_API int WINAPI PCube_getDeltaPosInc(int iDeviceId, int iModuleId, long *piValue)
Definition: m5apiw32.cpp:1204
PCube_setDataEMS_AIO
M5DLL_API int WINAPI PCube_setDataEMS_AIO(int iDeviceId, int iModuleId, int iChannelId, float fData)
Definition: m5apiw32.cpp:2169
PCube_getStateInternal
M5DLL_API int WINAPI PCube_getStateInternal(int iDeviceId, int iModuleId, unsigned long *puiState)
Definition: m5apiw32.cpp:2044
PCube_getSavePos
M5DLL_API int WINAPI PCube_getSavePos(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1084
PCube_getDeviceName
const M5DLL_API char *WINAPI PCube_getDeviceName(int iDeviceId)
Definition: m5apiw32.cpp:472
PCube_getModuleCount
M5DLL_API int WINAPI PCube_getModuleCount(int iDeviceId)
Definition: m5apiw32.cpp:541
PCube_setDeviceName
M5DLL_API int WINAPI PCube_setDeviceName(int iDeviceId, const char *acDeviceName)
Definition: m5apiw32.cpp:494
PCube_getMotorSupply
M5DLL_API int WINAPI PCube_getMotorSupply(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2553
PCube_setDefBrakeTimeOut
M5DLL_API int WINAPI PCube_setDefBrakeTimeOut(int iDeviceId, int iModuleId, unsigned short uiValue)
Definition: m5apiw32.cpp:2481
PCube_setDefCANBaudRate
M5DLL_API int WINAPI PCube_setDefCANBaudRate(int iDeviceId, int iModuleId, unsigned char uiValue)
Definition: m5apiw32.cpp:2505
PCube_moveCurInc
M5DLL_API int WINAPI PCube_moveCurInc(int iDeviceId, int iModuleId, long iCur)
Definition: m5apiw32.cpp:1732
PCube_setModuleSerialNo
M5DLL_API int WINAPI PCube_setModuleSerialNo(int iDeviceId, int iModuleId, unsigned long uiValue)
Definition: m5apiw32.cpp:2457
PCube_setMaxDeltaPosInc
M5DLL_API int WINAPI PCube_setMaxDeltaPosInc(int iDeviceId, int iModuleId, long iValue)
Definition: m5apiw32.cpp:1480
PCube_getMaxAcc
M5DLL_API int WINAPI PCube_getMaxAcc(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:1036
PCube_getModuleVersion
M5DLL_API int WINAPI PCube_getModuleVersion(int iDeviceId, int iModuleId, unsigned short *puiValue)
Definition: m5apiw32.cpp:592
PCube_getLogicSupply
M5DLL_API int WINAPI PCube_getLogicSupply(int iDeviceId, int iModuleId, float *pfValue)
Definition: m5apiw32.cpp:2577
PCube_setInitMP55_IO_fast
M5DLL_API int WINAPI PCube_setInitMP55_IO_fast(int iDeviceId, int iModuleId)
Definition: m5apiw32.cpp:2217


schunk_libm5api
Author(s): Florian Weisshardt
autogenerated on Sat May 7 2022 02:17:13