add - 电机调试2(业务偏差)

master
wangsr 1 year ago
parent da6ba6e358
commit 924bdf72db

@ -33,6 +33,36 @@ namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMach
}
/// <summary>
/// 根据属性名和现在选择的数据块名得到PLC数据块的具体引用
/// </summary>
/// <param name="dmValue">数据块属性名</param>
/// <returns></returns>
private DataKeyValue GetDataNameValue(string dmValue)
{
return new DataKeyValue(DmName + dmValue);
}
/// <summary>
/// 从PLC中读取值
/// </summary>
/// <param name="dmValue">要读取的属性</param>
/// <returns></returns>
private int GetDataToInt(String dmValue)
{
return GetDataNameValue(dmValue).NowValue.ToInt();
}
/// <summary>
/// 向PLC中写入值
/// </summary>
/// <param name="dmValue">要写入的属性</param>
/// <param name="value">写入的值</param>
private void SetDataValue(String dmValue, int value)
{
Plc.PlcWriteByDataKey(GetDataNameValue(dmValue), new Object[] { value });
}
/// <summary>
/// 状态监测类
/// </summary>
@ -73,35 +103,7 @@ namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMach
}
}
/// <summary>
/// 根据属性名和现在选择的数据块名得到PLC数据块的具体引用
/// </summary>
/// <param name="dmValue">数据块属性名</param>
/// <returns></returns>
private DataKeyValue GetDataNameValue(string dmValue)
{
return new DataKeyValue(DmName + dmValue);
}
/// <summary>
/// 从PLC中读取值
/// </summary>
/// <param name="dmValue">要读取的属性</param>
/// <returns></returns>
private int GetDataToInt(String dmValue)
{
return GetDataNameValue(dmValue).NowValue.ToInt();
}
/// <summary>
/// 向PLC中写入值
/// </summary>
/// <param name="dmValue">要写入的属性</param>
/// <param name="value">写入的值</param>
private void SetDataValue(String dmValue, int value)
{
Plc.PlcWriteByDataKey(GetDataNameValue(dmValue), new Object[] { value });
}
/// <summary>
/// 列表框,选择设备对应数据块

