From dc18021539bdf4ee176ec9d9b88eb7d9ad581600 Mon Sep 17 00:00:00 2001
From: C3204 <zhengyabo@lanpucloud.cn>
Date: 星期五, 17 四月 2026 17:00:35 +0800
Subject: [PATCH] 新增心跳等常规信号配置&&修改相机轴读取配置等

---
 LB_SmartVision/Forms/Pages/CommunicatorPage/CommunicatorS7Form.Designer.cs |  253 ++++++++++++++++++++++++--------------------------
 1 files changed, 122 insertions(+), 131 deletions(-)

diff --git a/LB_SmartVision/Forms/Pages/CommunicatorPage/CommunicatorS7Form.Designer.cs b/LB_SmartVision/Forms/Pages/CommunicatorPage/CommunicatorS7Form.Designer.cs
index 1812e49..75b33af 100644
--- a/LB_SmartVision/Forms/Pages/CommunicatorPage/CommunicatorS7Form.Designer.cs
+++ b/LB_SmartVision/Forms/Pages/CommunicatorPage/CommunicatorS7Form.Designer.cs
@@ -28,79 +28,110 @@
         /// </summary>
         private void InitializeComponent()
         {
+            components = new System.ComponentModel.Container();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CommunicatorS7Form));
-            label3 = new Label();
             tableLayoutPanel1 = new TableLayoutPanel();
+            groupBox1 = new GroupBox();
+            dgvSignals = new DataGridView();
+            contextMenuSignal = new ContextMenuStrip(components);
+            menuReadSignal = new ToolStripMenuItem();
+            menuWriteSignal = new ToolStripMenuItem();
             grpReceive = new GroupBox();
             txtReceiveMsg = new TextBox();
-            txtSendMsg = new TextBox();
             grpSetting = new GroupBox();
-            txtAddress = new TextBox();
+            btnConfig = new Button();
+            btnReadAll = new Button();
+            btnWriteAll = new Button();
+            lblStatus = new Sunny.UI.UILabel();
             cmbType = new ComboBox();
             txtIP = new TextBox();
             txtPort = new TextBox();
             lblPort = new Label();
             cmbIP = new ComboBox();
             lblType = new Label();
-            lblAddress = new Label();
             lblIP = new Label();
-            cmbDataType = new ComboBox();
-            lblDataType = new Label();
-            tableLayoutPanel2 = new TableLayoutPanel();
-            btnRuleSend = new Button();
-            btnSend = new Button();
             themeForm_Communicator = new ReaLTaiizor.Forms.ThemeForm();
             controlBox1 = new ReaLTaiizor.Controls.ControlBox();
             panel_CommunicatorForm = new Panel();
             tableLayoutPanel1.SuspendLayout();
+            groupBox1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)dgvSignals).BeginInit();
+            contextMenuSignal.SuspendLayout();
             grpReceive.SuspendLayout();
             grpSetting.SuspendLayout();
-            tableLayoutPanel2.SuspendLayout();
             themeForm_Communicator.SuspendLayout();
             panel_CommunicatorForm.SuspendLayout();
             SuspendLayout();
-            // 
-            // label3
-            // 
-            label3.AutoSize = true;
-            label3.Dock = DockStyle.Fill;
-            label3.ForeColor = Color.CornflowerBlue;
-            label3.Location = new Point(3, 100);
-            label3.Name = "label3";
-            label3.Size = new Size(780, 20);
-            label3.TabIndex = 18;
-            label3.Text = "鍙戦�佷俊鎭�";
-            label3.TextAlign = ContentAlignment.BottomLeft;
             // 
             // tableLayoutPanel1
             // 
             tableLayoutPanel1.ColumnCount = 1;
             tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
-            tableLayoutPanel1.Controls.Add(grpReceive, 0, 4);
-            tableLayoutPanel1.Controls.Add(txtSendMsg, 0, 2);
+            tableLayoutPanel1.Controls.Add(groupBox1, 0, 1);
+            tableLayoutPanel1.Controls.Add(grpReceive, 0, 2);
             tableLayoutPanel1.Controls.Add(grpSetting, 0, 0);
-            tableLayoutPanel1.Controls.Add(tableLayoutPanel2, 0, 3);
-            tableLayoutPanel1.Controls.Add(label3, 0, 1);
             tableLayoutPanel1.Dock = DockStyle.Fill;
             tableLayoutPanel1.Location = new Point(0, 0);
             tableLayoutPanel1.Name = "tableLayoutPanel1";
