diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachinery/ElectronicMachinery_3.Designer.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachinery/ElectronicMachinery_3.Designer.cs
index 94f377b..48a49c4 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachinery/ElectronicMachinery_3.Designer.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachinery/ElectronicMachinery_3.Designer.cs
@@ -28,10 +28,17 @@
///
private void InitializeComponent()
{
- this.components = new System.ComponentModel.Container();
+ this.SuspendLayout();
+ //
+ // ElectronicMachinery_3
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(800, 450);
+ this.ClientSize = new System.Drawing.Size(553, 481);
+ this.Name = "ElectronicMachinery_3";
this.Text = "Form1";
+ this.ResumeLayout(false);
+
}
#endregion
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachinery/ElectronicMachinery_3.resx b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachinery/ElectronicMachinery_3.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachinery/ElectronicMachinery_3.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.Designer.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.Designer.cs
new file mode 100644
index 0000000..f629d96
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.Designer.cs
@@ -0,0 +1,558 @@
+namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMachinaryStateMonitor
+{
+ partial class ElectronicMachineryStateMonitor
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.FOR_MOTOR = new System.Windows.Forms.GroupBox();
+ this.Alarm = new System.Windows.Forms.Label();
+ this.Run = new System.Windows.Forms.Label();
+ this.Running = new System.Windows.Forms.Label();
+ this.AlarmReset = new System.Windows.Forms.Label();
+ this.StopAuto = new System.Windows.Forms.Label();
+ this.StartAuto = new System.Windows.Forms.Label();
+ this.StopManual = new System.Windows.Forms.Label();
+ this.StartManual = new System.Windows.Forms.Label();
+ this.AutoMode = new System.Windows.Forms.Label();
+ this.ManualMode = new System.Windows.Forms.Label();
+ this.AlarmLable = new System.Windows.Forms.Label();
+ this.RunLable = new System.Windows.Forms.Label();
+ this.RunningLable = new System.Windows.Forms.Label();
+ this.AlarmResetLable = new System.Windows.Forms.Label();
+ this.StopAutoLable = new System.Windows.Forms.Label();
+ this.StartAutoLable = new System.Windows.Forms.Label();
+ this.StopManualLable = new System.Windows.Forms.Label();
+ this.StartManualLable = new System.Windows.Forms.Label();
+ this.AutoModeLable = new System.Windows.Forms.Label();
+ 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.label4 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label6 = 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.FOR_MOTOR.SuspendLayout();
+ this.FOR_MOTOR_S_TO_T.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // FOR_MOTOR
+ //
+ this.FOR_MOTOR.Controls.Add(this.Alarm);
+ this.FOR_MOTOR.Controls.Add(this.Run);
+ this.FOR_MOTOR.Controls.Add(this.Running);
+ this.FOR_MOTOR.Controls.Add(this.AlarmReset);
+ this.FOR_MOTOR.Controls.Add(this.StopAuto);
+ this.FOR_MOTOR.Controls.Add(this.StartAuto);
+ this.FOR_MOTOR.Controls.Add(this.StopManual);
+ this.FOR_MOTOR.Controls.Add(this.StartManual);
+ this.FOR_MOTOR.Controls.Add(this.AutoMode);
+ this.FOR_MOTOR.Controls.Add(this.ManualMode);
+ this.FOR_MOTOR.Controls.Add(this.AlarmLable);
+ this.FOR_MOTOR.Controls.Add(this.RunLable);
+ this.FOR_MOTOR.Controls.Add(this.RunningLable);
+ this.FOR_MOTOR.Controls.Add(this.AlarmResetLable);
+ this.FOR_MOTOR.Controls.Add(this.StopAutoLable);
+ this.FOR_MOTOR.Controls.Add(this.StartAutoLable);
+ this.FOR_MOTOR.Controls.Add(this.StopManualLable);
+ this.FOR_MOTOR.Controls.Add(this.StartManualLable);
+ this.FOR_MOTOR.Controls.Add(this.AutoModeLable);
+ 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.TabIndex = 0;
+ this.FOR_MOTOR.TabStop = false;
+ this.FOR_MOTOR.Text = "FOR_MOTOR";
+ //
+ // Alarm
+ //
+ this.Alarm.AutoSize = true;
+ this.Alarm.Location = new System.Drawing.Point(6, 125);
+ this.Alarm.Name = "Alarm";
+ this.Alarm.Size = new System.Drawing.Size(11, 12);
+ this.Alarm.TabIndex = 28;
+ this.Alarm.Text = "0";
+ //
+ // Run
+ //
+ this.Run.AutoSize = true;
+ this.Run.Location = new System.Drawing.Point(6, 113);
+ this.Run.Name = "Run";
+ this.Run.Size = new System.Drawing.Size(11, 12);
+ this.Run.TabIndex = 27;
+ this.Run.Text = "0";
+ //
+ // Running
+ //
+ this.Running.AutoSize = true;
+ this.Running.Location = new System.Drawing.Point(6, 101);
+ this.Running.Name = "Running";
+ this.Running.Size = new System.Drawing.Size(11, 12);
+ this.Running.TabIndex = 26;
+ this.Running.Text = "0";
+ //
+ // AlarmReset
+ //
+ this.AlarmReset.AutoSize = true;
+ this.AlarmReset.Location = new System.Drawing.Point(6, 89);
+ this.AlarmReset.Name = "AlarmReset";
+ this.AlarmReset.Size = new System.Drawing.Size(11, 12);
+ this.AlarmReset.TabIndex = 25;
+ this.AlarmReset.Text = "0";
+ //
+ // StopAuto
+ //
+ this.StopAuto.AutoSize = true;
+ this.StopAuto.Location = new System.Drawing.Point(6, 77);
+ this.StopAuto.Name = "StopAuto";
+ this.StopAuto.Size = new System.Drawing.Size(11, 12);
+ this.StopAuto.TabIndex = 24;
+ this.StopAuto.Text = "0";
+ //
+ // StartAuto
+ //
+ this.StartAuto.AutoSize = true;
+ this.StartAuto.Location = new System.Drawing.Point(6, 65);
+ this.StartAuto.Name = "StartAuto";
+ this.StartAuto.Size = new System.Drawing.Size(11, 12);
+ this.StartAuto.TabIndex = 23;
+ this.StartAuto.Text = "0";
+ //
+ // StopManual
+ //
+ this.StopManual.AutoSize = true;
+ this.StopManual.Location = new System.Drawing.Point(6, 53);
+ this.StopManual.Name = "StopManual";
+ this.StopManual.Size = new System.Drawing.Size(11, 12);
+ this.StopManual.TabIndex = 22;
+ this.StopManual.Text = "0";
+ //
+ // StartManual
+ //
+ this.StartManual.AutoSize = true;
+ this.StartManual.Location = new System.Drawing.Point(6, 41);
+ this.StartManual.Name = "StartManual";
+ this.StartManual.Size = new System.Drawing.Size(11, 12);
+ this.StartManual.TabIndex = 21;
+ this.StartManual.Text = "0";
+ //
+ // AutoMode
+ //
+ this.AutoMode.AutoSize = true;
+ this.AutoMode.Location = new System.Drawing.Point(6, 29);
+ this.AutoMode.Name = "AutoMode";
+ this.AutoMode.Size = new System.Drawing.Size(11, 12);
+ this.AutoMode.TabIndex = 20;
+ this.AutoMode.Text = "0";
+ //
+ // ManualMode
+ //
+ this.ManualMode.AutoSize = true;
+ this.ManualMode.Location = new System.Drawing.Point(6, 17);
+ this.ManualMode.Name = "ManualMode";
+ this.ManualMode.Size = new System.Drawing.Size(11, 12);
+ this.ManualMode.TabIndex = 19;
+ this.ManualMode.Text = "0";
+ //
+ // AlarmLable
+ //
+ this.AlarmLable.AutoSize = true;
+ this.AlarmLable.Location = new System.Drawing.Point(23, 125);
+ this.AlarmLable.Name = "AlarmLable";
+ this.AlarmLable.Size = new System.Drawing.Size(29, 12);
+ this.AlarmLable.TabIndex = 18;
+ this.AlarmLable.Text = "报警";
+ //
+ // RunLable
+ //
+ this.RunLable.AutoSize = true;
+ this.RunLable.Location = new System.Drawing.Point(23, 113);
+ this.RunLable.Name = "RunLable";
+ this.RunLable.Size = new System.Drawing.Size(53, 12);
+ this.RunLable.TabIndex = 16;
+ this.RunLable.Text = "输出运行";
+ //
+ // RunningLable
+ //
+ this.RunningLable.AutoSize = true;
+ this.RunningLable.Location = new System.Drawing.Point(23, 101);
+ this.RunningLable.Name = "RunningLable";
+ this.RunningLable.Size = new System.Drawing.Size(53, 12);
+ this.RunningLable.TabIndex = 14;
+ this.RunningLable.Text = "运行检测";
+ //
+ // AlarmResetLable
+ //
+ this.AlarmResetLable.AutoSize = true;
+ this.AlarmResetLable.Location = new System.Drawing.Point(23, 89);
+ this.AlarmResetLable.Name = "AlarmResetLable";
+ this.AlarmResetLable.Size = new System.Drawing.Size(53, 12);
+ this.AlarmResetLable.TabIndex = 12;
+ this.AlarmResetLable.Text = "报警复位";
+ //
+ // StopAutoLable
+ //
+ this.StopAutoLable.AutoSize = true;
+ this.StopAutoLable.Location = new System.Drawing.Point(23, 77);
+ this.StopAutoLable.Name = "StopAutoLable";
+ this.StopAutoLable.Size = new System.Drawing.Size(77, 12);
+ this.StopAutoLable.TabIndex = 10;
+ this.StopAutoLable.Text = "自动停止指令";
+ //
+ // StartAutoLable
+ //
+ this.StartAutoLable.AutoSize = true;
+ this.StartAutoLable.Location = new System.Drawing.Point(23, 65);
+ this.StartAutoLable.Name = "StartAutoLable";
+ this.StartAutoLable.Size = new System.Drawing.Size(77, 12);
+ this.StartAutoLable.TabIndex = 8;
+ this.StartAutoLable.Text = "自动启动指令";
+ //
+ // StopManualLable
+ //
+ this.StopManualLable.AutoSize = true;
+ this.StopManualLable.Location = new System.Drawing.Point(23, 53);
+ this.StopManualLable.Name = "StopManualLable";
+ this.StopManualLable.Size = new System.Drawing.Size(77, 12);
+ this.StopManualLable.TabIndex = 6;
+ this.StopManualLable.Text = "手动停止指令";
+ //
+ // StartManualLable
+ //
+ this.StartManualLable.AutoSize = true;
+ this.StartManualLable.Location = new System.Drawing.Point(23, 41);
+ this.StartManualLable.Name = "StartManualLable";
+ this.StartManualLable.Size = new System.Drawing.Size(77, 12);
+ this.StartManualLable.TabIndex = 4;
+ this.StartManualLable.Text = "手动启动指令";
+ //
+ // AutoModeLable
+ //
+ this.AutoModeLable.AutoSize = true;
+ this.AutoModeLable.Location = new System.Drawing.Point(23, 29);
+ this.AutoModeLable.Name = "AutoModeLable";
+ this.AutoModeLable.Size = new System.Drawing.Size(53, 12);
+ this.AutoModeLable.TabIndex = 2;
+ this.AutoModeLable.Text = "自动模式";
+ //
+ // ManualModeLable
+ //
+ this.ManualModeLable.AutoSize = true;
+ this.ManualModeLable.Location = new System.Drawing.Point(23, 17);
+ this.ManualModeLable.Name = "ManualModeLable";
+ this.ManualModeLable.Size = new System.Drawing.Size(53, 12);
+ this.ManualModeLable.TabIndex = 0;
+ this.ManualModeLable.Text = "手动模式";
+ //
+ // DmChange_FOR_MOTOR
+ //
+ this.DmChange_FOR_MOTOR.FormattingEnabled = true;
+ this.DmChange_FOR_MOTOR.ItemHeight = 12;
+ this.DmChange_FOR_MOTOR.Items.AddRange(new object[] {
+ "二级除尘器除尘风机",
+ "大A组除尘风机",
+ "大仓B组除尘风机",
+ "大仓C组除尘风机",
+ "大仓D组除尘风机",
+ "磨粉分析机电机",
+ "磨粉除尘风机电机",
+ "磨粉罗茨风机电机",
+ "磨粉皮带正转电机",
+ "磨粉皮带反转电机"});
+ this.DmChange_FOR_MOTOR.Location = new System.Drawing.Point(12, 164);
+ this.DmChange_FOR_MOTOR.Name = "DmChange_FOR_MOTOR";
+ this.DmChange_FOR_MOTOR.Size = new System.Drawing.Size(152, 148);
+ 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.label2);
+ this.FOR_MOTOR_S_TO_T.Controls.Add(this.label1);
+ 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.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.label12);
+ this.FOR_MOTOR_S_TO_T.Controls.Add(this.label10);
+ 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.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.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
+ //
+ 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";
+ //
+ // label1
+ //
+ 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";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(6, 29);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(41, 12);
+ this.label2.TabIndex = 1;
+ this.label2.Text = "label2";
+ //
+ // label3
+ //
+ 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";
+ //
+ // label4
+ //
+ 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";
+ //
+ // label5
+ //
+ 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";
+ //
+ // label6
+ //
+ 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";
+ //
+ // label7
+ //
+ 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";
+ //
+ // label8
+ //
+ 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";
+ //
+ // label9
+ //
+ 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";
+ //
+ // label10
+ //
+ 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";
+ //
+ // label11
+ //
+ 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";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(6, 149);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(47, 12);
+ this.label12.TabIndex = 11;
+ this.label12.Text = "label12";
+ //
+ // label13
+ //
+ 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";
+ //
+ // label14
+ //
+ 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";
+ //
+ // label15
+ //
+ 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";
+ //
+ // label16
+ //
+ 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";
+ //
+ // label17
+ //
+ 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";
+ //
+ // 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.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.FOR_MOTOR.ResumeLayout(false);
+ this.FOR_MOTOR.PerformLayout();
+ this.FOR_MOTOR_S_TO_T.ResumeLayout(false);
+ this.FOR_MOTOR_S_TO_T.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.GroupBox FOR_MOTOR;
+ private System.Windows.Forms.Label AlarmLable;
+ private System.Windows.Forms.Label RunLable;
+ private System.Windows.Forms.Label RunningLable;
+ private System.Windows.Forms.Label AlarmResetLable;
+ private System.Windows.Forms.Label StopAutoLable;
+ private System.Windows.Forms.Label StartAutoLable;
+ private System.Windows.Forms.Label StopManualLable;
+ private System.Windows.Forms.Label StartManualLable;
+ private System.Windows.Forms.Label AutoModeLable;
+ private System.Windows.Forms.Label ManualModeLable;
+ private System.Windows.Forms.Label Alarm;
+ private System.Windows.Forms.Label Run;
+ private System.Windows.Forms.Label Running;
+ private System.Windows.Forms.Label AlarmReset;
+ private System.Windows.Forms.Label StopAuto;
+ private System.Windows.Forms.Label StartAuto;
+ private System.Windows.Forms.Label StopManual;
+ private System.Windows.Forms.Label StartManual;
+ private System.Windows.Forms.Label AutoMode;
+ private System.Windows.Forms.Label ManualMode;
+ 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 label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label15;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ 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;
+ }
+}
\ 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
new file mode 100644
index 0000000..84c7b13
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.cs
@@ -0,0 +1,125 @@
+using Mesnac.Action.ChemicalWeighing.Entity;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMachinaryStateMonitor
+{
+ public partial class ElectronicMachineryStateMonitor : Form
+ {
+ string DmName_FOR_MOTOR = "DM1GDP01";
+ public ElectronicMachineryStateMonitor()
+ {
+ InitializeComponent();
+ StateMonitor_FOR_MOTOR(DmName_FOR_MOTOR);
+ }
+
+ private void DmChange_FOR_MOTOR_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ switch (DmChange_FOR_MOTOR.Text)
+ {
+ case "二级除尘器除尘风机":
+ DmName_FOR_MOTOR = "DM1GDP01";
+ break;
+ case "大A组除尘风机":
+ DmName_FOR_MOTOR = "DM1ASIG01";
+ break;
+ case "大仓B组除尘风机":
+ DmName_FOR_MOTOR = "DM1BSIG01";
+ break;
+ case "大仓C组除尘风机":
+ DmName_FOR_MOTOR = "DM1CSIG01";
+ break;
+ case "大仓D组除尘风机":
+ DmName_FOR_MOTOR = "DM1DSIG01";
+ break;
+ case "磨粉分析机电机":
+ DmName_FOR_MOTOR = "DM1GDS01";
+ break;
+ case "磨粉除尘风机电机":
+ DmName_FOR_MOTOR = "DM1GDS02";
+ break;
+ case "磨粉罗茨风机电机":
+ DmName_FOR_MOTOR = "DM1GDS03";
+ break;
+ case "磨粉皮带正转电机":
+ DmName_FOR_MOTOR = "DM1GDS04";
+ break;
+ case "磨粉皮带反转电机":
+ DmName_FOR_MOTOR = "DM1GDS05";
+ break;
+ }
+ StateMonitor_FOR_MOTOR(DmName_FOR_MOTOR);
+ }
+
+ private void StateMonitor_FOR_MOTOR(String dmName)
+ {
+ ManualMode.Text = GetDataToString(dmName, "_ManualMode");
+ AutoMode.Text = GetDataToString(dmName, "_AutoMode");
+ StartManual.Text = GetDataToString(dmName, "_StartManual");
+ StopManual.Text = GetDataToString(dmName, "_StopManual");
+ StartAuto.Text = GetDataToString(dmName, "_StartAuto");
+ StopAuto.Text = GetDataToString(dmName, "_StopAuto");
+ AlarmReset.Text = GetDataToString(dmName, "_AlarmReset");
+ Running.Text = GetDataToString(dmName, "_Running");
+ Run.Text = GetDataToString(dmName, "_Run");
+ Alarm.Text = GetDataToString(dmName, "_Alarm");
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ///
+ /// 根据属性名和现在选择的数据块名得到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();
+ }
+ }
+}
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.resx b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ElectronicMachineryStateMonitor/ElectronicMachineryStateMonitor.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.Designer.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.Designer.cs
new file mode 100644
index 0000000..e603cfc
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.Designer.cs
@@ -0,0 +1,39 @@
+namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ValveStateMonitor
+{
+ partial class ValveStateMonitor
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Text = "Form1";
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.cs
new file mode 100644
index 0000000..c0ded7c
--- /dev/null
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/EngineeringDebuggingMode/ValveStateMonitor/ValveStateMonitor.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ValveStateMonitor
+{
+ public partial class ValveStateMonitor : Form
+ {
+ public ValveStateMonitor()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj
index 0c52ad0..5f84c0f 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj
@@ -212,6 +212,12 @@
+
+ Form
+
+
+ ElectronicMachineryStateMonitor.cs
+
Form
@@ -237,6 +243,12 @@
ValveStateControl.cs
+
+ Form
+
+
+ ValveStateMonitor.cs
+
@@ -690,12 +702,18 @@
FrmBin.cs
+
+ ElectronicMachineryStateMonitor.cs
+
ElectronicMachinery.cs
ElectronicMachinery_2.cs
+
+ ElectronicMachinery_3.cs
+
ValveStateControl.cs
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs
index 29aebe5..308eca9 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs
@@ -6,6 +6,7 @@ using System.Text;
using System.Windows.Forms;
using ICSharpCode.Core;
using Mesnac.Action.Base;
+using Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMachinaryStateMonitor;
using Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMachinery;
using Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ValveStateControl;
using Mesnac.Action.ChemicalWeighing.Entity;
@@ -40,7 +41,7 @@ namespace Mesnac.Action.ChemicalWeighing.Test
// dbHelper.CommandText = sql;
- ElectronicMachinery_2 Form = new ElectronicMachinery_2();
+ ElectronicMachineryStateMonitor Form = new ElectronicMachineryStateMonitor();
Form.Show();