diff --git a/IOB-WIN-NEXT/DATA/CONF/PIZ04.ini b/IOB-WIN-NEXT/DATA/CONF/PIZ04.ini index 027dea8a..8d8f315c 100644 --- a/IOB-WIN-NEXT/DATA/CONF/PIZ04.ini +++ b/IOB-WIN-NEXT/DATA/CONF/PIZ04.ini @@ -27,7 +27,6 @@ CMDREBO=/IOB/sendReboot?idxMacchina= ADDR_READ=40001 ADDR_WRITE=40401 SIZE_READ=34 -;SIZE_READ=5046 SIZE_WRITE=358 diff --git a/IOB-WIN-NEXT/DATA/CONF/PIZ04.json b/IOB-WIN-NEXT/DATA/CONF/PIZ04.json index ad8a491a..0d6a3129 100644 --- a/IOB-WIN-NEXT/DATA/CONF/PIZ04.json +++ b/IOB-WIN-NEXT/DATA/CONF/PIZ04.json @@ -1,4 +1,50 @@ { + "mMapWrite": { + "SetLowTempGNC": { + "name": "SetLowTempGNC", + "description": "Set point di avviso per bassa temperatura all'uscita del vaporizzatore GNC", + "memAddr": "40489", + "tipoMem": "Real", + "index": 489, + "size": 2, + "minVal": -200, + "maxVal": 200, + "unit": "C" + }, + "SetHighTempGNC": { + "name": "SetHighTempGNC", + "description": "Set point di avviso per alta temperatura all'uscita del vaporizzatore GNC", + "memAddr": "40491", + "tipoMem": "Real", + "index": 491, + "size": 2, + "minVal": -200, + "maxVal": 200, + "unit": "C" + }, + "SetLowTempAmb": { + "name": "SetLowTempAmb", + "description": "Set point di avviso per bassa temperatura ambiente nell'impianto", + "memAddr": "40421", + "tipoMem": "Real", + "index": 421, + "size": 2, + "minVal": -200, + "maxVal": 200, + "unit": "C" + }, + "SetHighTempAmb": { + "name": "SetHighTempAmb", + "description": "Set point di avviso per alta temperatura ambiente nell'impianto", + "memAddr": "40423", + "tipoMem": "Real", + "index": 423, + "size": 2, + "minVal": -200, + "maxVal": 200, + "unit": "C" + } + }, "mMapRead": { "Level": { "name": "Level", @@ -55,6 +101,90 @@ "minVal": 0, "maxVal": 400, "unit": "bar" + }, + "TempGNC": { + "name": "TempGNC", + "description": "Temperatura all'uscita del vaporizzatore GNC", + "memAddr": "40027", + "tipoMem": "Real", + "index": 27, + "size": 2, + "func": "MAX", + "period": 60, + "factor": 1, + "minVal": -200, + "maxVal": 200, + "unit": "C" + }, + "TempAmb": { + "name": "TempAmb", + "description": "Temperatura ambiente nell'impianto", + "memAddr": "40011", + "tipoMem": "Real", + "index": 11, + "size": 2, + "func": "MAX", + "period": 60, + "factor": 1, + "minVal": -200, + "maxVal": 200, + "unit": "C" + }, + "SetLowTempGNC": { + "name": "SetLowTempGNC", + "description": "Set point di avviso per bassa temperatura all'uscita del vaporizzatore GNC", + "memAddr": "40489", + "tipoMem": "Real", + "index": 489, + "size": 2, + "func": "MAX", + "period": 60, + "factor": 1, + "minVal": -200, + "maxVal": 200, + "unit": "C" + }, + "SetHighTempGNC": { + "name": "SetHighTempGNC", + "description": "Set point di avviso per alta temperatura all'uscita del vaporizzatore GNC", + "memAddr": "40491", + "tipoMem": "Real", + "index": 491, + "size": 2, + "func": "MAX", + "period": 60, + "factor": 1, + "minVal": -200, + "maxVal": 200, + "unit": "C" + }, + "SetLowTempAmb": { + "name": "SetLowTempAmb", + "description": "Set point di avviso per bassa temperatura ambiente nell'impianto", + "memAddr": "40421", + "tipoMem": "Real", + "index": 421, + "size": 2, + "func": "MAX", + "period": 60, + "factor": 1, + "minVal": -200, + "maxVal": 200, + "unit": "C" + }, + "SetHighTempAmb": { + "name": "SetHighTempAmb", + "description": "Set point di avviso per alta temperatura ambiente nell'impianto", + "memAddr": "40423", + "tipoMem": "Real", + "index": 423, + "size": 2, + "func": "MAX", + "period": 60, + "factor": 1, + "minVal": -200, + "maxVal": 200, + "unit": "C" } } } \ No newline at end of file diff --git a/IOB-WIN-NEXT/IobModbusTCP.cs b/IOB-WIN-NEXT/IobModbusTCP.cs index bf09727f..72b50d73 100644 --- a/IOB-WIN-NEXT/IobModbusTCP.cs +++ b/IOB-WIN-NEXT/IobModbusTCP.cs @@ -1186,7 +1186,7 @@ namespace IOB_WIN_NEXT valore = getVal_TSVC(chiave, scaduto); if (scaduto) { - outVal.Add(chiave, $"{valore}"); + outVal.Add(chiave, $"{valore:N3}"); } LastTSVC[chiave] = valore; }