diff --git a/IOB-WIN/DATA/CONF/VL22.json b/IOB-WIN/DATA/CONF/VL22.json index b20eb79f..ee83f328 100644 --- a/IOB-WIN/DATA/CONF/VL22.json +++ b/IOB-WIN/DATA/CONF/VL22.json @@ -26,59 +26,59 @@ } }, "mMapRead": { - //"RamPosition": { - // "name": "RamPosition", - // "tipoMem": "Int", - // "index": 18, - // "size": 2, - // "func": "MAX", - // "period": 60, - // "factor": 10 - //}, - //"LowerEjectorPosition": { - // "name": "LowerEjectorPosition", - // "tipoMem": "Int", - // "index": 20, - // "size": 2, - // "func": "MAX", - // "period": 60, - // "factor": 10 - //}, - //"UpperTool": { - // "name": "UpperTool", - // "tipoMem": "Int", - // "index": 22, - // "size": 2, - // "func": "MAX", - // "period": 60, - // "factor": 10 - //}, - //"TempMainMotorU": { - // "name": "TempMainMotorU", - // "tipoMem": "Int", - // "index": 24, - // "size": 2, - // "func": "MAX", - // "period": 60, - // "factor": 1 - //}, - //"TempMainMotorV": { - // "name": "TempMainMotorV", - // "tipoMem": "Int", - // "index": 26, - // "size": 2, - // "func": "MAX", - // "period": 60, - // "factor": 1 - //}, - //"TempMainMotorW": { - // "name": "TempMainMotorW", - // "tipoMem": "Int", - // "index": 28, - // "size": 2, - // "func": "MAX", - // "period": 60, - // "factor": 1 - //} + "RamPosition": { + "name": "RamPosition", + "tipoMem": "Int", + "index": 18, + "size": 2, + "func": "MAX", + "period": 60, + "factor": 10 + }, + "LowerEjectorPosition": { + "name": "LowerEjectorPosition", + "tipoMem": "Int", + "index": 20, + "size": 2, + "func": "MAX", + "period": 60, + "factor": 10 + }, + "UpperTool": { + "name": "UpperTool", + "tipoMem": "Int", + "index": 22, + "size": 2, + "func": "MAX", + "period": 60, + "factor": 10 + }, + "TempMainMotorU": { + "name": "TempMainMotorU", + "tipoMem": "Int", + "index": 24, + "size": 2, + "func": "MAX", + "period": 60, + "factor": 1 + }, + "TempMainMotorV": { + "name": "TempMainMotorV", + "tipoMem": "Int", + "index": 26, + "size": 2, + "func": "MAX", + "period": 60, + "factor": 1 + }, + "TempMainMotorW": { + "name": "TempMainMotorW", + "tipoMem": "Int", + "index": 28, + "size": 2, + "func": "MAX", + "period": 60, + "factor": 1 + } } } \ No newline at end of file diff --git a/IOB-WIN/DATA/CONF/VL25.ini b/IOB-WIN/DATA/CONF/VL25.ini index 9d28a2d5..4ff69232 100644 --- a/IOB-WIN/DATA/CONF/VL25.ini +++ b/IOB-WIN/DATA/CONF/VL25.ini @@ -28,7 +28,7 @@ CMDREBO=/sendReboot.aspx?idxMacchina= ADDR_READ=DB700.DBB0 ADDR_WRITE=DB01.DBB0 SIZE_READ=44 -SIZE_WRITE=44 +SIZE_WRITE=68 [BLINK] diff --git a/IOB-WIN/DATA/CONF/VL25.json b/IOB-WIN/DATA/CONF/VL25.json index 2e359718..27601b0b 100644 --- a/IOB-WIN/DATA/CONF/VL25.json +++ b/IOB-WIN/DATA/CONF/VL25.json @@ -1,31 +1,42 @@ { "mMapWrite": { - "setArt": { - "name": "setArt", - "description": "Articolo", - "memAddr": "DB701.DBB20", + "setPzComm": { + "name": "setPzComm", + "description": "Qty", "tipoMem": "DInt", + "memAddr": "DB701.DBB20", "index": 20, "size": 4 }, "setComm": { "name": "setComm", "description": "Commessa", + "tipoMem": "String", "memAddr": "DB701.DBB24", - "tipoMem": "DInt", "index": 24, - "size": 4 + "size": 22 }, - "setPzComm": { - "name": "setPzComm", - "description": "Qty", - "memAddr": "DB701.DBB28", - "tipoMem": "DInt", - "index": 28, - "size": 4 + "setArt": { + "name": "setArt", + "description": "Articolo", + "tipoMem": "String", + "memAddr": "DB701.DBB46", + "index": 46, + "size": 22 } }, "mMapRead": { + "ContatoreAssoluto": { + "name": "ContatoreAssoluto", + "description": "Contapezzi ASSOLUTO", + "memAddr": "DB700.DBB24", + "tipoMem": "DInt", + "index": 24, + "size": 4, + "func": "MAX", + "period": 60, + "factor": 1 + }, "ContaBuoni": { "name": "ContaBuoni", "description": "Contapezzi BUONI", @@ -37,9 +48,9 @@ "period": 60, "factor": 1 }, - "ContaScarti": { - "name": "ContaScarti", - "description": "Contapezzi SCARTO", + "ContaScartiSaet": { + "name": "ContaScartiSaet", + "description": "Contapezzi SCARTO da SAET", "memAddr": "DB700.DBB32", "tipoMem": "DInt", "index": 32, @@ -47,6 +58,28 @@ "func": "MAX", "period": 60, "factor": 1 + }, + "ContaScartiFreddi": { + "name": "ContaScartiFreddi", + "description": "Contapezzi SCARTO FREDDI", + "memAddr": "DB700.DBB36", + "tipoMem": "DInt", + "index": 36, + "size": 4, + "func": "MAX", + "period": 60, + "factor": 1 + }, + "ContaScartiCollaudo": { + "name": "ContaScartiCollaudo", + "description": "Contapezzi SCARTO per Collaudo", + "memAddr": "DB700.DBB40", + "tipoMem": "DInt", + "index": 40, + "size": 4, + "func": "MAX", + "period": 60, + "factor": 1 } } } \ No newline at end of file diff --git a/IOB-WIN/IobMTC.cs b/IOB-WIN/IobMTC.cs index 57e7bb34..05d543e4 100644 --- a/IOB-WIN/IobMTC.cs +++ b/IOB-WIN/IobMTC.cs @@ -1022,8 +1022,15 @@ namespace IOB_WIN // RUN = LAVORA! B_input += (1 << 1); } + else + { + lgInfo($"Stato variabili: currRun: {currRun} | currExe: {currExe} | currUnOpStatus: {currUnOpStatus}"); + } + } + else + { + lgInfo($"Stato variabili: currRun: {currRun} | currExe: {currExe} | currUnOpStatus: {currUnOpStatus}"); } - } // se ho almeno 1 allarme E NON SONO IN AUTO --> ALARM! else if (hasError) diff --git a/IOB-WIN/IobSiemensIngenia.cs b/IOB-WIN/IobSiemensIngenia.cs index f27168b3..a6ef0a5a 100644 --- a/IOB-WIN/IobSiemensIngenia.cs +++ b/IOB-WIN/IobSiemensIngenia.cs @@ -92,6 +92,8 @@ namespace IOB_WIN { // incremento counterMes2Plc++; + // se > 9999 --> 0 + if (counterMes2Plc > 9999) counterMes2Plc = 0; // salvo su DB Dictionary task2exe = new Dictionary(); Dictionary taskDone = new Dictionary();