1114
nodyang@aliyun.com 4 days ago
parent ea4d400eab
commit eea74e8f8c

@ -30,6 +30,8 @@
{ {
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.button2 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
@ -37,8 +39,6 @@
this.comboPwd = new HZH_Controls.Controls.TextBoxEx(); this.comboPwd = new HZH_Controls.Controls.TextBoxEx();
this.comboUser = new System.Windows.Forms.ComboBox(); this.comboUser = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
@ -72,12 +72,32 @@
this.panel2.TabIndex = 2; this.panel2.TabIndex = 2;
this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint); this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint);
// //
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(324, 26);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(79, 16);
this.label3.TabIndex = 7;
this.label3.Text = "登录级别:";
//
// comboBox1
//
this.comboBox1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(409, 23);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(139, 24);
this.comboBox1.TabIndex = 8;
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// pictureBox1 // pictureBox1
// //
this.pictureBox1.Image = global::RfidWeb.Properties.Resources.; this.pictureBox1.Image = global::RfidWeb.Properties.Resources.;
this.pictureBox1.Location = new System.Drawing.Point(12, 12); this.pictureBox1.Location = new System.Drawing.Point(27, 24);
this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(306, 247); this.pictureBox1.Size = new System.Drawing.Size(250, 203);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 6; this.pictureBox1.TabIndex = 6;
this.pictureBox1.TabStop = false; this.pictureBox1.TabStop = false;
@ -158,26 +178,6 @@
this.label2.TabIndex = 2; this.label2.TabIndex = 2;
this.label2.Text = "登录密码:"; this.label2.Text = "登录密码:";
// //
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(324, 26);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(79, 16);
this.label3.TabIndex = 7;
this.label3.Text = "登录级别:";
//
// comboBox1
//
this.comboBox1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(409, 23);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(139, 24);
this.comboBox1.TabIndex = 8;
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// FormLogin // FormLogin
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);

File diff suppressed because it is too large Load Diff

