Correzione gestione veto in general, fix riscrittura OPC-UA params
This commit is contained in:
@@ -1572,13 +1572,13 @@ namespace IOB_WIN_FORM
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!TimerMachine.Veto.ContainsKey(item))
|
||||
if (!TimerServer.Veto.ContainsKey(item))
|
||||
{
|
||||
TimerMachine.Veto.Add(item, adesso.AddMilliseconds(iobObj.IOBConfFull.TimerMs(item, 0)));
|
||||
TimerServer.Veto.Add(item, adesso.AddMilliseconds(iobObj.IOBConfFull.TimerMs(item, 0)));
|
||||
}
|
||||
if (!TimerMachine.CycleCount.ContainsKey(item))
|
||||
if (!TimerServer.CycleCount.ContainsKey(item))
|
||||
{
|
||||
TimerMachine.CycleCount.Add(item, 0);
|
||||
TimerServer.CycleCount.Add(item, 0);
|
||||
}
|
||||
if (!TimerServer.CycleElaps.ContainsKey(item))
|
||||
{
|
||||
|
||||
@@ -970,7 +970,7 @@ namespace IOB_WIN_FORM.Iob
|
||||
// verifica se ci siano richieste da eseguire
|
||||
if (QHelp.QueueSrvReq.Count > 0)
|
||||
{
|
||||
if (MPOnline)
|
||||
if (MPOnline || true)
|
||||
{
|
||||
if (IobOnline)
|
||||
{
|
||||
@@ -9023,7 +9023,10 @@ namespace IOB_WIN_FORM.Iob
|
||||
foreach (var item in IOBConfFull.Device.MultiIobList)
|
||||
{
|
||||
resp = await getTask2exe(item);
|
||||
accodaServReq(item, resp);
|
||||
if (!string.IsNullOrEmpty(resp) && resp.Length > 2)
|
||||
{
|
||||
accodaServReq(item, resp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace IOB_WIN_OPC_UA.IobOpc
|
||||
}
|
||||
if (resetTav)
|
||||
{
|
||||
// attendo 1 sec
|
||||
// attendo 1000ms
|
||||
Thread.Sleep(1000);
|
||||
// mando chiusura...
|
||||
foreach (var item in IOBConfFull.Device.MultiIobList)
|
||||
@@ -140,7 +140,7 @@ namespace IOB_WIN_OPC_UA.IobOpc
|
||||
}
|
||||
}
|
||||
}
|
||||
lgInfo("Aggiunti task reset contapezzi (ex EMCO) tramite forceSetPzCount e forceResetPzCount");
|
||||
lgInfo("Aggiunti task reset contapezzi (ex EMCO/SW) tramite forceSetPzCount e forceResetPzCount");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ namespace IOB_WIN_OPC_UA.IobOpc
|
||||
{
|
||||
lgInfo("OpcUaSiemens.resetContapezziPLC 02");
|
||||
// imposto un veto in lettura cmq x evitare problemi
|
||||
DtHelp.dtVetoReadPzCount = DateTime.Now.AddMinutes(delayMinReadPzCount);
|
||||
DtHelp.dtVetoReadPzCount = DateTime.Now.AddMinutes(delayMinReadPzCount);
|
||||
if (opcUaParams.actResetCounter != null && opcUaParams.actResetCounter.Count > 0)
|
||||
{
|
||||
lgInfo("OpcUaSiemens.resetContapezziPLC 03");
|
||||
|
||||
Reference in New Issue
Block a user