change - 电机初始化状态监测

master
wangsr 2 years ago
parent 8331712550
commit b82b87a847

@ -1,6 +1,6 @@
namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMachinaryStateMonitor
{
partial class ElectronicMachineryStateMonitor
partial class ElectronicMachineryDataStateMonitor
{
/// <summary>
/// Required designer variable.

@ -11,12 +11,12 @@ using System.Windows.Forms;
namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMachinaryStateMonitor
{
public partial class ElectronicMachineryStateMonitor : Form
public partial class ElectronicMachineryDataStateMonitor : Form
{
string DmName_FOR_MOTOR = "DM1GDP01";
string DmName_FOR_MOTOR_S = "DM1GDS06";
string DmName_FOR_MOTOR_VFD = "DM1DSM01";
public ElectronicMachineryStateMonitor()
public ElectronicMachineryDataStateMonitor()
{
InitializeComponent();
StateMonitor_FOR_MOTOR(DmName_FOR_MOTOR);

@ -336,7 +336,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(454, 339);
this.ClientSize = new System.Drawing.Size(375, 339);
this.Controls.Add(this.Refresh);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);

@ -0,0 +1,39 @@
namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.MotorInitStateMonitor
{
partial class MotorInitStateMonitor
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
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 = "MotorInitStateMonitor";
}
#endregion
}
}

@ -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.MotorInitStateMonitor
{
public partial class MotorInitStateMonitor : Form
{
public MotorInitStateMonitor()
{
InitializeComponent();
}
}
}

@ -715,7 +715,9 @@
"输送线C滚筒筛分机振动阀",
"二级除尘器侧吹脉冲阀1",
"二级除尘器侧吹脉冲阀2",
"磨粉系统旋转阀气密封电磁阀"});
"磨粉系统旋转阀气密封电磁阀"
});
this.DmChange_S.Location = new System.Drawing.Point(12, 191);
this.DmChange_S.Name = "DmChange_S";
this.DmChange_S.Size = new System.Drawing.Size(208, 172);
@ -741,7 +743,8 @@
"分配阀12直通电磁阀",
"分配阀13直通电磁阀",
"分配阀14直通电磁阀",
"分配阀15直通电磁阀"});
"分配阀15直通电磁阀"
});
this.DmChange_D.Location = new System.Drawing.Point(226, 227);
this.DmChange_D.Name = "DmChange_D";
this.DmChange_D.Size = new System.Drawing.Size(157, 136);

@ -23,11 +23,6 @@ namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ValveStateMoni
public ValveStateMonitor()
{
InitializeComponent();
}
private void ValueTimer_Tick(object sender, EventArgs e)
{
StateMonitor_D(DmName_D);
StateMonitor_S(DmName_S);
}

@ -0,0 +1,881 @@
namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.NewFolder1
{
partial class ValveInitStateMonitor
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Refresh = new System.Windows.Forms.Button();
this.DmChange_D = new System.Windows.Forms.ListBox();
this.DmChange_S = new System.Windows.Forms.ListBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
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.label18 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.label21 = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.label23 = new System.Windows.Forms.Label();
this.label24 = new System.Windows.Forms.Label();
this.label25 = new System.Windows.Forms.Label();
this.label26 = new System.Windows.Forms.Label();
this.label27 = new System.Windows.Forms.Label();
this.Alarm_D = new System.Windows.Forms.Label();
this.AlarmPosition_D = new System.Windows.Forms.Label();
this.AlarmRightPosition_D = new System.Windows.Forms.Label();
this.AlarmLeftPosition_D = new System.Windows.Forms.Label();
this.SetRight_D = new System.Windows.Forms.Label();
this.SetLeft_D = new System.Windows.Forms.Label();
this.RightPosition_D = new System.Windows.Forms.Label();
this.LeftPosition_D = new System.Windows.Forms.Label();
this.AlarmReset_D = new System.Windows.Forms.Label();
this.SetRightAuto_D = new System.Windows.Forms.Label();
this.SetLeftAuto_D = new System.Windows.Forms.Label();
this.SetRightManual_D = new System.Windows.Forms.Label();
this.SetLeftManual_D = new System.Windows.Forms.Label();
this.ManualMode_D = new System.Windows.Forms.Label();
this.AutoMode_D = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label29 = new System.Windows.Forms.Label();
this.P_S = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
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.AlarmPosition_S = new System.Windows.Forms.Label();
this.Alarm_S = new System.Windows.Forms.Label();
this.AlarmUnSetPos_S = new System.Windows.Forms.Label();
this.AlarmSetPos_S = new System.Windows.Forms.Label();
this.Set_S = new System.Windows.Forms.Label();
this.UnSetPosition_S = new System.Windows.Forms.Label();
this.SetPosition_S = new System.Windows.Forms.Label();
this.AlarmReset_S = new System.Windows.Forms.Label();
this.SetAuto_S = new System.Windows.Forms.Label();
this.SetManual_S = new System.Windows.Forms.Label();
this.ManualMode_S = new System.Windows.Forms.Label();
this.AutoMode_S = new System.Windows.Forms.Label();
this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// Refresh
//
this.Refresh.Location = new System.Drawing.Point(110, 375);
this.Refresh.Name = "Refresh";
this.Refresh.Size = new System.Drawing.Size(164, 33);
this.Refresh.TabIndex = 9;
this.Refresh.Text = "刷新";
this.Refresh.UseVisualStyleBackColor = true;
this.Refresh.Click += new System.EventHandler(this.Refresh_Click);
//
// DmChange_D
//
this.DmChange_D.FormattingEnabled = true;
this.DmChange_D.ItemHeight = 12;
this.DmChange_D.Items.AddRange(new object[] {
"二级气力输送管道分配阀1",
"二级气力输送管道分配阀2",
"二级气力输送管道分配阀3",
"二级气力动送管道分配阀4",
"二级气力输送管道分配阀5",
"二级气力输送管道分配阀6",
"二级气力动送管道分配阀7",
"二级气力输送管道分配阀8",
"二级气力输送管道分配阀9",
"二级气力动送管道分配阀10",
"二级气力输送管道分配阀11",
"二级气力输送管道分配阀12",
"二级气力动送管道分配阀13",
"二级气力输送管道分配阀14"});
this.DmChange_D.Location = new System.Drawing.Point(227, 221);
this.DmChange_D.Name = "DmChange_D";
this.DmChange_D.Size = new System.Drawing.Size(207, 148);
this.DmChange_D.TabIndex = 8;
this.DmChange_D.SelectedIndexChanged += new System.EventHandler(this.DmChange_D_SelectedIndexChanged);
//
// DmChange_S
//
this.DmChange_S.FormattingEnabled = true;
this.DmChange_S.ItemHeight = 12;
this.DmChange_S.Items.AddRange(new object[] {
"螺旋输送机1A出料蝶阀",
"螺旋输送机1B出料蝶阀",
"螺旋输送机1C出料蝶阀",
"螺旋输送机1D出料蝶阀",
"螺旋输送机1E出料蝶阀",
"螺旋输送机1F出料蝶阀",
"螺旋输送机1G出料蝶阀",
"螺旋输送机1H出料蝶阀",
"螺旋输送机1I出料蝶阀",
"螺旋输送机1J出料蝶阀",
"螺旋输送机1K出料蝶阀",
"螺旋输送机1L出料蝶阀",
"螺旋输送机1M出料蝶阀",
"螺旋输送机1N出料蝶阀",
"螺旋输送机1O出料蝶阀",
"压送秤A进料蝶阀",
"压送秤A进料蝶阀",
"压送秤A进料蝶阀",
"压送秤A进料蝶阀",
"压送秤A返气蝶阀",
"压送秤A出料蝶阀",
"压送秤A除尘出料蝶阀",
"压送秤B进料蝶阀",
"压送秤B进料蝶阀",
"压送秤B返气蝶阀",
"压送秤B出料蝶阀",
"压送秤B除尘出料蝶阀",
"压送秤C进料蝶阀",
"压送秤C进料蝶阀",
"压送秤C进料蝶阀",
"压送秤C进料蝶阀",
"压送秤C返气蝶阀",
"压送秤C出料蝶阀",
"压送秤C除尘出料蝶阀",
"压送秤D进料蝶阀",
"压送秤D进料蝶阀",
"压送秤D进料蝶阀",
"压送秤D进料蝶阀",
"压送秤D返气蝶阀",
"压送秤D出料蝶阀",
"压送秤D除尘出料蝶阀",
"压送秤E进料蝶阀",
"压送秤E返气蝶阀",
"压送秤E出料蝶阀",
"压送秤E除尘出料蝶阀",
"双向螺旋输送机2A出料蝶阀",
"双向螺旋输送机2A出料蝶阀",
"双向螺旋输送机2B出料蝶阀",
"双向螺旋输送机2B出料蝶阀",
"双向螺旋输送机2C出料蝶阀",
"双向螺旋输送机2C出料蝶阀",
"双向螺旋输送机2D出料蝶阀",
"双向螺旋输送机2D出料蝶阀",
"缓存仓1A出料蝶阀",
"缓存仓1B出料蝶阀",
"缓存仓1C出料蝶阀",
"缓存仓1D出料蝶阀",
"缓存仓1E出料蝶阀",
"缓存仓1F出料蝶阀",
"缓存仓1G出料蝶阀",
"缓存仓1H出料蝶阀",
"缓存仓1I出料蝶阀",
"缓存仓1J出料蝶阀",
"缓存仓1K出料蝶阀",
"缓存仓1L出料蝶阀",
"干混机卸料阀",
"干混机卸料阀",
"干混机卸料阀",
"干混机卸料阀",
"糊化机卸料阀",
"糊化机卸料阀",
"糊化机卸料阀",
"糊化机卸料阀",
"糊化机卸料阀",
"糊化机卸料阀",
"糊化机卸料阀",
"糊化机卸料阀"});
this.DmChange_S.Location = new System.Drawing.Point(12, 197);
this.DmChange_S.Name = "DmChange_S";
this.DmChange_S.Size = new System.Drawing.Size(208, 172);
this.DmChange_S.TabIndex = 7;
this.DmChange_S.SelectedIndexChanged += new System.EventHandler(this.DmChange_S_SelectedIndexChanged);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.label13);
this.groupBox2.Controls.Add(this.label14);
this.groupBox2.Controls.Add(this.label15);
this.groupBox2.Controls.Add(this.label16);
this.groupBox2.Controls.Add(this.label17);
this.groupBox2.Controls.Add(this.label18);
this.groupBox2.Controls.Add(this.label19);
this.groupBox2.Controls.Add(this.label20);
this.groupBox2.Controls.Add(this.label21);
this.groupBox2.Controls.Add(this.label22);
this.groupBox2.Controls.Add(this.label23);
this.groupBox2.Controls.Add(this.label24);
this.groupBox2.Controls.Add(this.label25);
this.groupBox2.Controls.Add(this.label26);
this.groupBox2.Controls.Add(this.label27);
this.groupBox2.Controls.Add(this.Alarm_D);
this.groupBox2.Controls.Add(this.AlarmPosition_D);
this.groupBox2.Controls.Add(this.AlarmRightPosition_D);
this.groupBox2.Controls.Add(this.AlarmLeftPosition_D);
this.groupBox2.Controls.Add(this.SetRight_D);
this.groupBox2.Controls.Add(this.SetLeft_D);
this.groupBox2.Controls.Add(this.RightPosition_D);
this.groupBox2.Controls.Add(this.LeftPosition_D);
this.groupBox2.Controls.Add(this.AlarmReset_D);
this.groupBox2.Controls.Add(this.SetRightAuto_D);
this.groupBox2.Controls.Add(this.SetLeftAuto_D);
this.groupBox2.Controls.Add(this.SetRightManual_D);
this.groupBox2.Controls.Add(this.SetLeftManual_D);
this.groupBox2.Controls.Add(this.ManualMode_D);
this.groupBox2.Controls.Add(this.AutoMode_D);
this.groupBox2.Location = new System.Drawing.Point(227, 13);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(207, 202);
this.groupBox2.TabIndex = 6;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "FOR_VALVE_Double";
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(23, 185);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(53, 12);
this.label13.TabIndex = 44;
this.label13.Text = "故障指示";
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(23, 173);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(77, 12);
this.label14.TabIndex = 43;
this.label14.Text = "反馈位置故障";
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(23, 161);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(95, 12);
this.label15.TabIndex = 42;
this.label15.Text = "右位置故障-斜通";
//
// label16
//
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(23, 149);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(95, 12);
this.label16.TabIndex = 41;
this.label16.Text = "左位置故障-直通";
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(23, 137);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(119, 12);
this.label17.TabIndex = 40;
this.label17.Text = "右启动输出指令-斜通";
//
// label18
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(23, 125);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(119, 12);
this.label18.TabIndex = 39;
this.label18.Text = "左启动输出指令-直通";
//
// label19
//
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(23, 113);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(95, 12);
this.label19.TabIndex = 38;
this.label19.Text = "右位置反馈-斜通";
//
// label20
//
this.label20.AutoSize = true;
this.label20.Location = new System.Drawing.Point(23, 101);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(95, 12);
this.label20.TabIndex = 37;
this.label20.Text = "左位置反馈-直通";
//
// label21
//
this.label21.AutoSize = true;
this.label21.Location = new System.Drawing.Point(23, 89);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(53, 12);
this.label21.TabIndex = 36;
this.label21.Text = "报警复位";
//
// label22
//
this.label22.AutoSize = true;
this.label22.Location = new System.Drawing.Point(23, 77);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(119, 12);
this.label22.TabIndex = 35;
this.label22.Text = "自动右启动指令-斜通";
//
// label23
//
this.label23.AutoSize = true;
this.label23.Location = new System.Drawing.Point(23, 65);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(119, 12);
this.label23.TabIndex = 34;
this.label23.Text = "自动左启动指令-直通";
//
// label24
//
this.label24.AutoSize = true;
this.label24.Location = new System.Drawing.Point(23, 53);
this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(119, 12);
this.label24.TabIndex = 33;
this.label24.Text = "手动右启动指令-斜通";
//
// label25
//
this.label25.AutoSize = true;
this.label25.Location = new System.Drawing.Point(23, 41);
this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(119, 12);
this.label25.TabIndex = 32;
this.label25.Text = "手动左启动指令-直通";
//
// label26
//
this.label26.AutoSize = true;
this.label26.Location = new System.Drawing.Point(23, 17);
this.label26.Name = "label26";
this.label26.Size = new System.Drawing.Size(53, 12);
this.label26.TabIndex = 30;
this.label26.Text = "手动模式";
//
// label27
//
this.label27.AutoSize = true;
this.label27.Location = new System.Drawing.Point(23, 29);
this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(53, 12);
this.label27.TabIndex = 31;
this.label27.Text = "自动模式";
//
// Alarm_D
//
this.Alarm_D.AutoSize = true;
this.Alarm_D.Location = new System.Drawing.Point(6, 185);
this.Alarm_D.Name = "Alarm_D";
this.Alarm_D.Size = new System.Drawing.Size(11, 12);
this.Alarm_D.TabIndex = 29;
this.Alarm_D.Text = "0";
//
// AlarmPosition_D
//
this.AlarmPosition_D.AutoSize = true;
this.AlarmPosition_D.Location = new System.Drawing.Point(6, 173);
this.AlarmPosition_D.Name = "AlarmPosition_D";
this.AlarmPosition_D.Size = new System.Drawing.Size(11, 12);
this.AlarmPosition_D.TabIndex = 28;
this.AlarmPosition_D.Text = "0";
//
// AlarmRightPosition_D
//
this.AlarmRightPosition_D.AutoSize = true;
this.AlarmRightPosition_D.Location = new System.Drawing.Point(6, 161);
this.AlarmRightPosition_D.Name = "AlarmRightPosition_D";
this.AlarmRightPosition_D.Size = new System.Drawing.Size(11, 12);
this.AlarmRightPosition_D.TabIndex = 27;
this.AlarmRightPosition_D.Text = "0";
//
// AlarmLeftPosition_D
//
this.AlarmLeftPosition_D.AutoSize = true;
this.AlarmLeftPosition_D.Location = new System.Drawing.Point(6, 149);
this.AlarmLeftPosition_D.Name = "AlarmLeftPosition_D";
this.AlarmLeftPosition_D.Size = new System.Drawing.Size(11, 12);
this.AlarmLeftPosition_D.TabIndex = 26;
this.AlarmLeftPosition_D.Text = "0";
//
// SetRight_D
//
this.SetRight_D.AutoSize = true;
this.SetRight_D.Location = new System.Drawing.Point(6, 137);
this.SetRight_D.Name = "SetRight_D";
this.SetRight_D.Size = new System.Drawing.Size(11, 12);
this.SetRight_D.TabIndex = 25;
this.SetRight_D.Text = "0";
//
// SetLeft_D
//
this.SetLeft_D.AutoSize = true;
this.SetLeft_D.Location = new System.Drawing.Point(6, 125);
this.SetLeft_D.Name = "SetLeft_D";
this.SetLeft_D.Size = new System.Drawing.Size(11, 12);
this.SetLeft_D.TabIndex = 24;
this.SetLeft_D.Text = "0";
//
// RightPosition_D
//
this.RightPosition_D.AutoSize = true;
this.RightPosition_D.Location = new System.Drawing.Point(6, 113);
this.RightPosition_D.Name = "RightPosition_D";
this.RightPosition_D.Size = new System.Drawing.Size(11, 12);
this.RightPosition_D.TabIndex = 23;
this.RightPosition_D.Text = "0";
//
// LeftPosition_D
//
this.LeftPosition_D.AutoSize = true;
this.LeftPosition_D.Location = new System.Drawing.Point(6, 101);
this.LeftPosition_D.Name = "LeftPosition_D";
this.LeftPosition_D.Size = new System.Drawing.Size(11, 12);
this.LeftPosition_D.TabIndex = 22;
this.LeftPosition_D.Text = "0";
//
// AlarmReset_D
//
this.AlarmReset_D.AutoSize = true;
this.AlarmReset_D.Location = new System.Drawing.Point(6, 89);
this.AlarmReset_D.Name = "AlarmReset_D";
this.AlarmReset_D.Size = new System.Drawing.Size(11, 12);
this.AlarmReset_D.TabIndex = 21;
this.AlarmReset_D.Text = "0";
//
// SetRightAuto_D
//
this.SetRightAuto_D.AutoSize = true;
this.SetRightAuto_D.Location = new System.Drawing.Point(6, 77);
this.SetRightAuto_D.Name = "SetRightAuto_D";
this.SetRightAuto_D.Size = new System.Drawing.Size(11, 12);
this.SetRightAuto_D.TabIndex = 20;
this.SetRightAuto_D.Text = "0";
//
// SetLeftAuto_D
//
this.SetLeftAuto_D.AutoSize = true;
this.SetLeftAuto_D.Location = new System.Drawing.Point(6, 65);
this.SetLeftAuto_D.Name = "SetLeftAuto_D";
this.SetLeftAuto_D.Size = new System.Drawing.Size(11, 12);
this.SetLeftAuto_D.TabIndex = 19;
this.SetLeftAuto_D.Text = "0";
//
// SetRightManual_D
//
this.SetRightManual_D.AutoSize = true;
this.SetRightManual_D.Location = new System.Drawing.Point(6, 53);
this.SetRightManual_D.Name = "SetRightManual_D";
this.SetRightManual_D.Size = new System.Drawing.Size(11, 12);
this.SetRightManual_D.TabIndex = 18;
this.SetRightManual_D.Text = "0";
//
// SetLeftManual_D
//
this.SetLeftManual_D.AutoSize = true;
this.SetLeftManual_D.Location = new System.Drawing.Point(6, 41);
this.SetLeftManual_D.Name = "SetLeftManual_D";
this.SetLeftManual_D.Size = new System.Drawing.Size(11, 12);
this.SetLeftManual_D.TabIndex = 17;
this.SetLeftManual_D.Text = "0";
//
// ManualMode_D
//
this.ManualMode_D.AutoSize = true;
this.ManualMode_D.Location = new System.Drawing.Point(6, 17);
this.ManualMode_D.Name = "ManualMode_D";
this.ManualMode_D.Size = new System.Drawing.Size(11, 12);
this.ManualMode_D.TabIndex = 15;
this.ManualMode_D.Text = "0";
//
// AutoMode_D
//
this.AutoMode_D.AutoSize = true;
this.AutoMode_D.Location = new System.Drawing.Point(6, 29);
this.AutoMode_D.Name = "AutoMode_D";
this.AutoMode_D.Size = new System.Drawing.Size(11, 12);
this.AutoMode_D.TabIndex = 16;
this.AutoMode_D.Text = "0";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label29);
this.groupBox1.Controls.Add(this.P_S);
this.groupBox1.Controls.Add(this.label12);
this.groupBox1.Controls.Add(this.label11);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.AlarmPosition_S);
this.groupBox1.Controls.Add(this.Alarm_S);
this.groupBox1.Controls.Add(this.AlarmUnSetPos_S);
this.groupBox1.Controls.Add(this.AlarmSetPos_S);
this.groupBox1.Controls.Add(this.Set_S);
this.groupBox1.Controls.Add(this.UnSetPosition_S);
this.groupBox1.Controls.Add(this.SetPosition_S);
this.groupBox1.Controls.Add(this.AlarmReset_S);
this.groupBox1.Controls.Add(this.SetAuto_S);
this.groupBox1.Controls.Add(this.SetManual_S);
this.groupBox1.Controls.Add(this.ManualMode_S);
this.groupBox1.Controls.Add(this.AutoMode_S);
this.groupBox1.Location = new System.Drawing.Point(13, 13);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(208, 178);
this.groupBox1.TabIndex = 5;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "FOR_VALVE_Single";
//
// label29
//
this.label29.AutoSize = true;
this.label29.Location = new System.Drawing.Point(23, 161);
this.label29.Name = "label29";
this.label29.Size = new System.Drawing.Size(53, 12);
this.label29.TabIndex = 25;
this.label29.Text = "状态标识";
//
// P_S
//
this.P_S.AutoSize = true;
this.P_S.Location = new System.Drawing.Point(6, 161);
this.P_S.Name = "P_S";
this.P_S.Size = new System.Drawing.Size(11, 12);
this.P_S.TabIndex = 24;
this.P_S.Text = "0";
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(23, 149);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(53, 12);
this.label12.TabIndex = 23;
this.label12.Text = "故障指示";
//
// label11
//
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 = 22;
this.label11.Text = "反馈位置故障";
//
// label10
//
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 = 21;
this.label10.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 = 20;
this.label9.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(53, 12);
this.label8.TabIndex = 19;
this.label8.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(89, 12);
this.label7.TabIndex = 18;
this.label7.Text = "非输出位置反馈";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(23, 77);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(77, 12);
this.label6.TabIndex = 17;
this.label6.Text = "输出位置反馈";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(23, 41);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(53, 12);
this.label5.TabIndex = 16;
this.label5.Text = "报警复位";
//
// label1
//
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 = 2;
this.label1.Text = "手动模式";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(23, 29);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(53, 12);
this.label2.TabIndex = 3;
this.label2.Text = "自动模式";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(23, 53);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(77, 12);
this.label3.TabIndex = 4;
this.label3.Text = "手动启动指令";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(23, 65);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(77, 12);
this.label4.TabIndex = 15;
this.label4.Text = "自动启动指令";
//
// AlarmPosition_S
//
this.AlarmPosition_S.AutoSize = true;
this.AlarmPosition_S.Location = new System.Drawing.Point(6, 137);
this.AlarmPosition_S.Name = "AlarmPosition_S";
this.AlarmPosition_S.Size = new System.Drawing.Size(11, 12);
this.AlarmPosition_S.TabIndex = 14;
this.AlarmPosition_S.Text = "0";
//
// Alarm_S
//
this.Alarm_S.AutoSize = true;
this.Alarm_S.Location = new System.Drawing.Point(6, 149);
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";
//
// AlarmUnSetPos_S
//
this.AlarmUnSetPos_S.AutoSize = true;
this.AlarmUnSetPos_S.Location = new System.Drawing.Point(6, 125);
this.AlarmUnSetPos_S.Name = "AlarmUnSetPos_S";
this.AlarmUnSetPos_S.Size = new System.Drawing.Size(11, 12);
this.AlarmUnSetPos_S.TabIndex = 12;
this.AlarmUnSetPos_S.Text = "0";
//
// AlarmSetPos_S
//
this.AlarmSetPos_S.AutoSize = true;
this.AlarmSetPos_S.Location = new System.Drawing.Point(6, 113);
this.AlarmSetPos_S.Name = "AlarmSetPos_S";
this.AlarmSetPos_S.Size = new System.Drawing.Size(11, 12);
this.AlarmSetPos_S.TabIndex = 11;
this.AlarmSetPos_S.Text = "0";
//
// Set_S
//
this.Set_S.AutoSize = true;
this.Set_S.Location = new System.Drawing.Point(6, 101);
this.Set_S.Name = "Set_S";
this.Set_S.Size = new System.Drawing.Size(11, 12);
this.Set_S.TabIndex = 10;
this.Set_S.Text = "0";
//
// UnSetPosition_S
//
this.UnSetPosition_S.AutoSize = true;
this.UnSetPosition_S.Location = new System.Drawing.Point(6, 89);
this.UnSetPosition_S.Name = "UnSetPosition_S";
this.UnSetPosition_S.Size = new System.Drawing.Size(11, 12);
this.UnSetPosition_S.TabIndex = 8;
this.UnSetPosition_S.Text = "0";
//
// SetPosition_S
//
this.SetPosition_S.AutoSize = true;
this.SetPosition_S.Location = new System.Drawing.Point(6, 77);
this.SetPosition_S.Name = "SetPosition_S";
this.SetPosition_S.Size = new System.Drawing.Size(11, 12);
this.SetPosition_S.TabIndex = 7;
this.SetPosition_S.Text = "0";
//
// AlarmReset_S
//
this.AlarmReset_S.AutoSize = true;
this.AlarmReset_S.Location = new System.Drawing.Point(6, 41);
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";
//
// SetAuto_S
//
this.SetAuto_S.AutoSize = true;
this.SetAuto_S.Location = new System.Drawing.Point(6, 65);
this.SetAuto_S.Name = "SetAuto_S";
this.SetAuto_S.Size = new System.Drawing.Size(11, 12);
this.SetAuto_S.TabIndex = 5;
this.SetAuto_S.Text = "0";
//
// SetManual_S
//
this.SetManual_S.AutoSize = true;
this.SetManual_S.Location = new System.Drawing.Point(6, 53);
this.SetManual_S.Name = "SetManual_S";
this.SetManual_S.Size = new System.Drawing.Size(11, 12);
this.SetManual_S.TabIndex = 4;
this.SetManual_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 = 2;
this.ManualMode_S.Text = "0";
//
// 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 = 3;
this.AutoMode_S.Text = "0";
//
// ValveInitStateMonitor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(444, 420);
this.Controls.Add(this.Refresh);
this.Controls.Add(this.DmChange_D);
this.Controls.Add(this.DmChange_S);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Name = "ValveInitStateMonitor";
this.Text = "ValveInitStateSonitor";
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button Refresh;
private System.Windows.Forms.ListBox DmChange_D;
private System.Windows.Forms.ListBox DmChange_S;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.Label label23;
private System.Windows.Forms.Label label24;
private System.Windows.Forms.Label label25;
private System.Windows.Forms.Label label26;
private System.Windows.Forms.Label label27;
private System.Windows.Forms.Label Alarm_D;
private System.Windows.Forms.Label AlarmPosition_D;
private System.Windows.Forms.Label AlarmRightPosition_D;
private System.Windows.Forms.Label AlarmLeftPosition_D;
private System.Windows.Forms.Label SetRight_D;
private System.Windows.Forms.Label SetLeft_D;
private System.Windows.Forms.Label RightPosition_D;
private System.Windows.Forms.Label LeftPosition_D;
private System.Windows.Forms.Label AlarmReset_D;
private System.Windows.Forms.Label SetRightAuto_D;
private System.Windows.Forms.Label SetLeftAuto_D;
private System.Windows.Forms.Label SetRightManual_D;
private System.Windows.Forms.Label SetLeftManual_D;
private System.Windows.Forms.Label ManualMode_D;
private System.Windows.Forms.Label AutoMode_D;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label AlarmPosition_S;
private System.Windows.Forms.Label Alarm_S;
private System.Windows.Forms.Label AlarmUnSetPos_S;
private System.Windows.Forms.Label AlarmSetPos_S;
private System.Windows.Forms.Label Set_S;
private System.Windows.Forms.Label UnSetPosition_S;
private System.Windows.Forms.Label SetPosition_S;
private System.Windows.Forms.Label AlarmReset_S;
private System.Windows.Forms.Label SetAuto_S;
private System.Windows.Forms.Label SetManual_S;
private System.Windows.Forms.Label ManualMode_S;
private System.Windows.Forms.Label AutoMode_S;
private System.Windows.Forms.Label P_S;
private System.Windows.Forms.Label label29;
}
}

@ -0,0 +1,197 @@
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.NewFolder1
{
public partial class ValveInitStateMonitor : Form
{
string DmName_S = "BU1ASF01";
string DmName_D = "DV2PCP01";
public ValveInitStateMonitor()
{
InitializeComponent();
StateMonitor_D(DmName_D);
StateMonitor_S(DmName_S);
}
private void DmChange_S_SelectedIndexChanged(object sender, EventArgs e)
{
DmName_S = dmNameValue[DmChange_S.Text];
StateMonitor_S(DmName_S);
}
private void StateMonitor_S(string dmName)
{
ManualMode_S.Text = GetDataToString(dmName, "_ManualMode");
AutoMode_S.Text = GetDataToString(dmName, "_AutoMode");
AlarmReset_S.Text = GetDataToString(dmName, "_AlarmReset");
SetManual_S.Text = GetDataToString(dmName, "_SetManual");
SetAuto_S.Text = GetDataToString(dmName, "_SetAuto");
SetPosition_S.Text = GetDataToString(dmName, "_SetPosition");
UnSetPosition_S.Text = GetDataToString(dmName, "_UnSetPosition");
Set_S.Text = GetDataToString(dmName, "_Set");
AlarmSetPos_S.Text = GetDataToString(dmName, "_AlarmSetPos");
AlarmUnSetPos_S.Text = GetDataToString(dmName, "_AlarmUnSetPos");
AlarmPosition_S.Text = GetDataToString(dmName, "_AlarmPosition");
Alarm_S.Text = GetDataToString(dmName, "_Alarm");
P_S.Text = GetDataToString(dmName, "_P");
}
private void DmChange_D_SelectedIndexChanged(object sender, EventArgs e)
{
DmName_D = dmNameValue[DmChange_D.Text];
StateMonitor_D(DmName_D);
}
private void StateMonitor_D(string dmName)
{
ManualMode_D.Text = GetDataToString(dmName, "_ManualMode");
AutoMode_D.Text = GetDataToString(dmName, "_AutoMode");
SetLeftManual_D.Text = GetDataToString(dmName, "_SetLeftManual");
SetRightManual_D.Text = GetDataToString(dmName, "_SetRightManual");
SetLeftAuto_D.Text = GetDataToString(dmName, "_SetLeftAuto");
SetRightAuto_D.Text = GetDataToString(dmName, "_SetRightAuto");
AlarmReset_D.Text = GetDataToString(dmName, "_AlarmReset");
LeftPosition_D.Text = GetDataToString(dmName, "_LeftPosition");
RightPosition_D.Text = GetDataToString(dmName, "_RightPosition");
SetLeft_D.Text = GetDataToString(dmName, "_SetLeft");
SetRight_D.Text = GetDataToString(dmName, "_SetRight");
AlarmLeftPosition_D.Text = GetDataToString(dmName, "_AlarmLeftPosition");
AlarmRightPosition_D.Text = GetDataToString(dmName, "_AlarmRightPosition");
AlarmPosition_D.Text = GetDataToString(dmName, "_AlarmPosition");
Alarm_D.Text = GetDataToString(dmName, "_Alarm");
}
private void Refresh_Click(object sender, EventArgs e)
{
StateMonitor_D(DmName_D);
StateMonitor_S(DmName_S);
}
/// <summary>
/// 根据属性名和现在选择的数据块名得到PLC数据块的具体引用
/// </summary>
/// <param name="dmValue">数据块属性名</param>
/// <returns></returns>
private DataKeyValue GetDataNameValue(string dmName, string dmValue)
{
return new DataKeyValue(dmName + dmValue);
}
/// <summary>
/// 从PLC中读取值
/// </summary>
/// <param name="dmValue">要读取的属性</param>
/// <returns></returns>
private string GetDataToString(string dmName, string dmValue)
{
return GetDataNameValue(dmName, dmValue).NowValue.ToString();
}
private IDictionary<string, string> dmNameValue = new Dictionary<string, string>()
{
["螺旋输送机1A出料蝶阀"] = "BU1ASF01",
["螺旋输送机1B出料蝶阀"] = "BU1BSF01",
["螺旋输送机1C出料蝶阀"] = "BU1CSF01",
["螺旋输送机1D出料蝶阀"] = "BU1DSF01",
["螺旋输送机1E出料蝶阀"] = "BU1ESF01",
["螺旋输送机1F出料蝶阀"] = "BU1FSF01",
["螺旋输送机1G出料蝶阀"] = "BU1GSF01",
["螺旋输送机1H出料蝶阀"] = "BU1HSF01",
["螺旋输送机1I出料蝶阀"] = "BU1ISF01",
["螺旋输送机1J出料蝶阀"] = "BU1JSF01",
["螺旋输送机1K出料蝶阀"] = "BU1KSF01",
["螺旋输送机1L出料蝶阀"] = "BU1LSF01",
["螺旋输送机1M出料蝶阀"] = "BU1MSF01",
["螺旋输送机1N出料蝶阀"] = "BU1NSF01",
["螺旋输送机1O出料蝶阀"] = "BU1OSF01",
["压送秤A进料蝶阀"] = "BU1BLT01",
["压送秤A进料蝶阀"] = "BU1BLT02",
["压送秤A进料蝶阀"] = "BU1BLT03",
["压送秤A进料蝶阀"] = "BU1BLT04",
["压送秤A返气蝶阀"] = "BU1BLT05",
["压送秤A出料蝶阀"] = "BU1BLT06",
["压送秤A除尘出料蝶阀"] = "BU1BLT07",
["压送秤B进料蝶阀"] = "BU2BLT01",
["压送秤B进料蝶阀"] = "BU2BLT02",
["压送秤B返气蝶阀"] = "BU2BLT03",
["压送秤B出料蝶阀"] = "BU2BLT04",
["压送秤B除尘出料蝶阀"] = "BU2BLT05",
["压送秤C进料蝶阀"] = "BU3BLT01",
["压送秤C进料蝶阀"] = "BU3BLT02",
["压送秤C进料蝶阀"] = "BU3BLT03",
["压送秤C进料蝶阀"] = "BU3BLT04",
["压送秤C返气蝶阀"] = "BU3BLT05",
["压送秤C出料蝶阀"] = "BU3BLT06",
["压送秤C除尘出料蝶阀"] = "BU3BLT07",
["压送秤D进料蝶阀"] = "BU4BLT01",
["压送秤D进料蝶阀"] = "BU4BLT02",
["压送秤D进料蝶阀"] = "BU4BLT03",
["压送秤D进料蝶阀"] = "BU4BLT04",
["压送秤D返气蝶阀"] = "BU4BLT05",
["压送秤D出料蝶阀"] = "BU4BLT06",
["压送秤D除尘出料蝶阀"] = "BU4BLT07",
["压送秤E进料蝶阀"] = "BU5BLT01",
["压送秤E返气蝶阀"] = "BU5BLT02",
["压送秤E出料蝶阀"] = "BU5BLT03",
["压送秤E除尘出料蝶阀"] = "BU5BLT04",
["双向螺旋输送机2A出料蝶阀"] = "BU2ASF01",
["双向螺旋输送机2A出料蝶阀"] = "BU2ASF02",
["双向螺旋输送机2B出料蝶阀"] = "BU2BSF01",
["双向螺旋输送机2B出料蝶阀"] = "BU2BSF02",
["双向螺旋输送机2C出料蝶阀"] = "BU2CSF01",
["双向螺旋输送机2C出料蝶阀"] = "BU2CSF02",
["双向螺旋输送机2D出料蝶阀"] = "BU2DSF01",
["双向螺旋输送机2D出料蝶阀"] = "BU2DSF02",
["缓存仓1A出料蝶阀"] = "BU1ADB01",
["缓存仓1B出料蝶阀"] = "BU1BDB01",
["缓存仓1C出料蝶阀"] = "BU1CDB01",
["缓存仓1D出料蝶阀"] = "BU1DDB01",
["缓存仓1E出料蝶阀"] = "BU1EDB01",
["缓存仓1F出料蝶阀"] = "BU1FDB01",
["缓存仓1G出料蝶阀"] = "BU1GDB01",
["缓存仓1H出料蝶阀"] = "BU1HDB01",
["缓存仓1I出料蝶阀"] = "BU1IDB01",
["缓存仓1J出料蝶阀"] = "BU1JDB01",
["缓存仓1K出料蝶阀"] = "BU1KDB01",
["缓存仓1L出料蝶阀"] = "BU1LDB01",
["二级气力输送管道分配阀1"] = "DV2PCP01",
["二级气力输送管道分配阀2"] = "DV2PCP02",
["二级气力输送管道分配阀3"] = "DV2PCP03",
["二级气力动送管道分配阀4"] = "DV2PCP04",
["二级气力输送管道分配阀5"] = "DV2PCP05",
["二级气力输送管道分配阀6"] = "DV2PCP06",
["二级气力动送管道分配阀7"] = "DV2PCP07",
["二级气力输送管道分配阀8"] = "DV2PCP08",
["二级气力输送管道分配阀9"] = "DV2PCP09",
["二级气力动送管道分配阀10"] = "DV2PCP10",
["二级气力输送管道分配阀11"] = "DV2PCP11",
["二级气力输送管道分配阀12"] = "DV2PCP12",
["二级气力动送管道分配阀13"] = "DV2PCP13",
["二级气力输送管道分配阀14"] = "DV2PCP14",
["干混机卸料阀"] = "BU1DRB01",
["干混机卸料阀"] = "BU2DRB01",
["干混机卸料阀"] = "BU3DRB01",
["干混机卸料阀"] = "BU4DRB01",
["糊化机卸料阀"] = "BU1GEB01",
["糊化机卸料阀"] = "BU2GEB01",
["糊化机卸料阀"] = "BU3GEB01",
["糊化机卸料阀"] = "BU4GEB01",
["糊化机卸料阀"] = "BU5GEB01",
["糊化机卸料阀"] = "BU6GEB01",
["糊化机卸料阀"] = "BU7GEB01",
["糊化机卸料阀"] = "BU8GEB01"
};
}
}

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

