Added NC Reading
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user