diff --git a/MTC_Adapter/MTC_Adapter/AdapterSiemens.cs b/MTC_Adapter/MTC_Adapter/AdapterSiemens.cs index 12e5a68..8250a2f 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterSiemens.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterSiemens.cs @@ -1010,13 +1010,14 @@ namespace MTC_Adapter // leggo le posizioni SINO ai 16 assi permessi... +#if false int memIndex = 0; inizio = DateTime.Now; // MODIFICA: leggo float direttamente x posizione assi... float[] axisPosFloat = new float[axisPosData.Length]; SIEMENSMemRW_Float(R, baseMemAx, memIndex, ref axisPosFloat); if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-AXIS_POS", MemBlockTop.Length), DateTime.Now.Subtract(inizio).Ticks); - +#endif inizio = DateTime.Now; // !!!FARE!!! test lettura di TUTTI i dati assi.... @@ -1030,7 +1031,12 @@ namespace MTC_Adapter try { // popolo valori... ipotesi MILLESIMI di mm... CONVERSIONE BigEndianness - newPos = axisPosFloat[i];// axisPosData[i] / 1000; + newPos = ValAssi[i].PosAct; + vettAxis[i].mAxLoad.Value = ValAssi[i].Load; + //vettAxis[i].mAxFeedAct.Value= ValAssi[i].Speed; +#if false + newPos = axisPosFloat[i];// axisPosData[i] / 1000; +#endif // manca LOAD assi #if false