-            tableLayoutPanel1.RowCount = 5;
+            tableLayoutPanel1.RowCount = 3;
             tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 100F));
+            tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
+            tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
             tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
-            tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
-            tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 40F));
-            tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
+            tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
             tableLayoutPanel1.Size = new Size(786, 424);
             tableLayoutPanel1.TabIndex = 26;
+            // 
+            // groupBox1
+            // 
+            groupBox1.Controls.Add(dgvSignals);
+            groupBox1.Dock = DockStyle.Fill;
+            groupBox1.ForeColor = Color.CornflowerBlue;
+            groupBox1.Location = new Point(3, 103);
+            groupBox1.Name = "groupBox1";
+            groupBox1.Size = new Size(780, 156);
+            groupBox1.TabIndex = 31;
+            groupBox1.TabStop = false;
+            groupBox1.Text = "閫氳鍦板潃";
+            // 
+            // dgvSignals
+            // 
+            dgvSignals.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            dgvSignals.ContextMenuStrip = contextMenuSignal;
+            dgvSignals.Dock = DockStyle.Fill;
+            dgvSignals.Location = new Point(3, 17);
+            dgvSignals.Name = "dgvSignals";
+            dgvSignals.Size = new Size(774, 136);
+            dgvSignals.TabIndex = 0;
+            // 
+            // contextMenuSignal
+            // 
+            contextMenuSignal.Items.AddRange(new ToolStripItem[] { menuReadSignal, menuWriteSignal });
+            contextMenuSignal.Name = "contextMenuSignal";
+            contextMenuSignal.Size = new Size(137, 48);
+            // 
+            // menuReadSignal
+            // 
+            menuReadSignal.Name = "menuReadSignal";
+            menuReadSignal.Size = new Size(136, 22);
+            menuReadSignal.Text = "璇诲彇姝や俊鍙�";
+            menuReadSignal.Click += menuReadSignal_Click;
+            // 
+            // menuWriteSignal
+            // 
+            menuWriteSignal.Name = "menuWriteSignal";
+            menuWriteSignal.Size = new Size(136, 22);
+            menuWriteSignal.Text = "鍐欏叆姝や俊鍙�";
+            menuWriteSignal.Click += menuWriteSignal_Click;
             // 
             // grpReceive
             // 
             grpReceive.Controls.Add(txtReceiveMsg);
             grpReceive.Dock = DockStyle.Fill;
             grpReceive.ForeColor = Color.CornflowerBlue;
-            grpReceive.Location = new Point(3, 193);
+            grpReceive.Location = new Point(3, 265);
             grpReceive.Name = "grpReceive";
-            grpReceive.Size = new Size(780, 228);
+            grpReceive.Size = new Size(780, 156);
             grpReceive.TabIndex = 30;
             grpReceive.TabStop = false;
             grpReceive.Text = "閫氳璁板綍";
@@ -113,31 +144,23 @@
             txtReceiveMsg.Name = "txtReceiveMsg";
             txtReceiveMsg.ReadOnly = true;
             txtReceiveMsg.ScrollBars = ScrollBars.Both;
-            txtReceiveMsg.Size = new Size(774, 208);
+            txtReceiveMsg.Size = new Size(774, 136);
             txtReceiveMsg.TabIndex = 0;
-            // 
-            // txtSendMsg
-            // 
-            txtSendMsg.Dock = DockStyle.Fill;
-            txtSendMsg.Location = new Point(3, 123);
-            txtSendMsg.Name = "txtSendMsg";
-            txtSendMsg.Size = new Size(780, 21);
-            txtSendMsg.TabIndex = 29;
             // 
             // grpSetting
             // 
             grpSetting.BackColor = Color.FromArgb(32, 41, 50);
-            grpSetting.Controls.Add(txtAddress);
+            grpSetting.Controls.Add(btnConfig);
+            grpSetting.Controls.Add(btnReadAll);
+            grpSetting.Controls.Add(btnWriteAll);
+            grpSetting.Controls.Add(lblStatus);
             grpSetting.Controls.Add(cmbType);
             grpSetting.Controls.Add(txtIP);
             grpSetting.Controls.Add(txtPort);
             grpSetting.Controls.Add(lblPort);
             grpSetting.Controls.Add(cmbIP);
             grpSetting.Controls.Add(lblType);
-            grpSetting.Controls.Add(lblAddress);
             grpSetting.Controls.Add(lblIP);
