This commit is contained in:
6
全自动水压检测仪/Coeffiicientsetting.Designer.cs
generated
6
全自动水压检测仪/Coeffiicientsetting.Designer.cs
generated
@@ -225,7 +225,7 @@
|
||||
this.uiLabel13.Name = "uiLabel13";
|
||||
this.uiLabel13.Size = new System.Drawing.Size(150, 35);
|
||||
this.uiLabel13.TabIndex = 0;
|
||||
this.uiLabel13.Text = "设置排空时间(s):";
|
||||
this.uiLabel13.Text = "设置排空时间(ms):";
|
||||
this.uiLabel13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// uiPanel17
|
||||
@@ -271,7 +271,7 @@
|
||||
this.uiLabel14.Name = "uiLabel14";
|
||||
this.uiLabel14.Size = new System.Drawing.Size(146, 35);
|
||||
this.uiLabel14.TabIndex = 0;
|
||||
this.uiLabel14.Text = "设置稳压时间(s):";
|
||||
this.uiLabel14.Text = "设置稳压时间(ms):";
|
||||
this.uiLabel14.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// uiPanel18
|
||||
@@ -317,7 +317,7 @@
|
||||
this.uiLabel15.Name = "uiLabel15";
|
||||
this.uiLabel15.Size = new System.Drawing.Size(146, 35);
|
||||
this.uiLabel15.TabIndex = 0;
|
||||
this.uiLabel15.Text = "设置通水时间(s):";
|
||||
this.uiLabel15.Text = "设置通水时间(ms):";
|
||||
this.uiLabel15.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// uiPanel7
|
||||
|
||||
@@ -96,14 +96,14 @@ namespace 全自动水压检测仪
|
||||
CreateRegisterConfig(3036, uiTextBox11, "F2",false), // 高温液位上限
|
||||
CreateRegisterConfig(3034, uiTextBox5, "F2",false), // 高温液位下限
|
||||
CreateRegisterConfig(2300, uiTextBox17, "F2",false), // 转速
|
||||
CreateRegisterConfig(2402, uiTextBox16, "F2",false), // 温度
|
||||
|
||||
|
||||
CreateRegisterConfig(2408, uiTextBox14, "0",true), // 稳压时间
|
||||
CreateRegisterConfig(2406, uiTextBox15, "0",true), // 通水时间
|
||||
CreateRegisterConfig(2410, uiTextBox13, "0",true), // 排空时间
|
||||
CreateRegisterConfig(2414, uiTextBox2, "0",true), // 延迟记录初始值时间
|
||||
|
||||
CreateRegisterConfig(2402, uiTextBox16, "0",true) // 温度
|
||||
|
||||
|
||||
|
||||
};
|
||||
@@ -200,8 +200,8 @@ namespace 全自动水压检测仪
|
||||
|
||||
private void Coeffiicientsetting_Load(object sender, EventArgs e)
|
||||
{
|
||||
//string plcIp = "192.168.1.10";
|
||||
string plcIp = "127.0.0.1";
|
||||
string plcIp = "192.168.1.10";
|
||||
//string plcIp = "127.0.0.1";
|
||||
bool initSuccess = Data.ModbusResourceManager.Instance.Init(plcIp, 502);
|
||||
if (!initSuccess)
|
||||
{
|
||||
@@ -405,6 +405,7 @@ namespace 全自动水压检测仪
|
||||
{
|
||||
ma?.WriteToPLCForNew(uiTextBox16.Text.Trim(), 2402, Function.DataType.整形);
|
||||
}
|
||||
|
||||
//转速设置
|
||||
private void uiTextBox17_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
238
全自动水压检测仪/NormalTemperatureMode.Designer.cs
generated
238
全自动水压检测仪/NormalTemperatureMode.Designer.cs
generated
@@ -39,10 +39,11 @@ namespace 全自动水压检测仪
|
||||
this.uiSwitch1 = new Sunny.UI.UISwitch();
|
||||
this.uiPanel7 = new Sunny.UI.UIPanel();
|
||||
this.uiTableLayoutPanel4 = new Sunny.UI.UITableLayoutPanel();
|
||||
this.uiButton4 = new Sunny.UI.UIButton();
|
||||
this.uiPanel16 = new Sunny.UI.UIPanel();
|
||||
this.uiButton3 = new Sunny.UI.UIButton();
|
||||
this.uiPanel8 = new Sunny.UI.UIPanel();
|
||||
this.uiPanel15 = new Sunny.UI.UIPanel();
|
||||
this.uiButton2 = new Sunny.UI.UIButton();
|
||||
this.uiPanel8 = new Sunny.UI.UIPanel();
|
||||
this.uiPanel5 = new Sunny.UI.UIPanel();
|
||||
this.uiTableLayoutPanel3 = new Sunny.UI.UITableLayoutPanel();
|
||||
this.uiPanel6 = new Sunny.UI.UIPanel();
|
||||
@@ -61,8 +62,6 @@ namespace 全自动水压检测仪
|
||||
this.uiLight10 = new Sunny.UI.UILight();
|
||||
this.uiPanel41 = new Sunny.UI.UIPanel();
|
||||
this.uiLight9 = new Sunny.UI.UILight();
|
||||
this.uiPanel40 = new Sunny.UI.UIPanel();
|
||||
this.uiLight8 = new Sunny.UI.UILight();
|
||||
this.uiPanel39 = new Sunny.UI.UIPanel();
|
||||
this.uiLight7 = new Sunny.UI.UILight();
|
||||
this.uiPanel38 = new Sunny.UI.UIPanel();
|
||||
@@ -71,8 +70,8 @@ namespace 全自动水压检测仪
|
||||
this.uiLight5 = new Sunny.UI.UILight();
|
||||
this.uiPanel36 = new Sunny.UI.UIPanel();
|
||||
this.uiLight4 = new Sunny.UI.UILight();
|
||||
this.uiPanel32 = new Sunny.UI.UIPanel();
|
||||
this.uiLight3 = new Sunny.UI.UILight();
|
||||
this.uiPanel40 = new Sunny.UI.UIPanel();
|
||||
this.uiLight8 = new Sunny.UI.UILight();
|
||||
this.uiPanel10 = new Sunny.UI.UIPanel();
|
||||
this.uiPanel18 = new Sunny.UI.UIPanel();
|
||||
this.uiTableLayoutPanel10 = new Sunny.UI.UITableLayoutPanel();
|
||||
@@ -166,6 +165,7 @@ namespace 全自动水压检测仪
|
||||
this.uiPanel2 = new Sunny.UI.UIPanel();
|
||||
this.uiLabel1 = new Sunny.UI.UILabel();
|
||||
this.uiLight1 = new Sunny.UI.UILight();
|
||||
this.uiButton4 = new Sunny.UI.UIButton();
|
||||
this.uiTableLayoutPanel1.SuspendLayout();
|
||||
this.uiTableLayoutPanel2.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
@@ -173,6 +173,8 @@ namespace 全自动水压检测仪
|
||||
this.uiTableLayoutPanel15.SuspendLayout();
|
||||
this.uiPanel7.SuspendLayout();
|
||||
this.uiTableLayoutPanel4.SuspendLayout();
|
||||
this.uiPanel16.SuspendLayout();
|
||||
this.uiPanel15.SuspendLayout();
|
||||
this.uiPanel5.SuspendLayout();
|
||||
this.uiTableLayoutPanel3.SuspendLayout();
|
||||
this.uiTableLayoutPanel5.SuspendLayout();
|
||||
@@ -184,12 +186,11 @@ namespace 全自动水压检测仪
|
||||
this.uiPanel43.SuspendLayout();
|
||||
this.uiPanel42.SuspendLayout();
|
||||
this.uiPanel41.SuspendLayout();
|
||||
this.uiPanel40.SuspendLayout();
|
||||
this.uiPanel39.SuspendLayout();
|
||||
this.uiPanel38.SuspendLayout();
|
||||
this.uiPanel37.SuspendLayout();
|
||||
this.uiPanel36.SuspendLayout();
|
||||
this.uiPanel32.SuspendLayout();
|
||||
this.uiPanel40.SuspendLayout();
|
||||
this.uiPanel18.SuspendLayout();
|
||||
this.uiTableLayoutPanel10.SuspendLayout();
|
||||
this.uiTableLayoutPanel11.SuspendLayout();
|
||||
@@ -257,6 +258,7 @@ namespace 全自动水压检测仪
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.uiButton4);
|
||||
this.panel1.Controls.Add(this.uiPanel29);
|
||||
this.panel1.Controls.Add(this.uiPanel7);
|
||||
this.panel1.Controls.Add(this.uiPanel5);
|
||||
@@ -354,37 +356,35 @@ namespace 全自动水压检测仪
|
||||
this.uiTableLayoutPanel4.BackColor = System.Drawing.Color.White;
|
||||
this.uiTableLayoutPanel4.ColumnCount = 1;
|
||||
this.uiTableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.uiTableLayoutPanel4.Controls.Add(this.uiButton4, 0, 3);
|
||||
this.uiTableLayoutPanel4.Controls.Add(this.uiButton3, 0, 2);
|
||||
this.uiTableLayoutPanel4.Controls.Add(this.uiPanel16, 0, 2);
|
||||
this.uiTableLayoutPanel4.Controls.Add(this.uiPanel15, 0, 1);
|
||||
this.uiTableLayoutPanel4.Controls.Add(this.uiPanel8, 0, 0);
|
||||
this.uiTableLayoutPanel4.Controls.Add(this.uiButton2, 0, 1);
|
||||
this.uiTableLayoutPanel4.Location = new System.Drawing.Point(3, 3);
|
||||
this.uiTableLayoutPanel4.Name = "uiTableLayoutPanel4";
|
||||
this.uiTableLayoutPanel4.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.uiTableLayoutPanel4.RowCount = 4;
|
||||
this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20.02002F));
|
||||
this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 26.62663F));
|
||||
this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 26.62663F));
|
||||
this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 26.72673F));
|
||||
this.uiTableLayoutPanel4.RowCount = 3;
|
||||
this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 21.58019F));
|
||||
this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 39.20991F));
|
||||
this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 39.20991F));
|
||||
this.uiTableLayoutPanel4.Size = new System.Drawing.Size(172, 228);
|
||||
this.uiTableLayoutPanel4.TabIndex = 0;
|
||||
this.uiTableLayoutPanel4.TagString = null;
|
||||
//
|
||||
// uiButton4
|
||||
// uiPanel16
|
||||
//
|
||||
this.uiButton4.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.uiButton4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.uiButton4.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(165)))), ((int)(((byte)(0)))));
|
||||
this.uiButton4.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(185)))), ((int)(((byte)(30)))));
|
||||
this.uiButton4.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(145)))), ((int)(((byte)(0)))));
|
||||
this.uiButton4.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.uiButton4.Location = new System.Drawing.Point(8, 167);
|
||||
this.uiButton4.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiButton4.Name = "uiButton4";
|
||||
this.uiButton4.Size = new System.Drawing.Size(156, 53);
|
||||
this.uiButton4.TabIndex = 3;
|
||||
this.uiButton4.Text = "紧急复位";
|
||||
this.uiButton4.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiPanel16.Controls.Add(this.uiButton3);
|
||||
this.uiPanel16.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.uiPanel16.FillColor = System.Drawing.Color.White;
|
||||
this.uiPanel16.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiPanel16.Location = new System.Drawing.Point(4, 143);
|
||||
this.uiPanel16.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.uiPanel16.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiPanel16.Name = "uiPanel16";
|
||||
this.uiPanel16.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.uiPanel16.RectColor = System.Drawing.Color.White;
|
||||
this.uiPanel16.Size = new System.Drawing.Size(164, 80);
|
||||
this.uiPanel16.TabIndex = 4;
|
||||
this.uiPanel16.Text = null;
|
||||
this.uiPanel16.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// uiButton3
|
||||
//
|
||||
@@ -394,29 +394,31 @@ namespace 全自动水压检测仪
|
||||
this.uiButton3.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
|
||||
this.uiButton3.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
|
||||
this.uiButton3.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.uiButton3.Location = new System.Drawing.Point(8, 109);
|
||||
this.uiButton3.Location = new System.Drawing.Point(5, 5);
|
||||
this.uiButton3.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiButton3.Name = "uiButton3";
|
||||
this.uiButton3.Size = new System.Drawing.Size(156, 52);
|
||||
this.uiButton3.Size = new System.Drawing.Size(154, 70);
|
||||
this.uiButton3.TabIndex = 2;
|
||||
this.uiButton3.Text = "停止测试";
|
||||
this.uiButton3.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiButton3.Click += new System.EventHandler(this.uiButton3_Click);
|
||||
//
|
||||
// uiPanel8
|
||||
// uiPanel15
|
||||
//
|
||||
this.uiPanel8.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.uiPanel8.FillColor = System.Drawing.Color.White;
|
||||
this.uiPanel8.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiPanel8.Location = new System.Drawing.Point(9, 10);
|
||||
this.uiPanel8.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.uiPanel8.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiPanel8.Name = "uiPanel8";
|
||||
this.uiPanel8.RectColor = System.Drawing.Color.White;
|
||||
this.uiPanel8.Size = new System.Drawing.Size(154, 33);
|
||||
this.uiPanel8.TabIndex = 0;
|
||||
this.uiPanel8.Text = "测试控制";
|
||||
this.uiPanel8.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.uiPanel15.Controls.Add(this.uiButton2);
|
||||
this.uiPanel15.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.uiPanel15.FillColor = System.Drawing.Color.White;
|
||||
this.uiPanel15.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiPanel15.Location = new System.Drawing.Point(4, 54);
|
||||
this.uiPanel15.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.uiPanel15.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiPanel15.Name = "uiPanel15";
|
||||
this.uiPanel15.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.uiPanel15.RectColor = System.Drawing.Color.White;
|
||||
this.uiPanel15.Size = new System.Drawing.Size(164, 79);
|
||||
this.uiPanel15.TabIndex = 3;
|
||||
this.uiPanel15.Text = null;
|
||||
this.uiPanel15.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// uiButton2
|
||||
//
|
||||
@@ -426,15 +428,30 @@ namespace 全自动水压检测仪
|
||||
this.uiButton2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(200)))), ((int)(((byte)(0)))));
|
||||
this.uiButton2.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(160)))), ((int)(((byte)(0)))));
|
||||
this.uiButton2.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.uiButton2.Location = new System.Drawing.Point(8, 51);
|
||||
this.uiButton2.Location = new System.Drawing.Point(5, 5);
|
||||
this.uiButton2.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiButton2.Name = "uiButton2";
|
||||
this.uiButton2.Size = new System.Drawing.Size(156, 52);
|
||||
this.uiButton2.Size = new System.Drawing.Size(154, 69);
|
||||
this.uiButton2.TabIndex = 1;
|
||||
this.uiButton2.Text = "启动测试";
|
||||
this.uiButton2.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiButton2.Click += new System.EventHandler(this.uiButton2_Click);
|
||||
//
|
||||
// uiPanel8
|
||||
//
|
||||
this.uiPanel8.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.uiPanel8.FillColor = System.Drawing.Color.White;
|
||||
this.uiPanel8.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiPanel8.Location = new System.Drawing.Point(4, 5);
|
||||
this.uiPanel8.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.uiPanel8.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiPanel8.Name = "uiPanel8";
|
||||
this.uiPanel8.RectColor = System.Drawing.Color.White;
|
||||
this.uiPanel8.Size = new System.Drawing.Size(164, 39);
|
||||
this.uiPanel8.TabIndex = 0;
|
||||
this.uiPanel8.Text = "测试控制";
|
||||
this.uiPanel8.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// uiPanel5
|
||||
//
|
||||
this.uiPanel5.Controls.Add(this.uiTableLayoutPanel3);
|
||||
@@ -507,10 +524,10 @@ namespace 全自动水压检测仪
|
||||
this.uiButton11.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(255)))));
|
||||
this.uiButton11.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(120)))), ((int)(((byte)(220)))));
|
||||
this.uiButton11.Font = new System.Drawing.Font("微软雅黑", 14F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiButton11.Location = new System.Drawing.Point(46, 542);
|
||||
this.uiButton11.Location = new System.Drawing.Point(9, 539);
|
||||
this.uiButton11.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiButton11.Name = "uiButton11";
|
||||
this.uiButton11.Size = new System.Drawing.Size(100, 60);
|
||||
this.uiButton11.Size = new System.Drawing.Size(85, 60);
|
||||
this.uiButton11.TabIndex = 0;
|
||||
this.uiButton11.Text = "系统排气";
|
||||
this.uiButton11.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
@@ -598,12 +615,11 @@ namespace 全自动水压检测仪
|
||||
this.uiTableLayoutPanel7.Controls.Add(this.uiPanel43, 3, 1);
|
||||
this.uiTableLayoutPanel7.Controls.Add(this.uiPanel42, 2, 1);
|
||||
this.uiTableLayoutPanel7.Controls.Add(this.uiPanel41, 1, 1);
|
||||
this.uiTableLayoutPanel7.Controls.Add(this.uiPanel40, 0, 1);
|
||||
this.uiTableLayoutPanel7.Controls.Add(this.uiPanel39, 4, 0);
|
||||
this.uiTableLayoutPanel7.Controls.Add(this.uiPanel38, 3, 0);
|
||||
this.uiTableLayoutPanel7.Controls.Add(this.uiPanel37, 2, 0);
|
||||
this.uiTableLayoutPanel7.Controls.Add(this.uiPanel36, 1, 0);
|
||||
this.uiTableLayoutPanel7.Controls.Add(this.uiPanel32, 0, 0);
|
||||
this.uiTableLayoutPanel7.Controls.Add(this.uiPanel40, 0, 0);
|
||||
this.uiTableLayoutPanel7.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.uiTableLayoutPanel7.Location = new System.Drawing.Point(0, 0);
|
||||
this.uiTableLayoutPanel7.Name = "uiTableLayoutPanel7";
|
||||
@@ -734,36 +750,6 @@ namespace 全自动水压检测仪
|
||||
this.uiLight9.TabIndex = 1;
|
||||
this.uiLight9.Text = "uiLight9";
|
||||
//
|
||||
// uiPanel40
|
||||
//
|
||||
this.uiPanel40.Controls.Add(this.uiLight8);
|
||||
this.uiPanel40.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.uiPanel40.Font = new System.Drawing.Font("微软雅黑", 9.5F);
|
||||
this.uiPanel40.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
|
||||
this.uiPanel40.Location = new System.Drawing.Point(4, 48);
|
||||
this.uiPanel40.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.uiPanel40.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiPanel40.Name = "uiPanel40";
|
||||
this.uiPanel40.Size = new System.Drawing.Size(138, 34);
|
||||
this.uiPanel40.TabIndex = 5;
|
||||
this.uiPanel40.Text = "空气抽气阀";
|
||||
this.uiPanel40.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// uiLight8
|
||||
//
|
||||
this.uiLight8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
|
||||
this.uiLight8.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLight8.Location = new System.Drawing.Point(100, 7);
|
||||
this.uiLight8.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiLight8.Name = "uiLight8";
|
||||
this.uiLight8.OffColor = System.Drawing.Color.LightGray;
|
||||
this.uiLight8.OnColor = System.Drawing.Color.Green;
|
||||
this.uiLight8.Radius = 25;
|
||||
this.uiLight8.Size = new System.Drawing.Size(25, 25);
|
||||
this.uiLight8.State = Sunny.UI.UILightState.Off;
|
||||
this.uiLight8.TabIndex = 1;
|
||||
this.uiLight8.Text = "uiLight8";
|
||||
//
|
||||
// uiPanel39
|
||||
//
|
||||
this.uiPanel39.Controls.Add(this.uiLight7);
|
||||
@@ -884,35 +870,35 @@ namespace 全自动水压检测仪
|
||||
this.uiLight4.TabIndex = 1;
|
||||
this.uiLight4.Text = "uiLight4";
|
||||
//
|
||||
// uiPanel32
|
||||
// uiPanel40
|
||||
//
|
||||
this.uiPanel32.Controls.Add(this.uiLight3);
|
||||
this.uiPanel32.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.uiPanel32.Font = new System.Drawing.Font("微软雅黑", 9.5F);
|
||||
this.uiPanel32.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
|
||||
this.uiPanel32.Location = new System.Drawing.Point(4, 5);
|
||||
this.uiPanel32.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.uiPanel32.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiPanel32.Name = "uiPanel32";
|
||||
this.uiPanel32.Size = new System.Drawing.Size(138, 33);
|
||||
this.uiPanel32.TabIndex = 0;
|
||||
this.uiPanel32.Text = "进气阀";
|
||||
this.uiPanel32.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.uiPanel40.Controls.Add(this.uiLight8);
|
||||
this.uiPanel40.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.uiPanel40.Font = new System.Drawing.Font("微软雅黑", 9.5F);
|
||||
this.uiPanel40.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
|
||||
this.uiPanel40.Location = new System.Drawing.Point(4, 5);
|
||||
this.uiPanel40.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.uiPanel40.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiPanel40.Name = "uiPanel40";
|
||||
this.uiPanel40.Size = new System.Drawing.Size(138, 33);
|
||||
this.uiPanel40.TabIndex = 5;
|
||||
this.uiPanel40.Text = "空气抽气阀";
|
||||
this.uiPanel40.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// uiLight3
|
||||
// uiLight8
|
||||
//
|
||||
this.uiLight3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
|
||||
this.uiLight3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLight3.Location = new System.Drawing.Point(100, 5);
|
||||
this.uiLight3.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiLight3.Name = "uiLight3";
|
||||
this.uiLight3.OffColor = System.Drawing.Color.LightGray;
|
||||
this.uiLight3.OnColor = System.Drawing.Color.Green;
|
||||
this.uiLight3.Radius = 25;
|
||||
this.uiLight3.Size = new System.Drawing.Size(25, 25);
|
||||
this.uiLight3.State = Sunny.UI.UILightState.Off;
|
||||
this.uiLight3.TabIndex = 1;
|
||||
this.uiLight3.Text = "11";
|
||||
this.uiLight8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
|
||||
this.uiLight8.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLight8.Location = new System.Drawing.Point(100, 7);
|
||||
this.uiLight8.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiLight8.Name = "uiLight8";
|
||||
this.uiLight8.OffColor = System.Drawing.Color.LightGray;
|
||||
this.uiLight8.OnColor = System.Drawing.Color.Green;
|
||||
this.uiLight8.Radius = 25;
|
||||
this.uiLight8.Size = new System.Drawing.Size(25, 25);
|
||||
this.uiLight8.State = Sunny.UI.UILightState.Off;
|
||||
this.uiLight8.TabIndex = 1;
|
||||
this.uiLight8.Text = "uiLight8";
|
||||
//
|
||||
// uiPanel10
|
||||
//
|
||||
@@ -1352,7 +1338,7 @@ namespace 全自动水压检测仪
|
||||
this.uiLabel8.Name = "uiLabel8";
|
||||
this.uiLabel8.Size = new System.Drawing.Size(139, 30);
|
||||
this.uiLabel8.TabIndex = 0;
|
||||
this.uiLabel8.Text = "高温实时液位(L):";
|
||||
this.uiLabel8.Text = "高温实时液位(mm):";
|
||||
this.uiLabel8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// uiLabel34
|
||||
@@ -1403,7 +1389,7 @@ namespace 全自动水压检测仪
|
||||
this.uiLabel16.Name = "uiLabel16";
|
||||
this.uiLabel16.Size = new System.Drawing.Size(139, 30);
|
||||
this.uiLabel16.TabIndex = 0;
|
||||
this.uiLabel16.Text = "常温实时液位(L):";
|
||||
this.uiLabel16.Text = "常温实时液位(mm):";
|
||||
this.uiLabel16.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// uiLabel17
|
||||
@@ -1840,6 +1826,7 @@ namespace 全自动水压检测仪
|
||||
// uiTextBox2
|
||||
//
|
||||
this.uiTextBox2.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
this.uiTextBox2.Enabled = false;
|
||||
this.uiTextBox2.Font = new System.Drawing.Font("微软雅黑", 10.5F);
|
||||
this.uiTextBox2.Location = new System.Drawing.Point(141, 132);
|
||||
this.uiTextBox2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
@@ -1886,6 +1873,7 @@ namespace 全自动水压检测仪
|
||||
// uiTextBox7
|
||||
//
|
||||
this.uiTextBox7.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
this.uiTextBox7.Enabled = false;
|
||||
this.uiTextBox7.Font = new System.Drawing.Font("微软雅黑", 10.5F);
|
||||
this.uiTextBox7.Location = new System.Drawing.Point(619, 46);
|
||||
this.uiTextBox7.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
@@ -1914,6 +1902,7 @@ namespace 全自动水压检测仪
|
||||
// uiTextBox8
|
||||
//
|
||||
this.uiTextBox8.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
this.uiTextBox8.Enabled = false;
|
||||
this.uiTextBox8.Font = new System.Drawing.Font("微软雅黑", 10.5F);
|
||||
this.uiTextBox8.Location = new System.Drawing.Point(619, 132);
|
||||
this.uiTextBox8.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
@@ -1942,6 +1931,7 @@ namespace 全自动水压检测仪
|
||||
// uiTextBox6
|
||||
//
|
||||
this.uiTextBox6.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
this.uiTextBox6.Enabled = false;
|
||||
this.uiTextBox6.Font = new System.Drawing.Font("微软雅黑", 10.5F);
|
||||
this.uiTextBox6.Location = new System.Drawing.Point(619, 89);
|
||||
this.uiTextBox6.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
@@ -1970,6 +1960,7 @@ namespace 全自动水压检测仪
|
||||
// uiTextBox3
|
||||
//
|
||||
this.uiTextBox3.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
this.uiTextBox3.Enabled = false;
|
||||
this.uiTextBox3.Font = new System.Drawing.Font("微软雅黑", 10.5F);
|
||||
this.uiTextBox3.Location = new System.Drawing.Point(619, 5);
|
||||
this.uiTextBox3.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
@@ -2265,6 +2256,22 @@ namespace 全自动水压检测仪
|
||||
this.uiLight1.TabIndex = 1;
|
||||
this.uiLight1.Text = "uiLight1";
|
||||
//
|
||||
// uiButton4
|
||||
//
|
||||
this.uiButton4.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.uiButton4.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(130)))), ((int)(((byte)(240)))));
|
||||
this.uiButton4.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(255)))));
|
||||
this.uiButton4.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(120)))), ((int)(((byte)(220)))));
|
||||
this.uiButton4.Font = new System.Drawing.Font("微软雅黑", 14F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiButton4.Location = new System.Drawing.Point(100, 539);
|
||||
this.uiButton4.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiButton4.Name = "uiButton4";
|
||||
this.uiButton4.Size = new System.Drawing.Size(85, 60);
|
||||
this.uiButton4.TabIndex = 3;
|
||||
this.uiButton4.Text = "水箱加热";
|
||||
this.uiButton4.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiButton4.Click += new System.EventHandler(this.uiButton4_Click);
|
||||
//
|
||||
// NormalTemperatureMode
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -2284,6 +2291,8 @@ namespace 全自动水压检测仪
|
||||
this.uiTableLayoutPanel15.ResumeLayout(false);
|
||||
this.uiPanel7.ResumeLayout(false);
|
||||
this.uiTableLayoutPanel4.ResumeLayout(false);
|
||||
this.uiPanel16.ResumeLayout(false);
|
||||
this.uiPanel15.ResumeLayout(false);
|
||||
this.uiPanel5.ResumeLayout(false);
|
||||
this.uiTableLayoutPanel3.ResumeLayout(false);
|
||||
this.uiTableLayoutPanel5.ResumeLayout(false);
|
||||
@@ -2295,12 +2304,11 @@ namespace 全自动水压检测仪
|
||||
this.uiPanel43.ResumeLayout(false);
|
||||
this.uiPanel42.ResumeLayout(false);
|
||||
this.uiPanel41.ResumeLayout(false);
|
||||
this.uiPanel40.ResumeLayout(false);
|
||||
this.uiPanel39.ResumeLayout(false);
|
||||
this.uiPanel38.ResumeLayout(false);
|
||||
this.uiPanel37.ResumeLayout(false);
|
||||
this.uiPanel36.ResumeLayout(false);
|
||||
this.uiPanel32.ResumeLayout(false);
|
||||
this.uiPanel40.ResumeLayout(false);
|
||||
this.uiPanel18.ResumeLayout(false);
|
||||
this.uiTableLayoutPanel10.ResumeLayout(false);
|
||||
this.uiTableLayoutPanel11.ResumeLayout(false);
|
||||
@@ -2355,7 +2363,6 @@ namespace 全自动水压检测仪
|
||||
private Sunny.UI.UITableLayoutPanel uiTableLayoutPanel4;
|
||||
private Sunny.UI.UIPanel uiPanel8;
|
||||
private Sunny.UI.UIButton uiButton2;
|
||||
private Sunny.UI.UIButton uiButton4;
|
||||
private Sunny.UI.UIButton uiButton3;
|
||||
private Sunny.UI.UITableLayoutPanel uiTableLayoutPanel5;
|
||||
private Sunny.UI.UIPanel uiPanel9;
|
||||
@@ -2436,8 +2443,6 @@ namespace 全自动水压检测仪
|
||||
private Sunny.UI.UILabel uiLabel42;
|
||||
private Sunny.UI.UILabel uiLabel43;
|
||||
private Sunny.UI.UILabel uiLabel44;
|
||||
private Sunny.UI.UIPanel uiPanel32;
|
||||
private Sunny.UI.UILight uiLight3;
|
||||
private Sunny.UI.UIPanel uiPanel44;
|
||||
private Sunny.UI.UILight uiLight12;
|
||||
private Sunny.UI.UIPanel uiPanel43;
|
||||
@@ -2471,6 +2476,9 @@ namespace 全自动水压检测仪
|
||||
private Sunny.UI.UILabel uiLabel48;
|
||||
private Sunny.UI.UITextBox uiTextBox9;
|
||||
private Sunny.UI.UIButton uiButton5;
|
||||
private Sunny.UI.UIPanel uiPanel15;
|
||||
private Sunny.UI.UIPanel uiPanel16;
|
||||
private Sunny.UI.UIButton uiButton4;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -315,7 +315,7 @@ namespace 全自动水压检测仪
|
||||
Debug.WriteLine($"[错误] 读取测试步(地址80)失败: {ex.Message}");
|
||||
}
|
||||
|
||||
//压力量设定
|
||||
//压力设定
|
||||
try
|
||||
{
|
||||
ushort[] registers = await Task.Run(() =>
|
||||
@@ -340,11 +340,11 @@ namespace 全自动水压检测仪
|
||||
try
|
||||
{
|
||||
ushort[] registers = await Task.Run(() =>
|
||||
_modbusMaster?.ReadHoldingRegisters(1, 2402, 1)
|
||||
_modbusMaster?.ReadHoldingRegisters(1, 2402, 2)
|
||||
);
|
||||
if (registers == null || registers.Length == 0) return;
|
||||
|
||||
float registerValue = registers[0];
|
||||
float registerValue = c.UshortToFloat(registers[1], registers[0]);
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
uiTextBox4.Text = registerValue.ToString("F2");
|
||||
@@ -364,10 +364,10 @@ namespace 全自动水压检测仪
|
||||
);
|
||||
if (registers == null || registers.Length == 0) return;
|
||||
|
||||
float pressureValue = c.UshortToFloat(registers[1], registers[0]);
|
||||
int pressureValue = registers[0];
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
uiTextBox5.Text = pressureValue.ToString("F2");
|
||||
uiTextBox5.Text = pressureValue.ToString();
|
||||
}));
|
||||
|
||||
|
||||
@@ -447,16 +447,18 @@ namespace 全自动水压检测仪
|
||||
{
|
||||
uiLight2.State = UILightState.Off;
|
||||
}
|
||||
|
||||
//进气阀指示
|
||||
bool[] valve1 = _modbusMaster?.ReadCoils(1, 10014, 1);
|
||||
if (valve1 != null && valve1.Length > 0 && valve1[0])
|
||||
{
|
||||
uiLight3.State = UILightState.On;
|
||||
}
|
||||
else
|
||||
{
|
||||
uiLight3.State = UILightState.Off;
|
||||
}
|
||||
//bool[] valve1 = _modbusMaster?.ReadCoils(1, 10014, 1);
|
||||
//if (valve1 != null && valve1.Length > 0 && valve1[0])
|
||||
//{
|
||||
// uiLight3.State = UILightState.On;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// uiLight3.State = UILightState.Off;
|
||||
//}
|
||||
|
||||
//测试高压阀指示
|
||||
bool[] valve2 = _modbusMaster?.ReadCoils(1, 10008, 1);
|
||||
if (valve2 != null && valve2.Length > 0 && valve2[0])
|
||||
@@ -567,6 +569,18 @@ namespace 全自动水压检测仪
|
||||
uiButton11.ForeColor = Color.White;
|
||||
uiButton11.Text = "系统排气";
|
||||
}
|
||||
//水箱加热指示
|
||||
bool[] valve12 = _modbusMaster?.ReadCoils(1, 10004, 1);
|
||||
if (valve11 != null && valve11.Length > 0 && valve11[0])
|
||||
{
|
||||
uiButton4.ForeColor = Color.Red;
|
||||
uiButton4.Text = "加热中";
|
||||
}
|
||||
else
|
||||
{
|
||||
uiButton4.ForeColor = Color.White;
|
||||
uiButton4.Text = "水箱加热";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -583,8 +597,8 @@ namespace 全自动水压检测仪
|
||||
|
||||
private void NormalTemperatureMode_Load(object sender, EventArgs e)
|
||||
{
|
||||
//string plcIp = "192.168.1.10";
|
||||
string plcIp = "127.0.0.1";
|
||||
string plcIp = "192.168.1.10";
|
||||
//string plcIp = "127.0.0.1";
|
||||
bool initSuccess = Data.ModbusResourceManager.Instance.Init(plcIp, 502);
|
||||
if (!initSuccess)
|
||||
{
|
||||
@@ -645,6 +659,9 @@ namespace 全自动水压检测仪
|
||||
startpressure = uiTextBox3.Text.ToDouble(),
|
||||
Type = uiLight1.State == UILightState.On ? 1 : 0
|
||||
});
|
||||
|
||||
|
||||
uiTextBox2.Text = string.Empty;
|
||||
}
|
||||
private bool TryReconnect()
|
||||
{
|
||||
@@ -826,6 +843,12 @@ namespace 全自动水压检测仪
|
||||
{
|
||||
ma?.BtnClickFunctionForNew(Function.ButtonType.切换型, 10012);
|
||||
}
|
||||
|
||||
//高温加热
|
||||
private void uiButton4_Click(object sender, EventArgs e)
|
||||
{
|
||||
ma?.BtnClickFunctionForNew(Function.ButtonType.切换型, 10004);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user