Merge branch 'release/FixSaimDedup02'
This commit is contained in:
@@ -1982,9 +1982,12 @@ namespace IOB_WIN_NEXT.Iob
|
||||
{
|
||||
string answ = "";
|
||||
// controllo SE HO il parametro
|
||||
if (memMap.optKVP.ContainsKey(key))
|
||||
if (memMap.optKVP != null && memMap.optKVP.Count > 0)
|
||||
{
|
||||
answ = memMap.optKVP[key];
|
||||
if (memMap.optKVP.ContainsKey(key))
|
||||
{
|
||||
answ = memMap.optKVP[key];
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -5345,6 +5348,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
/// </summary>
|
||||
protected virtual void loadMemConf()
|
||||
{
|
||||
lgInfo("loadMemConf.01");
|
||||
lgInfoStartup("BEGIN loadMemConf");
|
||||
// variabili x gestione send contapezzi in blocco
|
||||
string currPar = getOptPar("ENABLE_SEND_PZC_BLOCK");
|
||||
@@ -5362,6 +5366,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
{
|
||||
lgError("loadMemConf: parametro ENABLE_SEND_PZC_BLOCK non trovato, verificare anche MAX_SEND_PZC_BLOCK e MIN_SEND_PZC_BLOCK");
|
||||
}
|
||||
lgInfo("loadMemConf.02");
|
||||
|
||||
// gruppo macchina
|
||||
CodGruppoIob = getOptPar("CodGruppoIob");
|
||||
@@ -5389,6 +5394,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
bool.TryParse(getOptPar("disDynDataRangeCheck"), out checkDis);
|
||||
disDynDataRangeCheck = checkDis;
|
||||
}
|
||||
lgInfo("loadMemConf.03");
|
||||
|
||||
// inizializzo LUT decodifica PARAMETRI
|
||||
string jsonParams = getOptPar("PARAM_CONF");
|
||||
@@ -5401,6 +5407,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
if (!string.IsNullOrEmpty(jsonData))
|
||||
{
|
||||
lgInfoStartup($"File json PARAMETRI composto da {jsonData.Length} caratteri");
|
||||
lgInfo("loadMemConf.04");
|
||||
try
|
||||
{
|
||||
memMap = JsonConvert.DeserializeObject<plcMemMapExt>(jsonData);
|
||||
@@ -5408,6 +5415,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
setupOptMemPar();
|
||||
setupFileDecod();
|
||||
setupSpecialParams();
|
||||
lgInfo("loadMemConf.05");
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
@@ -5425,6 +5433,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
lgInfoStartup("loadMemConf: non trovata opzione PARAM_CONF in file INI");
|
||||
}
|
||||
|
||||
lgInfo("loadMemConf.06");
|
||||
// inizializzo LUT decodifica ALLARMI
|
||||
string jsonAlarms = getOptPar("ALARM_CONF");
|
||||
if (!string.IsNullOrEmpty(jsonAlarms))
|
||||
@@ -5458,6 +5467,7 @@ namespace IOB_WIN_NEXT.Iob
|
||||
}
|
||||
|
||||
// loggo
|
||||
lgInfo("loadMemConf.07");
|
||||
lgInfoStartup("DONE loadMemConf");
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ namespace IOB_WIN_NEXT.IobModbusTCP
|
||||
{
|
||||
lgInfo("NEW IOB ModBus TCP");
|
||||
|
||||
setupSpecialParams();
|
||||
DateTime adesso = DateTime.Now;
|
||||
memMap = new plcMemMapExt();
|
||||
if (IOBConf != null)
|
||||
|
||||
Reference in New Issue
Block a user