update IobConbf x nuovo valore scaduto resent disabilitabile
This commit is contained in:
@@ -47,6 +47,11 @@ namespace IOB_UT_NEXT.Config.Base
|
||||
/// </summary>
|
||||
public bool DisabSigIn { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Indica che sono disabilitati i resend alla scadenza del periodo di controllo anche in mancanza di variazione (tipicametne x gli adapter secondari come PING)
|
||||
/// </summary>
|
||||
public bool DisabResendScaduto { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Indica che sono disabilitate le fasi controllo stato/semafori (tipicamente x impianti
|
||||
/// con PLC "suddivisi", PLC + HMI)
|
||||
|
||||
@@ -250,6 +250,7 @@ namespace IOB_UT_NEXT.Config
|
||||
DisabPing = bool.Parse(fIni.ReadString("OPTPAR", "NO_PING", "false")),
|
||||
DisabStateCh = bool.Parse(fIni.ReadString("IOB", "DIS_STATE_CH", "false")),
|
||||
DisabSigIn = bool.Parse(fIni.ReadString("OPTPAR", "VETO_SIG_IN", "false")),
|
||||
DisabResendScaduto = bool.Parse(fIni.ReadString("OPTPAR", "VETO_SCADUTO", "false")),
|
||||
EnabMemRewrite = bool.Parse(fIni.ReadString("OPTPAR", "ENABLE_MEM_REWRITE", "true")),
|
||||
EnabProgName = bool.Parse(fIni.ReadString("CNC", "GETPRGNAME", "true")),
|
||||
EnabPzCount = utils.CRB("enableContapezzi"),
|
||||
@@ -295,6 +296,7 @@ namespace IOB_UT_NEXT.Config
|
||||
exclOptPar.Add("SET_NUM_COM");
|
||||
exclOptPar.Add("VETO_QUEUE_IN");
|
||||
exclOptPar.Add("VETO_SIG_IN");
|
||||
exclOptPar.Add("VETO_SCADUTO");
|
||||
|
||||
// multi...
|
||||
if (!string.IsNullOrEmpty(fIni.ReadString("OPTPAR", "IS_MULTI", "false")))
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using EgwProxy.Ftp;
|
||||
using IOB_UT_NEXT;
|
||||
using IOB_UT_NEXT.Config;
|
||||
using MapoSDK;
|
||||
using Newtonsoft.Json;
|
||||
using NLog;
|
||||
@@ -4548,7 +4549,7 @@ namespace IOB_WIN_FORM.Iob
|
||||
// + di un timeout di controllo...
|
||||
DateTime adesso = DateTime.Now;
|
||||
bool scaduto = Math.Abs(adesso.Subtract(lastSigVarSent).TotalSeconds) > lastSigVarVeto;
|
||||
if (B_output != B_previous || scaduto)
|
||||
if (B_output != B_previous || (scaduto && !IOBConfFull.Device.DisabResendScaduto))
|
||||
{
|
||||
lgDebug($"processAllMemory | B_output: {B_output} | B_previous: {B_previous}");
|
||||
accodaSigIN(ref currDispData);
|
||||
|
||||
@@ -49,6 +49,7 @@ VETO_SIG_IN=false
|
||||
B_IN_OFF=0
|
||||
B_IN_ON=129
|
||||
VETO_PING_SEC=6
|
||||
VETO_SCADUTO=TRUE
|
||||
|
||||
[BRANCH]
|
||||
NAME=master
|
||||
|
||||
@@ -51,6 +51,7 @@ VETO_SIG_IN=false
|
||||
B_IN_OFF=0
|
||||
B_IN_ON=1
|
||||
VETO_PING_SEC=6
|
||||
VETO_SCADUTO=TRUE
|
||||
|
||||
;abbasso freq di base gestione
|
||||
timerIntMs=250
|
||||
|
||||
@@ -49,6 +49,7 @@ VETO_SIG_IN=false
|
||||
B_IN_OFF=0
|
||||
B_IN_ON=1
|
||||
VETO_PING_SEC=6
|
||||
VETO_SCADUTO=TRUE
|
||||
|
||||
|
||||
[BRANCH]
|
||||
|
||||
Reference in New Issue
Block a user