Fix errors on API
Change unload api url
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user