diff --git a/MTC_Adapter/MTC_Adapter/AdapterOsai.cs b/MTC_Adapter/MTC_Adapter/AdapterOsai.cs index 29aba7e..dcb9a3a 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterOsai.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterOsai.cs @@ -1040,18 +1040,24 @@ namespace MTC_Adapter { // salvo!!! come path#nome axisDict.Add(string.Format("{0}#{1}", i, axisTable[j]), currId); - // solo se HO UN NOME valido x asse... - if (axisTable[j] != null && axisTable[j] != '-' && axisTable[j] != '\0') - try + // se conf di leggere nome/path asse.. + if (utils.CRB("enableAxNamePath")) + { + // solo se HO UN NOME valido x asse... + if (axisTable[j] != null && axisTable[j] != '-' && axisTable[j] != '\0') { - // salvo (per ID) descr asse e processo corrente! - vettAxis[currId].mAxDescr.Value = axisTable[j]; - vettAxis[currId].mAxMainProc.Value = i; - } - catch (Exception exc) - { - lg.Error(exc, string.Format("Eccezione in salvataggio nome/path asse num {0}", currId)); + try + { + // salvo (per ID) descr asse e processo corrente! + vettAxis[currId - 1].mAxDescr.Value = axisTable[j]; + vettAxis[currId - 1].mAxMainProc.Value = i; + } + catch (Exception exc) + { + lg.Error(exc, string.Format("Eccezione in salvataggio nome/path asse num {0}", currId)); + } } + } } } } diff --git a/MTC_Adapter/MTC_Adapter/App.config b/MTC_Adapter/MTC_Adapter/App.config index 8dd1570..01d7244 100644 --- a/MTC_Adapter/MTC_Adapter/App.config +++ b/MTC_Adapter/MTC_Adapter/App.config @@ -21,6 +21,8 @@ + +