centerfrigo:

- update conf e scrittura real
- è LowHigh (NON HighLow)
- da aggiornare SDK
This commit is contained in:
S.E.Locatelli
2022-07-13 18:10:05 +02:00
parent b55cb314f2
commit c691a677d2
3 changed files with 71 additions and 9 deletions
+64 -8
View File
@@ -1,17 +1,73 @@
{
"mMapWrite": {
"TestWrite": {
"name": "TestWrite",
"description": "Test Scrittura",
"memAddr": "41621",
"tipoMem": "Real",
"index": 1621,
"TestWrite01": {
"name": "TestWrite01",
"description": "Test Scrittura 01",
"memAddr": "44010",
"tipoMem": "FloatBADC",
"index": 4010,
"size": 2,
"func": "MEDIAN",
"period": 60,
"factor": 1,
"minVal": -100,
"maxVal": 100,
"minVal": 0,
"maxVal": 15,
"unit": "°C"
},
"TestWrite02": {
"name": "TestWrite02",
"description": "Test Scrittura 02",
"memAddr": "44012",
"tipoMem": "FloatBADC",
"index": 4012,
"size": 2,
"func": "MEDIAN",
"period": 60,
"factor": 1,
"minVal": 0,
"maxVal": 15,
"unit": "°C"
},
"TestWrite03": {
"name": "TestWrite03",
"description": "Test Scrittura 03",
"memAddr": "44014",
"tipoMem": "FloatBADC",
"index": 4014,
"size": 2,
"func": "MEDIAN",
"period": 60,
"factor": 1,
"minVal": 0,
"maxVal": 15,
"unit": "°C"
},
"TestWrite04": {
"name": "TestWrite04",
"description": "Test Scrittura 04",
"memAddr": "44016",
"tipoMem": "FloatBADC",
"index": 4016,
"size": 2,
"func": "MEDIAN",
"period": 60,
"factor": 1,
"minVal": 0,
"maxVal": 15,
"unit": "°C"
},
"TestWrite05": {
"name": "TestWrite05",
"description": "Test Scrittura 05",
"memAddr": "44018",
"tipoMem": "FloatBADC",
"index": 4018,
"size": 2,
"func": "MEDIAN",
"period": 60,
"factor": 1,
"minVal": 0,
"maxVal": 15,
"unit": "°C"
},
"SetPoint_Tunnel": {
+1 -1
View File
@@ -38,6 +38,6 @@ CLI_INST=SteamWareSim
;STARTLIST=GIACO_ICOEL_002
;STARTLIST=GIACO_CENTERFRIGO
;STARTLIST=GIACO_NWSE
STARTLIST=SIMUL_01
STARTLIST=GIACO_CENTERFRIGO
MAXCNC=10
+6
View File
@@ -822,6 +822,12 @@ namespace IOB_WIN_NEXT
fatto = writeInputReg(currMem.index, CurrVal);
break;
case plcDataType.FloatBADC:
valDouble = getScaledDouble(currMem);
CurrVal = ModbusClient.ConvertFloatToRegisters((float)valDouble, ModbusClient.RegisterOrder.LowHigh);
fatto = writeInputReg(currMem.index, CurrVal);
break;
//case plcDataType.String:
// // se ho writePre --> "allungo" di 2 la dimensione della stringa x MemBlock...
// if (writePre)