Merge branch 'release/AddDisableDynDataRangeCheck'

This commit is contained in:
2022-06-15 11:47:04 +02:00
3 changed files with 18 additions and 4 deletions
+15 -1
View File
@@ -2563,7 +2563,7 @@ namespace IOB_WIN_NEXT
// controllo contatore invio "keepalive"... invio solo a scadenza
if (DateTime.Now.Subtract(lastDisconnCheck).TotalSeconds > utils.CRI("disconMaxSec"))
{
// resetto tutti i vlaori BYTE IN/PREV/OUT... così invio macchina spenta...
// resetto tutti i valori BYTE IN/PREV/OUT... così invio macchina spenta...
B_input = 0;
B_output = 0;
B_previous = 0;
@@ -3628,6 +3628,12 @@ namespace IOB_WIN_NEXT
#endregion Public Methods
#region Internal Properties
internal bool disDynDataRangeCheck { get; set; } = false;
#endregion Internal Properties
#region Protected Fields
/// <summary>
@@ -4430,6 +4436,14 @@ namespace IOB_WIN_NEXT
lgError("loadMemConf: parametro ENABLE_SEND_PZC_BLOCK non trovato, verificare anche MAX_SEND_PZC_BLOCK e MIN_SEND_PZC_BLOCK");
}
// disabilitazione controllo range valori DynData
if (!string.IsNullOrEmpty(getOptPar("disDynDataRangeCheck")))
{
bool checkDis = false;
bool.TryParse(getOptPar("disDynDataRangeCheck"), out checkDis);
disDynDataRangeCheck = checkDis;
}
// inizializzo LUT decodifica PARAMETRI
string jsonParams = getOptPar("PARAM_CONF");
if (!string.IsNullOrEmpty(jsonParams))
+2 -2
View File
@@ -626,7 +626,7 @@ namespace IOB_WIN_NEXT
// bit status:
// - allarmi che iniziano per # IGNORATI
// - altri allarmi con un countdown da MAX_COUNTER_BLINK a 0 per il
// fronte di discesa
// fronte di discesa
if (item.isChanged(i, (uint)currStatus))
{
// registro gli allarmi attivi e trasmetto...
@@ -1213,7 +1213,7 @@ namespace IOB_WIN_NEXT
}
// verifica limite... con delta da impianto
dataOk = (valore > (item.Value.minVal + deltaVal) && valore < (item.Value.maxVal - deltaVal));
if (dataOk)
if (dataOk || disDynDataRangeCheck)
{
// moltiplico x fattore conversione...
valoreScal = valore * item.Value.factor;
+1 -1
View File
@@ -549,7 +549,7 @@ namespace IOB_WIN_NEXT
protected DateTime lastCurrent = DateTime.Now;
/// <summary>
/// Oggetto MAIN x connessione MTC
/// Oggetto MAIN x connessione OPC-UA
/// </summary>
protected UAClient UA_ref;