@ -1,20 +1,279 @@
using System; using HslCommunication.LogNet;
using HZH_Controls.Forms;
using NewLife.Caching;
using NewLife.Threading;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Diagnostics;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using Tool;
using Tool.Model;
namespace RfidWeb.Frm namespace RfidWeb.Frm
{ {
public partial class FormPar : UserControl public partial class FormPar : UserControl
{ {
private ICache cache = Cache.Default;
private ILogNet logNet = ILogNetFactory.GetLogNet;
private TimerX _timer;
public FormPar() public FormPar()
{ {
InitializeComponent(); InitializeComponent();
FillA();
FillB();
//_timer = new TimerX(TimeState, null, 2000, 1000);
//_timer.Async = true;
}
private Dictionary<string, string> dicA = new Dictionary<string, string>();
private Dictionary<string, string> dicB = new Dictionary<string, string>();
private void FillA()
{
dicA.Clear();
textBoxExFeedingMotorSpeed.Text=HmiPoint.GetFeedingMotorSpeed.ToString();
textBoxExLaminatedMotorSpeed.Text= HmiPoint.GetLaminatedMotorSpeed.ToString();
double result = HmiPoint.GetSWSS / 10.0;
textBoxExSWSD.Text = result.ToString();
textBoxExFelt.Text = HmiPoint.GetFeltBeltMotorSpeed.ToString();
textBoxReceiving.Text = HmiPoint.GeReceivingMotorSpeed.ToString();
dicA["A"] = textBoxExFeedingMotorSpeed.Text;
dicA["B"] = textBoxExLaminatedMotorSpeed.Text;
dicA["C"] = HmiPoint.GetSWSS.ToString();
dicA["D"] = textBoxExFelt.Text;
dicA["E"] = textBoxReceiving.Text;
}
private void button8_Click(object sender, EventArgs e)
{
var plc = PlcConnect.Instance;
var a = textBoxExFeedingMotorSpeed.Text;
if (a != dicA["A"])
{
plc.Write(HmiPoint.feeding_motor_speed, uint.Parse(a));
}
var b = textBoxExLaminatedMotorSpeed.Text;
if (b != dicA["B"])
{
plc.Write(HmiPoint.Laminated_motor_speed, uint.Parse(b));
}
var c = UInt32.Parse((Convert.ToDouble(textBoxExSWSD.Text) * 10).ToString()).ToString();
if (c != dicA["C"])
{
plc.Write(HmiPoint.SWSS, uint.Parse(c));
}
var d = textBoxExFelt.Text;
if (d != dicA["D"])
{
plc.Write(HmiPoint.Felt_belt_motor_speed, uint.Parse(d));
}
var ee = textBoxExFelt.Text;
if (ee != dicA["E"])
{
plc.Write(HmiPoint.Receiving_Electric_motor_speed, uint.Parse(ee));
}
MessageBox.Show("保存成功");
}
private void FillB()
{
dicB.Clear();
txtCUTTING_SET_TEMPERATURE1_1.Text = HmiPoint.GetCUTTING_SET_TEMPERATURE1_1.ToString();
dicB["CUTTING_SET_TEMPERATURE1_1"] = txtCUTTING_SET_TEMPERATURE1_1.Text;
txtCUTTING_SET_TEMPERATURE1_2.Text = HmiPoint.GetCUTTING_SET_TEMPERATURE1_2.ToString();
dicB["CUTTING_SET_TEMPERATURE1_2"] = txtCUTTING_SET_TEMPERATURE1_2.Text;
txtCUTTING_SET_TEMPERATURE1_3.Text = HmiPoint.GetCUTTING_SET_TEMPERATURE1_3.ToString();
dicB["CUTTING_SET_TEMPERATURE1_3"] = txtCUTTING_SET_TEMPERATURE1_3.Text;
txtCUTTING_SET_TEMPERATURE1_4.Text = HmiPoint.GetCUTTING_SET_TEMPERATURE1_4.ToString();
dicB["CUTTING_SET_TEMPERATURE1_4"] = txtCUTTING_SET_TEMPERATURE1_4.Text;
txtCUTTING_SET_TEMPERATURE2_1.Text = HmiPoint.GetCUTTING_SET_TEMPERATURE2_1.ToString();
dicB["CUTTING_SET_TEMPERATURE2_1"] = txtCUTTING_SET_TEMPERATURE2_1.Text;
txtCUTTING_SET_TEMPERATURE2_2.Text = HmiPoint.GetCUTTING_SET_TEMPERATURE2_2.ToString();
dicB["CUTTING_SET_TEMPERATURE2_2"] = txtCUTTING_SET_TEMPERATURE2_2.Text;
txtCUTTING_SET_TEMPERATURE2_3.Text = HmiPoint.GetCUTTING_SET_TEMPERATURE2_3.ToString();
dicB["CUTTING_SET_TEMPERATURE2_3"] = txtCUTTING_SET_TEMPERATURE2_3.Text;
txtCUTTING_SET_TEMPERATURE2_4.Text = HmiPoint.GetCUTTING_SET_TEMPERATURE2_4.ToString();
dicB["CUTTING_SET_TEMPERATURE2_4"] = txtCUTTING_SET_TEMPERATURE2_4.Text;
txtCUTTING_SET_TIME1_1.Text = HmiPoint.GetCUTTING_SET_TIME1_1.ToString();
dicB["CUTTING_SET_TIME1_1"] = txtCUTTING_SET_TIME1_1.Text;
txtCUTTING_SET_TIME1_2.Text = HmiPoint.GetCUTTING_SET_TIME1_2.ToString();
dicB["CUTTING_SET_TIME1_2"] = txtCUTTING_SET_TIME1_2.Text;
txtCUTTING_SET_TIME1_3.Text = HmiPoint.GetCUTTING_SET_TIME1_3.ToString();
dicB["CUTTING_SET_TIME1_3"] = txtCUTTING_SET_TIME1_3.Text;
txtCUTTING_SET_TIME1_4.Text = HmiPoint.GetCUTTING_SET_TIME1_4.ToString();
dicB["CUTTING_SET_TIME1_4"] = txtCUTTING_SET_TIME1_4.Text;
txtCUTTING_SET_TIME2_1.Text = HmiPoint.GetCUTTING_SET_TIME2_1.ToString();
dicB["CUTTING_SET_TIME2_1"] = txtCUTTING_SET_TIME2_1.Text;
txtCUTTING_SET_TIME2_2.Text = HmiPoint.GetCUTTING_SET_TIME2_2.ToString();
dicB["CUTTING_SET_TIME2_2"] = txtCUTTING_SET_TIME2_2.Text;
txtCUTTING_SET_TIME2_3.Text = HmiPoint.GetCUTTING_SET_TIME2_3.ToString();
dicB["CUTTING_SET_TIME2_3"] = txtCUTTING_SET_TIME2_3.Text;
txtCUTTING_SET_TIME2_4.Text = HmiPoint.GetCUTTING_SET_TIME2_4.ToString();
dicB["CUTTING_SET_TIME2_4"] = txtCUTTING_SET_TIME2_4.Text;
}
private void button7_Click(object sender, EventArgs e)
{
var plc = PlcConnect.Instance;
var CUTTING_SET_TEMPERATURE1_1= HmiPoint.GetCUTTING_SET_TEMPERATURE1_1.ToString();
if (CUTTING_SET_TEMPERATURE1_1 != dicB["CUTTING_SET_TEMPERATURE1_1"])
{
plc.Write(HmiPoint.CUTTING_SET_TEMPERATURE1_1, uint.Parse(CUTTING_SET_TEMPERATURE1_1));
}
var CUTTING_SET_TEMPERATURE1_2 = HmiPoint.GetCUTTING_SET_TEMPERATURE1_2.ToString();
if (CUTTING_SET_TEMPERATURE1_2 != dicB["CUTTING_SET_TEMPERATURE1_2"])
{
plc.Write(HmiPoint.CUTTING_SET_TEMPERATURE1_2, uint.Parse(CUTTING_SET_TEMPERATURE1_2));
}
var CUTTING_SET_TEMPERATURE1_3 = HmiPoint.GetCUTTING_SET_TEMPERATURE1_3.ToString();
if (CUTTING_SET_TEMPERATURE1_3 != dicB["CUTTING_SET_TEMPERATURE1_3"])
{
plc.Write(HmiPoint.CUTTING_SET_TEMPERATURE1_3, uint.Parse(CUTTING_SET_TEMPERATURE1_3));
}
var CUTTING_SET_TEMPERATURE1_4 = HmiPoint.GetCUTTING_SET_TEMPERATURE1_4.ToString();
if (CUTTING_SET_TEMPERATURE1_4 != dicB["CUTTING_SET_TEMPERATURE1_4"])
{
plc.Write(HmiPoint.CUTTING_SET_TEMPERATURE1_4, uint.Parse(CUTTING_SET_TEMPERATURE1_4));
}
var CUTTING_SET_TEMPERATURE2_1 = HmiPoint.GetCUTTING_SET_TEMPERATURE2_1.ToString();
if (CUTTING_SET_TEMPERATURE2_1 != dicB["CUTTING_SET_TEMPERATURE2_1"])
{
plc.Write(HmiPoint.CUTTING_SET_TEMPERATURE2_1, uint.Parse(CUTTING_SET_TEMPERATURE2_1));
}
var CUTTING_SET_TEMPERATURE2_2 = HmiPoint.GetCUTTING_SET_TEMPERATURE2_2.ToString();
if (CUTTING_SET_TEMPERATURE2_2 != dicB["CUTTING_SET_TEMPERATURE2_2"])
{
plc.Write(HmiPoint.CUTTING_SET_TEMPERATURE2_2, uint.Parse(CUTTING_SET_TEMPERATURE2_2));
}
var CUTTING_SET_TEMPERATURE2_3 = HmiPoint.GetCUTTING_SET_TEMPERATURE2_3.ToString();
if (CUTTING_SET_TEMPERATURE2_3 != dicB["CUTTING_SET_TEMPERATURE2_3"])
{
plc.Write(HmiPoint.CUTTING_SET_TEMPERATURE2_3, uint.Parse(CUTTING_SET_TEMPERATURE2_3));
}
var CUTTING_SET_TEMPERATURE2_4 = HmiPoint.GetCUTTING_SET_TEMPERATURE2_4.ToString();
if (CUTTING_SET_TEMPERATURE2_4 != dicB["CUTTING_SET_TEMPERATURE2_4"])
{
plc.Write(HmiPoint.CUTTING_SET_TEMPERATURE2_4, uint.Parse(CUTTING_SET_TEMPERATURE2_4));
}
var CUTTING_SET_TIME1_1 = HmiPoint.GetCUTTING_SET_TIME1_1.ToString();
if (CUTTING_SET_TIME1_1 != dicB["CUTTING_SET_TIME1_1"])
{
plc.Write(HmiPoint.CUTTING_SET_TIME1_1, uint.Parse(CUTTING_SET_TIME1_1));
}
var CUTTING_SET_TIME1_2 = HmiPoint.GetCUTTING_SET_TIME1_2.ToString();
if (CUTTING_SET_TIME1_2 != dicB["CUTTING_SET_TIME1_2"])
{
plc.Write(HmiPoint.CUTTING_SET_TIME1_2, uint.Parse(CUTTING_SET_TIME1_2));
}
var CUTTING_SET_TIME1_3 = HmiPoint.GetCUTTING_SET_TIME1_3.ToString();
if (CUTTING_SET_TIME1_3 != dicB["CUTTING_SET_TIME1_3"])
{
plc.Write(HmiPoint.CUTTING_SET_TIME1_3, uint.Parse(CUTTING_SET_TIME1_3));
}
var CUTTING_SET_TIME1_4 = HmiPoint.GetCUTTING_SET_TIME1_4.ToString();
if (CUTTING_SET_TIME1_4 != dicB["CUTTING_SET_TIME1_4"])
{
plc.Write(HmiPoint.CUTTING_SET_TIME1_4, uint.Parse(CUTTING_SET_TIME1_4));
}
var CUTTING_SET_TIME2_1 = HmiPoint.GetCUTTING_SET_TIME2_1.ToString();
if (CUTTING_SET_TIME2_1 != dicB["CUTTING_SET_TIME2_1"])
{
plc.Write(HmiPoint.CUTTING_SET_TIME2_1, uint.Parse(CUTTING_SET_TIME2_1));
}
var CUTTING_SET_TIME2_2 = HmiPoint.GetCUTTING_SET_TIME2_2.ToString();
if (CUTTING_SET_TIME2_2 != dicB["CUTTING_SET_TIME2_2"])
{
plc.Write(HmiPoint.CUTTING_SET_TIME2_2, uint.Parse(CUTTING_SET_TIME2_2));
}
var CUTTING_SET_TIME2_3 = HmiPoint.GetCUTTING_SET_TIME2_3.ToString();
if (CUTTING_SET_TIME2_3 != dicB["CUTTING_SET_TIME2_3"])
{
plc.Write(HmiPoint.CUTTING_SET_TIME2_3, uint.Parse(CUTTING_SET_TIME2_3));
}
var CUTTING_SET_TIME2_4 = HmiPoint.GetCUTTING_SET_TIME2_4.ToString();
if (CUTTING_SET_TIME2_4 != dicB["CUTTING_SET_TIME2_4"])
{
plc.Write(HmiPoint.CUTTING_SET_TIME2_4, uint.Parse(CUTTING_SET_TIME2_4));
}
MessageBox.Show("保存成功");
} }
} }
} }

