Modifica SAET VL24 x leggere dati da conf json x parametri in lettura
This commit is contained in:
@@ -0,0 +1,188 @@
|
||||
{
|
||||
"mMapWrite": {
|
||||
"kgParz": {
|
||||
"name": "kgParz",
|
||||
"tipoMem": "Int",
|
||||
"index": 66,
|
||||
"size": 2
|
||||
},
|
||||
"set_th": {
|
||||
"name": "set_th",
|
||||
"tipoMem": "Int",
|
||||
"index": 72,
|
||||
"size": 2
|
||||
},
|
||||
"set_c": {
|
||||
"name": "set_c",
|
||||
"tipoMem": "Real",
|
||||
"index": 74,
|
||||
"size": 4
|
||||
},
|
||||
"aria_1": {
|
||||
"name": "aria_1",
|
||||
"tipoMem": "Int",
|
||||
"index": 78,
|
||||
"size": 2
|
||||
},
|
||||
"aria_2": {
|
||||
"name": "aria_2",
|
||||
"tipoMem": "Int",
|
||||
"index": 80,
|
||||
"size": 2
|
||||
},
|
||||
"setMmH20": {
|
||||
"name": "setMmH20",
|
||||
"tipoMem": "Real",
|
||||
"index": 82,
|
||||
"size": 4
|
||||
},
|
||||
"rpmci": {
|
||||
"name": "rpmci",
|
||||
"tipoMem": "Int",
|
||||
"index": 86,
|
||||
"size": 2
|
||||
}
|
||||
},
|
||||
"mMapRead": {
|
||||
"Power_01": {
|
||||
"name": "Power_01",
|
||||
"tipoMem": "Real",
|
||||
"index": 24,
|
||||
"size": 4,
|
||||
"func": "MAX",
|
||||
"period": 60,
|
||||
"factor": 1
|
||||
},
|
||||
"Power_02": {
|
||||
"name": "Power_02",
|
||||
"tipoMem": "Real",
|
||||
"index": 28,
|
||||
"size": 4,
|
||||
"func": "MAX",
|
||||
"period": 60,
|
||||
"factor": 1
|
||||
},
|
||||
"Power_03": {
|
||||
"name": "Power_03",
|
||||
"tipoMem": "Real",
|
||||
"index": 32,
|
||||
"size": 4,
|
||||
"func": "MAX",
|
||||
"period": 60,
|
||||
"factor": 1
|
||||
},
|
||||
"Power_04": {
|
||||
"name": "Power_04",
|
||||
"tipoMem": "Real",
|
||||
"index": 36,
|
||||
"size": 4,
|
||||
"func": "MAX",
|
||||
"period": 60,
|
||||
"factor": 1
|
||||
},
|
||||
"TempPirom_01": {
|
||||
"name": "TempPirom_01",
|
||||
"tipoMem": "Real",
|
||||
"index": 40,
|
||||
"size": 4,
|
||||
"func": "MAX",
|
||||
"period": 60,
|
||||
"factor": 1
|
||||
},
|
||||
"TempPirom_02": {
|
||||
"name": "TempPirom_02",
|
||||
"tipoMem": "Real",
|
||||
"index": 44,
|
||||
"size": 4,
|
||||
"func": "MAX",
|
||||
"period": 60,
|
||||
"factor": 1
|
||||
},
|
||||
"TempPirom_03": {
|
||||
"name": "TempPirom_03",
|
||||
"tipoMem": "Real",
|
||||
"index": 48,
|
||||
"size": 4,
|
||||
"func": "MAX",
|
||||
"period": 60,
|
||||
"factor": 1
|
||||
},
|
||||
"TempPirom_04": {
|
||||
"name": "TempPirom_04",
|
||||
"tipoMem": "Real",
|
||||
"index": 52,
|
||||
"size": 4,
|
||||
"func": "MAX",
|
||||
"period": 60,
|
||||
"factor": 1
|
||||
},
|
||||
"TempCool_01": {
|
||||
"name": "TempCool_01",
|
||||
"tipoMem": "Real",
|
||||
"index": 56,
|
||||
"size": 4,
|
||||
"func": "MAX",
|
||||
"period": 60,
|
||||
"factor": 1
|
||||
},
|
||||
"TempCool_02": {
|
||||
"name": "TempCool_02",
|
||||
"tipoMem": "Real",
|
||||
"index": 60,
|
||||
"size": 4,
|
||||
"func": "MAX",
|
||||
"period": 60,
|
||||
"factor": 1
|
||||
},
|
||||
"TempCool_03": {
|
||||
"name": "TempCool_03",
|
||||
"tipoMem": "Real",
|
||||
"index": 64,
|
||||
"size": 4,
|
||||
"func": "MAX",
|
||||
"period": 60,
|
||||
"factor": 1
|
||||
},
|
||||
"TempCool_04": {
|
||||
"name": "TempCool_04",
|
||||
"tipoMem": "Real",
|
||||
"index": 68,
|
||||
"size": 4,
|
||||
"func": "MAX",
|
||||
"period": 60,
|
||||
"factor": 1
|
||||
},
|
||||
"PartStatus_01": {
|
||||
"name": "PartStatus_01",
|
||||
"tipoMem": "Int",
|
||||
"index": 72,
|
||||
"size": 2,
|
||||
"func": "MAX",
|
||||
"period": 60
|
||||
},
|
||||
"PartStatus_02": {
|
||||
"name": "PartStatus_02",
|
||||
"tipoMem": "Int",
|
||||
"index": 74,
|
||||
"size": 2,
|
||||
"func": "MAX",
|
||||
"period": 60
|
||||
},
|
||||
"PartStatus_03": {
|
||||
"name": "PartStatus_03",
|
||||
"tipoMem": "Int",
|
||||
"index": 76,
|
||||
"size": 2,
|
||||
"func": "MAX",
|
||||
"period": 60
|
||||
},
|
||||
"PartStatus_04": {
|
||||
"name": "PartStatus_04",
|
||||
"tipoMem": "Int",
|
||||
"index": 78,
|
||||
"size": 2,
|
||||
"func": "MAX",
|
||||
"period": 60
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -938,7 +938,6 @@ namespace IOB_WIN
|
||||
if (memMap.mMapRead.Count > 0)
|
||||
{
|
||||
// inizializzo i valori
|
||||
bool scaduto = false;
|
||||
bool valBool = false;
|
||||
double valore = 0;
|
||||
string valString = "";
|
||||
|
||||
@@ -198,7 +198,8 @@ namespace IOB_WIN
|
||||
{
|
||||
Dictionary<string, string> outVal = new Dictionary<string, string>();
|
||||
|
||||
#if true
|
||||
outVal = base.getDynData();
|
||||
#if false
|
||||
try
|
||||
{
|
||||
/* --------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user