FixOdl x Lasco: toglie inSetup bit

This commit is contained in:
Samuele Locatelli
2023-11-09 11:47:02 +01:00
parent 842a1cd25d
commit 48db0b9b4e
+12 -5
View File
@@ -121,7 +121,6 @@ namespace IOB_WIN_NEXT.IobSiemens
switch (tName)
{
case taskType.nihil:
case taskType.fixStopSetup:
case taskType.forceSetPzCount:
taskVal = $"taskReq: {tName} | key: {item.Key} | val: {item.Value} | SKIPPED | NO EXEC";
break;
@@ -245,6 +244,11 @@ namespace IOB_WIN_NEXT.IobSiemens
forcePzResetUntil = DateTime.Now.AddSeconds(3);
break;
case taskType.fixStopSetup:
// salvo che SONO FUORI DAL SETUP!
inSetup = false;
break;
default:
taskVal = "SKIPPED | NO EXEC";
break;
@@ -274,7 +278,6 @@ namespace IOB_WIN_NEXT.IobSiemens
switch (tName)
{
case taskType.nihil:
case taskType.fixStopSetup:
case taskType.forceResetPzCount:
case taskType.forceSetPzCount:
case taskType.startSetup:
@@ -319,6 +322,11 @@ namespace IOB_WIN_NEXT.IobSiemens
}
break;
case taskType.fixStopSetup:
// salvo che SONO FUORI DAL SETUP!
inSetup = false;
break;
default:
taskVal = "SKIPPED | NO EXEC";
break;
@@ -487,9 +495,8 @@ namespace IOB_WIN_NEXT.IobSiemens
public override void processWhatchDog()
{
// scrivo 1 volta al secondo il contatore incrementale su area apposita
// scrive nel primo byte, ultimo bit, il watchdog,
// mentre scrive nel primo 1 = setup, 0 = run
// scrivo 1 volta al secondo il contatore incrementale su area apposita scrive nel primo
// byte, ultimo bit, il watchdog, mentre scrive nel primo 1 = setup, 0 = run
DateTime adesso = DateTime.Now;
if (adesso.Subtract(lastPLCWatchDog).TotalSeconds > watchDogPeriod)
{