From fa6c6e84bc48f0cd86fc4dbd33816bdc36dd5763 Mon Sep 17 00:00:00 2001 From: wangsr Date: Thu, 17 Aug 2023 10:35:44 +0800 Subject: [PATCH] =?UTF-8?q?add=20-=20=E7=94=B5=E6=9C=BA=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=9D=97=E7=8A=B6=E6=80=81=E6=A3=80=E6=B5=8B=20-=20=E5=BE=85?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0Timer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ElectronicMachinery_2.Designer.cs | 2 +- ...lectronicMachineryStateMonitor.Designer.cs | 1013 ++++++++++++++--- .../ElectronicMachineryStateMonitor.cs | 137 ++- 3 files changed, 950 insertions(+), 202 deletions(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachinery/ElectronicMachinery_2.Designer.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachinery/ElectronicMachinery_2.Designer.cs index ce8a1fc..bb36e3d 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachinery/ElectronicMachinery_2.Designer.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachinery/ElectronicMachinery_2.Designer.cs @@ -156,7 +156,7 @@ this.DmChange.SelectedIndexChanged += new System.EventHandler(this.DmChange_SelectedIndexChanged); this.DmChange.Items.AddRange(new object[] { "磨粉主机电机", - "磨粉风机电机", + "磨粉风机电机" }); // // ElectronicMachinery_2 diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.Designer.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.Designer.cs index f629d96..b710909 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.Designer.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.Designer.cs @@ -51,26 +51,84 @@ this.ManualModeLable = new System.Windows.Forms.Label(); this.DmChange_FOR_MOTOR = new System.Windows.Forms.ListBox(); this.FOR_MOTOR_S_TO_T = new System.Windows.Forms.GroupBox(); - this.FOR_MOTOR_VFD = new System.Windows.Forms.GroupBox(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.Alarm_T_S = new System.Windows.Forms.Label(); + this.StartAuto_S = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.Alarm_S_S = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.StopManual_S = new System.Windows.Forms.Label(); + this.StartManual_S = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.Alarm_M_S = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.label14 = new System.Windows.Forms.Label(); - this.label15 = new System.Windows.Forms.Label(); - this.label16 = new System.Windows.Forms.Label(); - this.label17 = new System.Windows.Forms.Label(); + this.AutoMode_S = new System.Windows.Forms.Label(); + this.ManualMode_S = new System.Windows.Forms.Label(); + this.Alarm_S = new System.Windows.Forms.Label(); + this.StopAuto_S = new System.Windows.Forms.Label(); + this.AlarmReset_S = new System.Windows.Forms.Label(); + this.Run_T_S = new System.Windows.Forms.Label(); + this.Running_M_S = new System.Windows.Forms.Label(); + this.Running_S_S = new System.Windows.Forms.Label(); + this.Run_S_S = new System.Windows.Forms.Label(); + this.Running_T_S = new System.Windows.Forms.Label(); + this.Run_M_S = new System.Windows.Forms.Label(); + this.FOR_MOTOR_VFD = new System.Windows.Forms.GroupBox(); + this.label37 = new System.Windows.Forms.Label(); + this.label38 = new System.Windows.Forms.Label(); + this.label39 = new System.Windows.Forms.Label(); + this.label40 = new System.Windows.Forms.Label(); + this.label41 = new System.Windows.Forms.Label(); + this.label42 = new System.Windows.Forms.Label(); + this.label43 = new System.Windows.Forms.Label(); + this.label44 = new System.Windows.Forms.Label(); + this.label45 = new System.Windows.Forms.Label(); + this.label46 = new System.Windows.Forms.Label(); + this.label47 = new System.Windows.Forms.Label(); + this.label48 = new System.Windows.Forms.Label(); + this.label49 = new System.Windows.Forms.Label(); + this.label50 = new System.Windows.Forms.Label(); + this.label51 = new System.Windows.Forms.Label(); + this.label52 = new System.Windows.Forms.Label(); + this.label53 = new System.Windows.Forms.Label(); + this.label54 = new System.Windows.Forms.Label(); + this.label55 = new System.Windows.Forms.Label(); + this.ACT_Speed_VFD = new System.Windows.Forms.Label(); + this.SetSpeed_M_VFD = new System.Windows.Forms.Label(); + this.Auto_BT_VFD = new System.Windows.Forms.Label(); + this.Man_BT_VFD = new System.Windows.Forms.Label(); + this.SetSpeed_A_VFD = new System.Windows.Forms.Label(); + this.Start_A_VFD = new System.Windows.Forms.Label(); + this.Stop_A_VFD = new System.Windows.Forms.Label(); + this.Polarity_VFD = new System.Windows.Forms.Label(); + this.Start_M_VFD = new System.Windows.Forms.Label(); + this.Stop_M_VFD = new System.Windows.Forms.Label(); + this.Enable_VFD = new System.Windows.Forms.Label(); + this.AlarmReset_VFD = new System.Windows.Forms.Label(); + this.EXT_Estop_VFD = new System.Windows.Forms.Label(); + this.Error_VFD = new System.Windows.Forms.Label(); + this.AutoMode_VFD = new System.Windows.Forms.Label(); + this.ManMode_VFD = new System.Windows.Forms.Label(); + this.Alarm_VFD = new System.Windows.Forms.Label(); + this.VVVF_OK_VFD = new System.Windows.Forms.Label(); + this.Running_VFD = new System.Windows.Forms.Label(); + this.DmChange_FOR_MOTOR_S = new System.Windows.Forms.ListBox(); + this.DmChange_FOR_MOTOR_VFD = new System.Windows.Forms.ListBox(); this.FOR_MOTOR.SuspendLayout(); this.FOR_MOTOR_S_TO_T.SuspendLayout(); + this.FOR_MOTOR_VFD.SuspendLayout(); this.SuspendLayout(); // // FOR_MOTOR @@ -97,7 +155,7 @@ this.FOR_MOTOR.Controls.Add(this.ManualModeLable); this.FOR_MOTOR.Location = new System.Drawing.Point(12, 12); this.FOR_MOTOR.Name = "FOR_MOTOR"; - this.FOR_MOTOR.Size = new System.Drawing.Size(152, 146); + this.FOR_MOTOR.Size = new System.Drawing.Size(152, 168); this.FOR_MOTOR.TabIndex = 0; this.FOR_MOTOR.TabStop = false; this.FOR_MOTOR.Text = "FOR_MOTOR"; @@ -297,216 +355,798 @@ "磨粉罗茨风机电机", "磨粉皮带正转电机", "磨粉皮带反转电机"}); - this.DmChange_FOR_MOTOR.Location = new System.Drawing.Point(12, 164); + this.DmChange_FOR_MOTOR.Location = new System.Drawing.Point(12, 186); this.DmChange_FOR_MOTOR.Name = "DmChange_FOR_MOTOR"; - this.DmChange_FOR_MOTOR.Size = new System.Drawing.Size(152, 148); + this.DmChange_FOR_MOTOR.Size = new System.Drawing.Size(152, 136); this.DmChange_FOR_MOTOR.TabIndex = 1; this.DmChange_FOR_MOTOR.SelectedIndexChanged += new System.EventHandler(this.DmChange_FOR_MOTOR_SelectedIndexChanged); // // FOR_MOTOR_S_TO_T // this.FOR_MOTOR_S_TO_T.Controls.Add(this.label17); - this.FOR_MOTOR_S_TO_T.Controls.Add(this.label5); - this.FOR_MOTOR_S_TO_T.Controls.Add(this.label16); this.FOR_MOTOR_S_TO_T.Controls.Add(this.label4); this.FOR_MOTOR_S_TO_T.Controls.Add(this.label3); - this.FOR_MOTOR_S_TO_T.Controls.Add(this.label15); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.label16); this.FOR_MOTOR_S_TO_T.Controls.Add(this.label2); this.FOR_MOTOR_S_TO_T.Controls.Add(this.label1); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.label15); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.Alarm_T_S); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.StartAuto_S); this.FOR_MOTOR_S_TO_T.Controls.Add(this.label14); - this.FOR_MOTOR_S_TO_T.Controls.Add(this.label6); - this.FOR_MOTOR_S_TO_T.Controls.Add(this.label7); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.Alarm_S_S); this.FOR_MOTOR_S_TO_T.Controls.Add(this.label13); - this.FOR_MOTOR_S_TO_T.Controls.Add(this.label8); - this.FOR_MOTOR_S_TO_T.Controls.Add(this.label9); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.StopManual_S); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.StartManual_S); this.FOR_MOTOR_S_TO_T.Controls.Add(this.label12); - this.FOR_MOTOR_S_TO_T.Controls.Add(this.label10); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.Alarm_M_S); this.FOR_MOTOR_S_TO_T.Controls.Add(this.label11); - this.FOR_MOTOR_S_TO_T.Location = new System.Drawing.Point(170, 14); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.label5); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.label10); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.label6); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.label9); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.label7); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.label8); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.AutoMode_S); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.ManualMode_S); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.Alarm_S); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.StopAuto_S); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.AlarmReset_S); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.Run_T_S); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.Running_M_S); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.Running_S_S); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.Run_S_S); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.Running_T_S); + this.FOR_MOTOR_S_TO_T.Controls.Add(this.Run_M_S); + this.FOR_MOTOR_S_TO_T.Location = new System.Drawing.Point(170, 12); this.FOR_MOTOR_S_TO_T.Name = "FOR_MOTOR_S_TO_T"; - this.FOR_MOTOR_S_TO_T.Size = new System.Drawing.Size(188, 259); + this.FOR_MOTOR_S_TO_T.Size = new System.Drawing.Size(188, 252); this.FOR_MOTOR_S_TO_T.TabIndex = 2; this.FOR_MOTOR_S_TO_T.TabStop = false; this.FOR_MOTOR_S_TO_T.Text = "FOR_MOTOR_S_TO_T"; // - // FOR_MOTOR_VFD + // label17 // - this.FOR_MOTOR_VFD.Cursor = System.Windows.Forms.Cursors.Arrow; - this.FOR_MOTOR_VFD.Location = new System.Drawing.Point(364, 19); - this.FOR_MOTOR_VFD.Name = "FOR_MOTOR_VFD"; - this.FOR_MOTOR_VFD.Size = new System.Drawing.Size(187, 172); - this.FOR_MOTOR_VFD.TabIndex = 3; - this.FOR_MOTOR_VFD.TabStop = false; - this.FOR_MOTOR_VFD.Text = "FOR_MOTOR_VFD"; + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(23, 209); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(101, 12); + this.label17.TabIndex = 33; + this.label17.Text = "三角型接触器报警"; // - // label1 + // label4 // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(6, 17); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(41, 12); - this.label1.TabIndex = 0; - this.label1.Text = "label1"; + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(23, 53); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(53, 12); + this.label4.TabIndex = 20; + this.label4.Text = "手动停止"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(23, 41); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 19; + this.label3.Text = "手动启动"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(23, 197); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(89, 12); + this.label16.TabIndex = 32; + this.label16.Text = "星型接触器报警"; // // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(6, 29); + this.label2.Location = new System.Drawing.Point(23, 29); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(41, 12); - this.label2.TabIndex = 1; - this.label2.Text = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 18; + this.label2.Text = "自动模式"; // - // label3 + // label1 // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(6, 41); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(41, 12); - this.label3.TabIndex = 2; - this.label3.Text = "label3"; + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(23, 17); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 17; + this.label1.Text = "手动模式"; // - // label4 + // label15 // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(6, 53); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(41, 12); - this.label4.TabIndex = 3; - this.label4.Text = "label4"; + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(23, 185); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(77, 12); + this.label15.TabIndex = 31; + this.label15.Text = "主接触器报警"; // - // label5 + // Alarm_T_S // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(6, 65); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(41, 12); - this.label5.TabIndex = 4; - this.label5.Text = "label5"; + this.Alarm_T_S.AutoSize = true; + this.Alarm_T_S.Location = new System.Drawing.Point(6, 209); + this.Alarm_T_S.Name = "Alarm_T_S"; + this.Alarm_T_S.Size = new System.Drawing.Size(11, 12); + this.Alarm_T_S.TabIndex = 16; + this.Alarm_T_S.Text = "0"; // - // label6 + // StartAuto_S // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(6, 77); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(41, 12); - this.label6.TabIndex = 5; - this.label6.Text = "label6"; + this.StartAuto_S.AutoSize = true; + this.StartAuto_S.Location = new System.Drawing.Point(6, 65); + this.StartAuto_S.Name = "StartAuto_S"; + this.StartAuto_S.Size = new System.Drawing.Size(11, 12); + this.StartAuto_S.TabIndex = 4; + this.StartAuto_S.Text = "0"; // - // label7 + // label14 // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(6, 89); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(41, 12); - this.label7.TabIndex = 6; - this.label7.Text = "label7"; + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(23, 173); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(53, 12); + this.label14.TabIndex = 30; + this.label14.Text = "电机报警"; // - // label8 + // Alarm_S_S // - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(6, 101); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(41, 12); - this.label8.TabIndex = 7; - this.label8.Text = "label8"; + this.Alarm_S_S.AutoSize = true; + this.Alarm_S_S.Location = new System.Drawing.Point(6, 197); + this.Alarm_S_S.Name = "Alarm_S_S"; + this.Alarm_S_S.Size = new System.Drawing.Size(11, 12); + this.Alarm_S_S.TabIndex = 15; + this.Alarm_S_S.Text = "0"; // - // label9 + // label13 // - this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(6, 113); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(41, 12); - this.label9.TabIndex = 8; - this.label9.Text = "label9"; + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(23, 161); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(101, 12); + this.label13.TabIndex = 29; + this.label13.Text = "三角型接触器线圈"; // - // label10 + // StopManual_S // - this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(6, 125); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(47, 12); - this.label10.TabIndex = 9; - this.label10.Text = "label10"; + this.StopManual_S.AutoSize = true; + this.StopManual_S.Location = new System.Drawing.Point(6, 53); + this.StopManual_S.Name = "StopManual_S"; + this.StopManual_S.Size = new System.Drawing.Size(11, 12); + this.StopManual_S.TabIndex = 3; + this.StopManual_S.Text = "0"; // - // label11 + // StartManual_S // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(6, 137); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(47, 12); - this.label11.TabIndex = 10; - this.label11.Text = "label11"; + this.StartManual_S.AutoSize = true; + this.StartManual_S.Location = new System.Drawing.Point(6, 41); + this.StartManual_S.Name = "StartManual_S"; + this.StartManual_S.Size = new System.Drawing.Size(11, 12); + this.StartManual_S.TabIndex = 2; + this.StartManual_S.Text = "0"; // // label12 // this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(6, 149); + this.label12.Location = new System.Drawing.Point(23, 149); this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(47, 12); - this.label12.TabIndex = 11; - this.label12.Text = "label12"; + this.label12.Size = new System.Drawing.Size(89, 12); + this.label12.TabIndex = 28; + this.label12.Text = "星型接触器线圈"; // - // label13 + // Alarm_M_S // - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(6, 161); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(47, 12); - this.label13.TabIndex = 12; - this.label13.Text = "label13"; + this.Alarm_M_S.AutoSize = true; + this.Alarm_M_S.Location = new System.Drawing.Point(6, 185); + this.Alarm_M_S.Name = "Alarm_M_S"; + this.Alarm_M_S.Size = new System.Drawing.Size(11, 12); + this.Alarm_M_S.TabIndex = 14; + this.Alarm_M_S.Text = "0"; // - // label14 + // label11 // - this.label14.AutoSize = true; - this.label14.Location = new System.Drawing.Point(6, 173); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(47, 12); - this.label14.TabIndex = 13; - this.label14.Text = "label14"; + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(23, 137); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(77, 12); + this.label11.TabIndex = 27; + this.label11.Text = "主接触器线圈"; // - // label15 + // label5 // - this.label15.AutoSize = true; - this.label15.Location = new System.Drawing.Point(6, 185); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(47, 12); - this.label15.TabIndex = 14; - this.label15.Text = "label15"; + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(23, 65); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 21; + this.label5.Text = "自动启动"; // - // label16 + // label10 // - this.label16.AutoSize = true; - this.label16.Location = new System.Drawing.Point(6, 197); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(47, 12); - this.label16.TabIndex = 15; - this.label16.Text = "label16"; + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(23, 125); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(125, 12); + this.label10.TabIndex = 26; + this.label10.Text = "三角型接触器运行信号"; // - // label17 + // label6 // - this.label17.AutoSize = true; - this.label17.Location = new System.Drawing.Point(6, 209); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(47, 12); - this.label17.TabIndex = 16; - this.label17.Text = "label17"; + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(23, 77); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(53, 12); + this.label6.TabIndex = 22; + this.label6.Text = "自动停止"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(23, 113); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(113, 12); + this.label9.TabIndex = 25; + this.label9.Text = "星型接触器运行信号"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(23, 89); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(53, 12); + this.label7.TabIndex = 23; + this.label7.Text = "报警复位"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(23, 101); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(101, 12); + this.label8.TabIndex = 24; + this.label8.Text = "主接触器运行信号"; + // + // AutoMode_S + // + this.AutoMode_S.AutoSize = true; + this.AutoMode_S.Location = new System.Drawing.Point(6, 29); + this.AutoMode_S.Name = "AutoMode_S"; + this.AutoMode_S.Size = new System.Drawing.Size(11, 12); + this.AutoMode_S.TabIndex = 1; + this.AutoMode_S.Text = "0"; + // + // ManualMode_S + // + this.ManualMode_S.AutoSize = true; + this.ManualMode_S.Location = new System.Drawing.Point(6, 17); + this.ManualMode_S.Name = "ManualMode_S"; + this.ManualMode_S.Size = new System.Drawing.Size(11, 12); + this.ManualMode_S.TabIndex = 0; + this.ManualMode_S.Text = "0"; + // + // Alarm_S + // + this.Alarm_S.AutoSize = true; + this.Alarm_S.Location = new System.Drawing.Point(6, 173); + this.Alarm_S.Name = "Alarm_S"; + this.Alarm_S.Size = new System.Drawing.Size(11, 12); + this.Alarm_S.TabIndex = 13; + this.Alarm_S.Text = "0"; + // + // StopAuto_S + // + this.StopAuto_S.AutoSize = true; + this.StopAuto_S.Location = new System.Drawing.Point(6, 77); + this.StopAuto_S.Name = "StopAuto_S"; + this.StopAuto_S.Size = new System.Drawing.Size(11, 12); + this.StopAuto_S.TabIndex = 5; + this.StopAuto_S.Text = "0"; + // + // AlarmReset_S + // + this.AlarmReset_S.AutoSize = true; + this.AlarmReset_S.Location = new System.Drawing.Point(6, 89); + this.AlarmReset_S.Name = "AlarmReset_S"; + this.AlarmReset_S.Size = new System.Drawing.Size(11, 12); + this.AlarmReset_S.TabIndex = 6; + this.AlarmReset_S.Text = "0"; + // + // Run_T_S + // + this.Run_T_S.AutoSize = true; + this.Run_T_S.Location = new System.Drawing.Point(6, 161); + this.Run_T_S.Name = "Run_T_S"; + this.Run_T_S.Size = new System.Drawing.Size(11, 12); + this.Run_T_S.TabIndex = 12; + this.Run_T_S.Text = "0"; + // + // Running_M_S + // + this.Running_M_S.AutoSize = true; + this.Running_M_S.Location = new System.Drawing.Point(6, 101); + this.Running_M_S.Name = "Running_M_S"; + this.Running_M_S.Size = new System.Drawing.Size(11, 12); + this.Running_M_S.TabIndex = 7; + this.Running_M_S.Text = "0"; + // + // Running_S_S + // + this.Running_S_S.AutoSize = true; + this.Running_S_S.Location = new System.Drawing.Point(6, 113); + this.Running_S_S.Name = "Running_S_S"; + this.Running_S_S.Size = new System.Drawing.Size(11, 12); + this.Running_S_S.TabIndex = 8; + this.Running_S_S.Text = "0"; + // + // Run_S_S + // + this.Run_S_S.AutoSize = true; + this.Run_S_S.Location = new System.Drawing.Point(6, 149); + this.Run_S_S.Name = "Run_S_S"; + this.Run_S_S.Size = new System.Drawing.Size(11, 12); + this.Run_S_S.TabIndex = 11; + this.Run_S_S.Text = "0"; + // + // Running_T_S + // + this.Running_T_S.AutoSize = true; + this.Running_T_S.Location = new System.Drawing.Point(6, 125); + this.Running_T_S.Name = "Running_T_S"; + this.Running_T_S.Size = new System.Drawing.Size(11, 12); + this.Running_T_S.TabIndex = 9; + this.Running_T_S.Text = "0"; + // + // Run_M_S + // + this.Run_M_S.AutoSize = true; + this.Run_M_S.Location = new System.Drawing.Point(6, 137); + this.Run_M_S.Name = "Run_M_S"; + this.Run_M_S.Size = new System.Drawing.Size(11, 12); + this.Run_M_S.TabIndex = 10; + this.Run_M_S.Text = "0"; + // + // FOR_MOTOR_VFD + // + this.FOR_MOTOR_VFD.Controls.Add(this.label37); + this.FOR_MOTOR_VFD.Controls.Add(this.label38); + this.FOR_MOTOR_VFD.Controls.Add(this.label39); + this.FOR_MOTOR_VFD.Controls.Add(this.label40); + this.FOR_MOTOR_VFD.Controls.Add(this.label41); + this.FOR_MOTOR_VFD.Controls.Add(this.label42); + this.FOR_MOTOR_VFD.Controls.Add(this.label43); + this.FOR_MOTOR_VFD.Controls.Add(this.label44); + this.FOR_MOTOR_VFD.Controls.Add(this.label45); + this.FOR_MOTOR_VFD.Controls.Add(this.label46); + this.FOR_MOTOR_VFD.Controls.Add(this.label47); + this.FOR_MOTOR_VFD.Controls.Add(this.label48); + this.FOR_MOTOR_VFD.Controls.Add(this.label49); + this.FOR_MOTOR_VFD.Controls.Add(this.label50); + this.FOR_MOTOR_VFD.Controls.Add(this.label51); + this.FOR_MOTOR_VFD.Controls.Add(this.label52); + this.FOR_MOTOR_VFD.Controls.Add(this.label53); + this.FOR_MOTOR_VFD.Controls.Add(this.label54); + this.FOR_MOTOR_VFD.Controls.Add(this.label55); + this.FOR_MOTOR_VFD.Controls.Add(this.ACT_Speed_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.SetSpeed_M_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.Auto_BT_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.Man_BT_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.SetSpeed_A_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.Start_A_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.Stop_A_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.Polarity_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.Start_M_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.Stop_M_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.Enable_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.AlarmReset_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.EXT_Estop_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.Error_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.AutoMode_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.ManMode_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.Alarm_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.VVVF_OK_VFD); + this.FOR_MOTOR_VFD.Controls.Add(this.Running_VFD); + this.FOR_MOTOR_VFD.Cursor = System.Windows.Forms.Cursors.Arrow; + this.FOR_MOTOR_VFD.Location = new System.Drawing.Point(364, 12); + this.FOR_MOTOR_VFD.Name = "FOR_MOTOR_VFD"; + this.FOR_MOTOR_VFD.Size = new System.Drawing.Size(187, 252); + this.FOR_MOTOR_VFD.TabIndex = 3; + this.FOR_MOTOR_VFD.TabStop = false; + this.FOR_MOTOR_VFD.Text = "FOR_MOTOR_VFD"; + // + // label37 + // + this.label37.AutoSize = true; + this.label37.Location = new System.Drawing.Point(59, 233); + this.label37.Name = "label37"; + this.label37.Size = new System.Drawing.Size(77, 12); + this.label37.TabIndex = 37; + this.label37.Text = "运行速度反馈"; + // + // label38 + // + this.label38.AutoSize = true; + this.label38.Location = new System.Drawing.Point(59, 221); + this.label38.Name = "label38"; + this.label38.Size = new System.Drawing.Size(77, 12); + this.label38.TabIndex = 36; + this.label38.Text = "自动速度设定"; + // + // label39 + // + this.label39.AutoSize = true; + this.label39.Location = new System.Drawing.Point(23, 17); + this.label39.Name = "label39"; + this.label39.Size = new System.Drawing.Size(53, 12); + this.label39.TabIndex = 19; + this.label39.Text = "自动按钮"; + // + // label40 + // + this.label40.AutoSize = true; + this.label40.Location = new System.Drawing.Point(23, 29); + this.label40.Name = "label40"; + this.label40.Size = new System.Drawing.Size(53, 12); + this.label40.TabIndex = 20; + this.label40.Text = "手动按钮"; + // + // label41 + // + this.label41.AutoSize = true; + this.label41.Location = new System.Drawing.Point(59, 209); + this.label41.Name = "label41"; + this.label41.Size = new System.Drawing.Size(77, 12); + this.label41.TabIndex = 35; + this.label41.Text = "手动速度设定"; + // + // label42 + // + this.label42.AutoSize = true; + this.label42.Location = new System.Drawing.Point(23, 41); + this.label42.Name = "label42"; + this.label42.Size = new System.Drawing.Size(77, 12); + this.label42.TabIndex = 21; + this.label42.Text = "自动启动按钮"; + // + // label43 + // + this.label43.AutoSize = true; + this.label43.Location = new System.Drawing.Point(23, 53); + this.label43.Name = "label43"; + this.label43.Size = new System.Drawing.Size(77, 12); + this.label43.TabIndex = 22; + this.label43.Text = "自动停止按钮"; + // + // label44 + // + this.label44.AutoSize = true; + this.label44.Location = new System.Drawing.Point(23, 197); + this.label44.Name = "label44"; + this.label44.Size = new System.Drawing.Size(65, 12); + this.label44.TabIndex = 34; + this.label44.Text = "0正转1反转"; + // + // label45 + // + this.label45.AutoSize = true; + this.label45.Location = new System.Drawing.Point(23, 65); + this.label45.Name = "label45"; + this.label45.Size = new System.Drawing.Size(77, 12); + this.label45.TabIndex = 23; + this.label45.Text = "手动启动按钮"; + // + // label46 + // + this.label46.AutoSize = true; + this.label46.Location = new System.Drawing.Point(23, 77); + this.label46.Name = "label46"; + this.label46.Size = new System.Drawing.Size(77, 12); + this.label46.TabIndex = 24; + this.label46.Text = "手动停止按钮"; + // + // label47 + // + this.label47.AutoSize = true; + this.label47.Location = new System.Drawing.Point(23, 185); + this.label47.Name = "label47"; + this.label47.Size = new System.Drawing.Size(29, 12); + this.label47.TabIndex = 33; + this.label47.Text = "使能"; + // + // label48 + // + this.label48.AutoSize = true; + this.label48.Location = new System.Drawing.Point(23, 89); + this.label48.Name = "label48"; + this.label48.Size = new System.Drawing.Size(53, 12); + this.label48.TabIndex = 25; + this.label48.Text = "故障复位"; + // + // label49 + // + this.label49.AutoSize = true; + this.label49.Location = new System.Drawing.Point(23, 101); + this.label49.Name = "label49"; + this.label49.Size = new System.Drawing.Size(53, 12); + this.label49.TabIndex = 26; + this.label49.Text = "外部停止"; + // + // label50 + // + this.label50.AutoSize = true; + this.label50.Location = new System.Drawing.Point(23, 173); + this.label50.Name = "label50"; + this.label50.Size = new System.Drawing.Size(77, 12); + this.label50.TabIndex = 32; + this.label50.Text = "变频器轻故障"; + // + // label51 + // + this.label51.AutoSize = true; + this.label51.Location = new System.Drawing.Point(23, 113); + this.label51.Name = "label51"; + this.label51.Size = new System.Drawing.Size(53, 12); + this.label51.TabIndex = 27; + this.label51.Text = "自动模式"; + // + // label52 + // + this.label52.AutoSize = true; + this.label52.Location = new System.Drawing.Point(23, 125); + this.label52.Name = "label52"; + this.label52.Size = new System.Drawing.Size(53, 12); + this.label52.TabIndex = 28; + this.label52.Text = "手动模式"; + // + // label53 + // + this.label53.AutoSize = true; + this.label53.Location = new System.Drawing.Point(23, 161); + this.label53.Name = "label53"; + this.label53.Size = new System.Drawing.Size(77, 12); + this.label53.TabIndex = 31; + this.label53.Text = "变频器重故障"; + // + // label54 + // + this.label54.AutoSize = true; + this.label54.Location = new System.Drawing.Point(23, 137); + this.label54.Name = "label54"; + this.label54.Size = new System.Drawing.Size(101, 12); + this.label54.TabIndex = 29; + this.label54.Text = "变频器启动前正常"; + // + // label55 + // + this.label55.AutoSize = true; + this.label55.Location = new System.Drawing.Point(23, 149); + this.label55.Name = "label55"; + this.label55.Size = new System.Drawing.Size(89, 12); + this.label55.TabIndex = 30; + this.label55.Text = "变频器使能反馈"; + // + // ACT_Speed_VFD + // + this.ACT_Speed_VFD.AutoSize = true; + this.ACT_Speed_VFD.Location = new System.Drawing.Point(6, 233); + this.ACT_Speed_VFD.Name = "ACT_Speed_VFD"; + this.ACT_Speed_VFD.Size = new System.Drawing.Size(23, 12); + this.ACT_Speed_VFD.TabIndex = 18; + this.ACT_Speed_VFD.Text = "0.0"; + // + // SetSpeed_M_VFD + // + this.SetSpeed_M_VFD.AutoSize = true; + this.SetSpeed_M_VFD.Location = new System.Drawing.Point(6, 221); + this.SetSpeed_M_VFD.Name = "SetSpeed_M_VFD"; + this.SetSpeed_M_VFD.Size = new System.Drawing.Size(23, 12); + this.SetSpeed_M_VFD.TabIndex = 17; + this.SetSpeed_M_VFD.Text = "0.0"; + // + // Auto_BT_VFD + // + this.Auto_BT_VFD.AutoSize = true; + this.Auto_BT_VFD.Location = new System.Drawing.Point(6, 17); + this.Auto_BT_VFD.Name = "Auto_BT_VFD"; + this.Auto_BT_VFD.Size = new System.Drawing.Size(11, 12); + this.Auto_BT_VFD.TabIndex = 0; + this.Auto_BT_VFD.Text = "0"; + // + // Man_BT_VFD + // + this.Man_BT_VFD.AutoSize = true; + this.Man_BT_VFD.Location = new System.Drawing.Point(6, 29); + this.Man_BT_VFD.Name = "Man_BT_VFD"; + this.Man_BT_VFD.Size = new System.Drawing.Size(11, 12); + this.Man_BT_VFD.TabIndex = 1; + this.Man_BT_VFD.Text = "0"; + // + // SetSpeed_A_VFD + // + this.SetSpeed_A_VFD.AutoSize = true; + this.SetSpeed_A_VFD.Location = new System.Drawing.Point(6, 209); + this.SetSpeed_A_VFD.Name = "SetSpeed_A_VFD"; + this.SetSpeed_A_VFD.Size = new System.Drawing.Size(23, 12); + this.SetSpeed_A_VFD.TabIndex = 16; + this.SetSpeed_A_VFD.Text = "0.0"; + // + // Start_A_VFD + // + this.Start_A_VFD.AutoSize = true; + this.Start_A_VFD.Location = new System.Drawing.Point(6, 41); + this.Start_A_VFD.Name = "Start_A_VFD"; + this.Start_A_VFD.Size = new System.Drawing.Size(11, 12); + this.Start_A_VFD.TabIndex = 2; + this.Start_A_VFD.Text = "0"; + // + // Stop_A_VFD + // + this.Stop_A_VFD.AutoSize = true; + this.Stop_A_VFD.Location = new System.Drawing.Point(6, 53); + this.Stop_A_VFD.Name = "Stop_A_VFD"; + this.Stop_A_VFD.Size = new System.Drawing.Size(11, 12); + this.Stop_A_VFD.TabIndex = 3; + this.Stop_A_VFD.Text = "0"; + // + // Polarity_VFD + // + this.Polarity_VFD.AutoSize = true; + this.Polarity_VFD.Location = new System.Drawing.Point(6, 197); + this.Polarity_VFD.Name = "Polarity_VFD"; + this.Polarity_VFD.Size = new System.Drawing.Size(11, 12); + this.Polarity_VFD.TabIndex = 15; + this.Polarity_VFD.Text = "0"; + // + // Start_M_VFD + // + this.Start_M_VFD.AutoSize = true; + this.Start_M_VFD.Location = new System.Drawing.Point(6, 65); + this.Start_M_VFD.Name = "Start_M_VFD"; + this.Start_M_VFD.Size = new System.Drawing.Size(11, 12); + this.Start_M_VFD.TabIndex = 4; + this.Start_M_VFD.Text = "0"; + // + // Stop_M_VFD + // + this.Stop_M_VFD.AutoSize = true; + this.Stop_M_VFD.Location = new System.Drawing.Point(6, 77); + this.Stop_M_VFD.Name = "Stop_M_VFD"; + this.Stop_M_VFD.Size = new System.Drawing.Size(11, 12); + this.Stop_M_VFD.TabIndex = 5; + this.Stop_M_VFD.Text = "0"; + // + // Enable_VFD + // + this.Enable_VFD.AutoSize = true; + this.Enable_VFD.Location = new System.Drawing.Point(6, 185); + this.Enable_VFD.Name = "Enable_VFD"; + this.Enable_VFD.Size = new System.Drawing.Size(11, 12); + this.Enable_VFD.TabIndex = 14; + this.Enable_VFD.Text = "0"; + // + // AlarmReset_VFD + // + this.AlarmReset_VFD.AutoSize = true; + this.AlarmReset_VFD.Location = new System.Drawing.Point(6, 89); + this.AlarmReset_VFD.Name = "AlarmReset_VFD"; + this.AlarmReset_VFD.Size = new System.Drawing.Size(11, 12); + this.AlarmReset_VFD.TabIndex = 6; + this.AlarmReset_VFD.Text = "0"; + // + // EXT_Estop_VFD + // + this.EXT_Estop_VFD.AutoSize = true; + this.EXT_Estop_VFD.Location = new System.Drawing.Point(6, 101); + this.EXT_Estop_VFD.Name = "EXT_Estop_VFD"; + this.EXT_Estop_VFD.Size = new System.Drawing.Size(11, 12); + this.EXT_Estop_VFD.TabIndex = 7; + this.EXT_Estop_VFD.Text = "0"; + // + // Error_VFD + // + this.Error_VFD.AutoSize = true; + this.Error_VFD.Location = new System.Drawing.Point(6, 173); + this.Error_VFD.Name = "Error_VFD"; + this.Error_VFD.Size = new System.Drawing.Size(11, 12); + this.Error_VFD.TabIndex = 13; + this.Error_VFD.Text = "0"; + // + // AutoMode_VFD + // + this.AutoMode_VFD.AutoSize = true; + this.AutoMode_VFD.Location = new System.Drawing.Point(6, 113); + this.AutoMode_VFD.Name = "AutoMode_VFD"; + this.AutoMode_VFD.Size = new System.Drawing.Size(11, 12); + this.AutoMode_VFD.TabIndex = 8; + this.AutoMode_VFD.Text = "0"; + // + // ManMode_VFD + // + this.ManMode_VFD.AutoSize = true; + this.ManMode_VFD.Location = new System.Drawing.Point(6, 125); + this.ManMode_VFD.Name = "ManMode_VFD"; + this.ManMode_VFD.Size = new System.Drawing.Size(11, 12); + this.ManMode_VFD.TabIndex = 9; + this.ManMode_VFD.Text = "0"; + // + // Alarm_VFD + // + this.Alarm_VFD.AutoSize = true; + this.Alarm_VFD.Location = new System.Drawing.Point(6, 161); + this.Alarm_VFD.Name = "Alarm_VFD"; + this.Alarm_VFD.Size = new System.Drawing.Size(11, 12); + this.Alarm_VFD.TabIndex = 12; + this.Alarm_VFD.Text = "0"; + // + // VVVF_OK_VFD + // + this.VVVF_OK_VFD.AutoSize = true; + this.VVVF_OK_VFD.Location = new System.Drawing.Point(6, 137); + this.VVVF_OK_VFD.Name = "VVVF_OK_VFD"; + this.VVVF_OK_VFD.Size = new System.Drawing.Size(11, 12); + this.VVVF_OK_VFD.TabIndex = 10; + this.VVVF_OK_VFD.Text = "0"; + // + // Running_VFD + // + this.Running_VFD.AutoSize = true; + this.Running_VFD.Location = new System.Drawing.Point(6, 149); + this.Running_VFD.Name = "Running_VFD"; + this.Running_VFD.Size = new System.Drawing.Size(11, 12); + this.Running_VFD.TabIndex = 11; + this.Running_VFD.Text = "0"; + // + // DmChange_FOR_MOTOR_S + // + this.DmChange_FOR_MOTOR_S.FormattingEnabled = true; + this.DmChange_FOR_MOTOR_S.ItemHeight = 12; + this.DmChange_FOR_MOTOR_S.Items.AddRange(new object[] { + "磨粉主机电机", + "磨粉风机电机"}); + this.DmChange_FOR_MOTOR_S.Location = new System.Drawing.Point(170, 270); + this.DmChange_FOR_MOTOR_S.Name = "DmChange_FOR_MOTOR_S"; + this.DmChange_FOR_MOTOR_S.Size = new System.Drawing.Size(188, 52); + this.DmChange_FOR_MOTOR_S.TabIndex = 4; + this.DmChange_FOR_MOTOR_S.SelectedIndexChanged += new System.EventHandler(this.DmChange_FOR_MOTOR_S_SelectedIndexChanged); + // + // DmChange_FOR_MOTOR_VFD + // + this.DmChange_FOR_MOTOR_VFD.FormattingEnabled = true; + this.DmChange_FOR_MOTOR_VFD.ItemHeight = 12; + this.DmChange_FOR_MOTOR_VFD.Items.AddRange(new object[] { + "筛分机A电机", + "筛分机B电机", + "筛分机C电机", + "磨粉旋转阀电机"}); + this.DmChange_FOR_MOTOR_VFD.Location = new System.Drawing.Point(364, 270); + this.DmChange_FOR_MOTOR_VFD.Name = "DmChange_FOR_MOTOR_VFD"; + this.DmChange_FOR_MOTOR_VFD.Size = new System.Drawing.Size(187, 52); + this.DmChange_FOR_MOTOR_VFD.TabIndex = 5; + this.DmChange_FOR_MOTOR_VFD.SelectedIndexChanged += new System.EventHandler(this.DmChange_FOR_MOTOR_VFD_SelectedIndexChanged); // // ElectronicMachineryStateMonitor // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(989, 549); + this.ClientSize = new System.Drawing.Size(564, 329); + this.Controls.Add(this.DmChange_FOR_MOTOR_VFD); + this.Controls.Add(this.DmChange_FOR_MOTOR_S); this.Controls.Add(this.FOR_MOTOR_VFD); this.Controls.Add(this.FOR_MOTOR_S_TO_T); this.Controls.Add(this.DmChange_FOR_MOTOR); this.Controls.Add(this.FOR_MOTOR); this.Name = "ElectronicMachineryStateMonitor"; - this.Text = "Form1"; + this.Text = " "; this.FOR_MOTOR.ResumeLayout(false); this.FOR_MOTOR.PerformLayout(); this.FOR_MOTOR_S_TO_T.ResumeLayout(false); this.FOR_MOTOR_S_TO_T.PerformLayout(); + this.FOR_MOTOR_VFD.ResumeLayout(false); + this.FOR_MOTOR_VFD.PerformLayout(); this.ResumeLayout(false); } @@ -537,22 +1177,79 @@ private System.Windows.Forms.ListBox DmChange_FOR_MOTOR; private System.Windows.Forms.GroupBox FOR_MOTOR_S_TO_T; private System.Windows.Forms.GroupBox FOR_MOTOR_VFD; - private System.Windows.Forms.Label label17; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label Alarm_T_S; + private System.Windows.Forms.Label StartAuto_S; + private System.Windows.Forms.Label Alarm_S_S; + private System.Windows.Forms.Label StopManual_S; + private System.Windows.Forms.Label StartManual_S; + private System.Windows.Forms.Label Alarm_M_S; + private System.Windows.Forms.Label AutoMode_S; + private System.Windows.Forms.Label ManualMode_S; + private System.Windows.Forms.Label Alarm_S; + private System.Windows.Forms.Label StopAuto_S; + private System.Windows.Forms.Label AlarmReset_S; + private System.Windows.Forms.Label Run_T_S; + private System.Windows.Forms.Label Running_M_S; + private System.Windows.Forms.Label Running_S_S; + private System.Windows.Forms.Label Run_S_S; + private System.Windows.Forms.Label Running_T_S; + private System.Windows.Forms.Label Run_M_S; private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label16; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label15; private System.Windows.Forms.Label label14; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label13; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label9; private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.ListBox DmChange_FOR_MOTOR_S; + private System.Windows.Forms.ListBox DmChange_FOR_MOTOR_VFD; + private System.Windows.Forms.Label label37; + private System.Windows.Forms.Label label38; + private System.Windows.Forms.Label label39; + private System.Windows.Forms.Label label40; + private System.Windows.Forms.Label label41; + private System.Windows.Forms.Label label42; + private System.Windows.Forms.Label label43; + private System.Windows.Forms.Label label44; + private System.Windows.Forms.Label label45; + private System.Windows.Forms.Label label46; + private System.Windows.Forms.Label label47; + private System.Windows.Forms.Label label48; + private System.Windows.Forms.Label label49; + private System.Windows.Forms.Label label50; + private System.Windows.Forms.Label label51; + private System.Windows.Forms.Label label52; + private System.Windows.Forms.Label label53; + private System.Windows.Forms.Label label54; + private System.Windows.Forms.Label label55; + private System.Windows.Forms.Label ACT_Speed_VFD; + private System.Windows.Forms.Label SetSpeed_M_VFD; + private System.Windows.Forms.Label Auto_BT_VFD; + private System.Windows.Forms.Label Man_BT_VFD; + private System.Windows.Forms.Label SetSpeed_A_VFD; + private System.Windows.Forms.Label Start_A_VFD; + private System.Windows.Forms.Label Stop_A_VFD; + private System.Windows.Forms.Label Polarity_VFD; + private System.Windows.Forms.Label Start_M_VFD; + private System.Windows.Forms.Label Stop_M_VFD; + private System.Windows.Forms.Label Enable_VFD; + private System.Windows.Forms.Label AlarmReset_VFD; + private System.Windows.Forms.Label EXT_Estop_VFD; + private System.Windows.Forms.Label Error_VFD; + private System.Windows.Forms.Label AutoMode_VFD; + private System.Windows.Forms.Label ManMode_VFD; + private System.Windows.Forms.Label Alarm_VFD; + private System.Windows.Forms.Label VVVF_OK_VFD; + private System.Windows.Forms.Label Running_VFD; } } \ No newline at end of file diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.cs index 84c7b13..c2c35c2 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.cs @@ -13,13 +13,36 @@ namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMach { public partial class ElectronicMachineryStateMonitor : Form { - string DmName_FOR_MOTOR = "DM1GDP01"; + string DmName_FOR_MOTOR = "DM1GDP01"; + string DmName_FOR_MOTOR_S = "DM1GDS06"; + string DmName_FOR_MOTOR_VFD = "DM1DSM01"; public ElectronicMachineryStateMonitor() { InitializeComponent(); StateMonitor_FOR_MOTOR(DmName_FOR_MOTOR); + StateMonitor_FOR_MOTOR_S(DmName_FOR_MOTOR_S); + StateMonitor_FOR_MOTOR_VFD(DmName_FOR_MOTOR_VFD); } + /// + /// 根据属性名和现在选择的数据块名得到PLC数据块的具体引用 + /// + /// 数据块属性名 + /// + private DataKeyValue GetDataNameValue(string dmName, string dmValue) + { + return new DataKeyValue(dmName + dmValue); + } + + /// + /// 从PLC中读取值 + /// + /// 要读取的属性 + /// + private string GetDataToString(string dmName, string dmValue) + { + return GetDataNameValue(dmName, dmValue).NowValue.ToString(); + } private void DmChange_FOR_MOTOR_SelectedIndexChanged(object sender, EventArgs e) { switch (DmChange_FOR_MOTOR.Text) @@ -72,54 +95,82 @@ namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMach Alarm.Text = GetDataToString(dmName, "_Alarm"); } + private void DmChange_FOR_MOTOR_S_SelectedIndexChanged(object sender, EventArgs e) + { + switch (DmChange_FOR_MOTOR_S.Text) + { + case "磨粉主机电机": + DmName_FOR_MOTOR_S = "DM1GDS06"; + break; + case "磨粉风机电机": + DmName_FOR_MOTOR_S = "DM1GDS07"; + break; + } + StateMonitor_FOR_MOTOR_S(DmName_FOR_MOTOR_S); + } + private void StateMonitor_FOR_MOTOR_S(String dmName) + { + ManualMode_S.Text = GetDataToString(dmName, "_ManualMode"); + AutoMode_S.Text = GetDataToString(dmName, "_AutoMode"); + StartManual_S.Text = GetDataToString(dmName, "_StartManual"); + StopManual_S.Text = GetDataToString(dmName, "_StopManual"); + StartAuto_S.Text = GetDataToString(dmName, "_StartAuto"); + StopAuto_S.Text = GetDataToString(dmName, "_StopAuto"); + AlarmReset_S.Text = GetDataToString(dmName, "_AlarmReset"); + Running_M_S.Text = GetDataToString(dmName, "_RunningM"); + Running_S_S.Text = GetDataToString(dmName, "_RunningS"); + Running_T_S.Text = GetDataToString(dmName, "_RunningT"); + Run_M_S.Text = GetDataToString(dmName, "_RunM"); + Run_S_S.Text = GetDataToString(dmName, "_RunS"); + Run_T_S.Text = GetDataToString(dmName, "_RunT"); + Alarm_S.Text = GetDataToString(dmName, "_Alarm"); + Alarm_M_S.Text = GetDataToString(dmName, "_AlarmM"); + Alarm_S_S.Text = GetDataToString(dmName, "_AlarmS"); + Alarm_T_S.Text = GetDataToString(dmName, "_AlarmT"); + } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /// - /// 根据属性名和现在选择的数据块名得到PLC数据块的具体引用 - /// - /// 数据块属性名 - /// - private DataKeyValue GetDataNameValue(string dmName, string dmValue) + private void DmChange_FOR_MOTOR_VFD_SelectedIndexChanged(object sender, EventArgs e) { - return new DataKeyValue(dmName + dmValue); + switch (DmChange_FOR_MOTOR_VFD.Text) + { + case "筛分机A电机": + DmName_FOR_MOTOR_VFD = "DM1DSM01"; + break; + case "筛分机B电机": + DmName_FOR_MOTOR_VFD = "DM2DSM01"; + break; + case "筛分机C电机": + DmName_FOR_MOTOR_VFD = "DM3DSM01"; + break; + case "磨粉旋转阀电机": + DmName_FOR_MOTOR_VFD = "DM1GDS12"; + break; + } + StateMonitor_FOR_MOTOR_VFD(DmName_FOR_MOTOR_VFD); } - /// - /// 从PLC中读取值 - /// - /// 要读取的属性 - /// - private string GetDataToString(string dmName, string dmValue) + private void StateMonitor_FOR_MOTOR_VFD(string dmName) { - return GetDataNameValue(dmName ,dmValue).NowValue.ToString(); + Auto_BT_VFD.Text = GetDataToString(dmName, "_AutoBT"); + Man_BT_VFD.Text = GetDataToString(dmName, "_ManBT"); + Start_A_VFD.Text = GetDataToString(dmName, "_StartA"); + Stop_A_VFD.Text = GetDataToString(dmName, "_StopA"); + Start_M_VFD.Text = GetDataToString(dmName, "_StartM"); + Stop_M_VFD.Text = GetDataToString(dmName, "_StopM"); + AlarmReset_VFD.Text = GetDataToString(dmName, "_AlarmReset"); + EXT_Estop_VFD.Text = GetDataToString(dmName, "_EXTEstop"); + AutoMode_VFD.Text = GetDataToString(dmName, "_AutoMode"); + ManMode_VFD.Text = GetDataToString(dmName, "_ManMode"); + VVVF_OK_VFD.Text = GetDataToString(dmName, "_VVVFOK"); + Running_VFD.Text = GetDataToString(dmName, "_Running"); + Alarm_VFD.Text = GetDataToString(dmName, "_Alarm"); + Error_VFD.Text = GetDataToString(dmName, "_Error"); + Enable_VFD.Text = GetDataToString(dmName, "_Enable"); + Polarity_VFD.Text = GetDataToString(dmName, "_Polarity"); + SetSpeed_A_VFD.Text = GetDataToString(dmName, "_SetSpeedA"); + SetSpeed_M_VFD.Text = GetDataToString(dmName, "_SetSpeedM"); + ACT_Speed_VFD.Text = GetDataToString(dmName, "_ACTSpeed"); } } }