From 5e7f54ec5ebbf98807bbdd79fac3d2decdf86a6d Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 17 Apr 2020 19:53:36 +0200 Subject: [PATCH] Commentata parte non utilizzata di lettura e testato SOLO con DWord (ma sembra ko) --- MTC_Adapter/EsaCncLib/thdNcEsaGvKvara.cs | 10 +++++++--- MTC_Adapter/SCMA/AdapterPLC/CMS/EsaKosmos.cs | 7 +++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/MTC_Adapter/EsaCncLib/thdNcEsaGvKvara.cs b/MTC_Adapter/EsaCncLib/thdNcEsaGvKvara.cs index 55b2107..fe18489 100644 --- a/MTC_Adapter/EsaCncLib/thdNcEsaGvKvara.cs +++ b/MTC_Adapter/EsaCncLib/thdNcEsaGvKvara.cs @@ -285,6 +285,7 @@ namespace EsaCncLib SCMA_MMan_status.data = new Byte[SCMA_MMan_status.BiteSize]; } +#if false /// /// Thread main execution /// @@ -312,7 +313,8 @@ namespace EsaCncLib if (Connected) Disconnect(); Finished = true; - } + } +#endif /// /// Leggo i buffer di memorie BYTE @@ -362,7 +364,7 @@ namespace EsaCncLib private void readConvWord(EsaWordMem currData) { // variabili di appoggio - TS_REG newTsReg = currData.AddresReg;// new TS_REG(); + TS_REG newTsReg = currData.AddresReg; // effettuo lettura! iError = read_regbuffer(ref newTsReg, 0, currData.BiteSize, currData.tempData); currData.AddresReg = newTsReg; @@ -400,6 +402,7 @@ namespace EsaCncLib } +#if false /// /// Reads the buffer. /// @@ -408,7 +411,8 @@ namespace EsaCncLib ReadBufferByte(); ReadBufferWord(); ReadBufferDWord(); - } + } +#endif /// /// Connects to device. diff --git a/MTC_Adapter/SCMA/AdapterPLC/CMS/EsaKosmos.cs b/MTC_Adapter/SCMA/AdapterPLC/CMS/EsaKosmos.cs index 1c14ea9..b0e4c13 100644 --- a/MTC_Adapter/SCMA/AdapterPLC/CMS/EsaKosmos.cs +++ b/MTC_Adapter/SCMA/AdapterPLC/CMS/EsaKosmos.cs @@ -590,9 +590,12 @@ namespace SCMA.AdapterPLC.CMS parentForm.dataMonitor_2 = ""; parentForm.dataMonitor_3 = ""; - // recupero le varie memorie (prima string che mi serve x area selezionata --> programma selezionato) + // recupero le varie memorie + //2020.04.17 commentato x ridurre solo a DWord +#if false getIotMem_Byte(); - getIotMem_Word(); + getIotMem_Word(); +#endif getIotMem_DWord(); // processo componenti specifici x info...