19 #include "../Device/Device.h" 20 #include "../Util/IOFunctions.h" 21 #include "../Util/Message.h" 46 BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
51 switch (ul_reason_for_call)
56 case DLL_PROCESS_ATTACH:
90 case DLL_THREAD_ATTACH:
97 case DLL_THREAD_DETACH:
105 case DLL_PROCESS_DETACH:
119 UNREFERENCED_PARAMETER(hModule);
120 UNREFERENCED_PARAMETER(lpReserved);
148 char acInitString[128];
151 char acDeviceName[128];
152 int iDeviceNumber = 0;
153 int iDeviceStart = 0;
154 int iModuleNumber = 0;
155 int iModuleStart = 0;
158 float fHomeOffset = 0.0;
159 float fHomeVel = 0.0;
165 float fMaxDeltaPos = 0.0;
177 iRetVal =
util_searchString(
"PROCESS",
"DeviceNumber",
"0", acBuffer, 128, acFileName);
180 clDebug.
warning(
"could not open file %s", acFileName);
183 iDeviceNumber = atoi(acBuffer);
185 iDeviceStart = atoi(acBuffer);
187 iModuleNumber = atoi(acBuffer);
189 iModuleStart = atoi(acBuffer);
191 for(i = 0; i < iDeviceNumber; i++)
193 sprintf(acDevice,
"DEVICE_%02d",i + iDeviceStart);
194 util_searchString(acDevice,
"DeviceName",
"not available", acDeviceName, 128, acFileName);
195 util_searchString(acDevice,
"InitString",
"not available", acInitString, 128, acFileName);
196 clDebug.
debug(0,
"Trying to open device %s with initstring %s", acDeviceName, acInitString);
200 clDebug.
debug(0,
"Cound not open device %s with initstring %s", acDeviceName, acInitString);
204 clDebug.
debug(0,
"Successfully open device %s with initstring %s", acDeviceName, acInitString);
207 for(i = 0; i < iModuleNumber; i++)
209 sprintf(acModule,
"MODULE_%02d",i + iModuleStart);
212 iModuleId = atoi(acBuffer);
213 clDebug.
debug(0,
"Trying to config module %i on device %s ", iModuleId, acDeviceName);
218 if(strcmp(acDeviceName, (
g_apclDevice[j])->getName()) == 0)
226 clDebug.
debug(0,
"Cound not found device %s", acDeviceName);
229 util_searchString(acModule,
"HomeOffset",
"not available", acBuffer, 128, acFileName);
230 if(strcmp(acBuffer,
"not available") != 0)
232 fHomeOffset = atof(acBuffer);
236 clDebug.
debug(0,
"Cound not set homeoffset of module %i on device %s", iModuleId, acDeviceName);
239 clDebug.
debug(0,
"Set homeoffset to %f of module %i on device %s", fHomeOffset, iModuleId, acDeviceName);
241 util_searchString(acModule,
"HomeVel",
"not available", acBuffer, 128, acFileName);
242 if(strcmp(acBuffer,
"not available") != 0)
244 fHomeVel = atof(acBuffer);
248 clDebug.
debug(0,
"Cound not set homevel of module %i on device %s", iModuleId, acDeviceName);
251 clDebug.
debug(0,
"Set homevel to %f of module %i on device %s", fHomeVel, iModuleId, acDeviceName);
254 if(strcmp(acBuffer,
"not available") != 0)
256 iC0 = atoi(acBuffer);
260 clDebug.
debug(0,
"Cound not set C0 of module %i on device %s", iModuleId, acDeviceName);
263 clDebug.
debug(0,
"Set CO to %i of module %i on device %s", iC0, iModuleId, acDeviceName);
266 if(strcmp(acBuffer,
"not available") != 0)
268 iDamp= atoi(acBuffer);
272 clDebug.
debug(0,
"Cound not set damp of module %i on device %s", iModuleId, acDeviceName);
275 clDebug.
debug(0,
"Set damp to %i of module %i on device %s", iDamp, iModuleId, acDeviceName);
278 if(strcmp(acBuffer,
"not available") != 0)
280 iA0 = atoi(acBuffer);
284 clDebug.
debug(0,
"Cound not set A0 of module %i on device %s", iModuleId, acDeviceName);
287 clDebug.
debug(0,
"Set A0 to %i of module %i on device %s", iA0, iModuleId, acDeviceName);
289 util_searchString(acModule,
"MinPos",
"not available", acBuffer, 128, acFileName);
290 if(strcmp(acBuffer,
"not available") != 0)
292 fMinPos = atof(acBuffer);
296 clDebug.
debug(0,
"Cound not set minpos of module %i on device %s", iModuleId, acDeviceName);
299 clDebug.
debug(0,
"Set minpos to %f of module %i on device %s", fMinPos, iModuleId, acDeviceName);
301 util_searchString(acModule,
"MaxPos",
"not available", acBuffer, 128, acFileName);
302 if(strcmp(acBuffer,
"not available") != 0)
304 fMaxPos = atof(acBuffer);
308 clDebug.
debug(0,
"Cound not set maxpos of module %i on device %s", iModuleId, acDeviceName);
311 clDebug.
debug(0,
"Set maxpos to %f of module %i on device %s", fMaxPos, iModuleId, acDeviceName);
313 util_searchString(acModule,
"MaxDeltaPos",
"not available", acBuffer, 128, acFileName);
314 if(strcmp(acBuffer,
"not available") != 0)
316 fMaxDeltaPos = atof(acBuffer);
320 clDebug.
debug(0,
"Cound not set maxdeltapos of module %i on device %s", iModuleId, acDeviceName);
323 clDebug.
debug(0,
"Set maxdeltapos to %f of module %i on device %s", fMaxDeltaPos, iModuleId, acDeviceName);
325 util_searchString(acModule,
"MaxVel",
"not available", acBuffer, 128, acFileName);
326 if(strcmp(acBuffer,
"not available") != 0)
328 fMaxVel = atof(acBuffer);
332 clDebug.
debug(0,
"Cound not set maxvel of module %i on device %s", iModuleId, acDeviceName);
335 clDebug.
debug(0,
"Set maxvel to %f of module %i on device %s", fMaxVel, iModuleId, acDeviceName);
337 util_searchString(acModule,
"MaxAcc",
"not available", acBuffer, 128, acFileName);
338 if(strcmp(acBuffer,
"not available") != 0)
340 fMaxAcc = atof(acBuffer);
344 clDebug.
debug(0,
"Cound not set maxacc of module %i on device %s", iModuleId, acDeviceName);
347 clDebug.
debug(0,
"Set maxacc to %f of module %i on device %s", fMaxAcc, iModuleId, acDeviceName);
349 util_searchString(acModule,
"MaxCur",
"not available", acBuffer, 128, acFileName);
350 if(strcmp(acBuffer,
"not available") != 0)
352 fMaxCur = atof(acBuffer);
356 clDebug.
debug(0,
"Cound not set maxcur of module %i on device %s", iModuleId, acDeviceName);
359 clDebug.
debug(0,
"Set maxcur to %f of module %i on device %s", fMaxCur, iModuleId, acDeviceName);
361 clDebug.
debug(0,
"Successfully config module %i on device %s ", iModuleId, acDeviceName);
369 int i, iDeviceNumber;
370 bool bReplace =
false;
372 if(acInitString == NULL || strlen(acInitString) == 0)
377 clDebug.
debug(0,
"number of possible devices %i", iDeviceNumber);
378 for (i=0;i<iDeviceNumber;i++)
380 clDebug.
debug(0,
"checking device %i", i);
382 if(strcmp(
g_apclDevice[i]->getInitString(),acInitString)==0)
386 clDebug.
debug(0,
"using device with id %i", i);
391 if(pclDevice == NULL)
395 clDebug.
debug(0,
"created new device");
399 iRetVal = pclDevice->
init(acInitString);
402 clDebug.
debug(0,
"init error device");
407 for (i=0;i<iDeviceNumber;i++)
414 clDebug.
debug(0,
"replacing device with id %i", i);
417 if(bReplace ==
false)
422 clDebug.
debug(0,
"adding device with id %i", *piDeviceId);
463 static const char acString[] =
"";
474 static const char acString[] =
"";
485 static const char acString[] =
"";
520 int iDeviceCount = 0;
530 int iDeviceCount = 0;
559 static std::vector<int> aiModules;
560 int iRetVal =
g_apclDevice[iDeviceId]->getModuleIdMap(aiModules);
561 for(i = 0; i < aiModules.size(); i++)
562 *(aiIdMap++) = aiModules[i];
575 int iRetVal =
g_apclDevice[iDeviceId]->getModuleState( iModuleId, puiState );
587 int iRetVal =
g_apclDevice[iDeviceId]->getModuleType( iModuleId, pucValue );
599 int iRetVal =
g_apclDevice[iDeviceId]->getModuleVersion( iModuleId, puiValue );
611 int iRetVal =
g_apclDevice[iDeviceId]->getModuleSerialNo( iModuleId, puiValue );
623 int iRetVal =
g_apclDevice[iDeviceId]->getDefConfig( iModuleId, puiValue );
635 int iRetVal =
g_apclDevice[iDeviceId]->getDefSetup( iModuleId, puiValue );
647 int iRetVal =
g_apclDevice[iDeviceId]->getDefBaudRate( iModuleId, pucValue );
659 int iRetVal =
g_apclDevice[iDeviceId]->getDefBurnCount( iModuleId, pucValue );
671 int iRetVal =
g_apclDevice[iDeviceId]->getDefGearRatio( iModuleId, pfValue );
683 int iRetVal =
g_apclDevice[iDeviceId]->getDefLinearRatio( iModuleId, pfValue );
695 int iRetVal =
g_apclDevice[iDeviceId]->getDefCurRatio( iModuleId, pfValue );
707 int iRetVal =
g_apclDevice[iDeviceId]->getDefBrakeTimeOut( iModuleId, puiValue );
719 int iRetVal =
g_apclDevice[iDeviceId]->getDefIncPerTurn( iModuleId, puiValue );
731 int iRetVal =
g_apclDevice[iDeviceId]->getDefDioData( iModuleId, puiValue );
743 int iRetVal =
g_apclDevice[iDeviceId]->getDefA0( iModuleId, piValue );
755 int iRetVal =
g_apclDevice[iDeviceId]->getDefC0( iModuleId, piValue );
767 int iRetVal =
g_apclDevice[iDeviceId]->getDefDamp( iModuleId, piValue );
779 int iRetVal =
g_apclDevice[iDeviceId]->getDefHomeOffset( iModuleId, pfValue );
791 int iRetVal =
g_apclDevice[iDeviceId]->getDefHomeVel( iModuleId, pfValue );
803 int iRetVal =
g_apclDevice[iDeviceId]->getDefMinPos( iModuleId, pfValue );
815 int iRetVal =
g_apclDevice[iDeviceId]->getDefMaxPos( iModuleId, pfValue );
827 int iRetVal =
g_apclDevice[iDeviceId]->getDefMaxVel( iModuleId, pfValue );
839 int iRetVal =
g_apclDevice[iDeviceId]->getDefMaxAcc( iModuleId, pfValue );
851 int iRetVal =
g_apclDevice[iDeviceId]->getDefMaxCur( iModuleId, pfValue );
863 int iRetVal =
g_apclDevice[iDeviceId]->getDefMaxDeltaPos( iModuleId, pfValue );
875 int iRetVal =
g_apclDevice[iDeviceId]->getConfig( iModuleId, puiValue );
887 int iRetVal =
g_apclDevice[iDeviceId]->getHomeOffset( iModuleId, pValue );
899 int iRetVal =
g_apclDevice[iDeviceId]->getHomeOffsetInc( iModuleId, piValue );
911 int iRetVal =
g_apclDevice[iDeviceId]->getIncRatio( iModuleId, pValue );
923 int iRetVal =
g_apclDevice[iDeviceId]->getDioData( iModuleId, puiValue );
935 int iRetVal =
g_apclDevice[iDeviceId]->getA0( iModuleId, piValue );
947 int iRetVal =
g_apclDevice[iDeviceId]->getC0( iModuleId, piValue );
959 int iRetVal =
g_apclDevice[iDeviceId]->getDamp( iModuleId, piValue );
971 int iRetVal =
g_apclDevice[iDeviceId]->getPos( iModuleId, pfPos );
983 int iRetVal =
g_apclDevice[iDeviceId]->getVel( iModuleId, pfVel );
995 int iRetVal =
g_apclDevice[iDeviceId]->getCur( iModuleId, pfCur );
1007 int iRetVal =
g_apclDevice[iDeviceId]->getMinPos( iModuleId, pfValue );
1019 int iRetVal =
g_apclDevice[iDeviceId]->getMaxPos( iModuleId, pfValue );
1031 int iRetVal =
g_apclDevice[iDeviceId]->getMaxVel( iModuleId, pfValue );
1043 int iRetVal =
g_apclDevice[iDeviceId]->getMaxAcc( iModuleId, pfValue );
1055 int iRetVal =
g_apclDevice[iDeviceId]->getMaxCur( iModuleId, pfValue );
1067 int iRetVal =
g_apclDevice[iDeviceId]->getDeltaPos( iModuleId, pfValue );
1079 int iRetVal =
g_apclDevice[iDeviceId]->getMaxDeltaPos( iModuleId, pfValue );
1091 int iRetVal =
g_apclDevice[iDeviceId]->getSavePos( iModuleId, pfValue );
1103 int iRetVal =
g_apclDevice[iDeviceId]->getIPolVel( iModuleId, pValue );
1115 int iRetVal =
g_apclDevice[iDeviceId]->getPosCountInc( iModuleId, piValue );
1127 int iRetVal =
g_apclDevice[iDeviceId]->getPosInc( iModuleId, piValue );
1139 int iRetVal =
g_apclDevice[iDeviceId]->getVelInc( iModuleId, piValue );
1151 int iRetVal =
g_apclDevice[iDeviceId]->getCurInc( iModuleId, piValue );
1163 int iRetVal =
g_apclDevice[iDeviceId]->getMinPosInc( iModuleId, piValue );
1175 int iRetVal =
g_apclDevice[iDeviceId]->getMaxPosInc( iModuleId, piValue );
1187 int iRetVal =
g_apclDevice[iDeviceId]->getMaxVelInc( iModuleId, piValue );
1199 int iRetVal =
g_apclDevice[iDeviceId]->getMaxAccInc( iModuleId, piValue );
1211 int iRetVal =
g_apclDevice[iDeviceId]->getDeltaPosInc( iModuleId, piValue );
1223 int iRetVal =
g_apclDevice[iDeviceId]->getMaxDeltaPosInc( iModuleId, piValue );
1235 int iRetVal =
g_apclDevice[iDeviceId]->getStateDioPos( iModuleId, puiState, pucDio, pfPos);
1247 int iRetVal =
g_apclDevice[iDeviceId]->getHomeVel( iModuleId, pValue );
1259 int iRetVal =
g_apclDevice[iDeviceId]->getHomeVelInc( iModuleId, piValue );
1271 int iRetVal =
g_apclDevice[iDeviceId]->getSyncTime( iModuleId, piValue );
1283 int iRetVal =
g_apclDevice[iDeviceId]->setConfig( iModuleId, puiValue );
1295 int iRetVal =
g_apclDevice[iDeviceId]->setHomeOffset( iModuleId, fValue );
1307 int iRetVal =
g_apclDevice[iDeviceId]->setHomeOffsetInc( iModuleId, iValue );
1319 int iRetVal =
g_apclDevice[iDeviceId]->setDioData( iModuleId, uiValue );
1331 int iRetVal =
g_apclDevice[iDeviceId]->setA0( iModuleId, iValue );
1343 int iRetVal =
g_apclDevice[iDeviceId]->setC0( iModuleId, iValue );
1355 int iRetVal =
g_apclDevice[iDeviceId]->setDamp( iModuleId, iValue );
1367 int iRetVal =
g_apclDevice[iDeviceId]->setMinPos( iModuleId, fValue );
1379 int iRetVal =
g_apclDevice[iDeviceId]->setMaxPos( iModuleId, fValue );
1391 int iRetVal =
g_apclDevice[iDeviceId]->setMaxVel( iModuleId, fValue );
1403 int iRetVal =
g_apclDevice[iDeviceId]->setMaxAcc( iModuleId, fValue );
1415 int iRetVal =
g_apclDevice[iDeviceId]->setMaxCur( iModuleId, fValue );
1427 int iRetVal =
g_apclDevice[iDeviceId]->setMaxDeltaPos( iModuleId, fValue );
1439 int iRetVal =
g_apclDevice[iDeviceId]->setMinPosInc( iModuleId, iValue );
1451 int iRetVal =
g_apclDevice[iDeviceId]->setMaxPosInc( iModuleId, iValue );
1463 int iRetVal =
g_apclDevice[iDeviceId]->setMaxVelInc( iModuleId, iValue );
1475 int iRetVal =
g_apclDevice[iDeviceId]->setMaxAccInc( iModuleId, iValue );
1487 int iRetVal =
g_apclDevice[iDeviceId]->setMaxDeltaPosInc( iModuleId, iValue );
1499 int iRetVal =
g_apclDevice[iDeviceId]->setHomeVel( iModuleId, fValue );
1511 int iRetVal =
g_apclDevice[iDeviceId]->setHomeVelInc( iModuleId, iValue );
1523 int iRetVal =
g_apclDevice[iDeviceId]->setRampVel( iModuleId, fValue );
1535 int iRetVal =
g_apclDevice[iDeviceId]->setRampVelInc( iModuleId, iValue );
1547 int iRetVal =
g_apclDevice[iDeviceId]->setRampAcc( iModuleId, fValue );
1559 int iRetVal =
g_apclDevice[iDeviceId]->setRampAccInc( iModuleId, iValue );
1571 int iRetVal =
g_apclDevice[iDeviceId]->setSyncTime( iModuleId, iValue );
1583 int iRetVal =
g_apclDevice[iDeviceId]->updateModuleIdMap();
1595 int iRetVal =
g_apclDevice[iDeviceId]->homeModule( iModuleId );
1607 int iRetVal =
g_apclDevice[iDeviceId]->haltModule( iModuleId );
1619 int iRetVal =
g_apclDevice[iDeviceId]->resetModule( iModuleId );
1631 int iRetVal =
g_apclDevice[iDeviceId]->recalcPIDParams( iModuleId );
1643 int iRetVal =
g_apclDevice[iDeviceId]->movePos( iModuleId, fPos );
1655 int iRetVal =
g_apclDevice[iDeviceId]->moveRamp( iModuleId, fPos, fVel, fAcc );
1667 int iRetVal =
g_apclDevice[iDeviceId]->moveVel( iModuleId, fVel );
1679 int iRetVal =
g_apclDevice[iDeviceId]->moveCur( iModuleId, fCur );
1691 int iRetVal =
g_apclDevice[iDeviceId]->moveStep( iModuleId, fPos, uiTime );
1703 int iRetVal =
g_apclDevice[iDeviceId]->movePosInc( iModuleId, iPos );
1715 int iRetVal =
g_apclDevice[iDeviceId]->moveRampInc( iModuleId, iPos, iVel, iAcc );
1727 int iRetVal =
g_apclDevice[iDeviceId]->moveVelInc( iModuleId, iVel );
1739 int iRetVal =
g_apclDevice[iDeviceId]->moveCurInc( iModuleId, iCur );
1751 int iRetVal =
g_apclDevice[iDeviceId]->moveStepInc( iModuleId, iPos, uiTime );
1763 int iRetVal =
g_apclDevice[iDeviceId]->movePosExtended( iModuleId, fPos, puiState, pucDio, pfPos );
1775 int iRetVal =
g_apclDevice[iDeviceId]->moveRampExtended( iModuleId, fPos, fVel, fAcc, puiState, pucDio, pfPos );
1787 int iRetVal =
g_apclDevice[iDeviceId]->moveVelExtended( iModuleId, fCur, puiState, pucDio, pfPos );
1799 int iRetVal =
g_apclDevice[iDeviceId]->moveCurExtended( iModuleId, fCur, puiState, pucDio, pfPos );
1811 int iRetVal =
g_apclDevice[iDeviceId]->moveStepExtended( iModuleId, fPos, uiTime, puiState, pucDio, pfPos );
1859 int iRetVal =
g_apclDevice[iDeviceId]->serveWatchdogAll();
1871 int iRetVal =
g_apclDevice[iDeviceId]->setBaudRateAll(ucValue);
1883 int iRetVal =
g_apclDevice[iDeviceId]->startMotionAll();
1907 int iRetVal =
g_apclDevice[iDeviceId]->waitForHomeEnd( iModuleId, uiTime );
1919 int iRetVal =
g_apclDevice[iDeviceId]->waitForMotionEnd( iModuleId, uiTime );
1931 int iRetVal =
g_apclDevice[iDeviceId]->waitForRampEnd( iModuleId, uiTime );
1943 int iRetVal =
g_apclDevice[iDeviceId]->waitForRampDec( iModuleId, uiTime );
1955 int iRetVal =
g_apclDevice[iDeviceId]->waitForRampSteady( iModuleId, uiTime );
1967 int iRetVal =
g_apclDevice[iDeviceId]->waitForHomeEndAll( uiTime );
1979 int iRetVal =
g_apclDevice[iDeviceId]->waitForMotionEndAll( uiTime );
1991 int iRetVal =
g_apclDevice[iDeviceId]->waitForRampEndAll( uiTime );
2003 int iRetVal =
g_apclDevice[iDeviceId]->waitForStartMotionAll();
2015 int iRetVal =
g_apclDevice[iDeviceId]->xmit8Bytes( iModuleId, pBytes );
2027 int iRetVal =
g_apclDevice[iDeviceId]->xack8Bytes( iModuleId, pBytes );
2039 int iRetVal =
g_apclDevice[iDeviceId]->doInternal( iModuleId, pBytes );
2051 int iRetVal =
g_apclDevice[iDeviceId]->getStateInternal( iModuleId, pStat );
2075 static std::vector<float> afVector;
2076 int iRetVal =
g_apclDevice[iDeviceId]->getDataDLR_FTS( afVector, piState );
2077 *fVal0 = afVector[0];
2078 *fVal1 = afVector[1];
2079 *fVal2 = afVector[2];
2080 *fVal3 = afVector[3];
2081 *fVal4 = afVector[4];
2082 *fVal5 = afVector[5];
2094 static std::vector<float> afVector;
2095 int iRetVal =
g_apclDevice[iDeviceId]->getDataSCHUNK_FTC( iModulId, iChannelTypeId, afVector, piState );
2096 *fVal0 = afVector[0];
2097 *fVal1 = afVector[1];
2098 *fVal2 = afVector[2];
2099 *fVal3 = afVector[3];
2100 *fVal4 = afVector[4];
2101 *fVal5 = afVector[5];
2113 int iRetVal =
g_apclDevice[iDeviceId]->setNullSCHUNK_FTC( iModulId, piState );
2151 bool bData = (bool)iData;
2188 int iRetVal =
g_apclDevice[iDeviceId]->getDataMP55_IO( iModuleId, pfData );
2200 int iRetVal =
g_apclDevice[iDeviceId]->setTaraMP55_IO( iModuleId, fData );
2212 int iRetVal =
g_apclDevice[iDeviceId]->getDefCurOffset( iModuleId, pfValue );
2224 int iRetVal =
g_apclDevice[iDeviceId]->setInitMP55_IO_fast( iModuleId );
2236 int iRetVal =
g_apclDevice[iDeviceId]->getDataMP55_IO_fast( iModuleId, pfData );
2248 int iRetVal =
g_apclDevice[iDeviceId]->getRawMotorCurrent( iModuleId, piValue );
2260 int iRetVal =
g_apclDevice[iDeviceId]->getRawMotorSupply( iModuleId, piValue );
2272 int iRetVal =
g_apclDevice[iDeviceId]->getRawTemperature( iModuleId, piValue );
2284 int iRetVal =
g_apclDevice[iDeviceId]->getRawLogicSupply( iModuleId, piValue );
2296 int iRetVal =
g_apclDevice[iDeviceId]->getCanOpenRawAbsEnc( iModuleId, piValue );
2308 int iRetVal =
g_apclDevice[iDeviceId]->getLoadLimit( iModuleId, piValue );
2320 int iRetVal =
g_apclDevice[iDeviceId]->getMaxLoadGradient( iModuleId, piValue );
2332 int iRetVal =
g_apclDevice[iDeviceId]->getLoadDeltaTime( iModuleId, piValue );
2344 int iRetVal =
g_apclDevice[iDeviceId]->setLoadLimit( iModuleId, iValue );
2356 int iRetVal =
g_apclDevice[iDeviceId]->setMaxLoadGradient( iModuleId, iValue );
2368 int iRetVal =
g_apclDevice[iDeviceId]->setLoadDeltaTime( iModuleId, iValue );
2380 int iRetVal =
g_apclDevice[iDeviceId]->saveParameters( iModuleId );
2392 int iRetVal =
g_apclDevice[iDeviceId]->getDefCANBaudRate( iModuleId, pucValue );
2404 int iRetVal =
g_apclDevice[iDeviceId]->getDefRSBaudRate( iModuleId, pucValue );
2416 int iRetVal =
g_apclDevice[iDeviceId]->setDefGearRatio( iModuleId, fValue );
2428 int iRetVal =
g_apclDevice[iDeviceId]->setDefLinRatio( iModuleId, fValue );
2440 int iRetVal =
g_apclDevice[iDeviceId]->setDefCurRatio( iModuleId, fValue );
2452 int iRetVal =
g_apclDevice[iDeviceId]->setDefHomeAcc( iModuleId, fValue );
2464 int iRetVal =
g_apclDevice[iDeviceId]->setModuleSerialNo( iModuleId, uiValue );
2476 int iRetVal =
g_apclDevice[iDeviceId]->setDefIncPerTurn( iModuleId, uiValue );
2488 int iRetVal =
g_apclDevice[iDeviceId]->setDefBrakeTimeOut( iModuleId, uiValue );
2500 int iRetVal =
g_apclDevice[iDeviceId]->setDefAddress( iModuleId, uiValue );
2512 int iRetVal =
g_apclDevice[iDeviceId]->setDefCANBaudRate( iModuleId, uiValue );
2524 int iRetVal =
g_apclDevice[iDeviceId]->setDefRSBaudRate( iModuleId, uiValue );
2536 int iRetVal =
g_apclDevice[iDeviceId]->setDefSetup( iModuleId, uiValue );
2548 int iRetVal =
g_apclDevice[iDeviceId]->getMotorCurrent( iModuleId, pfValue );
2560 int iRetVal =
g_apclDevice[iDeviceId]->getMotorSupply( iModuleId, pfValue );
2572 int iRetVal =
g_apclDevice[iDeviceId]->getTemperature( iModuleId, pfValue );
2584 int iRetVal =
g_apclDevice[iDeviceId]->getLogicSupply( iModuleId, pfValue );
2596 int iRetVal =
g_apclDevice[iDeviceId]->getMinLogicVoltage( iModuleId, pfValue );
2608 int iRetVal =
g_apclDevice[iDeviceId]->getMaxLogicVoltage( iModuleId, pfValue );
2620 int iRetVal =
g_apclDevice[iDeviceId]->getMinMotorVoltage( iModuleId, pfValue );
2632 int iRetVal =
g_apclDevice[iDeviceId]->getMaxMotorVoltage( iModuleId, pfValue );
2644 int iRetVal =
g_apclDevice[iDeviceId]->getNominalMotorCurrent( iModuleId, pfValue );
2656 int iRetVal =
g_apclDevice[iDeviceId]->getMaximumMotorCurrent( iModuleId, pfValue );
2668 int iRetVal =
g_apclDevice[iDeviceId]->getLogicUndershootTime( iModuleId, piValue );
2680 int iRetVal =
g_apclDevice[iDeviceId]->getLogicOvershootTime( iModuleId, piValue );
2692 int iRetVal =
g_apclDevice[iDeviceId]->getMotorUndershootTime( iModuleId, piValue );
2704 int iRetVal =
g_apclDevice[iDeviceId]->getMotorOvershootTime( iModuleId, piValue );
2716 int iRetVal =
g_apclDevice[iDeviceId]->getNomCurOvershootTime( iModuleId, piValue );
2728 int iRetVal =
g_apclDevice[iDeviceId]->getHMaxCurOvershootTime( iModuleId, piValue );
2740 int iRetVal =
g_apclDevice[iDeviceId]->setMinLogicVoltage( iModuleId, fValue );
2752 int iRetVal =
g_apclDevice[iDeviceId]->setMaxLogicVoltage( iModuleId, fValue );
2764 int iRetVal =
g_apclDevice[iDeviceId]->setMinMotorVoltage( iModuleId, fValue );
2776 int iRetVal =
g_apclDevice[iDeviceId]->setMaxMotorVoltage( iModuleId, fValue );
2788 int iRetVal =
g_apclDevice[iDeviceId]->setNominalMotorCurrent( iModuleId, fValue );
2800 int iRetVal =
g_apclDevice[iDeviceId]->setMaximumMotorCurrent( iModuleId, fValue );
2812 int iRetVal =
g_apclDevice[iDeviceId]->setLogicUndershootTime( iModuleId, iValue );
2824 int iRetVal =
g_apclDevice[iDeviceId]->setLogicOvershootTime( iModuleId, iValue );
2836 int iRetVal =
g_apclDevice[iDeviceId]->setMotorUndershootTime( iModuleId, iValue );
2848 int iRetVal =
g_apclDevice[iDeviceId]->setMotorOvershootTime( iModuleId, iValue );
2860 int iRetVal =
g_apclDevice[iDeviceId]->setNomCurOvershootTime( iModuleId, iValue );
2872 int iRetVal =
g_apclDevice[iDeviceId]->setHMaxCurOvershootTime( iModuleId, iValue );
2884 int iRetVal =
g_apclDevice[iDeviceId]->getKpPWMLimit( iModuleId, piValue );
2896 int iRetVal =
g_apclDevice[iDeviceId]->getCurrentLimit( iModuleId, pfValue );
2908 int iRetVal =
g_apclDevice[iDeviceId]->getMaxPWMOutput( iModuleId, piValue );
2920 int iRetVal =
g_apclDevice[iDeviceId]->setKpPWMLimit( iModuleId, iValue );
2932 int iRetVal =
g_apclDevice[iDeviceId]->setCurrentLimit( iModuleId, fValue );
M5DLL_API int WINAPI PCube_getDefHomeOffset(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getDataEMS_DIO(int iDeviceId, int iModuleId, int iChannelId, int *pData)
M5DLL_API int WINAPI PCube_setLoadDeltaTime(int iDeviceId, int iModuleId, unsigned short iValue)
M5DLL_API int WINAPI PCube_getMotorSupply(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_setInitMP55_IO_fast(int iDeviceId, int iModuleId)
M5DLL_API int WINAPI PCube_resetAll(int iDeviceId)
M5DLL_API int WINAPI PCube_getDataSCHUNK_FTC(int iDeviceId, int iModulId, int iChannelTypeId, float *fVal0, float *fVal1, float *fVal2, float *fVal3, float *fVal4, float *fVal5, short *piState)
M5DLL_API int WINAPI PCube_setLogicUndershootTime(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_moveStepInc(int iDeviceId, int iModuleId, long iPos, unsigned short uiTime)
M5DLL_API int WINAPI PCube_getMaxCur(int iDeviceId, int iModuleId, float *pfValue)
void setDebug(bool bFlag)
M5DLL_API int WINAPI PCube_closeDevices(void)
M5DLL_API int WINAPI PCube_getVelInc(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_getMaxPos(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getKpPWMLimit(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_waitForRampEnd(int iDeviceId, int iModuleId, unsigned long uiTime)
M5DLL_API int WINAPI PCube_getDefBrakeTimeOut(int iDeviceId, int iModuleId, unsigned short *puiValue)
M5DLL_API int WINAPI PCube_getLogicUndershootTime(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_setMaxCur(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_setKpPWMLimit(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_setMaxPos(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_getModuleIdMap(int iDeviceId, int *aiIdMap)
M5DLL_API int WINAPI PCube_getVel(int iDeviceId, int iModuleId, float *pfVel)
M5DLL_API int WINAPI PCube_getMaxDeltaPos(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_setHMaxCurOvershootTime(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_getMaxLogicVoltage(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getDataDLR_FTS(int iDeviceId, float *fVal0, float *fVal1, float *fVal2, float *fVal3, float *fVal4, float *fVal5, long *piState)
M5DLL_API int WINAPI PCube_setDefCANBaudRate(int iDeviceId, int iModuleId, unsigned char uiValue)
#define ERRID_DEV_NOINITSTRING
M5DLL_API int WINAPI PCube_getMaxPosInc(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_setMaxLoadGradient(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_getModuleSerialNo(int iDeviceId, int iModuleId, unsigned long *puiValue)
M5DLL_API int WINAPI PCube_moveCurExtended(int iDeviceId, int iModuleId, float fCur, unsigned long *puiState, unsigned char *pucDio, float *pfPos)
M5DLL_API int WINAPI PCube_getRawTemperature(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_getDefConfig(int iDeviceId, int iModuleId, unsigned long *puiValue)
M5DLL_API int WINAPI PCube_resetModule(int iDeviceId, int iModuleId)
#define ERRID_DEV_WRONGDEVICEID
M5DLL_API int WINAPI PCube_getMaxAcc(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getDefMaxCur(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getMaxPWMOutput(int iDeviceId, int iModuleId, long *piValue)
#define ERRID_DEV_OPENINIFILE
M5DLL_API int WINAPI PCube_getDefA0(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_getDefIncPerTurn(int iDeviceId, int iModuleId, unsigned long *puiValue)
M5DLL_API int WINAPI PCube_setModuleSerialNo(int iDeviceId, int iModuleId, unsigned long uiValue)
M5DLL_API int WINAPI PCube_setLogicOvershootTime(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_homeModule(int iDeviceId, int iModuleId)
M5DLL_API int WINAPI PCube_getModuleState(int iDeviceId, int iModuleId, unsigned long *puiState)
M5DLL_API int WINAPI PCube_setHomeVelInc(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_getMinLogicVoltage(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API const char *WINAPI PCube_getDeviceName(int iDeviceId)
M5DLL_API int WINAPI PCube_setNullSCHUNK_FTC(int iDeviceId, int iModulId, short *piState)
M5DLL_API const char *WINAPI PCube_getDeviceInitString(int iDeviceId)
M5DLL_API int WINAPI PCube_setMaxVelInc(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_getNominalMotorCurrent(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_moveStep(int iDeviceId, int iModuleId, float fPos, unsigned short uiTime)
M5DLL_API int WINAPI PCube_setDefHomeAcc(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_moveCurInc(int iDeviceId, int iModuleId, long iCur)
M5DLL_API int WINAPI PCube_setMinPos(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_getModuleVersion(int iDeviceId, int iModuleId, unsigned short *puiValue)
M5DLL_API int WINAPI PCube_getRawMotorSupply(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_setMaxLogicVoltage(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_getDefGearRatio(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_serveWatchdogAll(int iDeviceId)
M5DLL_API int WINAPI PCube_getLoadLimit(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_getDefMaxVel(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_setTaraMP55_IO(int iDeviceId, int iModuleId, float fData)
M5DLL_API int WINAPI PCube_moveVelInc(int iDeviceId, int iModuleId, long iVel)
M5DLL_API int WINAPI PCube_waitForRampSteady(int iDeviceId, int iModuleId, unsigned long uiTime)
M5DLL_API int WINAPI PCube_setRampAcc(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_configFromFile(const char *acFileName)
M5DLL_API int WINAPI PCube_getDamp(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_setMaxPosInc(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_getModuleCount(int iDeviceId)
M5DLL_API int WINAPI PCube_getIPolVel(int iDeviceId, int iModuleId, float *pValue)
#define ERRID_DEV_NOTINITIALIZED
M5DLL_API int WINAPI PCube_setMotorUndershootTime(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_setNominalMotorCurrent(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_getIncRatio(int iDeviceId, int iModuleId, float *pValue)
M5DLL_API int WINAPI PCube_setRampVelInc(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_movePosInc(int iDeviceId, int iModuleId, long iPos)
M5DLL_API int WINAPI PCube_getCurInc(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_setDefBrakeTimeOut(int iDeviceId, int iModuleId, unsigned short uiValue)
M5DLL_API int WINAPI PCube_waitForHomeEnd(int iDeviceId, int iModuleId, unsigned long uiTime)
M5DLL_API int WINAPI PCube_setHomeOffsetInc(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_getNomCurOvershootTime(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_closeDevice(int iDeviceId)
M5DLL_API int WINAPI PCube_setSyncTime(int iDeviceId, int iModuleId, short iValue)
M5DLL_API int WINAPI PCube_getDeviceIdMap(int *aiIdMap)
M5DLL_API int WINAPI PCube_getDefBurnCount(int iDeviceId, int iModuleId, unsigned char *pucValue)
M5DLL_API int WINAPI PCube_getCanOpenRawAbsEnc(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_moveVelExtended(int iDeviceId, int iModuleId, float fCur, unsigned long *puiState, unsigned char *pucDio, float *pfPos)
M5DLL_API int WINAPI PCube_getDefBaudRate(int iDeviceId, int iModuleId, unsigned char *pucValue)
M5DLL_API int WINAPI PCube_setMaxVel(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_getDataMP55_IO(int iDeviceId, int iModuleId, float *pfData)
M5DLL_API int WINAPI PCube_getDefRSBaudRate(int iDeviceId, int iModuleId, unsigned char *pucValue)
M5DLL_API int WINAPI PCube_haltAll(int iDeviceId)
M5DLL_API int WINAPI PCube_getDllVersion()
M5DLL_API int WINAPI PCube_setC0(int iDeviceId, int iModuleId, short iValue)
M5DLL_API int WINAPI PCube_setBaudRateAll(int iDeviceId, unsigned char ucValue)
M5DLL_API int WINAPI PCube_getMaxLoadGradient(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_setMinMotorVoltage(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_haltModule(int iDeviceId, int iModuleId)
M5DLL_API int WINAPI PCube_getModuleType(int iDeviceId, int iModuleId, unsigned char *pucValue)
M5DLL_API int WINAPI PCube_homeAll(int iDeviceId)
M5DLL_API int WINAPI PCube_setDefSetup(int iDeviceId, int iModuleId, unsigned long uiValue)
M5DLL_API int WINAPI PCube_setMinLogicVoltage(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_doInternal(int iDeviceId, int iModuleId, void *pBytes)
M5DLL_API int WINAPI PCube_setLoadLimit(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_getDefMinPos(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getA0(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_getStateDioPos(int iDeviceId, int iModuleId, unsigned long *puiState, unsigned char *pucDio, float *pfPos)
M5DLL_API int WINAPI PCube_getDefCurRatio(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getHomeVelInc(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_waitForRampEndAll(int iDeviceId, unsigned long uiTime)
void warning(const char *pcWarningMessage,...) const
M5DLL_API int WINAPI PCube_getMaxVelInc(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_moveStepExtended(int iDeviceId, int iModuleId, float fPos, unsigned short uiTime, unsigned long *puiState, unsigned char *pucDio, float *pfPos)
static std::vector< CDevice * > g_apclDevice
M5DLL_API int WINAPI PCube_moveRamp(int iDeviceId, int iModuleId, float fPos, float fVel, float fAcc)
M5DLL_API int WINAPI PCube_getMinPosInc(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_getMaxMotorVoltage(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_saveParameters(int iDeviceId, int iModuleId)
void setDebugLevel(int iLevel)
M5DLL_API int WINAPI PCube_xack8Bytes(int iDeviceId, int iModuleId, void *pBytes)
M5DLL_API int WINAPI PCube_setConfig(int iDeviceId, int iModuleId, unsigned long puiValue)
M5DLL_API int WINAPI PCube_getDefSetup(int iDeviceId, int iModuleId, unsigned long *puiValue)
M5DLL_API int WINAPI PCube_setMaximumMotorCurrent(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_setCurrentLimit(int iDeviceId, int iModuleId, float fValue)
void setDebugFile(bool bFlag)
M5DLL_API int WINAPI PCube_setMaxDeltaPosInc(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_setDefLinRatio(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_getRawLogicSupply(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_setDllDebug(int iDebug, int iDebugLevel, int iDebugFile)
M5DLL_API int WINAPI PCube_setNomCurOvershootTime(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_getC0(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_moveRampInc(int iDeviceId, int iModuleId, long iPos, long iVel, long iAcc)
M5DLL_API int WINAPI PCube_setDamp(int iDeviceId, int iModuleId, short iValue)
M5DLL_API int WINAPI PCube_getCur(int iDeviceId, int iModuleId, float *pfCur)
M5DLL_API int WINAPI PCube_getDeltaPosInc(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_openDevice(int *piDeviceId, const char *acInitString)
void debug(const int iDebugLevel, const char *pcDebugMessage,...) const
M5DLL_API int WINAPI PCube_getMaximumMotorCurrent(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getDioData(int iDeviceId, int iModuleId, unsigned long *puiValue)
M5DLL_API int WINAPI PCube_getMotorOvershootTime(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_getDefDioData(int iDeviceId, int iModuleId, unsigned long *puiValue)
M5DLL_API int WINAPI PCube_getDefDamp(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_getHomeVel(int iDeviceId, int iModuleId, float *pValue)
M5DLL_API const char *WINAPI PCube_getDeviceRevision(int iDeviceId)
M5DLL_API int WINAPI PCube_initEMS_IO(int iDeviceId, unsigned char ucType, unsigned long uiSerialNo)
M5DLL_API int WINAPI PCube_setMotorOvershootTime(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_getDeltaPos(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int g_iM5DebugFile
M5DLL_API int WINAPI PCube_getDefLinearRatio(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_setDefGearRatio(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_waitForRampDec(int iDeviceId, int iModuleId, unsigned long uiTime)
M5DLL_API int WINAPI PCube_setA0(int iDeviceId, int iModuleId, short iValue)
M5DLL_API int WINAPI PCube_moveRampExtended(int iDeviceId, int iModuleId, float fPos, float fVel, float fAcc, unsigned long *puiState, unsigned char *pucDio, float *pfPos)
M5DLL_API int WINAPI PCube_waitForStartMotionAll(int iDeviceId)
M5DLL_API int WINAPI PCube_setDeviceDebug(int iDeviceId, int iDebug, int iDebugLevel, int iDebugFile)
M5DLL_API int WINAPI PCube_getDefC0(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_getLoadDeltaTime(int iDeviceId, int iModuleId, unsigned short *piValue)
int util_searchString(const char *acSectionName, const char *acKeyName, const char *acDefaultString, char *acReturnString, int iSize, const char *acFileName)
M5DLL_API int WINAPI PCube_getMaxDeltaPosInc(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_getHomeOffsetInc(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_setMaxAcc(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_setDefAddress(int iDeviceId, int iModuleId, unsigned char uiValue)
M5DLL_API int WINAPI PCube_movePosExtended(int iDeviceId, int iModuleId, float fPos, unsigned long *puiState, unsigned char *pucDio, float *pfPos)
M5DLL_API int WINAPI PCube_xmit8Bytes(int iDeviceId, int iModuleId, void *pBytes)
M5DLL_API int WINAPI PCube_getDefMaxPos(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_setHomeVel(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_movePos(int iDeviceId, int iModuleId, float fPos)
M5DLL_API int WINAPI PCube_getTemperature(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getDefHomeVel(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_setHomeOffset(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_recalcPIDParams(int iDeviceId, int iModuleId)
M5DLL_API int WINAPI PCube_getDataEMS_AIO(int iDeviceId, int iModuleId, int iChannelId, float *pfData)
M5DLL_API int WINAPI PCube_setDataEMS_AIO(int iDeviceId, int iModuleId, int iChannelId, float fData)
M5DLL_API int WINAPI PCube_getMinMotorVoltage(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_setMaxMotorVoltage(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_getStateInternal(int iDeviceId, int iModuleId, unsigned long *pStat)
M5DLL_API int WINAPI PCube_moveVel(int iDeviceId, int iModuleId, float fVel)
#define ERRID_DEV_NODEVICENAME
M5DLL_API int WINAPI PCube_getPos(int iDeviceId, int iModuleId, float *pfPos)
M5DLL_API int WINAPI PCube_getPosCountInc(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_waitForHomeEndAll(int iDeviceId, unsigned long uiTime)
M5DLL_API int WINAPI PCube_waitForMotionEnd(int iDeviceId, int iModuleId, unsigned long uiTime)
M5DLL_API int g_iM5DebugLevel
M5DLL_API int WINAPI PCube_getLogicOvershootTime(int iDeviceId, int iModuleId, long *piValue)
CDevice * newDevice(const char *acInitString)
M5DLL_API int WINAPI PCube_getDefCANBaudRate(int iDeviceId, int iModuleId, unsigned char *pucValue)
M5DLL_API int WINAPI PCube_waitForMotionEndAll(int iDeviceId, unsigned long uiTime)
M5DLL_API int WINAPI PCube_getMaxVel(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_setDefRSBaudRate(int iDeviceId, int iModuleId, unsigned char uiValue)
M5DLL_API int WINAPI PCube_startMotionAll(int iDeviceId)
M5DLL_API int WINAPI PCube_getMotorCurrent(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_initDLR_FTS(int iDeviceId)
M5DLL_API int WINAPI PCube_getDeviceCount(void)
M5DLL_API int WINAPI PCube_updateModuleIdMap(int iDeviceId)
M5DLL_API int WINAPI PCube_getSyncTime(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_getHMaxCurOvershootTime(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_setDeviceName(int iDeviceId, const char *acDeviceName)
static std::vector< int > g_aiDeviceRefCount
M5DLL_API int WINAPI PCube_getRawMotorCurrent(int iDeviceId, int iModuleId, short *piValue)
M5DLL_API int WINAPI PCube_getSavePos(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getHomeOffset(int iDeviceId, int iModuleId, float *pValue)
M5DLL_API int WINAPI PCube_savePosAll(int iDeviceId)
M5DLL_API int WINAPI PCube_getDefMaxAcc(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getDataMP55_IO_fast(int iDeviceId, int iModuleId, float *pfData)
M5DLL_API int WINAPI PCube_setMaxDeltaPos(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_setDataEMS_DIO(int iDeviceId, int iModuleId, int iChannelId, int iData)
M5DLL_API int WINAPI PCube_getMaxAccInc(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_getConfig(int iDeviceId, int iModuleId, unsigned long *puiValue)
M5DLL_API int WINAPI PCube_setDefIncPerTurn(int iDeviceId, int iModuleId, unsigned long uiValue)
M5DLL_API int WINAPI PCube_setMinPosInc(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_getDefMaxDeltaPos(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_moveCur(int iDeviceId, int iModuleId, float fCur)
M5DLL_API int WINAPI PCube_setMaxAccInc(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_getLogicSupply(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getMinPos(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_setRampAccInc(int iDeviceId, int iModuleId, long iValue)
M5DLL_API int WINAPI PCube_getCurrentLimit(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_getPosInc(int iDeviceId, int iModuleId, long *piValue)
M5DLL_API int WINAPI PCube_setDioData(int iDeviceId, int iModuleId, unsigned long uiValue)
M5DLL_API int WINAPI PCube_setRampVel(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_getDefCurOffset(int iDeviceId, int iModuleId, float *pfValue)
M5DLL_API int WINAPI PCube_setDefCurRatio(int iDeviceId, int iModuleId, float fValue)
M5DLL_API int WINAPI PCube_getMotorUndershootTime(int iDeviceId, int iModuleId, long *piValue)