Merge branch 'release/UpdateIcoelsIob'
This commit is contained in:
@@ -141,8 +141,11 @@ namespace IOB_WIN_NEXT
|
||||
|
||||
if (dbProxy != null && elencoSyncState != null && elencoSyncState.Count > 0)
|
||||
{
|
||||
B_input = 3;
|
||||
B_input += (1 << 1);
|
||||
}
|
||||
|
||||
// accodo NON emergenza
|
||||
B_input += (1 << 7);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -67,6 +67,11 @@ namespace IOB_WIN_NEXT
|
||||
return base.executeTasks(task2exe);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Dizionario parametri correnti
|
||||
/// </summary>
|
||||
protected Dictionary<string, double> perfParamDict { get; set; } = new Dictionary<string, double>();
|
||||
|
||||
/// <summary>
|
||||
/// Recupero dati dinamici...
|
||||
/// </summary>
|
||||
@@ -75,7 +80,7 @@ namespace IOB_WIN_NEXT
|
||||
// valore non presente in vers default... se gestito fare override
|
||||
Dictionary<string, string> outVal = new Dictionary<string, string>();
|
||||
// recupero da libreria il dizionario dei performance parameters...
|
||||
var perfParamDict = IcoelSizer.GetPerfMeters();
|
||||
perfParamDict = IcoelSizer.GetPerfMeters();
|
||||
lgTrace("SOAP: effettuata chiamata IcoelSizer.GetPerfMeters()");
|
||||
foreach (var item in perfParamDict)
|
||||
{
|
||||
@@ -111,11 +116,6 @@ namespace IOB_WIN_NEXT
|
||||
// se devo inviare impacchetto dati
|
||||
if (doSend)
|
||||
{
|
||||
#if false
|
||||
// accodo per invio...
|
||||
string rawBatch = JsonConvert.SerializeObject(currBatch);
|
||||
accodaRawData(IOB_UT_NEXT.rawTransfType.IcoelBatch, rawBatch);
|
||||
#endif
|
||||
accodaRawData(rawTransfType.IcoelBatch, currBatch);
|
||||
currBatchList = currBatch;
|
||||
}
|
||||
@@ -142,22 +142,39 @@ namespace IOB_WIN_NEXT
|
||||
if (currBatch != null)
|
||||
{
|
||||
currBatchList = currBatch;
|
||||
#if false
|
||||
// accodo invio!
|
||||
string rawBatch = JsonConvert.SerializeObject(currBatch);
|
||||
accodaRawData(IOB_UT_NEXT.rawTransfType.IcoelBatch, currBatch);
|
||||
#endif
|
||||
accodaRawData(rawTransfType.IcoelBatch, currBatch);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//se i perf parameters mi danno valire > 0 x quantità frutta...
|
||||
if (perfParamDict != null && perfParamDict.Count > 0)
|
||||
{
|
||||
if (perfParamDict.ContainsKey("VelFruttiMinuto"))
|
||||
{
|
||||
if (perfParamDict["VelFruttiMinuto"] > 0)
|
||||
{
|
||||
B_input += (1 << 1);
|
||||
}
|
||||
// metto manuale
|
||||
else
|
||||
{
|
||||
B_input += (1 << 4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//usato altro criterio x stato verde da vel frutti minuto
|
||||
#if false
|
||||
// se ho batch NON chiusi (data = minValue) allora lavora
|
||||
if (currBatchList[1].EndTime == DateTime.MinValue || currBatchList[1].EndTime == DateTime.MinValue)
|
||||
{
|
||||
B_input = 3;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
// accodo NON emergenza
|
||||
B_input += (1 << 7);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -270,7 +287,6 @@ namespace IOB_WIN_NEXT
|
||||
{
|
||||
var varietyData = IcoelSizer.GetLayoutForVarietyList(varList);
|
||||
lgTrace("SOAP: effettuata chiamata IcoelSizer.GetLayoutForVarietyList()");
|
||||
// invio dai al server IO
|
||||
}
|
||||
|
||||
lastReadPLC = DateTime.Now;
|
||||
|
||||
@@ -415,7 +415,7 @@ namespace IOB_WIN_NEXT
|
||||
B_input = powerOnOk ? 1 : 0;
|
||||
|
||||
// decodifico da currData
|
||||
if (currData.Varie.InEmergenza)
|
||||
if (!currData.Varie.InEmergenza)
|
||||
{
|
||||
B_input += (1 << 7);
|
||||
}
|
||||
@@ -427,6 +427,7 @@ namespace IOB_WIN_NEXT
|
||||
{
|
||||
B_input += (1 << 3);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// controllo se sono poweroff e se non ho dati buoni da > 2 minuti --> disconnetto
|
||||
|
||||
Reference in New Issue
Block a user