estensione check watchdog parametrico
This commit is contained in:
Binary file not shown.
@@ -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++;
|
||||
|
||||
@@ -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++;
|
||||
|
||||
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user