-            grpSetting.Controls.Add(cmbDataType);
-            grpSetting.Controls.Add(lblDataType);
             grpSetting.Dock = DockStyle.Fill;
             grpSetting.ForeColor = Color.CornflowerBlue;
             grpSetting.Location = new Point(3, 3);
@@ -148,13 +171,46 @@
             grpSetting.TabStop = false;
             grpSetting.Text = "閫氳閰嶇疆";
             // 
-            // txtAddress
+            // btnConfig
             // 
-            txtAddress.Location = new Point(271, 60);
-            txtAddress.Name = "txtAddress";
-            txtAddress.Size = new Size(100, 21);
-            txtAddress.TabIndex = 9;
-            txtAddress.TextChanged += txtAddress_TextChanged;
+            btnConfig.Location = new Point(423, 52);
+            btnConfig.Name = "btnConfig";
+            btnConfig.Size = new Size(87, 33);
+            btnConfig.TabIndex = 10;
+            btnConfig.Text = "鍦板潃閰嶇疆";
+            btnConfig.UseVisualStyleBackColor = true;
+            btnConfig.Click += btnConfig_Click;
+            // 
+            // btnReadAll
+            // 
+            btnReadAll.Location = new Point(318, 52);
+            btnReadAll.Name = "btnReadAll";
+            btnReadAll.Size = new Size(87, 33);
+            btnReadAll.TabIndex = 10;
+            btnReadAll.Text = "鎵归噺璇诲彇";
+            btnReadAll.UseVisualStyleBackColor = true;
+            btnReadAll.Click += btnReadAll_Click;
+            // 
+            // btnWriteAll
+            // 
+            btnWriteAll.Location = new Point(208, 52);
+            btnWriteAll.Name = "btnWriteAll";
+            btnWriteAll.Size = new Size(87, 33);
+            btnWriteAll.TabIndex = 10;
+            btnWriteAll.Text = "鎵归噺鍐欏叆";
+            btnWriteAll.UseVisualStyleBackColor = true;
+            btnWriteAll.Click += btnWriteAll_Click;
+            // 
+            // lblStatus
+            // 
+            lblStatus.Font = new Font("瀹嬩綋", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
+            lblStatus.ForeColor = Color.White;
+            lblStatus.Location = new Point(388, 24);
+            lblStatus.Name = "lblStatus";
+            lblStatus.Size = new Size(100, 23);
+            lblStatus.TabIndex = 9;
+            lblStatus.Text = "鏈繛鎺�";
+            lblStatus.TextAlign = ContentAlignment.MiddleLeft;
             // 
             // cmbType
             // 
@@ -169,6 +225,7 @@
             // 
             txtIP.Location = new Point(79, 22);
             txtIP.Name = "txtIP";
+            txtIP.ReadOnly = true;
             txtIP.Size = new Size(100, 21);
             txtIP.TabIndex = 7;
             // 
@@ -176,6 +233,7 @@
             // 
             txtPort.Location = new Point(79, 60);
             txtPort.Name = "txtPort";
+            txtPort.ReadOnly = true;
             txtPort.Size = new Size(100, 21);
             txtPort.TabIndex = 6;
             // 
@@ -205,15 +263,6 @@
             lblType.TabIndex = 0;
             lblType.Text = "鍨嬪彿";
             // 
-            // lblAddress
-            // 
-            lblAddress.AutoSize = true;
-            lblAddress.Location = new Point(205, 63);
-            lblAddress.Name = "lblAddress";
-            lblAddress.Size = new Size(55, 15);
-            lblAddress.TabIndex = 0;
-            lblAddress.Text = "鍙橀噺鍦板潃";
-            // 
             // lblIP
             // 
             lblIP.AutoSize = true;
@@ -222,65 +271,6 @@
             lblIP.Size = new Size(31, 15);
             lblIP.TabIndex = 0;
             lblIP.Text = "鍦板潃";
-            // 
-            // cmbDataType
-            // 
-            cmbDataType.DropDownStyle = ComboBoxStyle.DropDownList;
-            cmbDataType.FormattingEnabled = true;
-            cmbDataType.Location = new Point(435, 60);
-            cmbDataType.Name = "cmbDataType";
-            cmbDataType.Size = new Size(100, 23);
-            cmbDataType.TabIndex = 11;
-            cmbDataType.SelectedIndexChanged += cmbDataType_SelectedIndexChanged;
-            // 
-            // lblDataType
-            // 
-            lblDataType.AutoSize = true;
-            lblDataType.Location = new Point(385, 63);
-            lblDataType.Name = "lblDataType";
-            lblDataType.Size = new Size(31, 15);
-            lblDataType.TabIndex = 10;
-            lblDataType.Text = "绫诲瀷";
-            // 
-            // tableLayoutPanel2
-            // 
-            tableLayoutPanel2.ColumnCount = 3;
-            tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 80F));
-            tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 80F));
-            tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
-            tableLayoutPanel2.Controls.Add(btnRuleSend, 1, 0);
-            tableLayoutPanel2.Controls.Add(btnSend, 0, 0);
-            tableLayoutPanel2.Dock = DockStyle.Fill;
-            tableLayoutPanel2.Location = new Point(3, 153);
-            tableLayoutPanel2.Name = "tableLayoutPanel2";
-            tableLayoutPanel2.RowCount = 1;
-            tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel2.Size = new Size(780, 34);
-            tableLayoutPanel2.TabIndex = 27;
-            // 
-            // btnRuleSend
-            // 
-            btnRuleSend.Dock = DockStyle.Fill;
-            btnRuleSend.ForeColor = Color.CornflowerBlue;
-            btnRuleSend.Location = new Point(83, 3);
-            btnRuleSend.Name = "btnRuleSend";
-            btnRuleSend.Size = new Size(74, 28);
-            btnRuleSend.TabIndex = 14;
-            btnRuleSend.Text = "鏍¢獙鍙戦��";
-            btnRuleSend.UseVisualStyleBackColor = true;
-            btnRuleSend.Click += btnRuleSend_Click;
-            // 
-            // btnSend
-            // 
-            btnSend.Dock = DockStyle.Fill;
-            btnSend.ForeColor = Color.CornflowerBlue;
-            btnSend.Location = new Point(3, 3);
-            btnSend.Name = "btnSend";
-            btnSend.Size = new Size(74, 28);
-            btnSend.TabIndex = 12;
-            btnSend.Text = "鍙戦��";
-            btnSend.UseVisualStyleBackColor = true;
-            btnSend.Click += btnSend_Click;
             // 
             // themeForm_Communicator
             // 
