fix emergenza beckhoff

This commit is contained in:
Samuele Locatelli
2021-11-03 11:33:54 +01:00
parent c9c9c9fddd
commit 36d58a57b6
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ namespace IOB_WIN_NEXT
}
catch (Exception exc)
{
lgError(exc, "Errore in getDynData x Siemens PLC");
lgError(exc, "Errore in getDynData x BeckHoff PLC");
}
}
else
+5 -1
View File
@@ -254,6 +254,9 @@ namespace IOB_WIN_NEXT
B_input = 0;
currDispData.semIn = Semaforo.SR;
}
// indico emergenza ARMATA
B_input += (1 << 7);
// in base all'enum di status compilo valori...
switch (currStatus)
{
@@ -270,7 +273,8 @@ namespace IOB_WIN_NEXT
break;
case 3:
B_input += (1 << 7);
// tolgo emergenza SE fosse premuta (force zero)
B_input &= ~(1 << 7);
break;
case 1: