Fix errors on API

Change unload api url
This commit is contained in:
Lucio Maranta
2018-05-24 12:20:51 +02:00
parent d78a209eec
commit f0e483d7aa
8 changed files with 42 additions and 42 deletions
+4 -4
View File
@@ -431,7 +431,7 @@ public static class ThreadsFunctions
ReadAxesNamesTimes++;
// Wait
Thread.Sleep(CalcSleepTime(200, (int)sw.ElapsedMilliseconds));
Thread.Sleep(CalcSleepTime(1000, (int)sw.ElapsedMilliseconds));
}
}
catch (ThreadAbortException)
@@ -497,7 +497,7 @@ public static class ThreadsFunctions
switch (cmsError.errorCode)
{
case CMS_ERROR_CODES.NC_PROD_ERROR:
Manage(ERROR_LEVEL.WARNING, cmsError.message);
Manage(ERROR_LEVEL.WARNING, cmsError.localizationKey);
break;
case CMS_ERROR_CODES.NOT_CONNECTED:
@@ -526,11 +526,11 @@ public static class ThreadsFunctions
break;
case CMS_ERROR_CODES.SIEMENS_ENVIRONMENT_NOT_FOUND:
Manage(ERROR_LEVEL.FATAL, cmsError.message);
Manage(ERROR_LEVEL.FATAL, cmsError.localizationKey);
break;
case CMS_ERROR_CODES.SIEMENS_HMI_NOT_RUNNING:
Manage(ERROR_LEVEL.WARNING, cmsError.message);
Manage(ERROR_LEVEL.WARNING, cmsError.localizationKey);
TryNcConnection(); // If not connected try reconnection
break;
}