@@ -336,45 +326,46 @@
             Controls.Add(themeForm_Communicator);
             FormBorderStyle = FormBorderStyle.None;
             MinimumSize = new Size(261, 61);
-            Name = "CommunicatorS7Form";
+            base.Name = "CommunicatorS7Form";
             Text = "S7閫氳璁剧疆";
             TransparencyKey = Color.Fuchsia;
             FormClosing += CommunicatorForm_FormClosing;
             tableLayoutPanel1.ResumeLayout(false);
-            tableLayoutPanel1.PerformLayout();
+            groupBox1.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)dgvSignals).EndInit();
+            contextMenuSignal.ResumeLayout(false);
             grpReceive.ResumeLayout(false);
             grpReceive.PerformLayout();
             grpSetting.ResumeLayout(false);
             grpSetting.PerformLayout();
-            tableLayoutPanel2.ResumeLayout(false);
             themeForm_Communicator.ResumeLayout(false);
             panel_CommunicatorForm.ResumeLayout(false);
             ResumeLayout(false);
         }
 
         #endregion
-        private Label label3;
         private TableLayoutPanel tableLayoutPanel1;
-        private TableLayoutPanel tableLayoutPanel2;
         private GroupBox grpSetting;
         private TextBox txtIP;
         private TextBox txtPort;
         private Label lblPort;
         private ComboBox cmbIP;
         private Label lblIP;
-        private TextBox txtSendMsg;
         private GroupBox grpReceive;
         private TextBox txtReceiveMsg;
-        private Button btnSend;
-        private Button btnRuleSend;
         private ReaLTaiizor.Forms.ThemeForm themeForm_Communicator;
         private ReaLTaiizor.Controls.ControlBox controlBox1;
         private Panel panel_CommunicatorForm;
         private Label lblType;
         private ComboBox cmbType;
-        private Label lblAddress;
-        private TextBox txtAddress;
-        private Label lblDataType;
-        private ComboBox cmbDataType;
+        private GroupBox groupBox1;
+        private DataGridView dgvSignals;
+        private Button btnConfig;
+        private Button btnReadAll;
+        private Button btnWriteAll;
+        private Sunny.UI.UILabel lblStatus;
+        private ContextMenuStrip contextMenuSignal;
+        private ToolStripMenuItem menuReadSignal;
+        private ToolStripMenuItem menuWriteSignal;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3