From 80adbd2bd734dadbafe8ae3adcb8454c64a3d992 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 7 Dec 2023 16:51:29 +0100 Subject: [PATCH] Riduzione spazi x len KEY OPC-UA --- IOB-WIN-NEXT/DATA/CONF/TFT_RAMA_001.json | 45 ++++++++---------------- IOB-WIN-NEXT/IobOpc/OpcUa.cs | 5 +++ 2 files changed, 20 insertions(+), 30 deletions(-) diff --git a/IOB-WIN-NEXT/DATA/CONF/TFT_RAMA_001.json b/IOB-WIN-NEXT/DATA/CONF/TFT_RAMA_001.json index bd909312..7969a8ec 100644 --- a/IOB-WIN-NEXT/DATA/CONF/TFT_RAMA_001.json +++ b/IOB-WIN-NEXT/DATA/CONF/TFT_RAMA_001.json @@ -2,29 +2,29 @@ "BrowseFullVal": "ns=2;s=RamosaETN21.RamosaCJ2", "BrowseNSIndex": 0, "BrowseValue": 0, - "keyPartCount": "RamosaETN21.RamosaCJ2.Present Value.Partial Meter Counter", + "keyPartCount": "Present Value.Partial Meter Counter", "keyPartReq": "", "keyPartId": "", "keyProgName": "", - "keyRunMode": "RamosaETN21.RamosaCJ2.Present Value.Machine Run", + "keyRunMode": "Present Value.Machine Run", "pingAsPowerOn": false, "UseFullId": true, "maxNullRead": 500, "condWork": [ { - "keyName": "RamosaETN21.RamosaCJ2.Present Value.Machine Run", + "keyName": "Present Value.Machine Run", "targetValue": "True" }, { - "keyName": "RamosaETN21.RamosaCJ2.Present Value.Entry End Enabled", + "keyName": "Present Value.Entry End Enabled", "targetValue": "True" }, { - "keyName": "RamosaETN21.RamosaCJ2.Present Value.General Fan", + "keyName": "Present Value.General Fan", "targetValue": "True" }, { - "keyName": "RamosaETN21.RamosaCJ2.Present Value.General Burner", + "keyName": "Present Value.General Burner", "targetValue": "True" } ], @@ -32,11 +32,11 @@ "checkMode": "OR", "checkList": [ { - "keyName": "RamosaETN21.RamosaCJ2.Present Value.General Fan", + "keyName": "Present Value.General Fan", "targetValue": "True" }, { - "keyName": "RamosaETN21.RamosaCJ2.Present Value.General Burner", + "keyName": "Present Value.General Burner", "targetValue": "True" } ] @@ -45,7 +45,7 @@ "checkMode": "AND", "checkList": [ { - "keyName": "RamosaETN21.RamosaCJ2.Present Value.General Burner", + "keyName": "Present Value.General Burner", "targetValue": "True" } ] @@ -54,11 +54,11 @@ "checkMode": "OR", "checkList": [ { - "keyName": "RamosaETN21.RamosaCJ2.Present Value.Machine Run", + "keyName": "Present Value.Machine Run", "targetValue": "False" }, { - "keyName": "RamosaETN21.RamosaCJ2.Present Value.Entry End Enabled", + "keyName": "Present Value.Entry End Enabled", "targetValue": "False" } ] @@ -71,7 +71,7 @@ "checkMode": "AND", "checkList": [ { - "keyName": "RamosaETN21.RamosaCJ2.Present Value.Critical Alarm", + "keyName": "Present Value.Critical Alarm", "targetValue": "False" } ] @@ -173,7 +173,8 @@ "IO_150": "Qta Prodotta (metri)", "lpremain": "Qta Richiesta", "fdovrd": "PATH FEED OVERRIDE", - "rovrd": "PATH RAPID OVERRIDE" + "rovrd": "PATH RAPID OVERRIDE", + "OPC_Present Value.Exhaust Fan 1 - Exhausted Air Humidity Control": "RT.ExhaustFan1 - Exhausted Air Humidity Control" }, "paramsEndThresh": { "Counter": 9, @@ -185,22 +186,6 @@ "Spindle ": 2 }, "mMapWrite": { - //"setPzComm": { - // "name": "setPzComm", - // "description": "Qty", - // "tipoMem": "Int", - // "memAddr": "", - // "index": 0, - // "size": -1 - //}, - //"setComm": { - // "name": "setComm", - // "description": "Commessa", - // "tipoMem": "String", - // "memAddr": "ns=2;s=RamosaETN21.RamosaCJ2.Recipe.Recipe Name", - // "index": 0, - // "size": 20 - //}, "setArt": { "name": "setArt", "description": "Articolo", @@ -216,7 +201,7 @@ "MemConfWrite": "", "MaxVal": 9999 }, - "BaseIdMask": "RamosaETN21.RamosaCJ2", + "BaseIdMask": "RamosaETN21.RamosaCJ2.", "BaseKeyTranslate": "ns=2;s=RamosaETN21.RamosaCJ2", "RecipeKeyTranslate": { "Present Value.General Fan": "Recipe.Chain Spped", diff --git a/IOB-WIN-NEXT/IobOpc/OpcUa.cs b/IOB-WIN-NEXT/IobOpc/OpcUa.cs index 8422abdd..05d4ba41 100644 --- a/IOB-WIN-NEXT/IobOpc/OpcUa.cs +++ b/IOB-WIN-NEXT/IobOpc/OpcUa.cs @@ -971,6 +971,11 @@ namespace IOB_WIN_NEXT.IobOpc { answ = fullCode.Replace(opcUaParams.BaseIdMask, ""); } + // trimmo spazi x ridurre dimensione se > 50... + if (answ.Length > 50) + { + answ = answ.Replace(" ", ""); + } } return answ; }