|
|
@@ -29,6 +29,7 @@
|
|
|
private void InitializeComponent()
|
|
|
{
|
|
|
this.components = new System.ComponentModel.Container();
|
|
|
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Make_PLCMonitor));
|
|
|
this.grpConnect = new UAS_MES_NEW.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
|
|
|
this.lblIp = new System.Windows.Forms.Label();
|
|
|
this.ip = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.EnterTextBox();
|
|
|
@@ -40,6 +41,8 @@
|
|
|
this.interval = new System.Windows.Forms.NumericUpDown();
|
|
|
this.btnConnect = new UAS_MES_NEW.CustomControl.ButtonUtil.NormalButton();
|
|
|
this.btnDisconnect = new UAS_MES_NEW.CustomControl.ButtonUtil.NormalButton();
|
|
|
+ this.rdoRTU = new System.Windows.Forms.RadioButton();
|
|
|
+ this.rdoTCP = new System.Windows.Forms.RadioButton();
|
|
|
this.grpData = new UAS_MES_NEW.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
|
|
|
this.lblD141 = new System.Windows.Forms.Label();
|
|
|
this.lblD141Value = new System.Windows.Forms.Label();
|
|
|
@@ -53,10 +56,10 @@
|
|
|
this.lblStatus = new System.Windows.Forms.Label();
|
|
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
|
|
this.grpConnect.SuspendLayout();
|
|
|
- this.grpData.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.port)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.unitid)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.interval)).BeginInit();
|
|
|
+ this.grpData.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.decimals)).BeginInit();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
@@ -73,6 +76,8 @@
|
|
|
this.grpConnect.Controls.Add(this.interval);
|
|
|
this.grpConnect.Controls.Add(this.btnConnect);
|
|
|
this.grpConnect.Controls.Add(this.btnDisconnect);
|
|
|
+ this.grpConnect.Controls.Add(this.rdoRTU);
|
|
|
+ this.grpConnect.Controls.Add(this.rdoTCP);
|
|
|
this.grpConnect.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.grpConnect.Location = new System.Drawing.Point(32, 30);
|
|
|
this.grpConnect.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
|
|
@@ -90,7 +95,7 @@
|
|
|
this.lblIp.Location = new System.Drawing.Point(32, 50);
|
|
|
this.lblIp.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
|
|
this.lblIp.Name = "lblIp";
|
|
|
- this.lblIp.Size = new System.Drawing.Size(122, 52);
|
|
|
+ this.lblIp.Size = new System.Drawing.Size(138, 52);
|
|
|
this.lblIp.TabIndex = 0;
|
|
|
this.lblIp.Text = "IP地址";
|
|
|
//
|
|
|
@@ -104,7 +109,7 @@
|
|
|
this.ip.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
|
|
this.ip.Name = "ip";
|
|
|
this.ip.Power = null;
|
|
|
- this.ip.Size = new System.Drawing.Size(320, 55);
|
|
|
+ this.ip.Size = new System.Drawing.Size(320, 53);
|
|
|
this.ip.Str = null;
|
|
|
this.ip.Str1 = null;
|
|
|
this.ip.Str2 = null;
|
|
|
@@ -117,7 +122,7 @@
|
|
|
this.lblPort.Location = new System.Drawing.Point(620, 50);
|
|
|
this.lblPort.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
|
|
this.lblPort.Name = "lblPort";
|
|
|
- this.lblPort.Size = new System.Drawing.Size(82, 52);
|
|
|
+ this.lblPort.Size = new System.Drawing.Size(102, 52);
|
|
|
this.lblPort.TabIndex = 2;
|
|
|
this.lblPort.Text = "端口";
|
|
|
//
|
|
|
@@ -132,7 +137,7 @@
|
|
|
0,
|
|
|
0});
|
|
|
this.port.Name = "port";
|
|
|
- this.port.Size = new System.Drawing.Size(160, 51);
|
|
|
+ this.port.Size = new System.Drawing.Size(160, 53);
|
|
|
this.port.TabIndex = 3;
|
|
|
//
|
|
|
// lblUnit
|
|
|
@@ -142,7 +147,7 @@
|
|
|
this.lblUnit.Location = new System.Drawing.Point(970, 50);
|
|
|
this.lblUnit.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
|
|
this.lblUnit.Name = "lblUnit";
|
|
|
- this.lblUnit.Size = new System.Drawing.Size(82, 52);
|
|
|
+ this.lblUnit.Size = new System.Drawing.Size(102, 52);
|
|
|
this.lblUnit.TabIndex = 4;
|
|
|
this.lblUnit.Text = "站号";
|
|
|
//
|
|
|
@@ -157,7 +162,7 @@
|
|
|
0,
|
|
|
0});
|
|
|
this.unitid.Name = "unitid";
|
|
|
- this.unitid.Size = new System.Drawing.Size(140, 51);
|
|
|
+ this.unitid.Size = new System.Drawing.Size(140, 53);
|
|
|
this.unitid.TabIndex = 5;
|
|
|
//
|
|
|
// lblInterval
|
|
|
@@ -167,7 +172,7 @@
|
|
|
this.lblInterval.Location = new System.Drawing.Point(1290, 50);
|
|
|
this.lblInterval.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
|
|
this.lblInterval.Name = "lblInterval";
|
|
|
- this.lblInterval.Size = new System.Drawing.Size(122, 52);
|
|
|
+ this.lblInterval.Size = new System.Drawing.Size(168, 52);
|
|
|
this.lblInterval.TabIndex = 6;
|
|
|
this.lblInterval.Text = "间隔(秒)";
|
|
|
//
|
|
|
@@ -176,29 +181,38 @@
|
|
|
this.interval.Font = new System.Drawing.Font("微软雅黑", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.interval.Location = new System.Drawing.Point(1440, 52);
|
|
|
this.interval.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
|
|
- this.interval.Minimum = new decimal(new int[] {
|
|
|
- 1,
|
|
|
+ this.interval.Maximum = new decimal(new int[] {
|
|
|
+ 3600,
|
|
|
0,
|
|
|
0,
|
|
|
0});
|
|
|
- this.interval.Maximum = new decimal(new int[] {
|
|
|
- 3600,
|
|
|
+ this.interval.Minimum = new decimal(new int[] {
|
|
|
+ 1,
|
|
|
0,
|
|
|
0,
|
|
|
0});
|
|
|
this.interval.Name = "interval";
|
|
|
- this.interval.Size = new System.Drawing.Size(90, 51);
|
|
|
+ this.interval.Size = new System.Drawing.Size(90, 53);
|
|
|
this.interval.TabIndex = 7;
|
|
|
+ this.interval.Value = new decimal(new int[] {
|
|
|
+ 1,
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ 0});
|
|
|
//
|
|
|
// btnConnect
|
|
|
//
|
|
|
this.btnConnect.AllPower = null;
|
|
|
this.btnConnect.BackColor = System.Drawing.Color.Transparent;
|
|
|
+ this.btnConnect.DownImage = ((System.Drawing.Image)(resources.GetObject("btnConnect.DownImage")));
|
|
|
this.btnConnect.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.btnConnect.Image = null;
|
|
|
this.btnConnect.IsShowBorder = true;
|
|
|
this.btnConnect.Location = new System.Drawing.Point(220, 125);
|
|
|
this.btnConnect.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
|
|
+ this.btnConnect.MoveImage = ((System.Drawing.Image)(resources.GetObject("btnConnect.MoveImage")));
|
|
|
this.btnConnect.Name = "btnConnect";
|
|
|
+ this.btnConnect.NormalImage = ((System.Drawing.Image)(resources.GetObject("btnConnect.NormalImage")));
|
|
|
this.btnConnect.Power = null;
|
|
|
this.btnConnect.Size = new System.Drawing.Size(160, 52);
|
|
|
this.btnConnect.TabIndex = 8;
|
|
|
@@ -210,11 +224,15 @@
|
|
|
//
|
|
|
this.btnDisconnect.AllPower = null;
|
|
|
this.btnDisconnect.BackColor = System.Drawing.Color.Transparent;
|
|
|
+ this.btnDisconnect.DownImage = ((System.Drawing.Image)(resources.GetObject("btnDisconnect.DownImage")));
|
|
|
this.btnDisconnect.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.btnDisconnect.Image = null;
|
|
|
this.btnDisconnect.IsShowBorder = true;
|
|
|
this.btnDisconnect.Location = new System.Drawing.Point(420, 125);
|
|
|
this.btnDisconnect.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
|
|
+ this.btnDisconnect.MoveImage = ((System.Drawing.Image)(resources.GetObject("btnDisconnect.MoveImage")));
|
|
|
this.btnDisconnect.Name = "btnDisconnect";
|
|
|
+ this.btnDisconnect.NormalImage = ((System.Drawing.Image)(resources.GetObject("btnDisconnect.NormalImage")));
|
|
|
this.btnDisconnect.Power = null;
|
|
|
this.btnDisconnect.Size = new System.Drawing.Size(160, 52);
|
|
|
this.btnDisconnect.TabIndex = 9;
|
|
|
@@ -222,6 +240,32 @@
|
|
|
this.btnDisconnect.UseVisualStyleBackColor = true;
|
|
|
this.btnDisconnect.Click += new System.EventHandler(this.Disconnect_Click);
|
|
|
//
|
|
|
+ // rdoRTU
|
|
|
+ //
|
|
|
+ this.rdoRTU.AutoSize = true;
|
|
|
+ this.rdoRTU.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.rdoRTU.Location = new System.Drawing.Point(660, 130);
|
|
|
+ this.rdoRTU.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
|
|
+ this.rdoRTU.Name = "rdoRTU";
|
|
|
+ this.rdoRTU.Size = new System.Drawing.Size(388, 45);
|
|
|
+ this.rdoRTU.TabIndex = 10;
|
|
|
+ this.rdoRTU.Text = "ModbusRTU(串口透传)";
|
|
|
+ this.rdoRTU.UseVisualStyleBackColor = true;
|
|
|
+ //
|
|
|
+ // rdoTCP
|
|
|
+ //
|
|
|
+ this.rdoTCP.AutoSize = true;
|
|
|
+ this.rdoTCP.Checked = true;
|
|
|
+ this.rdoTCP.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.rdoTCP.Location = new System.Drawing.Point(1080, 130);
|
|
|
+ this.rdoTCP.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
|
|
+ this.rdoTCP.Name = "rdoTCP";
|
|
|
+ this.rdoTCP.Size = new System.Drawing.Size(234, 45);
|
|
|
+ this.rdoTCP.TabIndex = 11;
|
|
|
+ this.rdoTCP.TabStop = true;
|
|
|
+ this.rdoTCP.Text = "ModbusTCP";
|
|
|
+ this.rdoTCP.UseVisualStyleBackColor = true;
|
|
|
+ //
|
|
|
// grpData
|
|
|
//
|
|
|
this.grpData.BorderColor = System.Drawing.Color.Black;
|
|
|
@@ -249,7 +293,7 @@
|
|
|
this.lblD141.Location = new System.Drawing.Point(32, 55);
|
|
|
this.lblD141.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
|
|
this.lblD141.Name = "lblD141";
|
|
|
- this.lblD141.Size = new System.Drawing.Size(262, 52);
|
|
|
+ this.lblD141.Size = new System.Drawing.Size(328, 52);
|
|
|
this.lblD141.TabIndex = 0;
|
|
|
this.lblD141.Text = "1#舱温度 (D141)";
|
|
|
//
|
|
|
@@ -271,7 +315,7 @@
|
|
|
this.lblD142.Location = new System.Drawing.Point(820, 55);
|
|
|
this.lblD142.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
|
|
this.lblD142.Name = "lblD142";
|
|
|
- this.lblD142.Size = new System.Drawing.Size(262, 52);
|
|
|
+ this.lblD142.Size = new System.Drawing.Size(328, 52);
|
|
|
this.lblD142.TabIndex = 2;
|
|
|
this.lblD142.Text = "2#舱温度 (D142)";
|
|
|
//
|
|
|
@@ -293,7 +337,7 @@
|
|
|
this.lblDecimals.Location = new System.Drawing.Point(32, 290);
|
|
|
this.lblDecimals.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
|
|
this.lblDecimals.Name = "lblDecimals";
|
|
|
- this.lblDecimals.Size = new System.Drawing.Size(162, 52);
|
|
|
+ this.lblDecimals.Size = new System.Drawing.Size(222, 52);
|
|
|
this.lblDecimals.TabIndex = 4;
|
|
|
this.lblDecimals.Text = "温度小数位";
|
|
|
//
|
|
|
@@ -308,18 +352,22 @@
|
|
|
0,
|
|
|
0});
|
|
|
this.decimals.Name = "decimals";
|
|
|
- this.decimals.Size = new System.Drawing.Size(120, 51);
|
|
|
+ this.decimals.Size = new System.Drawing.Size(120, 53);
|
|
|
this.decimals.TabIndex = 5;
|
|
|
//
|
|
|
// btnReadNow
|
|
|
//
|
|
|
this.btnReadNow.AllPower = null;
|
|
|
this.btnReadNow.BackColor = System.Drawing.Color.Transparent;
|
|
|
+ this.btnReadNow.DownImage = ((System.Drawing.Image)(resources.GetObject("btnReadNow.DownImage")));
|
|
|
this.btnReadNow.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.btnReadNow.Image = null;
|
|
|
this.btnReadNow.IsShowBorder = true;
|
|
|
this.btnReadNow.Location = new System.Drawing.Point(820, 285);
|
|
|
this.btnReadNow.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
|
|
+ this.btnReadNow.MoveImage = ((System.Drawing.Image)(resources.GetObject("btnReadNow.MoveImage")));
|
|
|
this.btnReadNow.Name = "btnReadNow";
|
|
|
+ this.btnReadNow.NormalImage = ((System.Drawing.Image)(resources.GetObject("btnReadNow.NormalImage")));
|
|
|
this.btnReadNow.Power = null;
|
|
|
this.btnReadNow.Size = new System.Drawing.Size(200, 52);
|
|
|
this.btnReadNow.TabIndex = 6;
|
|
|
@@ -334,7 +382,7 @@
|
|
|
this.lblRecord.Location = new System.Drawing.Point(32, 670);
|
|
|
this.lblRecord.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
|
|
this.lblRecord.Name = "lblRecord";
|
|
|
- this.lblRecord.Size = new System.Drawing.Size(82, 52);
|
|
|
+ this.lblRecord.Size = new System.Drawing.Size(102, 52);
|
|
|
this.lblRecord.TabIndex = 2;
|
|
|
this.lblRecord.Text = "记录";
|
|
|
//
|
|
|
@@ -356,7 +404,7 @@
|
|
|
this.lblStatus.Location = new System.Drawing.Point(32, 1075);
|
|
|
this.lblStatus.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
|
|
this.lblStatus.Name = "lblStatus";
|
|
|
- this.lblStatus.Size = new System.Drawing.Size(102, 52);
|
|
|
+ this.lblStatus.Size = new System.Drawing.Size(142, 52);
|
|
|
this.lblStatus.TabIndex = 4;
|
|
|
this.lblStatus.Text = "状态:";
|
|
|
//
|
|
|
@@ -385,14 +433,15 @@
|
|
|
this.SizeChanged += new System.EventHandler(this.Make_PLCMonitor_SizeChanged);
|
|
|
this.grpConnect.ResumeLayout(true);
|
|
|
this.grpConnect.PerformLayout();
|
|
|
- this.grpData.ResumeLayout(true);
|
|
|
- this.grpData.PerformLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.port)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.unitid)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.interval)).EndInit();
|
|
|
+ this.grpData.ResumeLayout(true);
|
|
|
+ this.grpData.PerformLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.decimals)).EndInit();
|
|
|
this.ResumeLayout(true);
|
|
|
this.PerformLayout();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
@@ -408,6 +457,8 @@
|
|
|
private System.Windows.Forms.NumericUpDown interval;
|
|
|
private CustomControl.ButtonUtil.NormalButton btnConnect;
|
|
|
private CustomControl.ButtonUtil.NormalButton btnDisconnect;
|
|
|
+ private System.Windows.Forms.RadioButton rdoRTU;
|
|
|
+ private System.Windows.Forms.RadioButton rdoTCP;
|
|
|
private CustomControl.GroupBoxWithBorder.GroupBoxWithBorder grpData;
|
|
|
private System.Windows.Forms.Label lblD141;
|
|
|
private System.Windows.Forms.Label lblD141Value;
|