@ -0,0 +1,196 @@
namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMachinery
{
partial class ElectronicMachinery_2
{
/// <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.ModeChangeState = new System.Windows.Forms.GroupBox();
this.ModeStateLable = new System.Windows.Forms.Label();
this.NowIs = new System.Windows.Forms.Label();
this.ModeControl = new System.Windows.Forms.Button();
this.OnOffControlState = new System.Windows.Forms.GroupBox();
this.OnOffStateLable = new System.Windows.Forms.Label();
this.OnOffControl = new System.Windows.Forms.Button();
this.OtherControlGroup = new System.Windows.Forms.GroupBox();
this.AlarmReset = new System.Windows.Forms.Button();
this.Alarm = new System.Windows.Forms.Button();
this.DmChange = new System.Windows.Forms.ListBox();
this.ModeChangeState.SuspendLayout();
this.OnOffControlState.SuspendLayout();
this.OtherControlGroup.SuspendLayout();
this.SuspendLayout();
//
// ModeChangeState
//
this.ModeChangeState.Controls.Add(this.ModeStateLable);
this.ModeChangeState.Controls.Add(this.NowIs);
this.ModeChangeState.Controls.Add(this.ModeControl);
this.ModeChangeState.Location = new System.Drawing.Point(12, 12);
this.ModeChangeState.Name = "ModeChangeState";
this.ModeChangeState.Size = new System.Drawing.Size(178, 65);
this.ModeChangeState.TabIndex = 0;
this.ModeChangeState.TabStop = false;
this.ModeChangeState.Text = "模式切换";
//
// ModeStateLable
//
this.ModeStateLable.AutoSize = true;
this.ModeStateLable.Location = new System.Drawing.Point(117, 33);
this.ModeStateLable.Name = "ModeStateLable";
this.ModeStateLable.Size = new System.Drawing.Size(53, 12);
this.ModeStateLable.TabIndex = 2;
this.ModeStateLable.Text = "手动模式";
//
// NowIs
//
this.NowIs.AutoSize = true;
this.NowIs.Location = new System.Drawing.Point(117, 17);
this.NowIs.Name = "NowIs";
this.NowIs.Size = new System.Drawing.Size(41, 12);
this.NowIs.TabIndex = 1;
this.NowIs.Text = "当前为";
//
// ModeControl
//
this.ModeControl.Location = new System.Drawing.Point(6, 20);
this.ModeControl.Name = "ModeControl";
this.ModeControl.Size = new System.Drawing.Size(105, 39);
this.ModeControl.TabIndex = 0;
this.ModeControl.Text = "切换手动模式";
this.ModeControl.UseVisualStyleBackColor = true;
this.ModeControl.Click += new System.EventHandler(this.ModeControl_Click);
//
// OnOffControlState
//
this.OnOffControlState.Controls.Add(this.OnOffStateLable);
this.OnOffControlState.Controls.Add(this.OnOffControl);
this.OnOffControlState.Location = new System.Drawing.Point(12, 83);
this.OnOffControlState.Name = "OnOffControlState";
this.OnOffControlState.Size = new System.Drawing.Size(178, 65);
this.OnOffControlState.TabIndex = 1;
this.OnOffControlState.TabStop = false;
this.OnOffControlState.Text = "启停控制";
//
// OnOffStateLable
//
this.OnOffStateLable.AutoSize = true;
this.OnOffStateLable.Location = new System.Drawing.Point(117, 33);
this.OnOffStateLable.Name = "OnOffStateLable";
this.OnOffStateLable.Size = new System.Drawing.Size(53, 12);
this.OnOffStateLable.TabIndex = 1;
this.OnOffStateLable.Text = "状态:关";
//
// OnOffControl
//
this.OnOffControl.Location = new System.Drawing.Point(6, 20);
this.OnOffControl.Name = "OnOffControl";
this.OnOffControl.Size = new System.Drawing.Size(105, 39);
this.OnOffControl.TabIndex = 0;
this.OnOffControl.Text = "启动";
this.OnOffControl.UseVisualStyleBackColor = true;
this.OnOffControl.Click += new System.EventHandler(this.OnOffControl_Click);
//
// OtherControlGroup
//
this.OtherControlGroup.Controls.Add(this.AlarmReset);
this.OtherControlGroup.Controls.Add(this.Alarm);
this.OtherControlGroup.Location = new System.Drawing.Point(196, 12);
this.OtherControlGroup.Name = "OtherControlGroup";
this.OtherControlGroup.Size = new System.Drawing.Size(119, 109);
this.OtherControlGroup.TabIndex = 2;
this.OtherControlGroup.TabStop = false;
this.OtherControlGroup.Text = "其他控制";
//
// AlarmReset
//
this.AlarmReset.Location = new System.Drawing.Point(6, 65);
this.AlarmReset.Name = "AlarmReset";
this.AlarmReset.Size = new System.Drawing.Size(107, 39);
this.AlarmReset.TabIndex = 1;
this.AlarmReset.Text = "报警复位";
this.AlarmReset.UseVisualStyleBackColor = true;
this.AlarmReset.Click += new System.EventHandler(this.AlarmReset_Click);
//
// Alarm
//
this.Alarm.Location = new System.Drawing.Point(6, 20);
this.Alarm.Name = "Alarm";
this.Alarm.Size = new System.Drawing.Size(107, 39);
this.Alarm.TabIndex = 0;
this.Alarm.Text = "电机报警";
this.Alarm.UseVisualStyleBackColor = true;
this.Alarm.Click += new System.EventHandler(this.Alarm_Click);
//
// DmChange
//
this.DmChange.FormattingEnabled = true;
this.DmChange.ItemHeight = 12;
this.DmChange.Location = new System.Drawing.Point(12, 154);
this.DmChange.Name = "DmChange";
this.DmChange.Size = new System.Drawing.Size(178, 64);
this.DmChange.TabIndex = 3;
this.DmChange.SelectedIndexChanged += new System.EventHandler(this.DmChange_SelectedIndexChanged);
this.DmChange.Items.AddRange(new object[] {
"磨粉主机电机",
"磨粉风机电机",
});
//
// ElectronicMachinery_2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(326, 226);
this.Controls.Add(this.DmChange);
this.Controls.Add(this.OtherControlGroup);
this.Controls.Add(this.OnOffControlState);
this.Controls.Add(this.ModeChangeState);
this.Name = "ElectronicMachinery_2";
this.Text = "电机控制_2";
this.ModeChangeState.ResumeLayout(false);
this.ModeChangeState.PerformLayout();
this.OnOffControlState.ResumeLayout(false);
this.OnOffControlState.PerformLayout();
this.OtherControlGroup.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox ModeChangeState;
private System.Windows.Forms.GroupBox OnOffControlState;
private System.Windows.Forms.GroupBox OtherControlGroup;
private System.Windows.Forms.Label ModeStateLable;
private System.Windows.Forms.Label NowIs;
private System.Windows.Forms.Button ModeControl;
private System.Windows.Forms.Label OnOffStateLable;
private System.Windows.Forms.Button OnOffControl;
private System.Windows.Forms.Button AlarmReset;
private System.Windows.Forms.Button Alarm;
private System.Windows.Forms.ListBox DmChange;
}
}

