From cc02ce152eb45b1891b587a52478cd1e3e17a23a Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 21 Apr 2017 15:27:35 +0200 Subject: [PATCH] Update conf AdapterItemList x FANUC/OSAI, modifica SetupAdapter x gestione nuovi campi... --- .../DATA/CONF/Adapter_ItemList.xml | 35 ++++ .../MTC_Adapter/Resources/CMS/FANUC.xml | 37 ++++ .../MTC_Adapter/Resources/CMS/OSAI.xml | 35 ++++ .../MTC_Adapter/SetupAdapter.Designer.cs | 192 ++++++++++-------- MTC_Adapter/MTC_Adapter/SetupAdapter.cs | 75 ++++++- 5 files changed, 286 insertions(+), 88 deletions(-) diff --git a/MTC_Adapter/MTC_Adapter/DATA/CONF/Adapter_ItemList.xml b/MTC_Adapter/MTC_Adapter/DATA/CONF/Adapter_ItemList.xml index 33a225c..a3cdf8c 100644 --- a/MTC_Adapter/MTC_Adapter/DATA/CONF/Adapter_ItemList.xml +++ b/MTC_Adapter/MTC_Adapter/DATA/CONF/Adapter_ItemList.xml @@ -5,6 +5,7 @@ OSAI 0 0 + 0 VacPump_01 @@ -35,6 +36,16 @@ + + + ProtMagazzino_01 + + + + ProtMagazzino_02 + + + Cooler_01 @@ -89,6 +100,10 @@ Axis_01_Type LINEAR + + Axis_01_Grp + 00 + @@ -98,6 +113,10 @@ Axis_02_Type LINEAR + + Axis_02_Grp + 00 + @@ -107,6 +126,10 @@ Axis_03_Type LINEAR + + Axis_03_Grp + 00 + @@ -116,6 +139,10 @@ Axis_04_Type ROTARY + + Axis_04_Grp + 00 + @@ -125,6 +152,10 @@ Axis_05_Type ROTARY + + Axis_05_Grp + 00 + @@ -134,6 +165,10 @@ Axis_06_Type LINEAR + + Axis_06_Grp + 00 + diff --git a/MTC_Adapter/MTC_Adapter/Resources/CMS/FANUC.xml b/MTC_Adapter/MTC_Adapter/Resources/CMS/FANUC.xml index 2fc088a..9bf8da6 100644 --- a/MTC_Adapter/MTC_Adapter/Resources/CMS/FANUC.xml +++ b/MTC_Adapter/MTC_Adapter/Resources/CMS/FANUC.xml @@ -5,6 +5,7 @@ FANUC 0 0 + 0 VacPump_01 @@ -35,6 +36,18 @@ + + + ProtMagazzino_01 + + + + + + SlittaMagazzino_ + + + Cooler_01 @@ -85,6 +98,10 @@ Axis_01_Type LINEAR + + Axis_01_Grp + 00 + @@ -94,6 +111,10 @@ Axis_02_Type LINEAR + + Axis_02_Grp + 00 + @@ -103,6 +124,10 @@ Axis_03_Type LINEAR + + Axis_03_Grp + 00 + @@ -112,6 +137,10 @@ Axis_04_Type ROTARY + + Axis_04_Grp + 00 + @@ -121,6 +150,10 @@ Axis_05_Type ROTARY + + Axis_05_Grp + 00 + @@ -130,6 +163,10 @@ Axis_06_Type LINEAR + + Axis_06_Grp + 00 + diff --git a/MTC_Adapter/MTC_Adapter/Resources/CMS/OSAI.xml b/MTC_Adapter/MTC_Adapter/Resources/CMS/OSAI.xml index 33a225c..a3cdf8c 100644 --- a/MTC_Adapter/MTC_Adapter/Resources/CMS/OSAI.xml +++ b/MTC_Adapter/MTC_Adapter/Resources/CMS/OSAI.xml @@ -5,6 +5,7 @@ OSAI 0 0 + 0 VacPump_01 @@ -35,6 +36,16 @@ + + + ProtMagazzino_01 + + + + ProtMagazzino_02 + + + Cooler_01 @@ -89,6 +100,10 @@ Axis_01_Type LINEAR + + Axis_01_Grp + 00 + @@ -98,6 +113,10 @@ Axis_02_Type LINEAR + + Axis_02_Grp + 00 + @@ -107,6 +126,10 @@ Axis_03_Type LINEAR + + Axis_03_Grp + 00 + @@ -116,6 +139,10 @@ Axis_04_Type ROTARY + + Axis_04_Grp + 00 + @@ -125,6 +152,10 @@ Axis_05_Type ROTARY + + Axis_05_Grp + 00 + @@ -134,6 +165,10 @@ Axis_06_Type LINEAR + + Axis_06_Grp + 00 + diff --git a/MTC_Adapter/MTC_Adapter/SetupAdapter.Designer.cs b/MTC_Adapter/MTC_Adapter/SetupAdapter.Designer.cs index f6958e2..7bd7585 100644 --- a/MTC_Adapter/MTC_Adapter/SetupAdapter.Designer.cs +++ b/MTC_Adapter/MTC_Adapter/SetupAdapter.Designer.cs @@ -57,52 +57,51 @@ this.nAssi = new System.Windows.Forms.TextBox(); this.label13 = new System.Windows.Forms.Label(); this.nMemArea = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.nProtMag = new System.Windows.Forms.TextBox(); + this.label15 = new System.Windows.Forms.Label(); + this.nSlittaMag = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // // txtAdapter // - this.txtAdapter.Location = new System.Drawing.Point(121, 12); - this.txtAdapter.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.txtAdapter.Location = new System.Drawing.Point(91, 10); this.txtAdapter.Name = "txtAdapter"; - this.txtAdapter.Size = new System.Drawing.Size(284, 22); + this.txtAdapter.Size = new System.Drawing.Size(214, 20); this.txtAdapter.TabIndex = 0; this.txtAdapter.Text = "CMS_ADAPTER_00"; // // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(29, 16); - this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label1.Location = new System.Drawing.Point(22, 13); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(73, 17); + this.label1.Size = new System.Drawing.Size(58, 13); this.label1.TabIndex = 1; this.label1.Text = "ADAPTER"; // // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(415, 16); - this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label2.Location = new System.Drawing.Point(311, 13); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(79, 17); + this.label2.Size = new System.Drawing.Size(63, 13); this.label2.TabIndex = 3; this.label2.Text = "FILE NAME"; // // txtFileName // - this.txtFileName.Location = new System.Drawing.Point(507, 12); - this.txtFileName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.txtFileName.Location = new System.Drawing.Point(380, 10); this.txtFileName.Name = "txtFileName"; - this.txtFileName.Size = new System.Drawing.Size(161, 22); + this.txtFileName.Size = new System.Drawing.Size(122, 20); this.txtFileName.TabIndex = 2; this.txtFileName.Text = "Adapter_ItemList.xml"; // // btnSave // - this.btnSave.Location = new System.Drawing.Point(639, 575); - this.btnSave.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.btnSave.Location = new System.Drawing.Point(479, 467); this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(268, 47); + this.btnSave.Size = new System.Drawing.Size(201, 38); this.btnSave.TabIndex = 4; this.btnSave.Text = "SAVE CONFIGURATION"; this.btnSave.UseVisualStyleBackColor = true; @@ -110,10 +109,9 @@ // // btnLoad // - this.btnLoad.Location = new System.Drawing.Point(21, 575); - this.btnLoad.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.btnLoad.Location = new System.Drawing.Point(16, 467); this.btnLoad.Name = "btnLoad"; - this.btnLoad.Size = new System.Drawing.Size(268, 47); + this.btnLoad.Size = new System.Drawing.Size(201, 38); this.btnLoad.TabIndex = 5; this.btnLoad.Text = "LOAD CONFIGURATION"; this.btnLoad.UseVisualStyleBackColor = true; @@ -122,48 +120,43 @@ // label3 // this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(13, 48); - this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label3.Location = new System.Drawing.Point(10, 39); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(96, 17); + this.label3.Size = new System.Drawing.Size(75, 13); this.label3.TabIndex = 7; this.label3.Text = "n° VAC PUMP"; // // nVacPump // - this.nVacPump.Location = new System.Drawing.Point(121, 44); - this.nVacPump.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.nVacPump.Location = new System.Drawing.Point(91, 36); this.nVacPump.Name = "nVacPump"; - this.nVacPump.Size = new System.Drawing.Size(43, 22); + this.nVacPump.Size = new System.Drawing.Size(33, 20); this.nVacPump.TabIndex = 6; this.nVacPump.Text = "1"; // // label4 // this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(235, 48); - this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label4.Location = new System.Drawing.Point(176, 39); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(77, 17); + this.label4.Size = new System.Drawing.Size(60, 13); this.label4.TabIndex = 9; this.label4.Text = "n° VAC Act"; // // nVacAct // - this.nVacAct.Location = new System.Drawing.Point(323, 44); - this.nVacAct.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.nVacAct.Location = new System.Drawing.Point(242, 36); this.nVacAct.Name = "nVacAct"; - this.nVacAct.Size = new System.Drawing.Size(43, 22); + this.nVacAct.Size = new System.Drawing.Size(33, 20); this.nVacAct.TabIndex = 8; this.nVacAct.Text = "2"; // // label5 // this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(689, 16); - this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label5.Location = new System.Drawing.Point(517, 13); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(40, 17); + this.label5.Size = new System.Drawing.Size(32, 13); this.label5.TabIndex = 10; this.label5.Text = "TIPO"; // @@ -174,170 +167,192 @@ "DEMO", "ESAGV", "FANUC", + "OSAI", "SIEMENS"}); - this.cbTipoAdapt.Location = new System.Drawing.Point(740, 12); - this.cbTipoAdapt.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.cbTipoAdapt.Location = new System.Drawing.Point(555, 10); this.cbTipoAdapt.Name = "cbTipoAdapt"; - this.cbTipoAdapt.Size = new System.Drawing.Size(160, 24); + this.cbTipoAdapt.Size = new System.Drawing.Size(121, 21); this.cbTipoAdapt.TabIndex = 11; // // label6 // this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(419, 48); - this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label6.Location = new System.Drawing.Point(314, 39); this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(74, 17); + this.label6.Size = new System.Drawing.Size(57, 13); this.label6.TabIndex = 13; this.label6.Text = "n° LUBRO"; // // nLubro // - this.nLubro.Location = new System.Drawing.Point(507, 44); - this.nLubro.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.nLubro.Location = new System.Drawing.Point(380, 36); this.nLubro.Name = "nLubro"; - this.nLubro.Size = new System.Drawing.Size(43, 22); + this.nLubro.Size = new System.Drawing.Size(33, 20); this.nLubro.TabIndex = 12; this.nLubro.Text = "1"; // // label7 // this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(631, 48); - this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label7.Location = new System.Drawing.Point(473, 39); this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(84, 17); + this.label7.Size = new System.Drawing.Size(64, 13); this.label7.TabIndex = 15; this.label7.Text = "n° COOLER"; // // nCooler // - this.nCooler.Location = new System.Drawing.Point(719, 44); - this.nCooler.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.nCooler.Location = new System.Drawing.Point(539, 36); this.nCooler.Name = "nCooler"; - this.nCooler.Size = new System.Drawing.Size(43, 22); + this.nCooler.Size = new System.Drawing.Size(33, 20); this.nCooler.TabIndex = 14; this.nCooler.Text = "2"; // // label8 // this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(33, 80); - this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label8.Location = new System.Drawing.Point(25, 65); this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(72, 17); + this.label8.Size = new System.Drawing.Size(56, 13); this.label8.TabIndex = 17; this.label8.Text = "n° PRESS"; // // nPress // - this.nPress.Location = new System.Drawing.Point(121, 76); - this.nPress.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.nPress.Location = new System.Drawing.Point(91, 62); this.nPress.Name = "nPress"; - this.nPress.Size = new System.Drawing.Size(43, 22); + this.nPress.Size = new System.Drawing.Size(33, 20); this.nPress.TabIndex = 16; this.nPress.Text = "1"; // // label9 // this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(235, 80); - this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label9.Location = new System.Drawing.Point(176, 65); this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(64, 17); + this.label9.Size = new System.Drawing.Size(50, 13); this.label9.TabIndex = 19; this.label9.Text = "n° TEMP"; // // nTempe // - this.nTempe.Location = new System.Drawing.Point(323, 76); - this.nTempe.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.nTempe.Location = new System.Drawing.Point(242, 62); this.nTempe.Name = "nTempe"; - this.nTempe.Size = new System.Drawing.Size(43, 22); + this.nTempe.Size = new System.Drawing.Size(33, 20); this.nTempe.TabIndex = 18; this.nTempe.Text = "1"; // // label10 // this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(419, 80); - this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label10.Location = new System.Drawing.Point(314, 65); this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(63, 17); + this.label10.Size = new System.Drawing.Size(49, 13); this.label10.TabIndex = 21; this.label10.Text = "n° PATH"; // // nPath // - this.nPath.Location = new System.Drawing.Point(507, 76); - this.nPath.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.nPath.Location = new System.Drawing.Point(380, 62); this.nPath.Name = "nPath"; - this.nPath.Size = new System.Drawing.Size(43, 22); + this.nPath.Size = new System.Drawing.Size(33, 20); this.nPath.TabIndex = 20; this.nPath.Text = "1"; // // label11 // this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(631, 80); - this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label11.Location = new System.Drawing.Point(473, 65); this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(68, 17); + this.label11.Size = new System.Drawing.Size(52, 13); this.label11.TabIndex = 23; this.label11.Text = "n° Un OP"; // // nUnOp // - this.nUnOp.Location = new System.Drawing.Point(719, 76); - this.nUnOp.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.nUnOp.Location = new System.Drawing.Point(539, 62); this.nUnOp.Name = "nUnOp"; - this.nUnOp.Size = new System.Drawing.Size(43, 22); + this.nUnOp.Size = new System.Drawing.Size(33, 20); this.nUnOp.TabIndex = 22; this.nUnOp.Text = "1"; // // label12 // this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(33, 112); - this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label12.Location = new System.Drawing.Point(25, 91); this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(52, 17); + this.label12.Size = new System.Drawing.Size(39, 13); this.label12.TabIndex = 25; this.label12.Text = "n° Assi"; // // nAssi // - this.nAssi.Location = new System.Drawing.Point(121, 108); - this.nAssi.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.nAssi.Location = new System.Drawing.Point(91, 88); this.nAssi.Name = "nAssi"; - this.nAssi.Size = new System.Drawing.Size(43, 22); + this.nAssi.Size = new System.Drawing.Size(33, 20); this.nAssi.TabIndex = 24; this.nAssi.Text = "1"; // // label13 // this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(235, 116); - this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label13.Location = new System.Drawing.Point(176, 94); this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(86, 17); + this.label13.Size = new System.Drawing.Size(65, 13); this.label13.TabIndex = 27; this.label13.Text = "n° MemArea"; // // nMemArea // - this.nMemArea.Location = new System.Drawing.Point(323, 112); - this.nMemArea.Margin = new System.Windows.Forms.Padding(4); + this.nMemArea.Location = new System.Drawing.Point(242, 91); this.nMemArea.Name = "nMemArea"; - this.nMemArea.Size = new System.Drawing.Size(43, 22); + this.nMemArea.Size = new System.Drawing.Size(33, 20); this.nMemArea.TabIndex = 26; this.nMemArea.Text = "1"; // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(473, 94); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(63, 13); + this.label14.TabIndex = 31; + this.label14.Text = "n° Prot Mag"; + // + // nProtMag + // + this.nProtMag.Location = new System.Drawing.Point(539, 91); + this.nProtMag.Name = "nProtMag"; + this.nProtMag.Size = new System.Drawing.Size(33, 20); + this.nProtMag.TabIndex = 30; + this.nProtMag.Text = "0"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(314, 94); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(55, 13); + this.label15.TabIndex = 29; + this.label15.Text = "n° Sli Mag"; + // + // nSlittaMag + // + this.nSlittaMag.Location = new System.Drawing.Point(380, 91); + this.nSlittaMag.Name = "nSlittaMag"; + this.nSlittaMag.Size = new System.Drawing.Size(33, 20); + this.nSlittaMag.TabIndex = 28; + this.nSlittaMag.Text = "0"; + // // SetupAdapter // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(923, 636); + this.ClientSize = new System.Drawing.Size(692, 517); + this.Controls.Add(this.label14); + this.Controls.Add(this.nProtMag); + this.Controls.Add(this.label15); + this.Controls.Add(this.nSlittaMag); this.Controls.Add(this.label13); this.Controls.Add(this.nMemArea); this.Controls.Add(this.label12); @@ -367,7 +382,6 @@ this.Controls.Add(this.label1); this.Controls.Add(this.txtAdapter); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.Name = "SetupAdapter"; this.Text = "Adapter Setup Manager"; this.ResumeLayout(false); @@ -405,5 +419,9 @@ private System.Windows.Forms.TextBox nAssi; private System.Windows.Forms.Label label13; private System.Windows.Forms.TextBox nMemArea; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.TextBox nProtMag; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.TextBox nSlittaMag; } } \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/SetupAdapter.cs b/MTC_Adapter/MTC_Adapter/SetupAdapter.cs index d970081..ce6c9d2 100644 --- a/MTC_Adapter/MTC_Adapter/SetupAdapter.cs +++ b/MTC_Adapter/MTC_Adapter/SetupAdapter.cs @@ -218,6 +218,42 @@ namespace MTC_Adapter nMemArea.Text = value.ToString(); } } + protected int numSlittaMag + { + get + { + int answ = 0; + try + { + answ = Convert.ToInt32(nSlittaMag.Text); + } + catch + { } + return answ; + } + set + { + nSlittaMag.Text = value.ToString(); + } + } + protected int numProtMag + { + get + { + int answ = 0; + try + { + answ = Convert.ToInt32(nProtMag.Text); + } + catch + { } + return answ; + } + set + { + nProtMag.Text = value.ToString(); + } + } protected element[] oAxisLoad { get; set; } @@ -243,6 +279,9 @@ namespace MTC_Adapter case "FANUC": c.TipoAdapt = tipoAdapter.FANUC; break; + case "OSAI": + c.TipoAdapt = tipoAdapter.OSAI; + break; case "SIEMENS": c.TipoAdapt = tipoAdapter.SIEMENS; break; @@ -324,6 +363,38 @@ namespace MTC_Adapter c.Lubro = Lubro; } + // SlittaMag + if (numSlittaMag > 0) + { + // creo elementi richiesti + element[] SlittaMag = new element[numSlittaMag]; + // ciclo x istanziare! + for (int i = 0; i < numSlittaMag; i++) + { + // inizializzo list x parametri + listaDR = new List>(); + SlittaMag[i] = new element(string.Format("SlittaMagazzino_{0:00}", i + 1), listaDR); + } + // salvo oggetto + c.SlittaMag = SlittaMag; + } + + // ProtMag + if (numProtMag > 0) + { + // creo elementi richiesti + element[] ProtMag = new element[numProtMag]; + // ciclo x istanziare! + for (int i = 0; i < numProtMag; i++) + { + // inizializzo list x parametri + listaDR = new List>(); + ProtMag[i] = new element(string.Format("ProtMagazzino_{0:00}", i + 1), listaDR); + } + // salvo oggetto + c.ProtMag = ProtMag; + } + // COOLER if (numCooler > 0) { @@ -462,7 +533,7 @@ namespace MTC_Adapter txtAdapter.Text = objLoad.NomeAdapt; cbTipoAdapt.SelectedText = objLoad.TipoAdapt.ToString(); - //cbTipoAdapt.Refresh(); + // carico valori da file.... numVacPump = objLoad.nVacuumPump; numVacAct = objLoad.nVacuumAct; numLubro = objLoad.nLubro; @@ -473,6 +544,8 @@ namespace MTC_Adapter numUnOp = objLoad.nUnOp; numAxis = objLoad.nAxis; numMemArea = objLoad.nMemArea; + numSlittaMag = objLoad.nSlittaMag; + numProtMag = objLoad.nProtMag; // salvo assi correnti... oAxisLoad = objLoad.Axis; }