@ -28,11 +28,11 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.dataGridView2 = new System.Windows.Forms.DataGridView(); this.dataGridView2 = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -42,12 +42,13 @@
this.Msg = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Msg = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.panel2 = new System.Windows.Forms.Panel();
this.hslLabelComboProduct_counter2 = new HslControls.HslLabelCombo();
this.hslLabelComboSWSS = new HslControls.HslLabelCombo(); this.hslLabelComboSWSS = new HslControls.HslLabelCombo();
this.hslLabelComboCQ_Chip1_counter = new HslControls.HslLabelCombo();
this.hslLabelComboQDWD2SS = new HslControls.HslLabelCombo(); this.hslLabelComboQDWD2SS = new HslControls.HslLabelCombo();
this.hslLabelComboQDWD1SS = new HslControls.HslLabelCombo();
this.hslLabelComboCQ_Chip2_counter = new HslControls.HslLabelCombo(); this.hslLabelComboCQ_Chip2_counter = new HslControls.HslLabelCombo();
this.hslLabelComboCQ_Chip1_counter = new HslControls.HslLabelCombo(); this.hslLabelComboQDWD1SS = new HslControls.HslLabelCombo();
this.hslLabelComboProduct_counter2 = new HslControls.HslLabelCombo();
this.hslA12 = new HslControls.HslLanternSimple(); this.hslA12 = new HslControls.HslLanternSimple();
this.hsl0 = new HslControls.HslLanternSimple(); this.hsl0 = new HslControls.HslLanternSimple();
this.hslA11 = new HslControls.HslLanternSimple(); this.hslA11 = new HslControls.HslLanternSimple();
@ -62,10 +63,11 @@
this.hslA3 = new HslControls.HslLanternSimple(); this.hslA3 = new HslControls.HslLanternSimple();
this.hslA2 = new HslControls.HslLanternSimple(); this.hslA2 = new HslControls.HslLanternSimple();
this.groupBox2 = new System.Windows.Forms.GroupBox(); this.groupBox2 = new System.Windows.Forms.GroupBox();
this.panel3 = new System.Windows.Forms.Panel();
this.hslLabelCombofeedingMotorSpeed = new HslControls.HslLabelCombo();
this.hslLabelComboReceiving = new HslControls.HslLabelCombo(); this.hslLabelComboReceiving = new HslControls.HslLabelCombo();
this.hslLabelComboFelt = new HslControls.HslLabelCombo();
this.hslLabelComboLaminated = new HslControls.HslLabelCombo(); this.hslLabelComboLaminated = new HslControls.HslLabelCombo();
this.hslLabelCombofeedingMotorSpeed = new HslControls.HslLabelCombo(); this.hslLabelComboFelt = new HslControls.HslLabelCombo();
this.hslB14 = new HslControls.HslLanternSimple(); this.hslB14 = new HslControls.HslLanternSimple();
this.hslB13 = new HslControls.HslLanternSimple(); this.hslB13 = new HslControls.HslLanternSimple();
this.hslB2 = new HslControls.HslLanternSimple(); this.hslB2 = new HslControls.HslLanternSimple();
@ -77,15 +79,14 @@
this.hslB9 = new HslControls.HslLanternSimple(); this.hslB9 = new HslControls.HslLanternSimple();
this.hslB10 = new HslControls.HslLanternSimple(); this.hslB10 = new HslControls.HslLanternSimple();
this.hslB11 = new HslControls.HslLanternSimple(); this.hslB11 = new HslControls.HslLanternSimple();
this.panel2 = new System.Windows.Forms.Panel(); this.btnStatus = new System.Windows.Forms.Button();
this.panel3 = new System.Windows.Forms.Panel();
this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
this.groupBox2.SuspendLayout();
this.panel3.SuspendLayout(); this.panel3.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
@ -109,37 +110,37 @@
this.dataGridView2.AllowUserToAddRows = false; this.dataGridView2.AllowUserToAddRows = false;
this.dataGridView2.AllowUserToDeleteRows = false; this.dataGridView2.AllowUserToDeleteRows = false;
this.dataGridView2.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; this.dataGridView2.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.dataGridView2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1, this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2}); this.dataGridViewTextBoxColumn2});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.Red; dataGridViewCellStyle7.BackColor = System.Drawing.Color.Red;
dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.Red; dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.Red;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView2.DefaultCellStyle = dataGridViewCellStyle2; this.dataGridView2.DefaultCellStyle = dataGridViewCellStyle7;
this.dataGridView2.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGridView2.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView2.Location = new System.Drawing.Point(458, 3); this.dataGridView2.Location = new System.Drawing.Point(458, 3);
this.dataGridView2.Name = "dataGridView2"; this.dataGridView2.Name = "dataGridView2";
this.dataGridView2.ReadOnly = true; this.dataGridView2.ReadOnly = true;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.Red; dataGridViewCellStyle8.BackColor = System.Drawing.Color.Red;
dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 15F); dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 15F);
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle8.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.Red; dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.Red;
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White; dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.White;
this.dataGridView2.RowsDefaultCellStyle = dataGridViewCellStyle3; this.dataGridView2.RowsDefaultCellStyle = dataGridViewCellStyle8;
this.dataGridView2.RowTemplate.Height = 23; this.dataGridView2.RowTemplate.Height = 23;
this.dataGridView2.Size = new System.Drawing.Size(449, 270); this.dataGridView2.Size = new System.Drawing.Size(449, 270);
this.dataGridView2.TabIndex = 1; this.dataGridView2.TabIndex = 1;
@ -164,14 +165,14 @@
// //
this.dataGridView1.AllowUserToAddRows = false; this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false; this.dataGridView1.AllowUserToDeleteRows = false;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.al, this.al,
@ -180,13 +181,13 @@
this.dataGridView1.Location = new System.Drawing.Point(3, 3); this.dataGridView1.Location = new System.Drawing.Point(3, 3);
this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true; this.dataGridView1.ReadOnly = true;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.Red; dataGridViewCellStyle10.BackColor = System.Drawing.Color.Red;
dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle10.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.Red; dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.Red;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.White; dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.White;
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle5; this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle10;
this.dataGridView1.RowTemplate.Height = 23; this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(449, 270); this.dataGridView1.Size = new System.Drawing.Size(449, 270);
this.dataGridView1.TabIndex = 0; this.dataGridView1.TabIndex = 0;
@ -245,6 +246,34 @@
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "卷料侧(收料1)"; this.groupBox1.Text = "卷料侧(收料1)";
// //
// panel2
//
this.panel2.BackColor = System.Drawing.SystemColors.ButtonFace;
this.panel2.Controls.Add(this.hslLabelComboProduct_counter2);
this.panel2.Controls.Add(this.hslLabelComboSWSS);
this.panel2.Controls.Add(this.hslLabelComboCQ_Chip1_counter);
this.panel2.Controls.Add(this.hslLabelComboQDWD2SS);
this.panel2.Controls.Add(this.hslLabelComboCQ_Chip2_counter);
this.panel2.Controls.Add(this.hslLabelComboQDWD1SS);
this.panel2.Location = new System.Drawing.Point(752, 36);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(152, 131);
this.panel2.TabIndex = 27;
//
// hslLabelComboProduct_counter2
//
this.hslLabelComboProduct_counter2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.hslLabelComboProduct_counter2.Location = new System.Drawing.Point(14, 2);
this.hslLabelComboProduct_counter2.LocationUnit = 0.82F;
this.hslLabelComboProduct_counter2.LocationValue = 0.5F;
this.hslLabelComboProduct_counter2.Name = "hslLabelComboProduct_counter2";
this.hslLabelComboProduct_counter2.Size = new System.Drawing.Size(136, 20);
this.hslLabelComboProduct_counter2.TabIndex = 13;
this.hslLabelComboProduct_counter2.TextInfo = "层合 数量:";
this.hslLabelComboProduct_counter2.TextUnit = "Pcs";
this.hslLabelComboProduct_counter2.TextValue = "00";
this.hslLabelComboProduct_counter2.TextValueColorTransFun = null;
//
// hslLabelComboSWSS // hslLabelComboSWSS
// //
this.hslLabelComboSWSS.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.hslLabelComboSWSS.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -259,6 +288,20 @@
this.hslLabelComboSWSS.TextValue = "00"; this.hslLabelComboSWSS.TextValue = "00";
this.hslLabelComboSWSS.TextValueColorTransFun = null; this.hslLabelComboSWSS.TextValueColorTransFun = null;
// //
// hslLabelComboCQ_Chip1_counter
//
this.hslLabelComboCQ_Chip1_counter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.hslLabelComboCQ_Chip1_counter.Location = new System.Drawing.Point(14, 23);
this.hslLabelComboCQ_Chip1_counter.LocationUnit = 0.82F;
this.hslLabelComboCQ_Chip1_counter.LocationValue = 0.5F;
this.hslLabelComboCQ_Chip1_counter.Name = "hslLabelComboCQ_Chip1_counter";
this.hslLabelComboCQ_Chip1_counter.Size = new System.Drawing.Size(136, 20);
this.hslLabelComboCQ_Chip1_counter.TabIndex = 22;
this.hslLabelComboCQ_Chip1_counter.TextInfo = "裁刀1数量:";
this.hslLabelComboCQ_Chip1_counter.TextUnit = "Pcs";
this.hslLabelComboCQ_Chip1_counter.TextValue = "00";
this.hslLabelComboCQ_Chip1_counter.TextValueColorTransFun = null;
//
// hslLabelComboQDWD2SS // hslLabelComboQDWD2SS
// //
this.hslLabelComboQDWD2SS.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.hslLabelComboQDWD2SS.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -273,20 +316,6 @@
this.hslLabelComboQDWD2SS.TextValue = "00"; this.hslLabelComboQDWD2SS.TextValue = "00";
this.hslLabelComboQDWD2SS.TextValueColorTransFun = null; this.hslLabelComboQDWD2SS.TextValueColorTransFun = null;
// //
// hslLabelComboQDWD1SS
//
this.hslLabelComboQDWD1SS.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.hslLabelComboQDWD1SS.Location = new System.Drawing.Point(14, 67);
this.hslLabelComboQDWD1SS.LocationUnit = 0.82F;
this.hslLabelComboQDWD1SS.LocationValue = 0.5F;
this.hslLabelComboQDWD1SS.Name = "hslLabelComboQDWD1SS";
this.hslLabelComboQDWD1SS.Size = new System.Drawing.Size(136, 20);
this.hslLabelComboQDWD1SS.TabIndex = 24;
this.hslLabelComboQDWD1SS.TextInfo = "裁刀1温度:";
this.hslLabelComboQDWD1SS.TextUnit = "°C";
this.hslLabelComboQDWD1SS.TextValue = "00";
this.hslLabelComboQDWD1SS.TextValueColorTransFun = null;
//
// hslLabelComboCQ_Chip2_counter // hslLabelComboCQ_Chip2_counter
// //
this.hslLabelComboCQ_Chip2_counter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.hslLabelComboCQ_Chip2_counter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -301,33 +330,19 @@
this.hslLabelComboCQ_Chip2_counter.TextValue = "00"; this.hslLabelComboCQ_Chip2_counter.TextValue = "00";
this.hslLabelComboCQ_Chip2_counter.TextValueColorTransFun = null; this.hslLabelComboCQ_Chip2_counter.TextValueColorTransFun = null;
// //
// hslLabelComboCQ_Chip1_counter // hslLabelComboQDWD1SS
//
this.hslLabelComboCQ_Chip1_counter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.hslLabelComboCQ_Chip1_counter.Location = new System.Drawing.Point(14, 23);
this.hslLabelComboCQ_Chip1_counter.LocationUnit = 0.82F;
this.hslLabelComboCQ_Chip1_counter.LocationValue = 0.5F;
this.hslLabelComboCQ_Chip1_counter.Name = "hslLabelComboCQ_Chip1_counter";
this.hslLabelComboCQ_Chip1_counter.Size = new System.Drawing.Size(136, 20);
this.hslLabelComboCQ_Chip1_counter.TabIndex = 22;
this.hslLabelComboCQ_Chip1_counter.TextInfo = "裁刀1数量:";
this.hslLabelComboCQ_Chip1_counter.TextUnit = "Pcs";
this.hslLabelComboCQ_Chip1_counter.TextValue = "00";
this.hslLabelComboCQ_Chip1_counter.TextValueColorTransFun = null;
//
// hslLabelComboProduct_counter2
// //
this.hslLabelComboProduct_counter2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.hslLabelComboQDWD1SS.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.hslLabelComboProduct_counter2.Location = new System.Drawing.Point(14, 2); this.hslLabelComboQDWD1SS.Location = new System.Drawing.Point(14, 67);
this.hslLabelComboProduct_counter2.LocationUnit = 0.82F; this.hslLabelComboQDWD1SS.LocationUnit = 0.82F;
this.hslLabelComboProduct_counter2.LocationValue = 0.5F; this.hslLabelComboQDWD1SS.LocationValue = 0.5F;
this.hslLabelComboProduct_counter2.Name = "hslLabelComboProduct_counter2"; this.hslLabelComboQDWD1SS.Name = "hslLabelComboQDWD1SS";
this.hslLabelComboProduct_counter2.Size = new System.Drawing.Size(136, 20); this.hslLabelComboQDWD1SS.Size = new System.Drawing.Size(136, 20);
this.hslLabelComboProduct_counter2.TabIndex = 13; this.hslLabelComboQDWD1SS.TabIndex = 24;
this.hslLabelComboProduct_counter2.TextInfo = "层合 数量:"; this.hslLabelComboQDWD1SS.TextInfo = "裁刀1温度:";
this.hslLabelComboProduct_counter2.TextUnit = "Pcs"; this.hslLabelComboQDWD1SS.TextUnit = "°C";
this.hslLabelComboProduct_counter2.TextValue = "00"; this.hslLabelComboQDWD1SS.TextValue = "00";
this.hslLabelComboProduct_counter2.TextValueColorTransFun = null; this.hslLabelComboQDWD1SS.TextValueColorTransFun = null;
// //
// hslA12 // hslA12
// //
@ -450,6 +465,7 @@
// //
this.groupBox2.BackgroundImage = global::RfidWeb.Properties.Resources.Snipaste_2024_11_14_10_33_44; this.groupBox2.BackgroundImage = global::RfidWeb.Properties.Resources.Snipaste_2024_11_14_10_33_44;
this.groupBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.groupBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.groupBox2.Controls.Add(this.btnStatus);
this.groupBox2.Controls.Add(this.panel3); this.groupBox2.Controls.Add(this.panel3);
this.groupBox2.Controls.Add(this.hslB14); this.groupBox2.Controls.Add(this.hslB14);
this.groupBox2.Controls.Add(this.hslB13); this.groupBox2.Controls.Add(this.hslB13);
@ -470,6 +486,32 @@
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
this.groupBox2.Text = "料盘侧(收料2)"; this.groupBox2.Text = "料盘侧(收料2)";
// //
// panel3
//
this.panel3.BackColor = System.Drawing.SystemColors.ButtonFace;
this.panel3.Controls.Add(this.hslLabelCombofeedingMotorSpeed);
this.panel3.Controls.Add(this.hslLabelComboReceiving);
this.panel3.Controls.Add(this.hslLabelComboLaminated);
this.panel3.Controls.Add(this.hslLabelComboFelt);
this.panel3.Location = new System.Drawing.Point(12, 63);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(155, 100);
this.panel3.TabIndex = 31;
//
// hslLabelCombofeedingMotorSpeed
//
this.hslLabelCombofeedingMotorSpeed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.hslLabelCombofeedingMotorSpeed.Location = new System.Drawing.Point(0, 3);
this.hslLabelCombofeedingMotorSpeed.LocationUnit = 0.75F;
this.hslLabelCombofeedingMotorSpeed.LocationValue = 0.45F;
this.hslLabelCombofeedingMotorSpeed.Name = "hslLabelCombofeedingMotorSpeed";
this.hslLabelCombofeedingMotorSpeed.Size = new System.Drawing.Size(147, 20);
this.hslLabelCombofeedingMotorSpeed.TabIndex = 27;
this.hslLabelCombofeedingMotorSpeed.TextInfo = "供料电机:";
this.hslLabelCombofeedingMotorSpeed.TextUnit = "mm/s";
this.hslLabelCombofeedingMotorSpeed.TextValue = "00";
this.hslLabelCombofeedingMotorSpeed.TextValueColorTransFun = null;
//
// hslLabelComboReceiving // hslLabelComboReceiving
// //
this.hslLabelComboReceiving.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.hslLabelComboReceiving.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -484,20 +526,6 @@
this.hslLabelComboReceiving.TextValue = "00"; this.hslLabelComboReceiving.TextValue = "00";
this.hslLabelComboReceiving.TextValueColorTransFun = null; this.hslLabelComboReceiving.TextValueColorTransFun = null;
// //
// hslLabelComboFelt
//
this.hslLabelComboFelt.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.hslLabelComboFelt.Location = new System.Drawing.Point(0, 55);
this.hslLabelComboFelt.LocationUnit = 0.75F;
this.hslLabelComboFelt.LocationValue = 0.45F;
this.hslLabelComboFelt.Name = "hslLabelComboFelt";
this.hslLabelComboFelt.Size = new System.Drawing.Size(147, 20);
this.hslLabelComboFelt.TabIndex = 29;
this.hslLabelComboFelt.TextInfo = "毛毡带电机:";
this.hslLabelComboFelt.TextUnit = "mm/s";
this.hslLabelComboFelt.TextValue = "00";
this.hslLabelComboFelt.TextValueColorTransFun = null;
//
// hslLabelComboLaminated // hslLabelComboLaminated
// //
this.hslLabelComboLaminated.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.hslLabelComboLaminated.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -512,19 +540,19 @@
this.hslLabelComboLaminated.TextValue = "00"; this.hslLabelComboLaminated.TextValue = "00";
this.hslLabelComboLaminated.TextValueColorTransFun = null; this.hslLabelComboLaminated.TextValueColorTransFun = null;
// //
// hslLabelCombofeedingMotorSpeed // hslLabelComboFelt
// //
this.hslLabelCombofeedingMotorSpeed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.hslLabelComboFelt.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.hslLabelCombofeedingMotorSpeed.Location = new System.Drawing.Point(0, 3); this.hslLabelComboFelt.Location = new System.Drawing.Point(0, 55);
this.hslLabelCombofeedingMotorSpeed.LocationUnit = 0.75F; this.hslLabelComboFelt.LocationUnit = 0.75F;
this.hslLabelCombofeedingMotorSpeed.LocationValue = 0.45F; this.hslLabelComboFelt.LocationValue = 0.45F;
this.hslLabelCombofeedingMotorSpeed.Name = "hslLabelCombofeedingMotorSpeed"; this.hslLabelComboFelt.Name = "hslLabelComboFelt";
this.hslLabelCombofeedingMotorSpeed.Size = new System.Drawing.Size(147, 20); this.hslLabelComboFelt.Size = new System.Drawing.Size(147, 20);
this.hslLabelCombofeedingMotorSpeed.TabIndex = 27; this.hslLabelComboFelt.TabIndex = 29;
this.hslLabelCombofeedingMotorSpeed.TextInfo = "供料电机:"; this.hslLabelComboFelt.TextInfo = "毛毡带电机:";
this.hslLabelCombofeedingMotorSpeed.TextUnit = "mm/s"; this.hslLabelComboFelt.TextUnit = "mm/s";
this.hslLabelCombofeedingMotorSpeed.TextValue = "00"; this.hslLabelComboFelt.TextValue = "00";
this.hslLabelCombofeedingMotorSpeed.TextValueColorTransFun = null; this.hslLabelComboFelt.TextValueColorTransFun = null;
// //
// hslB14 // hslB14
// //
@ -625,29 +653,15 @@
this.hslB11.TabIndex = 12; this.hslB11.TabIndex = 12;
this.hslB11.Text = "hslLanternSimple1"; this.hslB11.Text = "hslLanternSimple1";
// //
// panel2 // btnStatus
//
this.panel2.Controls.Add(this.hslLabelComboProduct_counter2);
this.panel2.Controls.Add(this.hslLabelComboSWSS);
this.panel2.Controls.Add(this.hslLabelComboCQ_Chip1_counter);
this.panel2.Controls.Add(this.hslLabelComboQDWD2SS);
this.panel2.Controls.Add(this.hslLabelComboCQ_Chip2_counter);
this.panel2.Controls.Add(this.hslLabelComboQDWD1SS);
this.panel2.Location = new System.Drawing.Point(752, 36);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(152, 131);
this.panel2.TabIndex = 27;
// //
// panel3 this.btnStatus.BackColor = System.Drawing.Color.Chartreuse;
// this.btnStatus.Location = new System.Drawing.Point(252, 92);
this.panel3.Controls.Add(this.hslLabelCombofeedingMotorSpeed); this.btnStatus.Name = "btnStatus";
this.panel3.Controls.Add(this.hslLabelComboReceiving); this.btnStatus.Size = new System.Drawing.Size(112, 28);
this.panel3.Controls.Add(this.hslLabelComboLaminated); this.btnStatus.TabIndex = 32;
this.panel3.Controls.Add(this.hslLabelComboFelt); this.btnStatus.Text = "状态";
this.panel3.Location = new System.Drawing.Point(12, 63); this.btnStatus.UseVisualStyleBackColor = false;
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(155, 100);
this.panel3.TabIndex = 31;
// //
// UserAlarmShow // UserAlarmShow
// //
@ -663,8 +677,8 @@
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.groupBox1.ResumeLayout(false); this.groupBox1.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.panel2.ResumeLayout(false); this.panel2.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.panel3.ResumeLayout(false); this.panel3.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
@ -718,5 +732,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn Msg; private System.Windows.Forms.DataGridViewTextBoxColumn Msg;
private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3; private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button btnStatus;
} }
} }

