diff --git a/CVCncLib/CVCncLib.dll b/CVCncLib/CVCncLib.dll index 0cf7b395..9551de0f 100644 Binary files a/CVCncLib/CVCncLib.dll and b/CVCncLib/CVCncLib.dll differ diff --git a/IOB-WIN-NEXT/IobSiemensIngenia.cs b/IOB-WIN-NEXT/IobSiemensIngenia.cs index 3a437ced..145bfd45 100644 --- a/IOB-WIN-NEXT/IobSiemensIngenia.cs +++ b/IOB-WIN-NEXT/IobSiemensIngenia.cs @@ -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++; diff --git a/IOB-WIN-NEXT/IobSiemensLasco.cs b/IOB-WIN-NEXT/IobSiemensLasco.cs index cde6f297..90a71f2a 100644 --- a/IOB-WIN-NEXT/IobSiemensLasco.cs +++ b/IOB-WIN-NEXT/IobSiemensLasco.cs @@ -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++; diff --git a/IOB-WIN-NEXT/IobSiemensSaet.cs b/IOB-WIN-NEXT/IobSiemensSaet.cs index b5281266..90f6ead5 100644 --- a/IOB-WIN-NEXT/IobSiemensSaet.cs +++ b/IOB-WIN-NEXT/IobSiemensSaet.cs @@ -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++;