From a472cd84dc9d07b1da2e7fa3ebbfca3bb13f2602 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 9 Jan 2025 19:30:43 +0100 Subject: [PATCH] Inizio rimozione riferimenti MBus da NEXT --- IOB-WIN-FORM/IOB-WIN-FORM.csproj | 2 +- IOB-WIN-FORM/app.config | 36 +++---- IOB-WIN-NEXT/AdapterFormNext.cs | 4 +- IOB-WIN-NEXT/IOB-WIN-NEXT.csproj | 97 +------------------ .../{specialConfig.cs => connParamS7.cs} | 4 +- 5 files changed, 25 insertions(+), 118 deletions(-) rename IOB-WIN-NEXT/{specialConfig.cs => connParamS7.cs} (99%) diff --git a/IOB-WIN-FORM/IOB-WIN-FORM.csproj b/IOB-WIN-FORM/IOB-WIN-FORM.csproj index bec16da8..614da66a 100644 --- a/IOB-WIN-FORM/IOB-WIN-FORM.csproj +++ b/IOB-WIN-FORM/IOB-WIN-FORM.csproj @@ -116,7 +116,7 @@ - + diff --git a/IOB-WIN-FORM/app.config b/IOB-WIN-FORM/app.config index dbf050b1..d8274adc 100644 --- a/IOB-WIN-FORM/app.config +++ b/IOB-WIN-FORM/app.config @@ -4,16 +4,24 @@ - - + + - - + + + + + + + + + + @@ -24,16 +32,16 @@ - - + + - - + + @@ -43,18 +51,6 @@ - - - - - - - - - - - - diff --git a/IOB-WIN-NEXT/AdapterFormNext.cs b/IOB-WIN-NEXT/AdapterFormNext.cs index 3f446aa1..20f9af6c 100644 --- a/IOB-WIN-NEXT/AdapterFormNext.cs +++ b/IOB-WIN-NEXT/AdapterFormNext.cs @@ -89,6 +89,7 @@ namespace IOB_WIN_NEXT btnStart.Enabled = true; break; +#if false case tipoAdapter.MODBUS_TCP: iobObj = new IobModbusTCP.ModbusTCP(this, IOBConf); btnStart.Enabled = true; @@ -137,7 +138,8 @@ namespace IOB_WIN_NEXT case tipoAdapter.MODBUS_TCP_ZETAPACK: iobObj = new IobModbusTCP.ModbusTCPZetapack(this, IOBConf); btnStart.Enabled = true; - break; + break; +#endif case tipoAdapter.OMRON: iobObj = new Iob.Omron(this, IOBConf); diff --git a/IOB-WIN-NEXT/IOB-WIN-NEXT.csproj b/IOB-WIN-NEXT/IOB-WIN-NEXT.csproj index 0e55dab8..6910a93b 100644 --- a/IOB-WIN-NEXT/IOB-WIN-NEXT.csproj +++ b/IOB-WIN-NEXT/IOB-WIN-NEXT.csproj @@ -416,14 +416,6 @@ - - - - - - - - @@ -433,8 +425,6 @@ - - @@ -453,7 +443,7 @@ - + @@ -470,7 +460,6 @@ - @@ -504,28 +493,6 @@ - - - - - - - - - - - - - - - - - - - - - - @@ -535,35 +502,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -574,32 +512,12 @@ - - - - - - - - - - - - - - - - - - - - @@ -673,24 +591,12 @@ - - - - - - - - - - - - @@ -842,6 +748,7 @@ + diff --git a/IOB-WIN-NEXT/specialConfig.cs b/IOB-WIN-NEXT/connParamS7.cs similarity index 99% rename from IOB-WIN-NEXT/specialConfig.cs rename to IOB-WIN-NEXT/connParamS7.cs index 0327121e..05a3deb8 100644 --- a/IOB-WIN-NEXT/specialConfig.cs +++ b/IOB-WIN-NEXT/connParamS7.cs @@ -2,6 +2,7 @@ namespace IOB_WIN_NEXT { +#if false /// /// Implementazione classe connessione ModBus TCP, /// comprensiva dei parametri delle aree di memoria @@ -56,7 +57,8 @@ namespace IOB_WIN_NEXT public int port; #endregion Public Fields - } + } +#endif /// /// Implementazione classe connessione SIEMENS con S7.net, comprensiva dei parametri delle aree