@ -47,11 +47,16 @@ namespace RfidWeb.Frm
{ {
stopwatc.Restart(); stopwatc.Restart();
this.Invoke(() =>
{
btnStatus.Text = HmiPoint.GetStateText();
});
FillAlarmGrid(); FillAlarmGrid();
FillPromptGrid(); FillPromptGrid();
FillAlartLed(); FillAlartLed();
FillhslLabelCombo(); FillhslLabelCombo();
stopwatc.Stop(); stopwatc.Stop();
logNet.WriteInfo("运行时间:"+stopwatc.Elapsed.TotalMilliseconds); logNet.WriteInfo("运行时间:"+stopwatc.Elapsed.TotalMilliseconds);
} }
@ -133,7 +138,7 @@ namespace RfidWeb.Frm
var plcCh = cache.Get<PlcBoolModel>(CacheKeyManager.CH_alarm); var plcCh = cache.Get<PlcBoolModel>(CacheKeyManager.CH_alarm);
var plcCq= cache.Get<PlcBoolModel>(CacheKeyManager.CQ_alarm); var plcCq= cache.Get<PlcBoolModel>(CacheKeyManager.CQ_alarm);
var plcStop = cache.Get<List<bool>>(CacheKeyManager.estop_temporary_storage); var plcStop = cache.Get<List<bool>>(CacheKeyManager.estop_temporary_storage);
var plcAlarm= cache.Get<List<bool>>(CacheKeyManager.Prompt_alarm); var plcAlarm= cache.Get<List<bool>>(CacheKeyManager.Prompt_alarm);
if (plcStop==null || plcCh ==null || plcCq==null ) return; if (plcStop==null || plcCh ==null || plcCq==null ) return;
@ -300,6 +305,9 @@ namespace RfidWeb.Frm
hslLabelComboSWSS.TextValue = result.ToString(); hslLabelComboSWSS.TextValue = result.ToString();
} }
private void SetTrueLed(params HslLanternSimple[] simples) private void SetTrueLed(params HslLanternSimple[] simples)
{ {

@ -30,8 +30,48 @@ namespace RfidWeb
new PostgreSQLTableGenerator(dbContext).CreateTables(TableCreateMode.CreateIfNotExists); new PostgreSQLTableGenerator(dbContext).CreateTables(TableCreateMode.CreateIfNotExists);
Dictionary<string, string> dic = new Dictionary<string, string>
{
["CUTTING_SET_TEMPERATURE1_1"] = "裁刀1温度设定1",
["CUTTING_SET_TEMPERATURE1_2"] = "裁刀1温度设定2",
["CUTTING_SET_TEMPERATURE1_3"] = "裁刀1温度设定3",
["CUTTING_SET_TEMPERATURE1_4"] = "裁刀1温度设定4",
["CUTTING_SET_TEMPERATURE2_1"] = "裁刀2温度设定1",
["CUTTING_SET_TEMPERATURE2_2"] = "裁刀2温度设定2",
["CUTTING_SET_TEMPERATURE2_3"] = "裁刀2温度设定3",
["CUTTING_SET_TEMPERATURE2_4"] = "裁刀2温度设定4",
["CUTTING_SET_TIME1_1"] = "裁刀1时间设定1",
["CUTTING_SET_TIME1_2"] = "裁刀1时间设定2",
["CUTTING_SET_TIME1_3"] = "裁刀1时间设定3",
["CUTTING_SET_TIME1_4"] = "裁刀1时间设定4",
["CUTTING_SET_TIME2_1"] = "裁刀2时间设定1",
["CUTTING_SET_TIME2_2"] = "裁刀2时间设定2",
["CUTTING_SET_TIME2_3"] = "裁刀2时间设定3",
["CUTTING_SET_TIME2_4"] = "裁刀2时间设定4",
};
foreach (KeyValuePair<string, string> k in dic)
{
Point point = new Point();
point.ID = SnowflakeFactory.NewId;
point.DataType = "Uint32";
point.FromType = "参数";
point.PointAddress = k.Key;
point.PointName = k.Value;
dbContext.Insert(point);
}
} }

