diff --git a/MTC_Adapter/SCMA/AdapterGeneric.cs b/MTC_Adapter/SCMA/AdapterGeneric.cs index 21b2c2c..93f2f18 100644 --- a/MTC_Adapter/SCMA/AdapterGeneric.cs +++ b/MTC_Adapter/SCMA/AdapterGeneric.cs @@ -2594,11 +2594,6 @@ namespace SCMA { string tipoAsse = ""; string direzione = ""; -#if false - // controllo se tipo MTC/SOUR - if (currGateway.protocollo != gwProtocol.SOURS) - { -#endif try { tipoAsse = currGateway.getItemNode(vettAxis[i].typeKey).ToString(); @@ -2610,10 +2605,7 @@ namespace SCMA } catch { } -#if false - } -#endif - if (tipoAsse == "") + if (tipoAsse == "" || tipoAsse == "OPC_UA_REDIS.DataItemRed") { // recupero info TIPO ASSE List> drl = vettAxis[i].dataRefList; @@ -2638,7 +2630,7 @@ namespace SCMA direzione = (newDir > 0) ? "POSITIVE" : "NEGATIVE"; } } - else + else if (tipoAsse == "ROTATIONAL") { if (currGateway.protocollo == gwProtocol.SOURS) {