@ -0,0 +1,213 @@
using Mesnac.Action.ChemicalWeighing.Entity;
using Mesnac.DoUtils;
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.ElectronicMachinery
{
public partial class ElectronicMachinery_2 : Form
{
BasePlcHelper Plc = BasePlcHelper.Instance;
int ManualModeIsOpen;
int ManualModeIsStart;
int AutoModeIsStart;
string DmName = "DM1GDS06";
public ElectronicMachinery_2()
{
InitializeComponent();
DoControl AlarmLight = DoControl.Instance;
DoControl.Instance.ComOn();
DoControl.Instance.DOControl(DoUtils.enumInfo.DOName.Green, DoUtils.enumInfo.DOOnOff.On);
StateMonitor();
}
private void ModeControl_Click(object sender, EventArgs e)
{
if (ManualModeIsOpen == 0)
{
SetDataValue("_ManualMode", 1);
SetDataValue("_AutoMode", 0);
ModeControl.Text = "切换自动模式";
ModeStateLable.Text = "手动模式";
ManualModeIsOpen = 1;
if (ManualModeIsStart == 0)
{
OnOffControl.Text = "启动";
OnOffStateLable.Text = "状态:关";
}
else
{
OnOffControl.Text = "关闭";
OnOffStateLable.Text = "状态:开";
}
}
else
{
SetDataValue("_ManualMode", 0);
SetDataValue("_AutoMode", 1);
ModeControl.Text = "切换手动模式";
ModeStateLable.Text = "自动模式";
ManualModeIsOpen = 0;
if (AutoModeIsStart == 0)
{
OnOffControl.Text = "启动";
OnOffStateLable.Text = "状态:关";
}
else
{
OnOffControl.Text = "关闭";
OnOffStateLable.Text = "状态:开";
}
}
}
private void OnOffControl_Click(object sender, EventArgs e)
{
if (ManualModeIsOpen == 0)
{
if (AutoModeIsStart == 0)
{
SetDataValue("_StartAuto", 1);
SetDataValue("_StopAuto", 0);
OnOffControl.Text = "关闭";
OnOffStateLable.Text = "状态:开";
AutoModeIsStart = 1;
}
else
{
SetDataValue("_StartAuto", 0);
SetDataValue("_StopAuto", 1);
OnOffControl.Text = "启动";
OnOffStateLable.Text = "状态:关";
AutoModeIsStart = 0;
}
}
else
{
if (ManualModeIsStart == 0)
{
SetDataValue("_StartManual", 1);
SetDataValue("_StopManual", 0);
OnOffControl.Text = "关闭";
OnOffStateLable.Text = "状态:开";
ManualModeIsStart = 1;
}
else
{
SetDataValue("_StartManual", 0);
SetDataValue("_StopManual", 1);
OnOffControl.Text = "启动";
OnOffStateLable.Text = "状态:关";
ManualModeIsStart = 0;
}
}
}
private void DmChange_SelectedIndexChanged(object sender, EventArgs e)
{
switch (DmChange.Text)
{
case "磨粉主机电机":
DmName = "DM1GDS06";
break;
case "磨粉风机电机":
DmName = "DM1GDS07";
break;
}
StateMonitor();
ICSharpCode.Core.LoggingService<ElectronicMachinery>.Debug(DmChange.Text + "电机切换成功!");
}
private void Alarm_Click(object sender, EventArgs e)
{
SetDataValue("_Alarm", 1);
DoControl.Instance.DOControl(DoUtils.enumInfo.DOName.Red, DoUtils.enumInfo.DOOnOff.On);
DoControl.Instance.DOControl(DoUtils.enumInfo.DOName.Green, DoUtils.enumInfo.DOOnOff.Off);
}
private void AlarmReset_Click(object sender, EventArgs e)
{
SetDataValue("_Alarm", 0);
DoControl.Instance.DOControl(DoUtils.enumInfo.DOName.Green, DoUtils.enumInfo.DOOnOff.On);
DoControl.Instance.DOControl(DoUtils.enumInfo.DOName.Red, DoUtils.enumInfo.DOOnOff.Off);
}
/// <summary>
/// 根据属性名和现在选择的数据块名得到PLC数据块的具体引用
/// </summary>
/// <param name="dmValue">数据块属性名</param>
/// <returns></returns>
private DataKeyValue GetDataNameValue(string dmValue)
{
return new DataKeyValue(DmName + dmValue);
}
/// <summary>
/// 从PLC中读取值
/// </summary>
/// <param name="dmValue">要读取的属性</param>
/// <returns></returns>
private int GetDataToInt(String dmValue)
{
return GetDataNameValue(dmValue).NowValue.ToInt();
}
/// <summary>
/// 向PLC中写入值
/// </summary>
/// <param name="dmValue">要写入的属性</param>
/// <param name="value">写入的值</param>
private void SetDataValue(String dmValue, int value)
{
Plc.PlcWriteByDataKey(GetDataNameValue(dmValue), new Object[] { value });
}
/// <summary>
/// 状态监测类
/// </summary>
private void StateMonitor()
{
ManualModeIsOpen = GetDataToInt("_ManualMode");
ManualModeIsStart = GetDataToInt("_StartManual");
AutoModeIsStart = GetDataToInt("_StartAuto");
if (ManualModeIsOpen == 0)
{
ModeControl.Text = "切换手动模式";
ModeStateLable.Text = "自动模式";
if (AutoModeIsStart == 0)
{
OnOffControl.Text = "启动";
OnOffStateLable.Text = "状态:关";
}
else
{
OnOffControl.Text = "关闭";
OnOffStateLable.Text = "状态:开";
}
}
else
{
ModeControl.Text = "切换自动模式";
ModeStateLable.Text = "手动模式";
if (ManualModeIsStart == 0)
{
OnOffControl.Text = "启动";
OnOffStateLable.Text = "状态:关";
}
else
{
OnOffControl.Text = "关闭";
OnOffStateLable.Text = "状态:开";
}
}
}
}
}