@ -31,7 +31,6 @@ namespace RfidWeb
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FormMain()); Application.Run(new FormMain());
//Application.Run(new FromSQl());
} }
} }
} }

@ -4,6 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using HslCommunication;
namespace Tool.Model namespace Tool.Model
{ {
@ -94,19 +95,113 @@ namespace Tool.Model
return result.IsSuccess ? result.Content : (uint)0; return result.IsSuccess ? result.Content : (uint)0;
} }
public static readonly string CUTTING_SET_TEMPERATURE1_1 = "CUTTING_SET_TEMPERATURE1_1";
public static string[] GetValue() public static UInt32 GetCUTTING_SET_TEMPERATURE1_1 => GetValue(CUTTING_SET_TEMPERATURE1_1);
{
List<string> ls = new List<string> public static readonly string CUTTING_SET_TEMPERATURE1_2 = "CUTTING_SET_TEMPERATURE1_2";
{ public static UInt32 GetCUTTING_SET_TEMPERATURE1_2 => GetValue(CUTTING_SET_TEMPERATURE1_2);
feeding_motor_speed,
Laminated_motor_speed,
Felt_belt_motor_speed, public static readonly string CUTTING_SET_TEMPERATURE1_3 = "CUTTING_SET_TEMPERATURE1_3";
Receiving_Electric_motor_speed,
public static UInt32 GetCUTTING_SET_TEMPERATURE1_3 => GetValue(CUTTING_SET_TEMPERATURE1_3);
public static readonly string CUTTING_SET_TEMPERATURE1_4 = "CUTTING_SET_TEMPERATURE1_4";
public static UInt32 GetCUTTING_SET_TEMPERATURE1_4 => GetValue(CUTTING_SET_TEMPERATURE1_4);
public static readonly string CUTTING_SET_TEMPERATURE2_1 = "CUTTING_SET_TEMPERATURE2_1";
public static UInt32 GetCUTTING_SET_TEMPERATURE2_1 => GetValue(CUTTING_SET_TEMPERATURE2_1);
public static readonly string CUTTING_SET_TEMPERATURE2_2 = "CUTTING_SET_TEMPERATURE2_2";
public static UInt32 GetCUTTING_SET_TEMPERATURE2_2 => GetValue(CUTTING_SET_TEMPERATURE2_2);
public static readonly string CUTTING_SET_TEMPERATURE2_3 = "CUTTING_SET_TEMPERATURE2_3";
public static UInt32 GetCUTTING_SET_TEMPERATURE2_3 => GetValue(CUTTING_SET_TEMPERATURE2_3);
public static readonly string CUTTING_SET_TEMPERATURE2_4 = "CUTTING_SET_TEMPERATURE2_4";
public static UInt32 GetCUTTING_SET_TEMPERATURE2_4 => GetValue(CUTTING_SET_TEMPERATURE2_4);
public static readonly string CUTTING_SET_TIME1_1 = "CUTTING_SET_TIME1_1";
public static UInt32 GetCUTTING_SET_TIME1_1 => GetValue(CUTTING_SET_TIME1_1);
public static readonly string CUTTING_SET_TIME1_2 = "CUTTING_SET_TIME1_2";
}; public static UInt32 GetCUTTING_SET_TIME1_2 => GetValue(CUTTING_SET_TIME1_2);
return ls.ToArray();
public static readonly string CUTTING_SET_TIME1_3 = "CUTTING_SET_TIME1_3";
public static UInt32 GetCUTTING_SET_TIME1_3 => GetValue(CUTTING_SET_TIME1_3);
public static readonly string CUTTING_SET_TIME1_4 = "CUTTING_SET_TIME1_4";
public static UInt32 GetCUTTING_SET_TIME1_4 => GetValue(CUTTING_SET_TIME1_4);
public static readonly string CUTTING_SET_TIME2_1 = "CUTTING_SET_TIME2_1";
public static UInt32 GetCUTTING_SET_TIME2_1 => GetValue(CUTTING_SET_TIME2_1);
public static readonly string CUTTING_SET_TIME2_2 = "CUTTING_SET_TIME2_2";
public static UInt32 GetCUTTING_SET_TIME2_2 => GetValue(CUTTING_SET_TIME2_2);
public static readonly string CUTTING_SET_TIME2_3 = "CUTTING_SET_TIME2_3";
public static UInt32 GetCUTTING_SET_TIME2_3 => GetValue(CUTTING_SET_TIME2_3);
public static readonly string CUTTING_SET_TIME2_4 = "CUTTING_SET_TIME2_4";
public static UInt32 GetCUTTING_SET_TIME2_4 => GetValue(CUTTING_SET_TIME2_4);
public static String GetStateText()
{
string text = "";
var plc = PlcConnect.Instance;
var result = plc.ReadUInt32("status_indicator");
if (result.IsSuccess)
{
var context = result.Content;
switch (context)
{
case 0:
text = "异常";
break;
case 1:
text = "手动模式";
break;
case 2:
text = "自动模式";
break;
case 3:
text = "自动运行中";
break;
case 4:
text = "停止";
break;
case 5:
text = "安全回路正常";
break;
}
}
return text;
} }
} }
} }

Loading…
Cancel
Save