estensione check watchdog parametrico

This commit is contained in:
Samuele Locatelli
2022-03-16 09:49:07 +01:00
parent 5f5134b3d4
commit 3e51011f4b
4 changed files with 4 additions and 4 deletions
Binary file not shown.
+1 -1
View File
@@ -281,7 +281,7 @@ namespace IOB_WIN_NEXT
{
// scrivo 1 volta al secondo il contatore incrementale su area apposita
DateTime adesso = DateTime.Now;
if (adesso.Subtract(lastPLCWatchDog).TotalSeconds > 1)
if (adesso.Subtract(lastPLCWatchDog).TotalSeconds > watchDogPeriod)
{
// incremento
counterMes2Plc++;
+1 -1
View File
@@ -564,7 +564,7 @@ namespace IOB_WIN_NEXT
// 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
DateTime adesso = DateTime.Now;
if (adesso.Subtract(lastPLCWatchDog).TotalSeconds > 1)
if (adesso.Subtract(lastPLCWatchDog).TotalSeconds > watchDogPeriod)
{
// incremento
counterMes2Plc++;
+2 -2
View File
@@ -318,9 +318,9 @@ namespace IOB_WIN_NEXT
public override void processWhatchDog()
{
// scrivo 1 volta al secondo il contatore incrementale su area apposita
// scrivo 1 volta ogni n secondi il contatore incrementale su area apposita
DateTime adesso = DateTime.Now;
if (adesso.Subtract(lastPLCWatchDog).TotalSeconds > 1)
if (adesso.Subtract(lastPLCWatchDog).TotalSeconds > watchDogPeriod)
{
// incremento
counterMes2Plc++;