This commit is contained in:
Lucio Maranta
2019-04-09 15:29:27 +00:00
parent 7f2abf6ea7
commit 6a08ce0aff
+5 -5
View File
@@ -156,6 +156,11 @@ namespace CMS_CORE_Library.Siemens
// Try to get information
try
{
//Check if Siemens Environment is started
CmsError cmsError = CheckSiemensEnv();
if (cmsError.IsError())
return cmsError;
// InitializeSiemens objects
if (AxesSvc == null)
AxesSvc = new DataSvc();
@@ -175,11 +180,6 @@ namespace CMS_CORE_Library.Siemens
});
}
//Check if Siemens Environment is started
CmsError cmsError = CheckSiemensEnv();
if (cmsError.IsError())
return cmsError;
// Set Connected to FALSE and close the session
Connected = true;