@ -212,28 +212,28 @@
<Compile Include="DeviceParamManage\InitDeviceParamInfo.cs" />
<Compile Include="DeviceParamManage\SelectDeviceParamInfo.cs" />
<Compile Include="DeviceParamManage\WriteDeviceParamInfo.cs" />
<Compile Include="EngineeringDebuggingMode\ElectronicMachineryStateMonitor\ElectronicMachineryStateMonitor.cs">
<Compile Include="EngineeringDebuggingMode\ElectronicMachineryDataStateMonitor\ElectronicMachineryDataStateMonitor.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="EngineeringDebuggingMode\ElectronicMachineryStateMonitor\ElectronicMachineryStateMonitor.Designer.cs">
<DependentUpon>ElectronicMachineryStateMonitor.cs</DependentUpon>
<Compile Include="EngineeringDebuggingMode\ElectronicMachineryDataStateMonitor\ElectronicMachineryDataStateMonitor.Designer.cs">
<DependentUpon>ElectronicMachineryDataStateMonitor.cs</DependentUpon>
</Compile>
<Compile Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery.cs">
<Compile Include="EngineeringDebuggingMode\x-Contorl\ElectronicMachinery\ElectronicMachinery.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery.Designer.cs">
<Compile Include="EngineeringDebuggingMode\x-Contorl\ElectronicMachinery\ElectronicMachinery.Designer.cs">
<DependentUpon>ElectronicMachinery.cs</DependentUpon>
</Compile>
<Compile Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery_2.cs">
<Compile Include="EngineeringDebuggingMode\x-Contorl\ElectronicMachinery\ElectronicMachinery_2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery_2.Designer.cs">
<Compile Include="EngineeringDebuggingMode\x-Contorl\ElectronicMachinery\ElectronicMachinery_2.Designer.cs">
<DependentUpon>ElectronicMachinery_2.cs</DependentUpon>
</Compile>
<Compile Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery_3.cs">
<Compile Include="EngineeringDebuggingMode\x-Contorl\ElectronicMachinery\ElectronicMachinery_3.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery_3.Designer.cs">
<Compile Include="EngineeringDebuggingMode\x-Contorl\ElectronicMachinery\ElectronicMachinery_3.Designer.cs">
<DependentUpon>ElectronicMachinery_3.cs</DependentUpon>
</Compile>
<Compile Include="EngineeringDebuggingMode\InstrumentDataStateMonitor\InstrumentDataStateMonitor.cs">
@ -242,17 +242,23 @@
<Compile Include="EngineeringDebuggingMode\InstrumentDataStateMonitor\InstrumentDataStateMonitor.Designer.cs">
<DependentUpon>InstrumentDataStateMonitor.cs</DependentUpon>
</Compile>
<Compile Include="EngineeringDebuggingMode\ValveInitStateMonitor\ValveInitStateMonitor.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="EngineeringDebuggingMode\ValveInitStateMonitor\ValveInitStateMonitor.Designer.cs">
<DependentUpon>ValveInitStateMonitor.cs</DependentUpon>
</Compile>
<Compile Include="EngineeringDebuggingMode\PlcCommunicationUtil.cs" />
<Compile Include="EngineeringDebuggingMode\ValveStateControl\ValveStateControl.cs">
<Compile Include="EngineeringDebuggingMode\x-Contorl\ValveStateControl\ValveStateControl.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="EngineeringDebuggingMode\ValveStateControl\ValveStateControl.Designer.cs">
<Compile Include="EngineeringDebuggingMode\x-Contorl\ValveStateControl\ValveStateControl.Designer.cs">
<DependentUpon>ValveStateControl.cs</DependentUpon>
</Compile>
<Compile Include="EngineeringDebuggingMode\ValveStateMonitor\ValveStateMonitor.cs">
<Compile Include="EngineeringDebuggingMode\ValveDataStateMonitor\ValveStateMonitor.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="EngineeringDebuggingMode\ValveStateMonitor\ValveStateMonitor.Designer.cs">
<Compile Include="EngineeringDebuggingMode\ValveDataStateMonitor\ValveStateMonitor.Designer.cs">
<DependentUpon>ValveStateMonitor.cs</DependentUpon>
</Compile>
<Compile Include="Entity\RecordSaveDataInfo.cs" />
@ -708,25 +714,28 @@
<EmbeddedResource Include="BinManage\FrmBin.resx">
<DependentUpon>FrmBin.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="EngineeringDebuggingMode\ElectronicMachineryStateMonitor\ElectronicMachineryStateMonitor.resx">
<DependentUpon>ElectronicMachineryStateMonitor.cs</DependentUpon>
<EmbeddedResource Include="EngineeringDebuggingMode\ElectronicMachineryDataStateMonitor\ElectronicMachineryDataStateMonitor.resx">
<DependentUpon>ElectronicMachineryDataStateMonitor.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="EngineeringDebuggingMode\ValveInitStateMonitor\ValveInitStateMonitor.resx">
<DependentUpon>ValveInitStateMonitor.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery.resx">
<EmbeddedResource Include="EngineeringDebuggingMode\x-Contorl\ElectronicMachinery\ElectronicMachinery.resx">
<DependentUpon>ElectronicMachinery.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery_2.resx">
<EmbeddedResource Include="EngineeringDebuggingMode\x-Contorl\ElectronicMachinery\ElectronicMachinery_2.resx">
<DependentUpon>ElectronicMachinery_2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery_3.resx">
<EmbeddedResource Include="EngineeringDebuggingMode\x-Contorl\ElectronicMachinery\ElectronicMachinery_3.resx">
<DependentUpon>ElectronicMachinery_3.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="EngineeringDebuggingMode\InstrumentDataStateMonitor\InstrumentDataStateMonitor.resx">
<DependentUpon>InstrumentDataStateMonitor.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="EngineeringDebuggingMode\ValveStateControl\ValveStateControl.resx">
<EmbeddedResource Include="EngineeringDebuggingMode\x-Contorl\ValveStateControl\ValveStateControl.resx">
<DependentUpon>ValveStateControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="EngineeringDebuggingMode\ValveStateMonitor\ValveStateMonitor.resx">
<EmbeddedResource Include="EngineeringDebuggingMode\ValveDataStateMonitor\ValveStateMonitor.resx">
<DependentUpon>ValveStateMonitor.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="LjDevice\FrmDevice.resx">

@ -9,6 +9,7 @@ using Mesnac.Action.Base;
using Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMachinaryStateMonitor;
using Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMachinery;
using Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.InstrumentDataStateMonitor;
using Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.NewFolder1;
using Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ValveStateControl;
using Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ValveStateMonitor;
using Mesnac.Action.ChemicalWeighing.Entity;
@ -43,7 +44,7 @@ namespace Mesnac.Action.ChemicalWeighing.Test
// dbHelper.CommandText = sql;
InstrumentDataStateMonitor Form = new InstrumentDataStateMonitor();
ValveInitStateMonitor Form = new ValveInitStateMonitor();
Form.Show();

Loading…
Cancel
Save