Added NC Reading

This commit is contained in:
Thermo_SIM
2021-03-19 22:19:49 +01:00
parent 2a4c0e8335
commit f7ff6629ce
+18
View File
@@ -2561,6 +2561,24 @@ namespace Thermo.Active.NC
lastProdStart = DateTime.Now;
}
ThermoModels.HistorySheet shhetRaw = new ThermoModels.HistorySheet();
libraryError = numericalControl.PLC_RHistorySheets(ref shhetRaw);
if(shhetRaw.newData)
{
using (HistorySheetsController HSC = new HistorySheetsController())
{
HSC.Create(NcFileAdapter.RecipeLiveData.RecipeName, prodInfoData.NumDone, (float) shhetRaw.Value1, (float) shhetRaw.Value2, (float) shhetRaw.Value3);
// manage strobe/ack!
libraryError = numericalControl.PLC_WAckHistorySheets();
if (libraryError.IsError())
return libraryError;
}
}
return libraryError;
}