@ -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,39 @@
namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode.ElectronicMachinery
{
partial class ElectronicMachinery_3
{
/// <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 = "Form1";
}
#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.ElectronicMachinery
{
public partial class ElectronicMachinery_3 : Form
{
public ElectronicMachinery_3()
{
InitializeComponent();
}
}
}

@ -0,0 +1,52 @@
using Mesnac.Action.ChemicalWeighing.Entity;
using Mesnac.PlcUtils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Mesnac.Action.ChemicalWeighing.EngineeringDebuggingMode
{
public class PlcCommunicationUtil
{
string DmName;
BasePlcHelper Plc = BasePlcHelper.Instance;
/// <summary>
/// 根据属性名和现在选择的数据块名得到PLC数据块的具体引用
/// </summary>
/// <param name="dmValue">数据块属性名</param>
/// <returns></returns>
private DataKeyValue GetDataNameValue(string dmValue)
{
return new DataKeyValue(DmName + dmValue);
}
/// <summary>
/// 从PLC中读取值
/// </summary>
/// <param name="dmValue">要读取的属性</param>
/// <returns></returns>
private int GetDataToInt(String dmValue)
{
return GetDataNameValue(dmValue).NowValue.ToInt();
}
/// <summary>
/// 向PLC中写入值
/// </summary>
/// <param name="dmValue">要写入的属性</param>
/// <param name="value">写入的值</param>
private void SetDataValue(String dmValue, int value)
{
Plc.PlcWriteByDataKey(GetDataNameValue(dmValue), new Object[] { value });
}
}
}

@ -218,6 +218,19 @@
<Compile Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery.Designer.cs">
<DependentUpon>ElectronicMachinery.cs</DependentUpon>
</Compile>
<Compile Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery_2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery_2.Designer.cs">
<DependentUpon>ElectronicMachinery_2.cs</DependentUpon>
</Compile>
<Compile Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery_3.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery_3.Designer.cs">
<DependentUpon>ElectronicMachinery_3.cs</DependentUpon>
</Compile>
<Compile Include="EngineeringDebuggingMode\PlcCommunicationUtil.cs" />
<Compile Include="EngineeringDebuggingMode\ValveStateControl\ValveStateControl.cs">
<SubType>Form</SubType>
</Compile>
@ -680,6 +693,9 @@
<EmbeddedResource Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery.resx">
<DependentUpon>ElectronicMachinery.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="EngineeringDebuggingMode\ElectronicMachinery\ElectronicMachinery_2.resx">
<DependentUpon>ElectronicMachinery_2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="EngineeringDebuggingMode\ValveStateControl\ValveStateControl.resx">
<DependentUpon>ValveStateControl.cs</DependentUpon>
</EmbeddedResource>

@ -40,7 +40,7 @@ namespace Mesnac.Action.ChemicalWeighing.Test
// dbHelper.CommandText = sql;
ValveStateControl Form = new ValveStateControl();
ElectronicMachinery_2 Form = new ElectronicMachinery_2();
Form.Show();

Loading…
Cancel
Save