Commentata parte non utilizzata di lettura e testato SOLO con DWord (ma sembra ko)

This commit is contained in:
Samuele Locatelli
2020-04-17 19:53:36 +02:00
parent 01c3a14a0c
commit 5e7f54ec5e
2 changed files with 12 additions and 5 deletions
+7 -3
View File
@@ -285,6 +285,7 @@ namespace EsaCncLib
SCMA_MMan_status.data = new Byte[SCMA_MMan_status.BiteSize];
}
#if false
/// <summary>
/// Thread main execution
/// </summary>
@@ -312,7 +313,8 @@ namespace EsaCncLib
if (Connected) Disconnect();
Finished = true;
}
}
#endif
/// <summary>
/// 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
/// <summary>
/// Reads the buffer.
/// </summary>
@@ -408,7 +411,8 @@ namespace EsaCncLib
ReadBufferByte();
ReadBufferWord();
ReadBufferDWord();
}
}
#endif
/// <summary>
/// Connects to device.
+5 -2
View File
@@ -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...