This commit is contained in:
Nicola Carminati
2017-12-05 16:42:39 +00:00
parent c9ee14ba97
commit afdbdbcbcd
7 changed files with 439 additions and 180 deletions
+237 -163
View File
@@ -51,43 +51,49 @@
this.label11 = new System.Windows.Forms.Label();
this.TXTSft = new System.Windows.Forms.TextBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.TXTAlmNc = new System.Windows.Forms.TextBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.TXTMsg = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.TXTAlmNc = new System.Windows.Forms.TextBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.TXTAlm = new System.Windows.Forms.TextBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.tabControl2 = new System.Windows.Forms.TabControl();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.TXTAlm = new System.Windows.Forms.TextBox();
this.TXTPPName = new System.Windows.Forms.TextBox();
this.TXTPPLines = new System.Windows.Forms.TextBox();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.Disconnect = new System.Windows.Forms.Button();
this.TXTNow = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox3.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox6.SuspendLayout();
this.tabControl2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabControl1.SuspendLayout();
this.groupBox5.SuspendLayout();
this.tableLayoutPanel3.SuspendLayout();
this.SuspendLayout();
//
// Connect
//
this.Connect.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Connect.Location = new System.Drawing.Point(14, 98);
this.Connect.Location = new System.Drawing.Point(3, 3);
this.Connect.Name = "Connect";
this.Connect.Size = new System.Drawing.Size(582, 23);
this.Connect.Size = new System.Drawing.Size(310, 23);
this.Connect.TabIndex = 0;
this.Connect.Text = "Connect";
this.Connect.UseVisualStyleBackColor = true;
@@ -99,23 +105,24 @@
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.BackColor = System.Drawing.Color.White;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel1.Controls.Add(this.tableLayoutPanel3);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.TXTport);
this.panel1.Controls.Add(this.TXTip);
this.panel1.Controls.Add(this.NcCombo);
this.panel1.Controls.Add(this.Connect);
this.panel1.Location = new System.Drawing.Point(-3, -2);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(612, 128);
this.panel1.Size = new System.Drawing.Size(650, 128);
this.panel1.TabIndex = 1;
this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
//
// label3
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(411, 59);
this.label3.Location = new System.Drawing.Point(449, 59);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(29, 13);
this.label3.TabIndex = 5;
@@ -125,7 +132,7 @@
//
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(396, 33);
this.label2.Location = new System.Drawing.Point(434, 33);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(44, 13);
this.label2.TabIndex = 4;
@@ -135,7 +142,7 @@
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(389, 6);
this.label1.Location = new System.Drawing.Point(427, 6);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(51, 13);
this.label1.TabIndex = 2;
@@ -144,7 +151,7 @@
// TXTport
//
this.TXTport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.TXTport.Location = new System.Drawing.Point(446, 56);
this.TXTport.Location = new System.Drawing.Point(484, 56);
this.TXTport.Name = "TXTport";
this.TXTport.Size = new System.Drawing.Size(150, 20);
this.TXTport.TabIndex = 3;
@@ -153,7 +160,7 @@
// TXTip
//
this.TXTip.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.TXTip.Location = new System.Drawing.Point(446, 30);
this.TXTip.Location = new System.Drawing.Point(484, 30);
this.TXTip.Name = "TXTip";
this.TXTip.Size = new System.Drawing.Size(150, 20);
this.TXTip.TabIndex = 2;
@@ -169,7 +176,7 @@
"Fanuc",
"Siemens",
"Osai"});
this.NcCombo.Location = new System.Drawing.Point(446, 3);
this.NcCombo.Location = new System.Drawing.Point(484, 3);
this.NcCombo.Name = "NcCombo";
this.NcCombo.Size = new System.Drawing.Size(150, 21);
this.NcCombo.TabIndex = 2;
@@ -178,7 +185,7 @@
// TXTPath1
//
this.TXTPath1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.TXTPath1.Location = new System.Drawing.Point(507, 100);
this.TXTPath1.Location = new System.Drawing.Point(545, 100);
this.TXTPath1.Name = "TXTPath1";
this.TXTPath1.ReadOnly = true;
this.TXTPath1.Size = new System.Drawing.Size(65, 20);
@@ -188,7 +195,7 @@
//
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(433, 103);
this.label4.Location = new System.Drawing.Point(471, 103);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(68, 13);
this.label4.TabIndex = 6;
@@ -197,7 +204,7 @@
// TXTStat1
//
this.TXTStat1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.TXTStat1.Location = new System.Drawing.Point(507, 126);
this.TXTStat1.Location = new System.Drawing.Point(545, 126);
this.TXTStat1.Name = "TXTStat1";
this.TXTStat1.ReadOnly = true;
this.TXTStat1.Size = new System.Drawing.Size(65, 20);
@@ -207,7 +214,7 @@
//
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(430, 129);
this.label5.Location = new System.Drawing.Point(468, 129);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(71, 13);
this.label5.TabIndex = 8;
@@ -216,7 +223,7 @@
// TXTName
//
this.TXTName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.TXTName.Location = new System.Drawing.Point(290, 19);
this.TXTName.Location = new System.Drawing.Point(328, 19);
this.TXTName.Name = "TXTName";
this.TXTName.ReadOnly = true;
this.TXTName.Size = new System.Drawing.Size(150, 20);
@@ -226,7 +233,7 @@
//
this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(232, 22);
this.label6.Location = new System.Drawing.Point(270, 22);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(55, 13);
this.label6.TabIndex = 10;
@@ -235,7 +242,7 @@
// TXTNProcess
//
this.TXTNProcess.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.TXTNProcess.Location = new System.Drawing.Point(507, 74);
this.TXTNProcess.Location = new System.Drawing.Point(545, 74);
this.TXTNProcess.Name = "TXTNProcess";
this.TXTNProcess.ReadOnly = true;
this.TXTNProcess.Size = new System.Drawing.Size(65, 20);
@@ -244,7 +251,7 @@
// TXTMachNum
//
this.TXTMachNum.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.TXTMachNum.Location = new System.Drawing.Point(507, 48);
this.TXTMachNum.Location = new System.Drawing.Point(545, 48);
this.TXTMachNum.Name = "TXTMachNum";
this.TXTMachNum.ReadOnly = true;
this.TXTMachNum.Size = new System.Drawing.Size(65, 20);
@@ -254,7 +261,7 @@
//
this.LabelBoh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.LabelBoh.AutoSize = true;
this.LabelBoh.Location = new System.Drawing.Point(395, 51);
this.LabelBoh.Location = new System.Drawing.Point(433, 51);
this.LabelBoh.Name = "LabelBoh";
this.LabelBoh.Size = new System.Drawing.Size(106, 13);
this.LabelBoh.TabIndex = 14;
@@ -264,7 +271,7 @@
//
this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(455, 77);
this.label8.Location = new System.Drawing.Point(493, 77);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(46, 13);
this.label8.TabIndex = 15;
@@ -273,7 +280,7 @@
// TXTTime
//
this.TXTTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.TXTTime.Location = new System.Drawing.Point(531, 752);
this.TXTTime.Location = new System.Drawing.Point(569, 752);
this.TXTTime.Name = "TXTTime";
this.TXTTime.ReadOnly = true;
this.TXTTime.Size = new System.Drawing.Size(65, 20);
@@ -292,7 +299,7 @@
//
this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(446, 22);
this.label11.Location = new System.Drawing.Point(484, 22);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(61, 13);
this.label11.TabIndex = 24;
@@ -301,7 +308,7 @@
// TXTSft
//
this.TXTSft.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.TXTSft.Location = new System.Drawing.Point(507, 19);
this.TXTSft.Location = new System.Drawing.Point(545, 19);
this.TXTSft.Name = "TXTSft";
this.TXTSft.ReadOnly = true;
this.TXTSft.Size = new System.Drawing.Size(64, 20);
@@ -315,7 +322,7 @@
this.tableLayoutPanel1.ColumnCount = 3;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50.76253F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 49.23747F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 283F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 285F));
this.tableLayoutPanel1.Controls.Add(this.groupBox2, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.groupBox1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.groupBox4, 2, 0);
@@ -324,34 +331,9 @@
this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 18.00948F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 81.99052F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(565, 271);
this.tableLayoutPanel1.Size = new System.Drawing.Size(603, 271);
this.tableLayoutPanel1.TabIndex = 25;
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.TXTAlmNc);
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(137, 265);
this.groupBox1.TabIndex = 27;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Nc";
//
// TXTAlmNc
//
this.TXTAlmNc.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TXTAlmNc.Location = new System.Drawing.Point(6, 19);
this.TXTAlmNc.Multiline = true;
this.TXTAlmNc.Name = "TXTAlmNc";
this.TXTAlmNc.ReadOnly = true;
this.TXTAlmNc.Size = new System.Drawing.Size(125, 240);
this.TXTAlmNc.TabIndex = 20;
//
// groupBox2
//
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@@ -359,9 +341,9 @@
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox2.Controls.Add(this.TXTMsg);
this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.groupBox2.Location = new System.Drawing.Point(146, 3);
this.groupBox2.Location = new System.Drawing.Point(164, 3);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(132, 265);
this.groupBox2.Size = new System.Drawing.Size(150, 265);
this.groupBox2.TabIndex = 28;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Plc";
@@ -375,9 +357,83 @@
this.TXTMsg.Multiline = true;
this.TXTMsg.Name = "TXTMsg";
this.TXTMsg.ReadOnly = true;
this.TXTMsg.Size = new System.Drawing.Size(121, 238);
this.TXTMsg.Size = new System.Drawing.Size(139, 238);
this.TXTMsg.TabIndex = 18;
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.TXTAlmNc);
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(155, 265);
this.groupBox1.TabIndex = 27;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Nc";
//
// TXTAlmNc
//
this.TXTAlmNc.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TXTAlmNc.Location = new System.Drawing.Point(6, 19);
this.TXTAlmNc.Multiline = true;
this.TXTAlmNc.Name = "TXTAlmNc";
this.TXTAlmNc.ReadOnly = true;
this.TXTAlmNc.Size = new System.Drawing.Size(143, 240);
this.TXTAlmNc.TabIndex = 20;
//
// groupBox4
//
this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox4.Controls.Add(this.tabControl1);
this.groupBox4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.groupBox4.Location = new System.Drawing.Point(320, 3);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(280, 265);
this.groupBox4.TabIndex = 29;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "Path";
//
// tabControl1
//
this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Location = new System.Drawing.Point(6, 21);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(267, 238);
this.tabControl1.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.TXTAlm);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(259, 212);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Path 1";
this.tabPage1.UseVisualStyleBackColor = true;
//
// TXTAlm
//
this.TXTAlm.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TXTAlm.Location = new System.Drawing.Point(6, 5);
this.TXTAlm.Multiline = true;
this.TXTAlm.Name = "TXTAlm";
this.TXTAlm.ReadOnly = true;
this.TXTAlm.Size = new System.Drawing.Size(247, 203);
this.TXTAlm.TabIndex = 18;
//
// groupBox3
//
this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@@ -386,7 +442,7 @@
this.groupBox3.Controls.Add(this.tableLayoutPanel1);
this.groupBox3.Location = new System.Drawing.Point(3, 315);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(577, 296);
this.groupBox3.Size = new System.Drawing.Size(615, 296);
this.groupBox3.TabIndex = 26;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Alarms";
@@ -408,28 +464,77 @@
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 51.92308F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 48.07692F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 301F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(583, 614);
this.tableLayoutPanel2.Size = new System.Drawing.Size(621, 614);
this.tableLayoutPanel2.TabIndex = 27;
//
// groupBox4
// groupBox6
//
this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
this.groupBox6.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox4.Controls.Add(this.tabControl1);
this.groupBox4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.groupBox4.Location = new System.Drawing.Point(284, 3);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(278, 265);
this.groupBox4.TabIndex = 29;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "Path";
this.groupBox6.Controls.Add(this.tabControl2);
this.groupBox6.Location = new System.Drawing.Point(3, 165);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(615, 144);
this.groupBox6.TabIndex = 30;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "Part Program";
//
// tabControl2
//
this.tabControl2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tabControl2.Controls.Add(this.tabPage3);
this.tabControl2.Location = new System.Drawing.Point(6, 21);
this.tabControl2.Name = "tabControl2";
this.tabControl2.SelectedIndex = 0;
this.tabControl2.Size = new System.Drawing.Size(603, 117);
this.tabControl2.TabIndex = 0;
//
// tabPage3
//
this.tabPage3.Controls.Add(this.TXTPPName);
this.tabPage3.Controls.Add(this.TXTPPLines);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(595, 91);
this.tabPage3.TabIndex = 0;
this.tabPage3.Text = "Path 1";
this.tabPage3.UseVisualStyleBackColor = true;
//
// TXTPPName
//
this.TXTPPName.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TXTPPName.Location = new System.Drawing.Point(0, 6);
this.TXTPPName.Name = "TXTPPName";
this.TXTPPName.ReadOnly = true;
this.TXTPPName.Size = new System.Drawing.Size(595, 20);
this.TXTPPName.TabIndex = 19;
//
// TXTPPLines
//
this.TXTPPLines.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TXTPPLines.Location = new System.Drawing.Point(-1, 32);
this.TXTPPLines.Multiline = true;
this.TXTPPLines.Name = "TXTPPLines";
this.TXTPPLines.ReadOnly = true;
this.TXTPPLines.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.TXTPPLines.Size = new System.Drawing.Size(596, 56);
this.TXTPPLines.TabIndex = 18;
//
// groupBox5
//
this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox5.Controls.Add(this.TXTNow);
this.groupBox5.Controls.Add(this.label7);
this.groupBox5.Controls.Add(this.TXTSft);
this.groupBox5.Controls.Add(this.label11);
this.groupBox5.Controls.Add(this.TXTPath1);
@@ -444,99 +549,62 @@
this.groupBox5.Controls.Add(this.TXTNProcess);
this.groupBox5.Location = new System.Drawing.Point(3, 3);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(577, 156);
this.groupBox5.Size = new System.Drawing.Size(615, 156);
this.groupBox5.TabIndex = 29;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "Nc Info";
//
// groupBox6
// tableLayoutPanel3
//
this.groupBox6.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
this.tableLayoutPanel3.ColumnCount = 2;
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel3.Controls.Add(this.Disconnect, 1, 0);
this.tableLayoutPanel3.Controls.Add(this.Connect, 0, 0);
this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 92);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 1;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(632, 29);
this.tableLayoutPanel3.TabIndex = 6;
//
// Disconnect
//
this.Disconnect.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox6.Controls.Add(this.tabControl2);
this.groupBox6.Location = new System.Drawing.Point(3, 165);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(577, 144);
this.groupBox6.TabIndex = 30;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "Part Program";
this.Disconnect.Enabled = false;
this.Disconnect.Location = new System.Drawing.Point(319, 3);
this.Disconnect.Name = "Disconnect";
this.Disconnect.Size = new System.Drawing.Size(310, 23);
this.Disconnect.TabIndex = 1;
this.Disconnect.Text = "Disconnect";
this.Disconnect.UseVisualStyleBackColor = true;
this.Disconnect.Click += new System.EventHandler(this.Disconnect_Click);
//
// tabControl2
// TXTNow
//
this.tabControl2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tabControl2.Controls.Add(this.tabPage3);
this.tabControl2.Location = new System.Drawing.Point(6, 21);
this.tabControl2.Name = "tabControl2";
this.tabControl2.SelectedIndex = 0;
this.tabControl2.Size = new System.Drawing.Size(565, 117);
this.tabControl2.TabIndex = 0;
this.TXTNow.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.TXTNow.Location = new System.Drawing.Point(114, 19);
this.TXTNow.Name = "TXTNow";
this.TXTNow.ReadOnly = true;
this.TXTNow.Size = new System.Drawing.Size(150, 20);
this.TXTNow.TabIndex = 25;
//
// tabPage3
// label7
//
this.tabPage3.Controls.Add(this.TXTPPLines);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(557, 91);
this.tabPage3.TabIndex = 0;
this.tabPage3.Text = "Path 1";
this.tabPage3.UseVisualStyleBackColor = true;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.TXTAlm);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(257, 212);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Path 1";
this.tabPage1.UseVisualStyleBackColor = true;
//
// tabControl1
//
this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Location = new System.Drawing.Point(6, 21);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(265, 238);
this.tabControl1.TabIndex = 0;
//
// TXTAlm
//
this.TXTAlm.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TXTAlm.Location = new System.Drawing.Point(6, 5);
this.TXTAlm.Multiline = true;
this.TXTAlm.Name = "TXTAlm";
this.TXTAlm.ReadOnly = true;
this.TXTAlm.Size = new System.Drawing.Size(245, 203);
this.TXTAlm.TabIndex = 18;
//
// TXTPPLines
//
this.TXTPPLines.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TXTPPLines.Location = new System.Drawing.Point(-1, 0);
this.TXTPPLines.Multiline = true;
this.TXTPPLines.Name = "TXTPPLines";
this.TXTPPLines.ReadOnly = true;
this.TXTPPLines.Size = new System.Drawing.Size(558, 88);
this.TXTPPLines.TabIndex = 18;
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(56, 22);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(50, 13);
this.label7.TabIndex = 26;
this.label7.Text = "Nc Time:";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(603, 784);
this.ClientSize = new System.Drawing.Size(641, 784);
this.Controls.Add(this.tableLayoutPanel2);
this.Controls.Add(this.label9);
this.Controls.Add(this.TXTTime);
@@ -548,22 +616,23 @@
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.tableLayoutPanel1.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox4.ResumeLayout(false);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.tableLayoutPanel2.ResumeLayout(false);
this.groupBox4.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
this.groupBox6.ResumeLayout(false);
this.tabControl2.ResumeLayout(false);
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.tabControl1.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
this.tableLayoutPanel3.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
@@ -609,6 +678,11 @@
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TextBox TXTAlm;
private System.Windows.Forms.TextBox TXTPPLines;
private System.Windows.Forms.TextBox TXTPPName;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
private System.Windows.Forms.Button Disconnect;
private System.Windows.Forms.TextBox TXTNow;
private System.Windows.Forms.Label label7;
}
}
+79 -8
View File
@@ -5,6 +5,7 @@ using CMS_CORE.Fanuc;
using CMS_CORE.Osai;
using CMS_CORE.Siemens;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -51,7 +52,8 @@ namespace CMS_CORE_Application
NCPort = ushort.Parse(TXTport.Text.Trim());
if(NCType != "")
{
panel1.Enabled = false;
Connect.Enabled = false;
Disconnect.Enabled = true;
t.Start();
}
@@ -65,7 +67,9 @@ namespace CMS_CORE_Application
ushort procnum = 0;
String MachNumber = "";
String ModelName = "";
String SFTVersion = "";
String SFTVersion = "";
String PPName = "";
DateTime NcTime = new DateTime();
Dictionary<String, double> Axes = new Dictionary<String,double>();
Stopwatch sw = new Stopwatch();
List<String> Alm = new List<string>();
@@ -99,6 +103,8 @@ namespace CMS_CORE_Application
N.PLC_RActiveMessages(ref Msg);
N.NC_RSoftwareVersion(ref SFTVersion);
N.PROC_RPPLines(1,ref Lines);
N.PROC_RPPName(1, ref PPName);
N.NC_RDateTime(ref NcTime);
@@ -113,12 +119,15 @@ namespace CMS_CORE_Application
TXTMachNum.Text = MachNumber;
TXTSft.Text = SFTVersion;
TXTTime.Text = sw.ElapsedMilliseconds.ToString()+" mS";
TXTAlm.Text = String.Join(Environment.NewLine, Alm);
TXTAlmNc.Text = String.Join(Environment.NewLine, Alm2);
TXTMsg.Text = String.Join(Environment.NewLine, Msg);
TXTAlm.Text = String.Join(Environment.NewLine, Alm);
TXTAlmNc.Text = String.Join(Environment.NewLine, Alm2);
TXTMsg.Text = String.Join(Environment.NewLine, Msg);
TXTPPName.Text = PPName;
TXTNow.Text = NcTime.ToString();
TXTPPLines.Text = String.Join(Environment.NewLine, Lines);
panel1.Enabled = false;
Connect.Enabled = false;
Disconnect.Enabled = true;
});
}
@@ -138,7 +147,23 @@ namespace CMS_CORE_Application
{
this.Invoke((ThreadStart)delegate ()
{
panel1.Enabled = true;
TXTPath1.Text = "";
TXTStat1.Text = "";
TXTNProcess.Text = "";
TXTName.Text = "";
TXTMachNum.Text = "";
TXTSft.Text = "";
TXTTime.Text = "";
TXTAlm.Text = "";
TXTAlmNc.Text = "";
TXTMsg.Text = "";
TXTPPName.Text = "";
TXTNow.Text = "";
TXTPPLines.Text = "";
TXTPPLines.Text = String.Join(Environment.NewLine, Lines);
Connect.Enabled = true;
Disconnect.Enabled = false;
});
}
@@ -154,10 +179,29 @@ namespace CMS_CORE_Application
TXTip.Enabled = false;
TXTport.Enabled = false;
}
else
else if(NcCombo.SelectedItem.ToString().Equals("Fanuc"))
{
TXTip.Enabled = true;
TXTport.Enabled = true;
TXTip.Text = "10.69.36.33";
TXTport.Text = "8193";
}
else if (NcCombo.SelectedItem.ToString().Equals("Osai"))
{
TXTip.Enabled = true;
TXTport.Enabled = true;
TXTip.Text = "192.168.157.2";
TXTport.Text = "8080";
}
else if (NcCombo.SelectedItem.ToString().Equals("Demo"))
{
TXTip.Enabled = true;
TXTport.Enabled = true;
TXTip.Text = "localhost";
TXTport.Text = "8080";
}
}
@@ -166,5 +210,32 @@ namespace CMS_CORE_Application
if(t != null)
t.Abort();
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
}
private void Disconnect_Click(object sender, EventArgs e)
{
if (t != null)
t.Abort();
TXTPath1.Text = "";
TXTStat1.Text = "";
TXTNProcess.Text = "";
TXTName.Text = "";
TXTMachNum.Text = "";
TXTSft.Text = "";
TXTTime.Text = "";
TXTAlm.Text = "";
TXTAlmNc.Text = "";
TXTMsg.Text = "";
TXTPPName.Text = "";
TXTNow.Text = "";
TXTPPLines.Text = "";
Connect.Enabled = true;
Disconnect.Enabled = false;
}
}
}
+5
View File
@@ -894,6 +894,11 @@ namespace CMS_CORE.Demo
throw new Nc_Exception(getError(BIT_NOT_IN_RANGE_ERROR));
}
public override void PROC_RPPName(ushort ProcNumber, ref string Name)
{
throw new NotImplementedException();
}
#endregion
+23 -1
View File
@@ -330,7 +330,6 @@ namespace CMS_CORE.Fanuc
//Get PP Lines
public override void PROC_RPPLines(ushort ProcNumber, ref List<string> Lines)
{
Focas1.OPMSG3 Messg = new Focas1.OPMSG3();
short nReturn = 0;
int linN;
ushort Lenght = 256;
@@ -367,6 +366,28 @@ namespace CMS_CORE.Fanuc
//Get Active PP Name
public override void PROC_RPPName(ushort ProcNumber, ref string Name)
{
short nReturn = 0;
Focas1.ODBEXEPRG Prg = new Focas1.ODBEXEPRG(); ;
//Check if the NC is Connected
CheckConnection();
//Execute the method
nReturn = Focas1.cnc_exeprgname(nLibHandle[GetHandleIndexFromPath(ProcNumber)], Prg);
//Throw Exception if there's an error
if (nReturn != 0)
ThrowNCException(NC_PROD_ERROR, nReturn);
Name = new String(Prg.name).Replace("\0", String.Empty);
}
//Get the PMC Messages
public override void PLC_RActiveMessages(ref List<String> Alarms)
{
@@ -1772,6 +1793,7 @@ namespace CMS_CORE.Fanuc
}
#endregion
}
+14
View File
@@ -442,6 +442,20 @@ namespace CMS_CORE
public abstract void PROC_RPPLines(ushort ProcNumber, ref List<String> Lines);
/**
* <summary>
* Read active PP Name
* <para>
* Compatibility: Fanuc | Osai | Siemens
* </para>
* </summary>
* <exception cref="Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
* <param name="ProcNumber">Process to execute the action</param>
* <param name="Name">Reference of a String Variables where data will be saved</param>
* */
public abstract void PROC_RPPName(ushort ProcNumber, ref String Name);
#endregion
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+34 -1
View File
@@ -463,7 +463,6 @@ namespace CMS_CORE.Osai
{
uint errorClass, errorNum;
ushort nReturn;
MSGERROR err;
String L1 = "";
String L2 = "";
String L3 = "";
@@ -508,6 +507,40 @@ namespace CMS_CORE.Osai
//Get Active PP Name
public override void PROC_RPPName(ushort ProcNumber, ref string Name)
{
uint errorClass, errorNum;
ushort nReturn;
ushort Level = 0;
String MainName = "";
String SubName = "";
//Check if the NC is Connected
CheckConnection();
//Try to get information
try
{
//Execute the method
nReturn = OpenNC.GetActivePartProgram(ProcNumber, out Level, out MainName, out SubName, out errorClass, out errorNum);
//If there's an error launch exception
if (errorClass != 0 || errorNum != 0 || nReturn == 0)
throw new Nc_Exception(getError(NC_PROD_ERROR, errorClass, errorNum));
//Build the new String
Name = MainName;
}
catch (Exception ex)
{
ThrowNCException(ex);
}
}
//Get a dictionary with the Actual position of the axes in Process
public override void AXES_RInterpPosition(ushort Process, ref Dictionary<String, double> Axes)
{
+47 -7
View File
@@ -21,7 +21,7 @@ namespace CMS_CORE.Siemens
const string NcNotFound = "Missing response";
const string NcNotFound2 = "networking error";
const string NcNotFound3 = "Nc not Connected";
const string SinumerikEnvPath = @"MotionControl\siemens\sinumerik";
const string SinumerikEnvVar = "HMI_INSTALL_DIR";
const int IDMinPLCMessage = 700000;
const int IDMaxPLCMessage = 799999;
const int IDMinChannel = 10000;
@@ -41,6 +41,7 @@ namespace CMS_CORE.Siemens
const string PathAdvancedJog = "/Channel/State/machFunc";
const string PathRelatPosition = "/Channel/GeometricAxis/actToolBasPosEN";
const string PathActProgLines = "/Channel/ProgramInfo/actPartProgram";
const string PathActProgName = "/Channel/ProgramPointer/progName";
// Global Variables
private DateTime Last_Static_Read;
@@ -249,10 +250,10 @@ namespace CMS_CORE.Siemens
CheckConnection();
//Setup variables
DataSvc Data = new DataSvc();
Data.Timeout = TimeoutConn;
Data.PriorityFlag = SlPriority.highPriority;
Item ReadItem = new Item(PathGenericNcState + "[u" + ProcNumber + "]");
DataSvc Data = new DataSvc();
Data.Timeout = TimeoutConn;
Data.PriorityFlag = SlPriority.highPriority;
Item ReadItem = new Item(PathGenericNcState + "[u" + ProcNumber + "]");
//Try to get information
try
@@ -313,6 +314,46 @@ namespace CMS_CORE.Siemens
//Get PP Name
public override void PROC_RPPName(ushort ProcNumber, ref string Name)
{
String RetString;
int LastUnderscore;
//Check if the NC is Connected
CheckConnection();
//Setup variables
DataSvc Data = new DataSvc();
Data.Timeout = TimeoutConn;
Data.PriorityFlag = SlPriority.highPriority;
Item ReadItem = new Item(PathActProgName + "[u" + ProcNumber + "]");
//Try to get information
try
{
//Read Data
Data.Read(ReadItem);
//Elaborate String
RetString = ((String)ReadItem.Value);
RetString = RetString.Replace("_N_", "");
LastUnderscore = RetString.LastIndexOf("_");
if (LastUnderscore >= 0)
RetString = RetString.Remove(LastUnderscore, 1).Insert(LastUnderscore, ".");
//Save Data
Name = RetString;
}
catch (Exception ex)
{
ThrowNCException(ex);
}
}
//Get the Nc Active Alarms
public override void NC_RActiveAlarms(ref List<string> Alarms)
{
@@ -986,8 +1027,7 @@ namespace CMS_CORE.Siemens
//Check if Siemens Environment is started
private void CheckSiemensEnv()
{
Debug.WriteLine(Environment.GetEnvironmentVariable("PATH"));
if (!Environment.GetEnvironmentVariable("PATH").Contains(SinumerikEnvPath))
if (String.IsNullOrEmpty(Environment.GetEnvironmentVariable(SinumerikEnvVar)))
throw new Nc_Exception("CMS-Core-Error: Siemens Environment not found");
}