Commit 90c6b431 LN

1

1 个父辈 b7962bf7
正在显示 31 个修改的文件 包含 1937 行增加1258 行删除
...@@ -15,6 +15,7 @@ namespace OnlineStore.AssemblyLine ...@@ -15,6 +15,7 @@ namespace OnlineStore.AssemblyLine
{ {
internal static string GetVersion(bool IsShow=false) internal static string GetVersion(bool IsShow=false)
{ {
string str = ""; string str = "";
string version = ""; string version = "";
DateTime newData = DateTime.Parse("2000-01-01"); DateTime newData = DateTime.Parse("2000-01-01");
...@@ -55,5 +56,6 @@ namespace OnlineStore.AssemblyLine ...@@ -55,5 +56,6 @@ namespace OnlineStore.AssemblyLine
{ {
InitializeComponent(); InitializeComponent();
} }
} }
} }
...@@ -137,5 +137,60 @@ namespace OnlineStore.AssemblyLine ...@@ -137,5 +137,60 @@ namespace OnlineStore.AssemblyLine
internal virtual void FormStatus(bool status) internal virtual void FormStatus(bool status)
{ {
} }
protected List<Control> doList = new List<Control>();
protected void LoadDOBtn(GroupBox group)
{
doList = new List<Control>();
foreach (Control c in group.Controls)
{
if (c is Button)
{
if (equipBase.baseConfig.DOList.ContainsKey(c.Name))
{
doList.Add(c);
}
else if (c.Name.ToUpper().StartsWith("BTN"))
{
c.Visible = true;
}
else
{
c.Visible = false;
}
}
}
}
protected void ReadBtnDO()
{
foreach (Control labl in doList)
{
IO_VALUE value = IOManager.DOValue(labl.Name, equipBase.DeviceID);
if (value.Equals(IO_VALUE.HIGH))
{
labl.BackColor = Color.Lime;
}
else
//else if (value.Equals(IO_VALUE.LOW))
{
labl.BackColor = labl.Parent.BackColor;
}
}
}
protected void DoBtnClick(object sender)
{
Control c = (Control)sender;
string ioType = c.Name;
IO_VALUE value = IOManager.IOValue(c.Name,equipBase.DeviceID);
if (value.Equals(IO_VALUE.HIGH))
{
equipBase.IOMove(ioType, IO_VALUE.LOW);
c.BackColor = c.Parent.BackColor;
}
else
{
equipBase.IOMove(ioType, IO_VALUE.HIGH);
c.BackColor = Color.LawnGreen;
}
}
} }
} }
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
this.label14 = new System.Windows.Forms.Label(); this.label14 = new System.Windows.Forms.Label();
this.btnOpenDo = new System.Windows.Forms.Button(); this.btnOpenDo = new System.Windows.Forms.Button();
this.txtSlaveId = new System.Windows.Forms.TextBox(); this.txtSlaveId = new System.Windows.Forms.TextBox();
this.chbAutoRead = new System.Windows.Forms.CheckBox();
this.cmbWriteIO = new System.Windows.Forms.ComboBox(); this.cmbWriteIO = new System.Windows.Forms.ComboBox();
this.btnWriteSingleDO = new System.Windows.Forms.Button(); this.btnWriteSingleDO = new System.Windows.Forms.Button();
this.txtWriteTime = new System.Windows.Forms.TextBox(); this.txtWriteTime = new System.Windows.Forms.TextBox();
...@@ -35,22 +34,29 @@ ...@@ -35,22 +34,29 @@
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox3 = new System.Windows.Forms.GroupBox(); this.groupBox3 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox5 = new System.Windows.Forms.GroupBox(); this.groupDO = new System.Windows.Forms.GroupBox();
this.btnRollerRun = new System.Windows.Forms.Button(); this.SL_TrayLocation_After = new System.Windows.Forms.Button();
this.btnTopUp = new System.Windows.Forms.Button(); this.SL_OutTopCylinder_Down = new System.Windows.Forms.Button();
this.btnGuding = new System.Windows.Forms.Button(); this.SL_ClampCylinder_Work = new System.Windows.Forms.Button();
this.btnOutStopDown = new System.Windows.Forms.Button(); this.SL_MoveCylinder_Give = new System.Windows.Forms.Button();
this.btnOLine = new System.Windows.Forms.Button(); this.SL_LocationCylinder_Down = new System.Windows.Forms.Button();
this.btnBStopDown = new System.Windows.Forms.Button(); this.SL_FixedCylinder_Down = new System.Windows.Forms.Button();
this.btnEStopDown = new System.Windows.Forms.Button(); this.SL_TopCylinder_Down = new System.Windows.Forms.Button();
this.btnOSWRun = new System.Windows.Forms.Button(); this.SL_RollerLine_Run = new System.Windows.Forms.Button();
this.btnLSWRun = new System.Windows.Forms.Button(); this.SL_TopCylinder_Up = new System.Windows.Forms.Button();
this.btnLineRun = new System.Windows.Forms.Button(); this.SL_FixedCylinder_Up = new System.Windows.Forms.Button();
this.btnOutTopCylinder = new System.Windows.Forms.Button(); this.SL_Out_StopDown = new System.Windows.Forms.Button();
this.btnLocationCylinder = new System.Windows.Forms.Button(); this.SL_TrayLocation_Before = new System.Windows.Forms.Button();
this.btnTrayLocationCylinder = new System.Windows.Forms.Button(); this.SL_OutLine_Run = new System.Windows.Forms.Button();
this.btnFeedSideWayCylinder = new System.Windows.Forms.Button(); this.SL_OutSideWay_Run = new System.Windows.Forms.Button();
this.btnFeedCylinder = new System.Windows.Forms.Button(); this.SL_LocationSideWay_Run = new System.Windows.Forms.Button();
this.SL_Buffer_StopDown = new System.Windows.Forms.Button();
this.SL_Line_Run = new System.Windows.Forms.Button();
this.SL_OutTopCylinder_Up = new System.Windows.Forms.Button();
this.SL_Entry_StopDown = new System.Windows.Forms.Button();
this.SL_LocationCylinder_Up = new System.Windows.Forms.Button();
this.SL_MoveCylinder_Take = new System.Windows.Forms.Button();
this.SL_ClampCylinder_Relax = new System.Windows.Forms.Button();
this.chbDebug = new System.Windows.Forms.CheckBox(); this.chbDebug = new System.Windows.Forms.CheckBox();
this.lblThisSta = new System.Windows.Forms.Label(); this.lblThisSta = new System.Windows.Forms.Label();
this.lblStoreStatus = new System.Windows.Forms.Label(); this.lblStoreStatus = new System.Windows.Forms.Label();
...@@ -105,10 +111,11 @@ ...@@ -105,10 +111,11 @@
this.chbMoveStop = new System.Windows.Forms.CheckBox(); this.chbMoveStop = new System.Windows.Forms.CheckBox();
this.lblName = new System.Windows.Forms.Label(); this.lblName = new System.Windows.Forms.Label();
this.btnScan = new System.Windows.Forms.Button(); this.btnScan = new System.Windows.Forms.Button();
this.groupBox10 = new System.Windows.Forms.GroupBox();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout(); this.groupBox4.SuspendLayout();
this.groupBox3.SuspendLayout(); this.groupBox3.SuspendLayout();
this.groupBox5.SuspendLayout(); this.groupDO.SuspendLayout();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
this.tabPage3.SuspendLayout(); this.tabPage3.SuspendLayout();
this.groupBox6.SuspendLayout(); this.groupBox6.SuspendLayout();
...@@ -120,6 +127,7 @@ ...@@ -120,6 +127,7 @@
this.groupBox9.SuspendLayout(); this.groupBox9.SuspendLayout();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.groupBox10.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// timer1 // timer1
...@@ -136,16 +144,14 @@ ...@@ -136,16 +144,14 @@
this.groupBox1.Controls.Add(this.label14); this.groupBox1.Controls.Add(this.label14);
this.groupBox1.Controls.Add(this.btnOpenDo); this.groupBox1.Controls.Add(this.btnOpenDo);
this.groupBox1.Controls.Add(this.txtSlaveId); this.groupBox1.Controls.Add(this.txtSlaveId);
this.groupBox1.Controls.Add(this.chbAutoRead);
this.groupBox1.Controls.Add(this.cmbWriteIO); this.groupBox1.Controls.Add(this.cmbWriteIO);
this.groupBox1.Controls.Add(this.btnWriteSingleDO); this.groupBox1.Controls.Add(this.btnWriteSingleDO);
this.groupBox1.Controls.Add(this.txtWriteTime); this.groupBox1.Controls.Add(this.txtWriteTime);
this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.btnCloseAll);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(685, 396); this.groupBox1.Location = new System.Drawing.Point(685, 408);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(571, 150); this.groupBox1.Size = new System.Drawing.Size(568, 107);
this.groupBox1.TabIndex = 105; this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入"; this.groupBox1.Text = "DO写入";
...@@ -154,7 +160,7 @@ ...@@ -154,7 +160,7 @@
// //
this.txtDOIndex.Enabled = false; this.txtDOIndex.Enabled = false;
this.txtDOIndex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtDOIndex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDOIndex.Location = new System.Drawing.Point(178, 56); this.txtDOIndex.Location = new System.Drawing.Point(178, 65);
this.txtDOIndex.MaxLength = 10; this.txtDOIndex.MaxLength = 10;
this.txtDOIndex.Name = "txtDOIndex"; this.txtDOIndex.Name = "txtDOIndex";
this.txtDOIndex.Size = new System.Drawing.Size(47, 23); this.txtDOIndex.Size = new System.Drawing.Size(47, 23);
...@@ -165,7 +171,7 @@ ...@@ -165,7 +171,7 @@
// //
this.txtDoName.Enabled = false; this.txtDoName.Enabled = false;
this.txtDoName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtDoName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDoName.Location = new System.Drawing.Point(72, 56); this.txtDoName.Location = new System.Drawing.Point(72, 65);
this.txtDoName.MaxLength = 10; this.txtDoName.MaxLength = 10;
this.txtDoName.Name = "txtDoName"; this.txtDoName.Name = "txtDoName";
this.txtDoName.Size = new System.Drawing.Size(53, 23); this.txtDoName.Size = new System.Drawing.Size(53, 23);
...@@ -177,7 +183,7 @@ ...@@ -177,7 +183,7 @@
this.label17.AutoSize = true; this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label17.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label17.Location = new System.Drawing.Point(17, 59); this.label17.Location = new System.Drawing.Point(17, 68);
this.label17.Name = "label17"; this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(46, 17); this.label17.Size = new System.Drawing.Size(46, 17);
this.label17.TabIndex = 258; this.label17.TabIndex = 258;
...@@ -189,7 +195,7 @@ ...@@ -189,7 +195,7 @@
this.label14.AutoSize = true; this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label14.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label14.Location = new System.Drawing.Point(134, 59); this.label14.Location = new System.Drawing.Point(134, 68);
this.label14.Name = "label14"; this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(35, 17); this.label14.Size = new System.Drawing.Size(35, 17);
this.label14.TabIndex = 257; this.label14.TabIndex = 257;
...@@ -201,7 +207,7 @@ ...@@ -201,7 +207,7 @@
this.btnOpenDo.BackColor = System.Drawing.Color.White; this.btnOpenDo.BackColor = System.Drawing.Color.White;
this.btnOpenDo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenDo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenDo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnOpenDo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenDo.Location = new System.Drawing.Point(167, 99); this.btnOpenDo.Location = new System.Drawing.Point(397, 18);
this.btnOpenDo.Name = "btnOpenDo"; this.btnOpenDo.Name = "btnOpenDo";
this.btnOpenDo.Size = new System.Drawing.Size(110, 34); this.btnOpenDo.Size = new System.Drawing.Size(110, 34);
this.btnOpenDo.TabIndex = 256; this.btnOpenDo.TabIndex = 256;
...@@ -212,7 +218,7 @@ ...@@ -212,7 +218,7 @@
// txtSlaveId // txtSlaveId
// //
this.txtSlaveId.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtSlaveId.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtSlaveId.Location = new System.Drawing.Point(379, 18); this.txtSlaveId.Location = new System.Drawing.Point(379, 24);
this.txtSlaveId.MaxLength = 10; this.txtSlaveId.MaxLength = 10;
this.txtSlaveId.Name = "txtSlaveId"; this.txtSlaveId.Name = "txtSlaveId";
this.txtSlaveId.Size = new System.Drawing.Size(12, 23); this.txtSlaveId.Size = new System.Drawing.Size(12, 23);
...@@ -220,20 +226,6 @@ ...@@ -220,20 +226,6 @@
this.txtSlaveId.Text = "0"; this.txtSlaveId.Text = "0";
this.txtSlaveId.Visible = false; this.txtSlaveId.Visible = false;
// //
// chbAutoRead
//
this.chbAutoRead.AutoSize = true;
this.chbAutoRead.Checked = true;
this.chbAutoRead.CheckState = System.Windows.Forms.CheckState.Checked;
this.chbAutoRead.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbAutoRead.Location = new System.Drawing.Point(186, 105);
this.chbAutoRead.Name = "chbAutoRead";
this.chbAutoRead.Size = new System.Drawing.Size(75, 21);
this.chbAutoRead.TabIndex = 244;
this.chbAutoRead.Text = "自动读取";
this.chbAutoRead.UseVisualStyleBackColor = true;
this.chbAutoRead.Visible = false;
//
// cmbWriteIO // cmbWriteIO
// //
this.cmbWriteIO.DisplayMember = "ProName"; this.cmbWriteIO.DisplayMember = "ProName";
...@@ -242,7 +234,7 @@ ...@@ -242,7 +234,7 @@
this.cmbWriteIO.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.cmbWriteIO.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cmbWriteIO.FormattingEnabled = true; this.cmbWriteIO.FormattingEnabled = true;
this.cmbWriteIO.ItemHeight = 22; this.cmbWriteIO.ItemHeight = 22;
this.cmbWriteIO.Location = new System.Drawing.Point(17, 18); this.cmbWriteIO.Location = new System.Drawing.Point(17, 21);
this.cmbWriteIO.Name = "cmbWriteIO"; this.cmbWriteIO.Name = "cmbWriteIO";
this.cmbWriteIO.Size = new System.Drawing.Size(356, 28); this.cmbWriteIO.Size = new System.Drawing.Size(356, 28);
this.cmbWriteIO.TabIndex = 234; this.cmbWriteIO.TabIndex = 234;
...@@ -255,7 +247,7 @@ ...@@ -255,7 +247,7 @@
this.btnWriteSingleDO.BackColor = System.Drawing.Color.White; this.btnWriteSingleDO.BackColor = System.Drawing.Color.White;
this.btnWriteSingleDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnWriteSingleDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnWriteSingleDO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnWriteSingleDO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnWriteSingleDO.Location = new System.Drawing.Point(279, 99); this.btnWriteSingleDO.Location = new System.Drawing.Point(397, 59);
this.btnWriteSingleDO.Name = "btnWriteSingleDO"; this.btnWriteSingleDO.Name = "btnWriteSingleDO";
this.btnWriteSingleDO.Size = new System.Drawing.Size(110, 34); this.btnWriteSingleDO.Size = new System.Drawing.Size(110, 34);
this.btnWriteSingleDO.TabIndex = 232; this.btnWriteSingleDO.TabIndex = 232;
...@@ -266,7 +258,7 @@ ...@@ -266,7 +258,7 @@
// txtWriteTime // txtWriteTime
// //
this.txtWriteTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtWriteTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtWriteTime.Location = new System.Drawing.Point(303, 56); this.txtWriteTime.Location = new System.Drawing.Point(303, 65);
this.txtWriteTime.MaxLength = 10; this.txtWriteTime.MaxLength = 10;
this.txtWriteTime.Name = "txtWriteTime"; this.txtWriteTime.Name = "txtWriteTime";
this.txtWriteTime.Size = new System.Drawing.Size(66, 23); this.txtWriteTime.Size = new System.Drawing.Size(66, 23);
...@@ -278,7 +270,7 @@ ...@@ -278,7 +270,7 @@
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label5.Location = new System.Drawing.Point(234, 59); this.label5.Location = new System.Drawing.Point(234, 68);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(60, 17); this.label5.Size = new System.Drawing.Size(60, 17);
this.label5.TabIndex = 237; this.label5.TabIndex = 237;
...@@ -290,9 +282,9 @@ ...@@ -290,9 +282,9 @@
this.btnCloseAll.BackColor = System.Drawing.Color.White; this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(8, 99); this.btnCloseAll.Location = new System.Drawing.Point(347, 339);
this.btnCloseAll.Name = "btnCloseAll"; this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(153, 34); this.btnCloseAll.Size = new System.Drawing.Size(140, 34);
this.btnCloseAll.TabIndex = 259; this.btnCloseAll.TabIndex = 259;
this.btnCloseAll.Text = "关闭所有DO"; this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false; this.btnCloseAll.UseVisualStyleBackColor = false;
...@@ -305,7 +297,7 @@ ...@@ -305,7 +297,7 @@
this.groupBox4.Controls.Add(this.tableLayoutPanel2); this.groupBox4.Controls.Add(this.tableLayoutPanel2);
this.groupBox4.Location = new System.Drawing.Point(457, 1); this.groupBox4.Location = new System.Drawing.Point(457, 1);
this.groupBox4.Name = "groupBox4"; this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(220, 548); this.groupBox4.Size = new System.Drawing.Size(220, 517);
this.groupBox4.TabIndex = 104; this.groupBox4.TabIndex = 104;
this.groupBox4.TabStop = false; this.groupBox4.TabStop = false;
this.groupBox4.Text = "DO列表"; this.groupBox4.Text = "DO列表";
...@@ -322,7 +314,7 @@ ...@@ -322,7 +314,7 @@
this.tableLayoutPanel2.RowCount = 2; this.tableLayoutPanel2.RowCount = 2;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(209, 528); this.tableLayoutPanel2.Size = new System.Drawing.Size(209, 497);
this.tableLayoutPanel2.TabIndex = 103; this.tableLayoutPanel2.TabIndex = 103;
// //
// groupBox3 // groupBox3
...@@ -332,7 +324,7 @@ ...@@ -332,7 +324,7 @@
this.groupBox3.Controls.Add(this.tableLayoutPanel1); this.groupBox3.Controls.Add(this.tableLayoutPanel1);
this.groupBox3.Location = new System.Drawing.Point(6, 1); this.groupBox3.Location = new System.Drawing.Point(6, 1);
this.groupBox3.Name = "groupBox3"; this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(220, 548); this.groupBox3.Size = new System.Drawing.Size(220, 517);
this.groupBox3.TabIndex = 103; this.groupBox3.TabIndex = 103;
this.groupBox3.TabStop = false; this.groupBox3.TabStop = false;
this.groupBox3.Text = "DI列表"; this.groupBox3.Text = "DI列表";
...@@ -349,231 +341,329 @@ ...@@ -349,231 +341,329 @@
this.tableLayoutPanel1.RowCount = 2; this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(209, 528); this.tableLayoutPanel1.Size = new System.Drawing.Size(209, 497);
this.tableLayoutPanel1.TabIndex = 102; this.tableLayoutPanel1.TabIndex = 102;
// //
// groupBox5 // groupDO
// //
this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupDO.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox5.Controls.Add(this.btnRollerRun); this.groupDO.Controls.Add(this.SL_TrayLocation_After);
this.groupBox5.Controls.Add(this.btnTopUp); this.groupDO.Controls.Add(this.SL_OutTopCylinder_Down);
this.groupBox5.Controls.Add(this.btnGuding); this.groupDO.Controls.Add(this.SL_ClampCylinder_Work);
this.groupBox5.Controls.Add(this.btnOutStopDown); this.groupDO.Controls.Add(this.SL_MoveCylinder_Give);
this.groupBox5.Controls.Add(this.btnOLine); this.groupDO.Controls.Add(this.SL_LocationCylinder_Down);
this.groupBox5.Controls.Add(this.btnBStopDown); this.groupDO.Controls.Add(this.SL_FixedCylinder_Down);
this.groupBox5.Controls.Add(this.btnEStopDown); this.groupDO.Controls.Add(this.SL_TopCylinder_Down);
this.groupBox5.Controls.Add(this.btnOSWRun); this.groupDO.Controls.Add(this.SL_RollerLine_Run);
this.groupBox5.Controls.Add(this.btnLSWRun); this.groupDO.Controls.Add(this.SL_TopCylinder_Up);
this.groupBox5.Controls.Add(this.btnLineRun); this.groupDO.Controls.Add(this.SL_FixedCylinder_Up);
this.groupBox5.Controls.Add(this.btnOutTopCylinder); this.groupDO.Controls.Add(this.SL_Out_StopDown);
this.groupBox5.Controls.Add(this.btnLocationCylinder); this.groupDO.Controls.Add(this.SL_TrayLocation_Before);
this.groupBox5.Controls.Add(this.btnTrayLocationCylinder); this.groupDO.Controls.Add(this.SL_OutLine_Run);
this.groupBox5.Controls.Add(this.btnFeedSideWayCylinder); this.groupDO.Controls.Add(this.SL_OutSideWay_Run);
this.groupBox5.Controls.Add(this.btnFeedCylinder); this.groupDO.Controls.Add(this.SL_LocationSideWay_Run);
this.groupBox5.Location = new System.Drawing.Point(685, 2); this.groupDO.Controls.Add(this.SL_Buffer_StopDown);
this.groupBox5.Name = "groupBox5"; this.groupDO.Controls.Add(this.btnCloseAll);
this.groupBox5.Size = new System.Drawing.Size(543, 388); this.groupDO.Controls.Add(this.SL_Line_Run);
this.groupBox5.TabIndex = 255; this.groupDO.Controls.Add(this.SL_OutTopCylinder_Up);
this.groupBox5.TabStop = false; this.groupDO.Controls.Add(this.SL_Entry_StopDown);
this.groupBox5.Text = "IO操作测试"; this.groupDO.Controls.Add(this.SL_LocationCylinder_Up);
// this.groupDO.Controls.Add(this.SL_MoveCylinder_Take);
// btnRollerRun this.groupDO.Controls.Add(this.SL_ClampCylinder_Relax);
// this.groupDO.Location = new System.Drawing.Point(685, 4);
this.btnRollerRun.BackColor = System.Drawing.Color.White; this.groupDO.Name = "groupDO";
this.btnRollerRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.groupDO.Size = new System.Drawing.Size(568, 398);
this.btnRollerRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupDO.TabIndex = 255;
this.btnRollerRun.Location = new System.Drawing.Point(8, 140); this.groupDO.TabStop = false;
this.btnRollerRun.Name = "btnRollerRun"; this.groupDO.Text = "IO操作测试";
this.btnRollerRun.Size = new System.Drawing.Size(153, 34); //
this.btnRollerRun.TabIndex = 275; // SL_TrayLocation_After
this.btnRollerRun.Text = "SL过渡滚筒运转"; //
this.btnRollerRun.UseVisualStyleBackColor = false; this.SL_TrayLocation_After.BackColor = System.Drawing.Color.White;
this.btnRollerRun.Click += new System.EventHandler(this.btnRollerRun_Click); this.SL_TrayLocation_After.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
// this.SL_TrayLocation_After.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// btnTopUp this.SL_TrayLocation_After.Location = new System.Drawing.Point(183, 339);
// this.SL_TrayLocation_After.Name = "SL_TrayLocation_After";
this.btnTopUp.BackColor = System.Drawing.Color.White; this.SL_TrayLocation_After.Size = new System.Drawing.Size(140, 34);
this.btnTopUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_TrayLocation_After.TabIndex = 282;
this.btnTopUp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_TrayLocation_After.Text = "升降盘定位气缸后退";
this.btnTopUp.Location = new System.Drawing.Point(8, 218); this.SL_TrayLocation_After.UseVisualStyleBackColor = false;
this.btnTopUp.Name = "btnTopUp"; this.SL_TrayLocation_After.Click += new System.EventHandler(this.SL_TrayLocation_After_Click);
this.btnTopUp.Size = new System.Drawing.Size(153, 34); //
this.btnTopUp.TabIndex = 274; // SL_OutTopCylinder_Down
this.btnTopUp.Text = "SL顶升上升"; //
this.btnTopUp.UseVisualStyleBackColor = false; this.SL_OutTopCylinder_Down.BackColor = System.Drawing.Color.White;
this.btnTopUp.Click += new System.EventHandler(this.btnTopUp_Click); this.SL_OutTopCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
// this.SL_OutTopCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// btnGuding this.SL_OutTopCylinder_Down.Location = new System.Drawing.Point(347, 284);
// this.SL_OutTopCylinder_Down.Name = "SL_OutTopCylinder_Down";
this.btnGuding.BackColor = System.Drawing.Color.White; this.SL_OutTopCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.btnGuding.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_OutTopCylinder_Down.TabIndex = 281;
this.btnGuding.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_OutTopCylinder_Down.Text = "出口顶升下降 ↓";
this.btnGuding.Location = new System.Drawing.Point(167, 179); this.SL_OutTopCylinder_Down.UseVisualStyleBackColor = false;
this.btnGuding.Name = "btnGuding"; this.SL_OutTopCylinder_Down.Click += new System.EventHandler(this.SL_OutTopCylinder_Down_Click);
this.btnGuding.Size = new System.Drawing.Size(153, 34); //
this.btnGuding.TabIndex = 273; // SL_ClampCylinder_Work
this.btnGuding.Text = "SL固定气缸上升"; //
this.btnGuding.UseVisualStyleBackColor = false; this.SL_ClampCylinder_Work.BackColor = System.Drawing.Color.White;
this.btnGuding.Click += new System.EventHandler(this.btnGuding_Click); this.SL_ClampCylinder_Work.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
// this.SL_ClampCylinder_Work.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// btnOutStopDown this.SL_ClampCylinder_Work.Location = new System.Drawing.Point(183, 284);
// this.SL_ClampCylinder_Work.Name = "SL_ClampCylinder_Work";
this.btnOutStopDown.BackColor = System.Drawing.Color.White; this.SL_ClampCylinder_Work.Size = new System.Drawing.Size(140, 34);
this.btnOutStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_ClampCylinder_Work.TabIndex = 280;
this.btnOutStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_ClampCylinder_Work.Text = "夹料气缸夹紧";
this.btnOutStopDown.Location = new System.Drawing.Point(167, 140); this.SL_ClampCylinder_Work.UseVisualStyleBackColor = false;
this.btnOutStopDown.Name = "btnOutStopDown"; this.SL_ClampCylinder_Work.Click += new System.EventHandler(this.SL_ClampCylinder_Work_Click);
this.btnOutStopDown.Size = new System.Drawing.Size(153, 34); //
this.btnOutStopDown.TabIndex = 272; // SL_MoveCylinder_Give
this.btnOutStopDown.Text = "SL出料阻挡下降"; //
this.btnOutStopDown.UseVisualStyleBackColor = false; this.SL_MoveCylinder_Give.BackColor = System.Drawing.Color.White;
this.btnOutStopDown.Click += new System.EventHandler(this.btnOutStopDown_Click); this.SL_MoveCylinder_Give.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
// this.SL_MoveCylinder_Give.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// btnOLine this.SL_MoveCylinder_Give.Location = new System.Drawing.Point(20, 284);
// this.SL_MoveCylinder_Give.Name = "SL_MoveCylinder_Give";
this.btnOLine.BackColor = System.Drawing.Color.White; this.SL_MoveCylinder_Give.Size = new System.Drawing.Size(140, 34);
this.btnOLine.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_MoveCylinder_Give.TabIndex = 279;
this.btnOLine.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_MoveCylinder_Give.Text = "横移气缸放料";
this.btnOLine.Location = new System.Drawing.Point(167, 23); this.SL_MoveCylinder_Give.UseVisualStyleBackColor = false;
this.btnOLine.Name = "btnOLine"; this.SL_MoveCylinder_Give.Click += new System.EventHandler(this.SL_MoveCylinder_Give_Click);
this.btnOLine.Size = new System.Drawing.Size(153, 34); //
this.btnOLine.TabIndex = 268; // SL_LocationCylinder_Down
this.btnOLine.Text = "SL出料线体运转"; //
this.btnOLine.UseVisualStyleBackColor = false; this.SL_LocationCylinder_Down.BackColor = System.Drawing.Color.White;
this.btnOLine.Visible = false; this.SL_LocationCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOLine.Click += new System.EventHandler(this.btnOLine_Click); this.SL_LocationCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// this.SL_LocationCylinder_Down.Location = new System.Drawing.Point(347, 193);
// btnBStopDown this.SL_LocationCylinder_Down.Name = "SL_LocationCylinder_Down";
// this.SL_LocationCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.btnBStopDown.BackColor = System.Drawing.Color.White; this.SL_LocationCylinder_Down.TabIndex = 278;
this.btnBStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_LocationCylinder_Down.Text = "定位气缸下降 ↓";
this.btnBStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_LocationCylinder_Down.UseVisualStyleBackColor = false;
this.btnBStopDown.Location = new System.Drawing.Point(167, 101); this.SL_LocationCylinder_Down.Click += new System.EventHandler(this.SL_LocationCylinder_Down_Click);
this.btnBStopDown.Name = "btnBStopDown"; //
this.btnBStopDown.Size = new System.Drawing.Size(153, 34); // SL_FixedCylinder_Down
this.btnBStopDown.TabIndex = 267; //
this.btnBStopDown.Text = "SL缓冲阻挡下降"; this.SL_FixedCylinder_Down.BackColor = System.Drawing.Color.White;
this.btnBStopDown.UseVisualStyleBackColor = false; this.SL_FixedCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnBStopDown.Click += new System.EventHandler(this.btnBStopDown_Click); this.SL_FixedCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// this.SL_FixedCylinder_Down.Location = new System.Drawing.Point(183, 193);
// btnEStopDown this.SL_FixedCylinder_Down.Name = "SL_FixedCylinder_Down";
// this.SL_FixedCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.btnEStopDown.BackColor = System.Drawing.Color.White; this.SL_FixedCylinder_Down.TabIndex = 277;
this.btnEStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_FixedCylinder_Down.Text = "固定气缸下降 ↓";
this.btnEStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_FixedCylinder_Down.UseVisualStyleBackColor = false;
this.btnEStopDown.Location = new System.Drawing.Point(8, 101); this.SL_FixedCylinder_Down.Click += new System.EventHandler(this.SL_FixedCylinder_Down_Click);
this.btnEStopDown.Name = "btnEStopDown"; //
this.btnEStopDown.Size = new System.Drawing.Size(153, 34); // SL_TopCylinder_Down
this.btnEStopDown.TabIndex = 266; //
this.btnEStopDown.Text = "SL进料阻挡下降"; this.SL_TopCylinder_Down.BackColor = System.Drawing.Color.White;
this.btnEStopDown.UseVisualStyleBackColor = false; this.SL_TopCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnEStopDown.Click += new System.EventHandler(this.btnEStopDown_Click); this.SL_TopCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// this.SL_TopCylinder_Down.Location = new System.Drawing.Point(20, 193);
// btnOSWRun this.SL_TopCylinder_Down.Name = "SL_TopCylinder_Down";
// this.SL_TopCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.btnOSWRun.BackColor = System.Drawing.Color.White; this.SL_TopCylinder_Down.TabIndex = 276;
this.btnOSWRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_TopCylinder_Down.Text = "顶升下降 ↓";
this.btnOSWRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_TopCylinder_Down.UseVisualStyleBackColor = false;
this.btnOSWRun.Location = new System.Drawing.Point(167, 62); this.SL_TopCylinder_Down.Click += new System.EventHandler(this.SL_TopCylinder_Down_Click);
this.btnOSWRun.Name = "btnOSWRun"; //
this.btnOSWRun.Size = new System.Drawing.Size(153, 34); // SL_RollerLine_Run
this.btnOSWRun.TabIndex = 265; //
this.btnOSWRun.Text = "SL出口横移电机运转"; this.SL_RollerLine_Run.BackColor = System.Drawing.Color.White;
this.btnOSWRun.UseVisualStyleBackColor = false; this.SL_RollerLine_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOSWRun.Click += new System.EventHandler(this.btnOSWRun_Click); this.SL_RollerLine_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// this.SL_RollerLine_Run.Location = new System.Drawing.Point(347, 60);
// btnLSWRun this.SL_RollerLine_Run.Name = "SL_RollerLine_Run";
// this.SL_RollerLine_Run.Size = new System.Drawing.Size(140, 34);
this.btnLSWRun.BackColor = System.Drawing.Color.White; this.SL_RollerLine_Run.TabIndex = 275;
this.btnLSWRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_RollerLine_Run.Text = "过渡滚筒运转->>";
this.btnLSWRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_RollerLine_Run.UseVisualStyleBackColor = false;
this.btnLSWRun.Location = new System.Drawing.Point(8, 62); this.SL_RollerLine_Run.Click += new System.EventHandler(this.btnRollerRun_Click);
this.btnLSWRun.Name = "btnLSWRun"; //
this.btnLSWRun.Size = new System.Drawing.Size(153, 34); // SL_TopCylinder_Up
this.btnLSWRun.TabIndex = 264; //
this.btnLSWRun.Text = "SL定位横移电机运转"; this.SL_TopCylinder_Up.BackColor = System.Drawing.Color.White;
this.btnLSWRun.UseVisualStyleBackColor = false; this.SL_TopCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLSWRun.Click += new System.EventHandler(this.btnLSWRun_Click); this.SL_TopCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// this.SL_TopCylinder_Up.Location = new System.Drawing.Point(20, 153);
// btnLineRun this.SL_TopCylinder_Up.Name = "SL_TopCylinder_Up";
// this.SL_TopCylinder_Up.Size = new System.Drawing.Size(140, 34);
this.btnLineRun.BackColor = System.Drawing.Color.White; this.SL_TopCylinder_Up.TabIndex = 274;
this.btnLineRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_TopCylinder_Up.Text = "顶升上升 ↑";
this.btnLineRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_TopCylinder_Up.UseVisualStyleBackColor = false;
this.btnLineRun.Location = new System.Drawing.Point(8, 23); this.SL_TopCylinder_Up.Click += new System.EventHandler(this.btnTopUp_Click);
this.btnLineRun.Name = "btnLineRun"; //
this.btnLineRun.Size = new System.Drawing.Size(153, 34); // SL_FixedCylinder_Up
this.btnLineRun.TabIndex = 263; //
this.btnLineRun.Text = "SL进料线体运转"; this.SL_FixedCylinder_Up.BackColor = System.Drawing.Color.White;
this.btnLineRun.UseVisualStyleBackColor = false; this.SL_FixedCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLineRun.Click += new System.EventHandler(this.btnLineRun_Click); this.SL_FixedCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// this.SL_FixedCylinder_Up.Location = new System.Drawing.Point(183, 153);
// btnOutTopCylinder this.SL_FixedCylinder_Up.Name = "SL_FixedCylinder_Up";
// this.SL_FixedCylinder_Up.Size = new System.Drawing.Size(140, 34);
this.btnOutTopCylinder.BackColor = System.Drawing.Color.White; this.SL_FixedCylinder_Up.TabIndex = 273;
this.btnOutTopCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_FixedCylinder_Up.Text = "固定气缸上升 ↑";
this.btnOutTopCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_FixedCylinder_Up.UseVisualStyleBackColor = false;
this.btnOutTopCylinder.Location = new System.Drawing.Point(167, 308); this.SL_FixedCylinder_Up.Click += new System.EventHandler(this.btnGuding_Click);
this.btnOutTopCylinder.Name = "btnOutTopCylinder"; //
this.btnOutTopCylinder.Size = new System.Drawing.Size(153, 34); // SL_Out_StopDown
this.btnOutTopCylinder.TabIndex = 258; //
this.btnOutTopCylinder.Text = "SL出口顶升上升"; this.SL_Out_StopDown.BackColor = System.Drawing.Color.White;
this.btnOutTopCylinder.UseVisualStyleBackColor = false; this.SL_Out_StopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOutTopCylinder.Click += new System.EventHandler(this.btnOutTopCylinder_Click); this.SL_Out_StopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// this.SL_Out_StopDown.Location = new System.Drawing.Point(20, 102);
// btnLocationCylinder this.SL_Out_StopDown.Name = "SL_Out_StopDown";
// this.SL_Out_StopDown.Size = new System.Drawing.Size(140, 34);
this.btnLocationCylinder.BackColor = System.Drawing.Color.White; this.SL_Out_StopDown.TabIndex = 272;
this.btnLocationCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_Out_StopDown.Text = "▉ 出料阻挡下降";
this.btnLocationCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_Out_StopDown.UseVisualStyleBackColor = false;
this.btnLocationCylinder.Location = new System.Drawing.Point(8, 179); this.SL_Out_StopDown.Click += new System.EventHandler(this.btnOutStopDown_Click);
this.btnLocationCylinder.Name = "btnLocationCylinder"; //
this.btnLocationCylinder.Size = new System.Drawing.Size(153, 34); // SL_TrayLocation_Before
this.btnLocationCylinder.TabIndex = 256; //
this.btnLocationCylinder.Text = "SL定位气缸上升"; this.SL_TrayLocation_Before.BackColor = System.Drawing.Color.White;
this.btnLocationCylinder.UseVisualStyleBackColor = false; this.SL_TrayLocation_Before.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLocationCylinder.Click += new System.EventHandler(this.btnLocationCylinder_Click); this.SL_TrayLocation_Before.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// this.SL_TrayLocation_Before.Location = new System.Drawing.Point(20, 339);
// btnTrayLocationCylinder this.SL_TrayLocation_Before.Name = "SL_TrayLocation_Before";
// this.SL_TrayLocation_Before.Size = new System.Drawing.Size(140, 34);
this.btnTrayLocationCylinder.BackColor = System.Drawing.Color.White; this.SL_TrayLocation_Before.TabIndex = 255;
this.btnTrayLocationCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_TrayLocation_Before.Text = "升降盘定位气缸前进";
this.btnTrayLocationCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_TrayLocation_Before.UseVisualStyleBackColor = false;
this.btnTrayLocationCylinder.Location = new System.Drawing.Point(167, 218); this.SL_TrayLocation_Before.Click += new System.EventHandler(this.btnTrayLocationCylinder_Click);
this.btnTrayLocationCylinder.Name = "btnTrayLocationCylinder"; //
this.btnTrayLocationCylinder.Size = new System.Drawing.Size(153, 34); // SL_OutLine_Run
this.btnTrayLocationCylinder.TabIndex = 255; //
this.btnTrayLocationCylinder.Text = "SL升降盘定位气缸前进"; this.SL_OutLine_Run.BackColor = System.Drawing.Color.White;
this.btnTrayLocationCylinder.UseVisualStyleBackColor = false; this.SL_OutLine_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnTrayLocationCylinder.Click += new System.EventHandler(this.btnTrayLocationCylinder_Click); this.SL_OutLine_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// this.SL_OutLine_Run.Location = new System.Drawing.Point(347, 22);
// btnFeedSideWayCylinder this.SL_OutLine_Run.Name = "SL_OutLine_Run";
// this.SL_OutLine_Run.Size = new System.Drawing.Size(140, 34);
this.btnFeedSideWayCylinder.BackColor = System.Drawing.Color.White; this.SL_OutLine_Run.TabIndex = 268;
this.btnFeedSideWayCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_OutLine_Run.Text = "出料线体运转->>";
this.btnFeedSideWayCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_OutLine_Run.UseVisualStyleBackColor = false;
this.btnFeedSideWayCylinder.Location = new System.Drawing.Point(8, 257); this.SL_OutLine_Run.Click += new System.EventHandler(this.btnOLine_Click);
this.btnFeedSideWayCylinder.Name = "btnFeedSideWayCylinder"; //
this.btnFeedSideWayCylinder.Size = new System.Drawing.Size(153, 34); // SL_OutSideWay_Run
this.btnFeedSideWayCylinder.TabIndex = 252; //
this.btnFeedSideWayCylinder.Text = "上料横移气缸取料端"; this.SL_OutSideWay_Run.BackColor = System.Drawing.Color.White;
this.btnFeedSideWayCylinder.UseVisualStyleBackColor = false; this.SL_OutSideWay_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnFeedSideWayCylinder.Click += new System.EventHandler(this.btnFeedSideWayCylinder_Click); this.SL_OutSideWay_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
// this.SL_OutSideWay_Run.Location = new System.Drawing.Point(183, 102);
// btnFeedCylinder this.SL_OutSideWay_Run.Name = "SL_OutSideWay_Run";
// this.SL_OutSideWay_Run.Size = new System.Drawing.Size(140, 34);
this.btnFeedCylinder.BackColor = System.Drawing.Color.White; this.SL_OutSideWay_Run.TabIndex = 265;
this.btnFeedCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.SL_OutSideWay_Run.Text = "出口横移电机运转->>";
this.btnFeedCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.SL_OutSideWay_Run.UseVisualStyleBackColor = false;
this.btnFeedCylinder.Location = new System.Drawing.Point(167, 257); this.SL_OutSideWay_Run.Click += new System.EventHandler(this.btnOSWRun_Click);
this.btnFeedCylinder.Name = "btnFeedCylinder"; //
this.btnFeedCylinder.Size = new System.Drawing.Size(153, 34); // SL_LocationSideWay_Run
this.btnFeedCylinder.TabIndex = 249; //
this.btnFeedCylinder.Text = "夹料气缸放松"; this.SL_LocationSideWay_Run.BackColor = System.Drawing.Color.White;
this.btnFeedCylinder.UseVisualStyleBackColor = false; this.SL_LocationSideWay_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnFeedCylinder.Click += new System.EventHandler(this.btnFeedCylinder_Click); this.SL_LocationSideWay_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_LocationSideWay_Run.Location = new System.Drawing.Point(183, 62);
this.SL_LocationSideWay_Run.Name = "SL_LocationSideWay_Run";
this.SL_LocationSideWay_Run.Size = new System.Drawing.Size(140, 34);
this.SL_LocationSideWay_Run.TabIndex = 264;
this.SL_LocationSideWay_Run.Text = "定位横移电机运转->>";
this.SL_LocationSideWay_Run.UseVisualStyleBackColor = false;
this.SL_LocationSideWay_Run.Click += new System.EventHandler(this.btnLSWRun_Click);
//
// SL_Buffer_StopDown
//
this.SL_Buffer_StopDown.BackColor = System.Drawing.Color.White;
this.SL_Buffer_StopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_Buffer_StopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_Buffer_StopDown.Location = new System.Drawing.Point(20, 62);
this.SL_Buffer_StopDown.Name = "SL_Buffer_StopDown";
this.SL_Buffer_StopDown.Size = new System.Drawing.Size(140, 34);
this.SL_Buffer_StopDown.TabIndex = 267;
this.SL_Buffer_StopDown.Text = "▉ 缓冲阻挡下降";
this.SL_Buffer_StopDown.UseVisualStyleBackColor = false;
this.SL_Buffer_StopDown.Click += new System.EventHandler(this.btnBStopDown_Click);
//
// SL_Line_Run
//
this.SL_Line_Run.BackColor = System.Drawing.Color.White;
this.SL_Line_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_Line_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_Line_Run.Location = new System.Drawing.Point(183, 22);
this.SL_Line_Run.Name = "SL_Line_Run";
this.SL_Line_Run.Size = new System.Drawing.Size(140, 34);
this.SL_Line_Run.TabIndex = 263;
this.SL_Line_Run.Text = "进料线体运转->>";
this.SL_Line_Run.UseVisualStyleBackColor = false;
this.SL_Line_Run.Click += new System.EventHandler(this.btnLineRun_Click);
//
// SL_OutTopCylinder_Up
//
this.SL_OutTopCylinder_Up.BackColor = System.Drawing.Color.White;
this.SL_OutTopCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_OutTopCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_OutTopCylinder_Up.Location = new System.Drawing.Point(347, 244);
this.SL_OutTopCylinder_Up.Name = "SL_OutTopCylinder_Up";
this.SL_OutTopCylinder_Up.Size = new System.Drawing.Size(140, 34);
this.SL_OutTopCylinder_Up.TabIndex = 258;
this.SL_OutTopCylinder_Up.Text = "出口顶升上升 ↑";
this.SL_OutTopCylinder_Up.UseVisualStyleBackColor = false;
this.SL_OutTopCylinder_Up.Click += new System.EventHandler(this.btnOutTopCylinder_Click);
//
// SL_Entry_StopDown
//
this.SL_Entry_StopDown.BackColor = System.Drawing.Color.White;
this.SL_Entry_StopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_Entry_StopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_Entry_StopDown.Location = new System.Drawing.Point(20, 22);
this.SL_Entry_StopDown.Name = "SL_Entry_StopDown";
this.SL_Entry_StopDown.Size = new System.Drawing.Size(140, 34);
this.SL_Entry_StopDown.TabIndex = 266;
this.SL_Entry_StopDown.Text = "▉ 进料阻挡下降";
this.SL_Entry_StopDown.UseVisualStyleBackColor = false;
this.SL_Entry_StopDown.Click += new System.EventHandler(this.btnEStopDown_Click);
//
// SL_LocationCylinder_Up
//
this.SL_LocationCylinder_Up.BackColor = System.Drawing.Color.White;
this.SL_LocationCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_LocationCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_LocationCylinder_Up.Location = new System.Drawing.Point(347, 153);
this.SL_LocationCylinder_Up.Name = "SL_LocationCylinder_Up";
this.SL_LocationCylinder_Up.Size = new System.Drawing.Size(140, 34);
this.SL_LocationCylinder_Up.TabIndex = 256;
this.SL_LocationCylinder_Up.Text = "定位气缸上升 ↑";
this.SL_LocationCylinder_Up.UseVisualStyleBackColor = false;
this.SL_LocationCylinder_Up.Click += new System.EventHandler(this.btnLocationCylinder_Click);
//
// SL_MoveCylinder_Take
//
this.SL_MoveCylinder_Take.BackColor = System.Drawing.Color.White;
this.SL_MoveCylinder_Take.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_MoveCylinder_Take.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_MoveCylinder_Take.Location = new System.Drawing.Point(20, 244);
this.SL_MoveCylinder_Take.Name = "SL_MoveCylinder_Take";
this.SL_MoveCylinder_Take.Size = new System.Drawing.Size(140, 34);
this.SL_MoveCylinder_Take.TabIndex = 252;
this.SL_MoveCylinder_Take.Text = "横移气缸取料";
this.SL_MoveCylinder_Take.UseVisualStyleBackColor = false;
this.SL_MoveCylinder_Take.Click += new System.EventHandler(this.btnFeedSideWayCylinder_Click);
//
// SL_ClampCylinder_Relax
//
this.SL_ClampCylinder_Relax.BackColor = System.Drawing.Color.White;
this.SL_ClampCylinder_Relax.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_ClampCylinder_Relax.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_ClampCylinder_Relax.Location = new System.Drawing.Point(183, 244);
this.SL_ClampCylinder_Relax.Name = "SL_ClampCylinder_Relax";
this.SL_ClampCylinder_Relax.Size = new System.Drawing.Size(140, 34);
this.SL_ClampCylinder_Relax.TabIndex = 249;
this.SL_ClampCylinder_Relax.Text = "夹料气缸放松";
this.SL_ClampCylinder_Relax.UseVisualStyleBackColor = false;
this.SL_ClampCylinder_Relax.Click += new System.EventHandler(this.btnFeedCylinder_Click);
// //
// chbDebug // chbDebug
// //
...@@ -648,10 +738,10 @@ ...@@ -648,10 +738,10 @@
this.tabControl1.Controls.Add(this.tabPage3); this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Location = new System.Drawing.Point(5, 52); this.tabControl1.Location = new System.Drawing.Point(5, 78);
this.tabControl1.Name = "tabControl1"; this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0; this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1270, 583); this.tabControl1.Size = new System.Drawing.Size(1270, 552);
this.tabControl1.TabIndex = 257; this.tabControl1.TabIndex = 257;
// //
// tabPage3 // tabPage3
...@@ -659,7 +749,7 @@ ...@@ -659,7 +749,7 @@
this.tabPage3.Controls.Add(this.groupBox6); this.tabPage3.Controls.Add(this.groupBox6);
this.tabPage3.Location = new System.Drawing.Point(4, 26); this.tabPage3.Location = new System.Drawing.Point(4, 26);
this.tabPage3.Name = "tabPage3"; this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(1262, 553); this.tabPage3.Size = new System.Drawing.Size(1262, 522);
this.tabPage3.TabIndex = 2; this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "状态信息"; this.tabPage3.Text = "状态信息";
this.tabPage3.UseVisualStyleBackColor = true; this.tabPage3.UseVisualStyleBackColor = true;
...@@ -753,7 +843,7 @@ ...@@ -753,7 +843,7 @@
// tabPage1 // tabPage1
// //
this.tabPage1.Controls.Add(this.groupBox1); this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Controls.Add(this.groupBox5); this.tabPage1.Controls.Add(this.groupDO);
this.tabPage1.Controls.Add(this.groupBox7); this.tabPage1.Controls.Add(this.groupBox7);
this.tabPage1.Controls.Add(this.groupBox8); this.tabPage1.Controls.Add(this.groupBox8);
this.tabPage1.Controls.Add(this.groupBox3); this.tabPage1.Controls.Add(this.groupBox3);
...@@ -761,7 +851,7 @@ ...@@ -761,7 +851,7 @@
this.tabPage1.Location = new System.Drawing.Point(4, 26); this.tabPage1.Location = new System.Drawing.Point(4, 26);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(1262, 553); this.tabPage1.Size = new System.Drawing.Size(1262, 522);
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = " IO列表 "; this.tabPage1.Text = " IO列表 ";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
...@@ -773,7 +863,7 @@ ...@@ -773,7 +863,7 @@
this.groupBox7.Controls.Add(this.tableLayoutPanel3); this.groupBox7.Controls.Add(this.tableLayoutPanel3);
this.groupBox7.Location = new System.Drawing.Point(232, 1); this.groupBox7.Location = new System.Drawing.Point(232, 1);
this.groupBox7.Name = "groupBox7"; this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(220, 548); this.groupBox7.Size = new System.Drawing.Size(220, 517);
this.groupBox7.TabIndex = 279; this.groupBox7.TabIndex = 279;
this.groupBox7.TabStop = false; this.groupBox7.TabStop = false;
this.groupBox7.Text = "DI列表"; this.groupBox7.Text = "DI列表";
...@@ -790,7 +880,7 @@ ...@@ -790,7 +880,7 @@
this.tableLayoutPanel3.RowCount = 2; this.tableLayoutPanel3.RowCount = 2;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(209, 528); this.tableLayoutPanel3.Size = new System.Drawing.Size(209, 497);
this.tableLayoutPanel3.TabIndex = 102; this.tableLayoutPanel3.TabIndex = 102;
// //
// groupBox8 // groupBox8
...@@ -800,7 +890,7 @@ ...@@ -800,7 +890,7 @@
this.groupBox8.Controls.Add(this.tableLayoutPanel4); this.groupBox8.Controls.Add(this.tableLayoutPanel4);
this.groupBox8.Location = new System.Drawing.Point(685, 51); this.groupBox8.Location = new System.Drawing.Point(685, 51);
this.groupBox8.Name = "groupBox8"; this.groupBox8.Name = "groupBox8";
this.groupBox8.Size = new System.Drawing.Size(240, 396); this.groupBox8.Size = new System.Drawing.Size(240, 365);
this.groupBox8.TabIndex = 280; this.groupBox8.TabIndex = 280;
this.groupBox8.TabStop = false; this.groupBox8.TabStop = false;
this.groupBox8.Text = "DO列表"; this.groupBox8.Text = "DO列表";
...@@ -818,7 +908,7 @@ ...@@ -818,7 +908,7 @@
this.tableLayoutPanel4.RowCount = 2; this.tableLayoutPanel4.RowCount = 2;
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(229, 376); this.tableLayoutPanel4.Size = new System.Drawing.Size(229, 345);
this.tableLayoutPanel4.TabIndex = 103; this.tableLayoutPanel4.TabIndex = 103;
// //
// tabPage2 // tabPage2
...@@ -830,7 +920,7 @@ ...@@ -830,7 +920,7 @@
this.tabPage2.Location = new System.Drawing.Point(4, 26); this.tabPage2.Location = new System.Drawing.Point(4, 26);
this.tabPage2.Name = "tabPage2"; this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3); this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(1262, 553); this.tabPage2.Size = new System.Drawing.Size(1262, 522);
this.tabPage2.TabIndex = 1; this.tabPage2.TabIndex = 1;
this.tabPage2.Text = " 伺服信息 "; this.tabPage2.Text = " 伺服信息 ";
this.tabPage2.UseVisualStyleBackColor = true; this.tabPage2.UseVisualStyleBackColor = true;
...@@ -998,7 +1088,7 @@ ...@@ -998,7 +1088,7 @@
this.btnBSave.BackColor = System.Drawing.SystemColors.Control; this.btnBSave.BackColor = System.Drawing.SystemColors.Control;
this.btnBSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnBSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnBSave.ForeColor = System.Drawing.Color.Red; this.btnBSave.ForeColor = System.Drawing.Color.Red;
this.btnBSave.Location = new System.Drawing.Point(256, 67); this.btnBSave.Location = new System.Drawing.Point(258, 67);
this.btnBSave.Name = "btnBSave"; this.btnBSave.Name = "btnBSave";
this.btnBSave.Size = new System.Drawing.Size(163, 34); this.btnBSave.Size = new System.Drawing.Size(163, 34);
this.btnBSave.TabIndex = 310; this.btnBSave.TabIndex = 310;
...@@ -1012,7 +1102,7 @@ ...@@ -1012,7 +1102,7 @@
this.txtBp1.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtBp1.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtBp1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtBp1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBp1.ForeColor = System.Drawing.SystemColors.WindowText; this.txtBp1.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtBp1.Location = new System.Drawing.Point(180, 30); this.txtBp1.Location = new System.Drawing.Point(180, 29);
this.txtBp1.MaxLength = 12; this.txtBp1.MaxLength = 12;
this.txtBp1.Name = "txtBp1"; this.txtBp1.Name = "txtBp1";
this.txtBp1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtBp1.RightToLeft = System.Windows.Forms.RightToLeft.No;
...@@ -1027,7 +1117,7 @@ ...@@ -1027,7 +1117,7 @@
this.btnBP1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnBP1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnBP1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnBP1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnBP1.ForeColor = System.Drawing.Color.Red; this.btnBP1.ForeColor = System.Drawing.Color.Red;
this.btnBP1.Location = new System.Drawing.Point(14, 26); this.btnBP1.Location = new System.Drawing.Point(14, 25);
this.btnBP1.Name = "btnBP1"; this.btnBP1.Name = "btnBP1";
this.btnBP1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.btnBP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnBP1.Size = new System.Drawing.Size(163, 34); this.btnBP1.Size = new System.Drawing.Size(163, 34);
...@@ -1043,7 +1133,7 @@ ...@@ -1043,7 +1133,7 @@
this.btnBP2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnBP2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnBP2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnBP2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnBP2.ForeColor = System.Drawing.Color.Red; this.btnBP2.ForeColor = System.Drawing.Color.Red;
this.btnBP2.Location = new System.Drawing.Point(14, 66); this.btnBP2.Location = new System.Drawing.Point(14, 67);
this.btnBP2.Name = "btnBP2"; this.btnBP2.Name = "btnBP2";
this.btnBP2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.btnBP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnBP2.Size = new System.Drawing.Size(163, 34); this.btnBP2.Size = new System.Drawing.Size(163, 34);
...@@ -1058,7 +1148,7 @@ ...@@ -1058,7 +1148,7 @@
this.txtBP2.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtBP2.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtBP2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtBP2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBP2.ForeColor = System.Drawing.SystemColors.WindowText; this.txtBP2.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtBP2.Location = new System.Drawing.Point(180, 70); this.txtBP2.Location = new System.Drawing.Point(180, 71);
this.txtBP2.MaxLength = 12; this.txtBP2.MaxLength = 12;
this.txtBP2.Name = "txtBP2"; this.txtBP2.Name = "txtBP2";
this.txtBP2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtBP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
...@@ -1084,9 +1174,9 @@ ...@@ -1084,9 +1174,9 @@
this.groupBox2.Controls.Add(this.label4); this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.btnMoveto); this.groupBox2.Controls.Add(this.btnMoveto);
this.groupBox2.Controls.Add(this.txtSizePosition); this.groupBox2.Controls.Add(this.txtSizePosition);
this.groupBox2.Location = new System.Drawing.Point(587, 126); this.groupBox2.Location = new System.Drawing.Point(587, 123);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(531, 143); this.groupBox2.Size = new System.Drawing.Size(531, 149);
this.groupBox2.TabIndex = 218; this.groupBox2.TabIndex = 218;
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
this.groupBox2.Text = "移栽升降轴位置配置"; this.groupBox2.Text = "移栽升降轴位置配置";
...@@ -1097,7 +1187,7 @@ ...@@ -1097,7 +1187,7 @@
this.txtUpdownP3.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtUpdownP3.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtUpdownP3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtUpdownP3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtUpdownP3.ForeColor = System.Drawing.SystemColors.WindowText; this.txtUpdownP3.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtUpdownP3.Location = new System.Drawing.Point(424, 61); this.txtUpdownP3.Location = new System.Drawing.Point(424, 65);
this.txtUpdownP3.MaxLength = 12; this.txtUpdownP3.MaxLength = 12;
this.txtUpdownP3.Name = "txtUpdownP3"; this.txtUpdownP3.Name = "txtUpdownP3";
this.txtUpdownP3.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtUpdownP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
...@@ -1112,7 +1202,7 @@ ...@@ -1112,7 +1202,7 @@
this.btnUpdownP3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnUpdownP3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpdownP3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnUpdownP3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpdownP3.ForeColor = System.Drawing.Color.Blue; this.btnUpdownP3.ForeColor = System.Drawing.Color.Blue;
this.btnUpdownP3.Location = new System.Drawing.Point(258, 57); this.btnUpdownP3.Location = new System.Drawing.Point(258, 61);
this.btnUpdownP3.Name = "btnUpdownP3"; this.btnUpdownP3.Name = "btnUpdownP3";
this.btnUpdownP3.RightToLeft = System.Windows.Forms.RightToLeft.No; this.btnUpdownP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpdownP3.Size = new System.Drawing.Size(163, 34); this.btnUpdownP3.Size = new System.Drawing.Size(163, 34);
...@@ -1126,7 +1216,7 @@ ...@@ -1126,7 +1216,7 @@
this.btnSave.BackColor = System.Drawing.SystemColors.Control; this.btnSave.BackColor = System.Drawing.SystemColors.Control;
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSave.ForeColor = System.Drawing.Color.Blue; this.btnSave.ForeColor = System.Drawing.Color.Blue;
this.btnSave.Location = new System.Drawing.Point(152, 95); this.btnSave.Location = new System.Drawing.Point(152, 104);
this.btnSave.Name = "btnSave"; this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(163, 34); this.btnSave.Size = new System.Drawing.Size(163, 34);
this.btnSave.TabIndex = 310; this.btnSave.TabIndex = 310;
...@@ -1194,7 +1284,7 @@ ...@@ -1194,7 +1284,7 @@
this.btnMoveto.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnMoveto.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMoveto.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnMoveto.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMoveto.ForeColor = System.Drawing.Color.Blue; this.btnMoveto.ForeColor = System.Drawing.Color.Blue;
this.btnMoveto.Location = new System.Drawing.Point(16, 57); this.btnMoveto.Location = new System.Drawing.Point(16, 61);
this.btnMoveto.Name = "btnMoveto"; this.btnMoveto.Name = "btnMoveto";
this.btnMoveto.RightToLeft = System.Windows.Forms.RightToLeft.No; this.btnMoveto.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnMoveto.Size = new System.Drawing.Size(163, 34); this.btnMoveto.Size = new System.Drawing.Size(163, 34);
...@@ -1209,7 +1299,7 @@ ...@@ -1209,7 +1299,7 @@
this.txtSizePosition.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtSizePosition.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtSizePosition.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtSizePosition.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtSizePosition.ForeColor = System.Drawing.SystemColors.WindowText; this.txtSizePosition.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtSizePosition.Location = new System.Drawing.Point(182, 61); this.txtSizePosition.Location = new System.Drawing.Point(182, 65);
this.txtSizePosition.MaxLength = 12; this.txtSizePosition.MaxLength = 12;
this.txtSizePosition.Name = "txtSizePosition"; this.txtSizePosition.Name = "txtSizePosition";
this.txtSizePosition.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtSizePosition.RightToLeft = System.Windows.Forms.RightToLeft.No;
...@@ -1230,9 +1320,9 @@ ...@@ -1230,9 +1320,9 @@
this.panel1.Controls.Add(this.lblStoreStatus); this.panel1.Controls.Add(this.lblStoreStatus);
this.panel1.Controls.Add(this.btnStart); this.panel1.Controls.Add(this.btnStart);
this.panel1.Controls.Add(this.btnStop); this.panel1.Controls.Add(this.btnStop);
this.panel1.Location = new System.Drawing.Point(2, 1); this.panel1.Location = new System.Drawing.Point(5, 14);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1269, 47); this.panel1.Size = new System.Drawing.Size(1265, 47);
this.panel1.TabIndex = 258; this.panel1.TabIndex = 258;
// //
// btnClose // btnClose
...@@ -1297,12 +1387,22 @@ ...@@ -1297,12 +1387,22 @@
this.btnScan.UseVisualStyleBackColor = false; this.btnScan.UseVisualStyleBackColor = false;
this.btnScan.Click += new System.EventHandler(this.btnScan_Click); this.btnScan.Click += new System.EventHandler(this.btnScan_Click);
// //
// groupBox10
//
this.groupBox10.Controls.Add(this.panel1);
this.groupBox10.Location = new System.Drawing.Point(5, 2);
this.groupBox10.Name = "groupBox10";
this.groupBox10.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.groupBox10.Size = new System.Drawing.Size(1270, 71);
this.groupBox10.TabIndex = 0;
this.groupBox10.TabStop = false;
//
// FrmFeedingEquip // FrmFeedingEquip
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1281, 639); this.ClientSize = new System.Drawing.Size(1281, 639);
this.Controls.Add(this.panel1); this.Controls.Add(this.groupBox10);
this.Controls.Add(this.tabControl1); this.Controls.Add(this.tabControl1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false; this.MaximizeBox = false;
...@@ -1316,7 +1416,7 @@ ...@@ -1316,7 +1416,7 @@
this.groupBox1.PerformLayout(); this.groupBox1.PerformLayout();
this.groupBox4.ResumeLayout(false); this.groupBox4.ResumeLayout(false);
this.groupBox3.ResumeLayout(false); this.groupBox3.ResumeLayout(false);
this.groupBox5.ResumeLayout(false); this.groupDO.ResumeLayout(false);
this.tabControl1.ResumeLayout(false); this.tabControl1.ResumeLayout(false);
this.tabPage3.ResumeLayout(false); this.tabPage3.ResumeLayout(false);
this.groupBox6.ResumeLayout(false); this.groupBox6.ResumeLayout(false);
...@@ -1333,6 +1433,7 @@ ...@@ -1333,6 +1433,7 @@
this.groupBox2.PerformLayout(); this.groupBox2.PerformLayout();
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.panel1.PerformLayout(); this.panel1.PerformLayout();
this.groupBox10.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
} }
...@@ -1349,19 +1450,18 @@ ...@@ -1349,19 +1450,18 @@
private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button btnWriteSingleDO; private System.Windows.Forms.Button btnWriteSingleDO;
private System.Windows.Forms.ComboBox cmbWriteIO; private System.Windows.Forms.ComboBox cmbWriteIO;
private System.Windows.Forms.CheckBox chbAutoRead;
private System.Windows.Forms.TextBox txtSlaveId; private System.Windows.Forms.TextBox txtSlaveId;
private System.Windows.Forms.GroupBox groupBox5; private System.Windows.Forms.GroupBox groupDO;
private System.Windows.Forms.Button btnTrayLocationCylinder; private System.Windows.Forms.Button SL_TrayLocation_Before;
private System.Windows.Forms.Button btnFeedSideWayCylinder; private System.Windows.Forms.Button SL_MoveCylinder_Take;
private System.Windows.Forms.Button btnFeedCylinder; private System.Windows.Forms.Button SL_ClampCylinder_Relax;
private System.Windows.Forms.Label lblThisSta; private System.Windows.Forms.Label lblThisSta;
private System.Windows.Forms.Label lblStoreStatus; private System.Windows.Forms.Label lblStoreStatus;
private System.Windows.Forms.Button btnStart; private System.Windows.Forms.Button btnStart;
private System.Windows.Forms.Button btnStop; private System.Windows.Forms.Button btnStop;
private System.Windows.Forms.CheckBox chbDebug; private System.Windows.Forms.CheckBox chbDebug;
private System.Windows.Forms.Button btnOutTopCylinder; private System.Windows.Forms.Button SL_OutTopCylinder_Up;
private System.Windows.Forms.Button btnLocationCylinder; private System.Windows.Forms.Button SL_LocationCylinder_Up;
private System.Windows.Forms.TabControl tabControl1; private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1; private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.TabPage tabPage2;
...@@ -1387,11 +1487,11 @@ ...@@ -1387,11 +1487,11 @@
private System.Windows.Forms.TextBox txtDoName; private System.Windows.Forms.TextBox txtDoName;
private System.Windows.Forms.Label label17; private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label14; private System.Windows.Forms.Label label14;
private System.Windows.Forms.Button btnEStopDown; private System.Windows.Forms.Button SL_Entry_StopDown;
private System.Windows.Forms.Button btnOSWRun; private System.Windows.Forms.Button SL_OutSideWay_Run;
private System.Windows.Forms.Button btnLineRun; private System.Windows.Forms.Button SL_Line_Run;
private System.Windows.Forms.Button btnLSWRun; private System.Windows.Forms.Button SL_LocationSideWay_Run;
private System.Windows.Forms.Button btnBStopDown; private System.Windows.Forms.Button SL_Buffer_StopDown;
private AxisMoveControl axisMoveControl1; private AxisMoveControl axisMoveControl1;
private System.Windows.Forms.GroupBox groupBox9; private System.Windows.Forms.GroupBox groupBox9;
internal System.Windows.Forms.Button btnBP3; internal System.Windows.Forms.Button btnBP3;
...@@ -1407,11 +1507,11 @@ ...@@ -1407,11 +1507,11 @@
internal System.Windows.Forms.TextBox txtUpdownP3; internal System.Windows.Forms.TextBox txtUpdownP3;
internal System.Windows.Forms.Button btnUpdownP3; internal System.Windows.Forms.Button btnUpdownP3;
private System.Windows.Forms.CheckBox chbMoveStop; private System.Windows.Forms.CheckBox chbMoveStop;
private System.Windows.Forms.Button btnOLine; private System.Windows.Forms.Button SL_OutLine_Run;
private System.Windows.Forms.TabPage tabPage3; private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.Label lblwidth; private System.Windows.Forms.Label lblwidth;
private System.Windows.Forms.CheckBox chbBoxSendShelf; private System.Windows.Forms.CheckBox chbBoxSendShelf;
private System.Windows.Forms.Button btnOutStopDown; private System.Windows.Forms.Button SL_Out_StopDown;
private System.Windows.Forms.Button btnUpdateShelf; private System.Windows.Forms.Button btnUpdateShelf;
private System.Windows.Forms.TextBox txtShelfID; private System.Windows.Forms.TextBox txtShelfID;
private System.Windows.Forms.GroupBox groupDetial; private System.Windows.Forms.GroupBox groupDetial;
...@@ -1424,9 +1524,17 @@ ...@@ -1424,9 +1524,17 @@
private System.Windows.Forms.ComboBox cmbDSize; private System.Windows.Forms.ComboBox cmbDSize;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnClose; private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Button btnGuding; private System.Windows.Forms.Button SL_FixedCylinder_Up;
private System.Windows.Forms.Button btnTopUp; private System.Windows.Forms.Button SL_TopCylinder_Up;
private System.Windows.Forms.Button btnRollerRun; private System.Windows.Forms.Button SL_RollerLine_Run;
private System.Windows.Forms.GroupBox groupBox10;
private System.Windows.Forms.Button SL_LocationCylinder_Down;
private System.Windows.Forms.Button SL_FixedCylinder_Down;
private System.Windows.Forms.Button SL_TopCylinder_Down;
private System.Windows.Forms.Button SL_MoveCylinder_Give;
private System.Windows.Forms.Button SL_ClampCylinder_Work;
private System.Windows.Forms.Button SL_OutTopCylinder_Down;
private System.Windows.Forms.Button SL_TrayLocation_After;
} }
} }
...@@ -111,9 +111,10 @@ namespace OnlineStore.AssemblyLine ...@@ -111,9 +111,10 @@ namespace OnlineStore.AssemblyLine
{ {
return; return;
} }
if (chbAutoRead.Checked && this.Visible) if ( this.Visible)
{ {
ReadIOList(); ReadIOList();
ReadBtnDO();
} }
lblName.BackColor = equipBean.GetShowColor(); lblName.BackColor = equipBean.GetShowColor();
if (equipBean.runStatus > LineRunStatus.Wait) if (equipBean.runStatus > LineRunStatus.Wait)
...@@ -245,25 +246,26 @@ namespace OnlineStore.AssemblyLine ...@@ -245,25 +246,26 @@ namespace OnlineStore.AssemblyLine
cmbSizeList.Items.Clear(); cmbSizeList.Items.Clear();
cmbSizeList.Items.Add("0=默认位置"); cmbSizeList.Items.Add("0=默认位置");
foreach(int heigth in LineManager.GetTrayList()) foreach (int heigth in LineManager.GetTrayList())
{ {
cmbSizeList.Items.Add(heigth); cmbSizeList.Items.Add(heigth);
} }
cmbSizeList.SelectedIndex = 0; cmbSizeList.SelectedIndex = 0;
lblStoreStatus.Text = KTK_Store.GetRunStr( equipBean.runStatus); lblStoreStatus.Text = KTK_Store.GetRunStr(equipBean.runStatus);
lblThisSta.Text = equipBean.WarnMsg; lblThisSta.Text = equipBean.WarnMsg;
txtP1.Text = equipBean.Config.UpDownAxisP1.ToString(); txtP1.Text = equipBean.Config.UpDownAxisP1.ToString();
txtUpdownP3.Text = equipBean.Config.UpDownAxisP3.ToString(); txtUpdownP3.Text = equipBean.Config.UpDownAxisP3.ToString();
if (equipBean.Config.DOList.ContainsKey(IO_Type.SL_RollerLine_Run) ) if (equipBean.Config.DOList.ContainsKey(IO_Type.SL_RollerLine_Run))
{ {
btnRollerRun.Visible = true; SL_RollerLine_Run.Visible = true;
} }
else else
{ {
btnRollerRun.Visible = false; SL_RollerLine_Run.Visible = false;
} }
LoadDP2(); LoadDP2();
LoadDOBtn(groupDO);
txtBp1.Text = equipBean.Config.BatchAxisP1.ToString(); txtBp1.Text = equipBean.Config.BatchAxisP1.ToString();
txtBP2.Text = equipBean.Config.BatchAxisP2.ToString(); txtBP2.Text = equipBean.Config.BatchAxisP2.ToString();
txtBP3.Text = equipBean.Config.BatchAxisP3.ToString(); txtBP3.Text = equipBean.Config.BatchAxisP3.ToString();
...@@ -376,11 +378,11 @@ namespace OnlineStore.AssemblyLine ...@@ -376,11 +378,11 @@ namespace OnlineStore.AssemblyLine
private void btnLocationCylinder_Click(object sender, EventArgs e) private void btnLocationCylinder_Click(object sender, EventArgs e)
{ {
BtnMove(btnLocationCylinder, "SL定位气缸上升", "SL定位气缸下降", IO_Type.SL_LocationCylinder_Down, IO_Type.SL_LocationCylinder_Up); equipBean.CylinderMove(null, IO_Type.SL_LocationCylinder_Down, IO_Type.SL_LocationCylinder_Up);
} }
private void btnOutTopCylinder_Click(object sender, EventArgs e) private void btnOutTopCylinder_Click(object sender, EventArgs e)
{ {
BtnMove(btnOutTopCylinder, "SL出口顶升上升", "SL出口顶升下降", IO_Type.SL_OutTopCylinder_Down, IO_Type.SL_OutTopCylinder_Up); equipBean.CylinderMove(null, IO_Type.SL_OutTopCylinder_Down, IO_Type.SL_OutTopCylinder_Up);
} }
...@@ -388,7 +390,7 @@ namespace OnlineStore.AssemblyLine ...@@ -388,7 +390,7 @@ namespace OnlineStore.AssemblyLine
{ {
if (equipBean.UpdownIsUp()) if (equipBean.UpdownIsUp())
{ {
BtnMove(btnFeedSideWayCylinder, "上料横移气缸取料端", "上料横移气缸放料端", IO_Type.SL_MoveCylinder_Give, IO_Type.SL_MoveCylinder_Take); equipBean.CylinderMove(null, IO_Type.SL_MoveCylinder_Give, IO_Type.SL_MoveCylinder_Take);
} }
else else
{ {
...@@ -397,19 +399,15 @@ namespace OnlineStore.AssemblyLine ...@@ -397,19 +399,15 @@ namespace OnlineStore.AssemblyLine
} }
private void btnTrayLocationCylinder_Click(object sender, EventArgs e) private void btnTrayLocationCylinder_Click(object sender, EventArgs e)
{ {
//判断伺服位置是否正确
//int currP = equipBean.BatchAxis.GetAclPosition();
//int chaz = equipBean.Config.BatchAxisP1 - currP;
//if (!(Math.Abs(chaz) < equipBean.Config.Height_ChangeValue*3))
if(!equipBean.TrayLCylinderCanAfter()) if(!equipBean.TrayLCylinderCanAfter())
{ {
DialogResult result = MessageBox.Show("提升轴当前不在待机点P2,是否确定" + btnTrayLocationCylinder.Text+"?","确认操作 ",MessageBoxButtons.YesNo); DialogResult result = MessageBox.Show("提升轴当前不在待机点P2,是否确定" + SL_TrayLocation_Before.Text+"?","确认操作 ",MessageBoxButtons.YesNo);
if (!result.Equals(DialogResult.Yes)) if (!result.Equals(DialogResult.Yes))
{ {
return; return;
} }
} }
BtnMove(btnTrayLocationCylinder, "SL升降盘定位气缸前进", "SL升降盘定位气缸后退", IO_Type.SL_TrayLocation_After, IO_Type.SL_TrayLocation_Before); equipBean.CylinderMove(null,IO_Type.SL_TrayLocation_After, IO_Type.SL_TrayLocation_Before);
} }
private void cmbSizeList_SelectedIndexChanged(object sender, EventArgs e) private void cmbSizeList_SelectedIndexChanged(object sender, EventArgs e)
...@@ -446,7 +444,7 @@ namespace OnlineStore.AssemblyLine ...@@ -446,7 +444,7 @@ namespace OnlineStore.AssemblyLine
private void btnCloseAll_Click(object sender, EventArgs e) private void btnCloseAll_Click(object sender, EventArgs e)
{ {
foreach (Control con in groupBox5.Controls) foreach (Control con in groupDO.Controls)
{ {
if (con is Button) if (con is Button)
{ {
...@@ -484,27 +482,27 @@ namespace OnlineStore.AssemblyLine ...@@ -484,27 +482,27 @@ namespace OnlineStore.AssemblyLine
private void btnLineRun_Click(object sender, EventArgs e) private void btnLineRun_Click(object sender, EventArgs e)
{ {
BtnMove(btnLineRun, "SL进料线体运转", "SL进料线体停止", IO_Type.SL_Line_Run); DoBtnClick(sender);
} }
private void btnLSWRun_Click(object sender, EventArgs e) private void btnLSWRun_Click(object sender, EventArgs e)
{ {
BtnMove(btnLSWRun, "SL定位横移电机运转", "SL定位横移电机停止", IO_Type.SL_LocationSideWay_Run); DoBtnClick(sender);
} }
private void btnOSWRun_Click(object sender, EventArgs e) private void btnOSWRun_Click(object sender, EventArgs e)
{ {
BtnMove(btnOSWRun, "SL出口横移电机运转", "SL出口横移电机停止", IO_Type.SL_OutSideWay_Run); DoBtnClick(sender);
} }
private void btnEStopDown_Click(object sender, EventArgs e) private void btnEStopDown_Click(object sender, EventArgs e)
{ {
BtnMove(btnEStopDown, "SL进料阻挡下降", "SL进料阻挡上升", IO_Type.SL_Entry_StopDown); DoBtnClick(sender);
} }
private void btnBStopDown_Click(object sender, EventArgs e) private void btnBStopDown_Click(object sender, EventArgs e)
{ {
BtnMove(btnBStopDown, "SL缓冲阻挡下降", "SL缓冲阻挡上升", IO_Type.SL_Buffer_StopDown); DoBtnClick(sender);
} }
private void btnBP1_Click(object sender, EventArgs e) private void btnBP1_Click(object sender, EventArgs e)
...@@ -583,7 +581,7 @@ namespace OnlineStore.AssemblyLine ...@@ -583,7 +581,7 @@ namespace OnlineStore.AssemblyLine
private void btnOLine_Click(object sender, EventArgs e) private void btnOLine_Click(object sender, EventArgs e)
{ {
BtnMove(btnOLine, "SL出料线体运转", "SL出料线体停止", IO_Type.SL_OutLine_Run); DoBtnClick(sender);
} }
...@@ -599,8 +597,7 @@ namespace OnlineStore.AssemblyLine ...@@ -599,8 +597,7 @@ namespace OnlineStore.AssemblyLine
private void btnOutStopDown_Click(object sender, EventArgs e) private void btnOutStopDown_Click(object sender, EventArgs e)
{ {
DoBtnClick(sender);
BtnMove(btnOutStopDown, "SL出料阻挡下降", "SL出料阻挡上升", IO_Type.SL_Out_StopDown);
} }
private void btnUpdateShelf_Click(object sender, EventArgs e) private void btnUpdateShelf_Click(object sender, EventArgs e)
...@@ -716,22 +713,72 @@ namespace OnlineStore.AssemblyLine ...@@ -716,22 +713,72 @@ namespace OnlineStore.AssemblyLine
private void btnGuding_Click(object sender, EventArgs e) private void btnGuding_Click(object sender, EventArgs e)
{ {
BtnMove(btnGuding , "SL固定气缸上升", "SL固定气缸下降", IO_Type.SL_FixedCylinder_Down, IO_Type.SL_FixedCylinder_Up); equipBean.CylinderMove(null, IO_Type.SL_FixedCylinder_Down, IO_Type.SL_FixedCylinder_Up);
} }
private void btnTopUp_Click(object sender, EventArgs e) private void btnTopUp_Click(object sender, EventArgs e)
{ {
BtnMove(btnTopUp, "SL顶升上升", "SL顶升下降", IO_Type.SL_TopCylinder_Down, IO_Type.SL_TopCylinder_Up); equipBean.CylinderMove(null, IO_Type.SL_TopCylinder_Down, IO_Type.SL_TopCylinder_Up);
} }
private void btnRollerRun_Click(object sender, EventArgs e) private void btnRollerRun_Click(object sender, EventArgs e)
{ {
BtnMove(btnRollerRun, "SL过渡滚筒运转", "SL过渡滚筒停止", IO_Type.SL_RollerLine_Run); DoBtnClick(sender);
} }
private void btnFeedCylinder_Click(object sender, EventArgs e) private void btnFeedCylinder_Click(object sender, EventArgs e)
{ {
BtnMove(btnFeedCylinder, "夹料气缸放松", "夹料气缸夹紧", IO_Type.SL_ClampCylinder_Relax, IO_Type.SL_ClampCylinder_Work); equipBean.CylinderMove(null,IO_Type.SL_ClampCylinder_Relax, IO_Type.SL_ClampCylinder_Work);
}
private void SL_TopCylinder_Down_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.SL_OutTopCylinder_Up, IO_Type.SL_TopCylinder_Down);
}
private void SL_FixedCylinder_Down_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.SL_FixedCylinder_Up, IO_Type.SL_FixedCylinder_Down);
}
private void SL_LocationCylinder_Down_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.SL_LocationCylinder_Up, IO_Type.SL_LocationCylinder_Down);
}
private void SL_MoveCylinder_Give_Click(object sender, EventArgs e)
{
if (equipBean.UpdownIsUp())
{
equipBean.CylinderMove(null, IO_Type.SL_MoveCylinder_Take, IO_Type.SL_MoveCylinder_Give);
}
else
{
MessageBox.Show("升降轴不在P1位置", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void SL_ClampCylinder_Work_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.SL_ClampCylinder_Work, IO_Type.SL_ClampCylinder_Relax);
}
private void SL_OutTopCylinder_Down_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.SL_OutTopCylinder_Up, IO_Type.SL_OutTopCylinder_Down);
}
private void SL_TrayLocation_After_Click(object sender, EventArgs e)
{
if (!equipBean.TrayLCylinderCanAfter())
{
DialogResult result = MessageBox.Show("提升轴当前不在待机点P2,是否确定" + SL_TrayLocation_Before.Text + "?", "确认操作 ", MessageBoxButtons.YesNo);
if (!result.Equals(DialogResult.Yes))
{
return;
}
}
equipBean.CylinderMove(null, IO_Type.SL_TrayLocation_After, IO_Type.SL_TrayLocation_After);
} }
} }
......
...@@ -34,15 +34,25 @@ ...@@ -34,15 +34,25 @@
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox3 = new System.Windows.Forms.GroupBox(); this.groupBox3 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox5 = new System.Windows.Forms.GroupBox(); this.groupDo = new System.Windows.Forms.GroupBox();
this.btnClampWork = new System.Windows.Forms.Button(); this.HY_LongL_StopDown = new System.Windows.Forms.Button();
this.btnMoveTake = new System.Windows.Forms.Button(); this.HY_OL_StopCylinder_Down = new System.Windows.Forms.Button();
this.btnFrontStopDown = new System.Windows.Forms.Button(); this.HY_ShortL_StopDown = new System.Windows.Forms.Button();
this.btnLocation_Up = new System.Windows.Forms.Button(); this.HY_OL_StopCylinder_Up = new System.Windows.Forms.Button();
this.btnStopDown = new System.Windows.Forms.Button(); this.HY_StopCylinder_Down = new System.Windows.Forms.Button();
this.btnLineRun = new System.Windows.Forms.Button(); this.HY_StopCylinder_Up = new System.Windows.Forms.Button();
this.btnTopCylinder_Up = new System.Windows.Forms.Button(); this.HY_ClampCylinder_Relax = new System.Windows.Forms.Button();
this.btnLineBackRun = new System.Windows.Forms.Button(); this.HY_MoveCylinder_Give = new System.Windows.Forms.Button();
this.HY_LocationCylinder_Down = new System.Windows.Forms.Button();
this.HY_TopCylinder_Down = new System.Windows.Forms.Button();
this.HY_ClampCylinder_Work = new System.Windows.Forms.Button();
this.HY_MoveCylinder_Take = new System.Windows.Forms.Button();
this.HY_FrontStopDown = new System.Windows.Forms.Button();
this.HY_LocationCylinder_Up = new System.Windows.Forms.Button();
this.HY_StopDown = new System.Windows.Forms.Button();
this.HY_LineRun = new System.Windows.Forms.Button();
this.HY_TopCylinder_Up = new System.Windows.Forms.Button();
this.HY_LineBackRun = new System.Windows.Forms.Button();
this.chbDebug = new System.Windows.Forms.CheckBox(); this.chbDebug = new System.Windows.Forms.CheckBox();
this.lblThisSta = new System.Windows.Forms.Label(); this.lblThisSta = new System.Windows.Forms.Label();
this.lblStoreStatus = new System.Windows.Forms.Label(); this.lblStoreStatus = new System.Windows.Forms.Label();
...@@ -54,8 +64,8 @@ ...@@ -54,8 +64,8 @@
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.groupBox6 = new System.Windows.Forms.GroupBox(); this.groupBox6 = new System.Windows.Forms.GroupBox();
this.lblHyInfo = new System.Windows.Forms.Label(); this.lblHyInfo = new System.Windows.Forms.Label();
this.lblTrayNum = new System.Windows.Forms.Label();
this.lblMoveInfo = new System.Windows.Forms.Label(); this.lblMoveInfo = new System.Windows.Forms.Label();
this.lblTrayNum = new System.Windows.Forms.Label();
this.tabPage2 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage();
this.groupDetial = new System.Windows.Forms.GroupBox(); this.groupDetial = new System.Windows.Forms.GroupBox();
this.btnDSave = new System.Windows.Forms.Button(); this.btnDSave = new System.Windows.Forms.Button();
...@@ -83,7 +93,7 @@ ...@@ -83,7 +93,7 @@
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout(); this.groupBox4.SuspendLayout();
this.groupBox3.SuspendLayout(); this.groupBox3.SuspendLayout();
this.groupBox5.SuspendLayout(); this.groupDo.SuspendLayout();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout(); this.tabPage1.SuspendLayout();
this.groupBox6.SuspendLayout(); this.groupBox6.SuspendLayout();
...@@ -112,9 +122,9 @@ ...@@ -112,9 +122,9 @@
this.groupBox1.Controls.Add(this.txtSlaveId); this.groupBox1.Controls.Add(this.txtSlaveId);
this.groupBox1.Controls.Add(this.cmbWriteIO); this.groupBox1.Controls.Add(this.cmbWriteIO);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(6, 396); this.groupBox1.Location = new System.Drawing.Point(497, 392);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(485, 111); this.groupBox1.Size = new System.Drawing.Size(731, 111);
this.groupBox1.TabIndex = 105; this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入"; this.groupBox1.Text = "DO写入";
...@@ -124,9 +134,9 @@ ...@@ -124,9 +134,9 @@
this.btnCloseAll.BackColor = System.Drawing.Color.White; this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(353, 24); this.btnCloseAll.Location = new System.Drawing.Point(552, 24);
this.btnCloseAll.Name = "btnCloseAll"; this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(100, 34); this.btnCloseAll.Size = new System.Drawing.Size(140, 34);
this.btnCloseAll.TabIndex = 259; this.btnCloseAll.TabIndex = 259;
this.btnCloseAll.Text = "关闭所有DO"; this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false; this.btnCloseAll.UseVisualStyleBackColor = false;
...@@ -136,7 +146,7 @@ ...@@ -136,7 +146,7 @@
// //
this.txtDOIndex.Enabled = false; this.txtDOIndex.Enabled = false;
this.txtDOIndex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtDOIndex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDOIndex.Location = new System.Drawing.Point(59, 71); this.txtDOIndex.Location = new System.Drawing.Point(160, 71);
this.txtDOIndex.MaxLength = 10; this.txtDOIndex.MaxLength = 10;
this.txtDOIndex.Name = "txtDOIndex"; this.txtDOIndex.Name = "txtDOIndex";
this.txtDOIndex.Size = new System.Drawing.Size(38, 23); this.txtDOIndex.Size = new System.Drawing.Size(38, 23);
...@@ -147,10 +157,10 @@ ...@@ -147,10 +157,10 @@
// //
this.txtDoName.Enabled = false; this.txtDoName.Enabled = false;
this.txtDoName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtDoName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDoName.Location = new System.Drawing.Point(59, 54); this.txtDoName.Location = new System.Drawing.Point(63, 71);
this.txtDoName.MaxLength = 10; this.txtDoName.MaxLength = 10;
this.txtDoName.Name = "txtDoName"; this.txtDoName.Name = "txtDoName";
this.txtDoName.Size = new System.Drawing.Size(34, 23); this.txtDoName.Size = new System.Drawing.Size(52, 23);
this.txtDoName.TabIndex = 283; this.txtDoName.TabIndex = 283;
this.txtDoName.Text = "0"; this.txtDoName.Text = "0";
this.txtDoName.Visible = false; this.txtDoName.Visible = false;
...@@ -160,7 +170,7 @@ ...@@ -160,7 +170,7 @@
this.label17.AutoSize = true; this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label17.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label17.Location = new System.Drawing.Point(20, 57); this.label17.Location = new System.Drawing.Point(23, 74);
this.label17.Name = "label17"; this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(35, 17); this.label17.Size = new System.Drawing.Size(35, 17);
this.label17.TabIndex = 282; this.label17.TabIndex = 282;
...@@ -173,7 +183,7 @@ ...@@ -173,7 +183,7 @@
this.label14.AutoSize = true; this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label14.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label14.Location = new System.Drawing.Point(20, 74); this.label14.Location = new System.Drawing.Point(120, 74);
this.label14.Name = "label14"; this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(35, 17); this.label14.Size = new System.Drawing.Size(35, 17);
this.label14.TabIndex = 281; this.label14.TabIndex = 281;
...@@ -185,9 +195,9 @@ ...@@ -185,9 +195,9 @@
this.btnOpenDo.BackColor = System.Drawing.Color.White; this.btnOpenDo.BackColor = System.Drawing.Color.White;
this.btnOpenDo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenDo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenDo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnOpenDo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenDo.Location = new System.Drawing.Point(237, 65); this.btnOpenDo.Location = new System.Drawing.Point(386, 22);
this.btnOpenDo.Name = "btnOpenDo"; this.btnOpenDo.Name = "btnOpenDo";
this.btnOpenDo.Size = new System.Drawing.Size(100, 34); this.btnOpenDo.Size = new System.Drawing.Size(140, 34);
this.btnOpenDo.TabIndex = 280; this.btnOpenDo.TabIndex = 280;
this.btnOpenDo.Text = "打开"; this.btnOpenDo.Text = "打开";
this.btnOpenDo.UseVisualStyleBackColor = false; this.btnOpenDo.UseVisualStyleBackColor = false;
...@@ -198,9 +208,9 @@ ...@@ -198,9 +208,9 @@
this.btnWriteSingleDO.BackColor = System.Drawing.Color.White; this.btnWriteSingleDO.BackColor = System.Drawing.Color.White;
this.btnWriteSingleDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnWriteSingleDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnWriteSingleDO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnWriteSingleDO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnWriteSingleDO.Location = new System.Drawing.Point(353, 65); this.btnWriteSingleDO.Location = new System.Drawing.Point(386, 65);
this.btnWriteSingleDO.Name = "btnWriteSingleDO"; this.btnWriteSingleDO.Name = "btnWriteSingleDO";
this.btnWriteSingleDO.Size = new System.Drawing.Size(100, 34); this.btnWriteSingleDO.Size = new System.Drawing.Size(140, 34);
this.btnWriteSingleDO.TabIndex = 277; this.btnWriteSingleDO.TabIndex = 277;
this.btnWriteSingleDO.Text = "关闭"; this.btnWriteSingleDO.Text = "关闭";
this.btnWriteSingleDO.UseVisualStyleBackColor = false; this.btnWriteSingleDO.UseVisualStyleBackColor = false;
...@@ -209,7 +219,7 @@ ...@@ -209,7 +219,7 @@
// txtWriteTime // txtWriteTime
// //
this.txtWriteTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtWriteTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtWriteTime.Location = new System.Drawing.Point(165, 71); this.txtWriteTime.Location = new System.Drawing.Point(268, 71);
this.txtWriteTime.MaxLength = 10; this.txtWriteTime.MaxLength = 10;
this.txtWriteTime.Name = "txtWriteTime"; this.txtWriteTime.Name = "txtWriteTime";
this.txtWriteTime.Size = new System.Drawing.Size(66, 23); this.txtWriteTime.Size = new System.Drawing.Size(66, 23);
...@@ -221,7 +231,7 @@ ...@@ -221,7 +231,7 @@
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label5.Location = new System.Drawing.Point(101, 74); this.label5.Location = new System.Drawing.Point(203, 74);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(60, 17); this.label5.Size = new System.Drawing.Size(60, 17);
this.label5.TabIndex = 278; this.label5.TabIndex = 278;
...@@ -262,7 +272,7 @@ ...@@ -262,7 +272,7 @@
this.groupBox4.Controls.Add(this.tableLayoutPanel2); this.groupBox4.Controls.Add(this.tableLayoutPanel2);
this.groupBox4.Location = new System.Drawing.Point(251, 6); this.groupBox4.Location = new System.Drawing.Point(251, 6);
this.groupBox4.Name = "groupBox4"; this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(240, 387); this.groupBox4.Size = new System.Drawing.Size(240, 503);
this.groupBox4.TabIndex = 104; this.groupBox4.TabIndex = 104;
this.groupBox4.TabStop = false; this.groupBox4.TabStop = false;
this.groupBox4.Text = "DO列表"; this.groupBox4.Text = "DO列表";
...@@ -279,7 +289,7 @@ ...@@ -279,7 +289,7 @@
this.tableLayoutPanel2.RowCount = 2; this.tableLayoutPanel2.RowCount = 2;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(229, 367); this.tableLayoutPanel2.Size = new System.Drawing.Size(229, 483);
this.tableLayoutPanel2.TabIndex = 103; this.tableLayoutPanel2.TabIndex = 103;
// //
// groupBox3 // groupBox3
...@@ -289,7 +299,7 @@ ...@@ -289,7 +299,7 @@
this.groupBox3.Controls.Add(this.tableLayoutPanel1); this.groupBox3.Controls.Add(this.tableLayoutPanel1);
this.groupBox3.Location = new System.Drawing.Point(6, 6); this.groupBox3.Location = new System.Drawing.Point(6, 6);
this.groupBox3.Name = "groupBox3"; this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(240, 387); this.groupBox3.Size = new System.Drawing.Size(240, 503);
this.groupBox3.TabIndex = 103; this.groupBox3.TabIndex = 103;
this.groupBox3.TabStop = false; this.groupBox3.TabStop = false;
this.groupBox3.Text = "DI列表"; this.groupBox3.Text = "DI列表";
...@@ -306,129 +316,269 @@ ...@@ -306,129 +316,269 @@
this.tableLayoutPanel1.RowCount = 2; this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(229, 367); this.tableLayoutPanel1.Size = new System.Drawing.Size(229, 483);
this.tableLayoutPanel1.TabIndex = 102; this.tableLayoutPanel1.TabIndex = 102;
// //
// groupBox5 // groupDo
// //
this.groupBox5.Controls.Add(this.btnClampWork); this.groupDo.Controls.Add(this.HY_LongL_StopDown);
this.groupBox5.Controls.Add(this.btnMoveTake); this.groupDo.Controls.Add(this.HY_OL_StopCylinder_Down);
this.groupBox5.Controls.Add(this.btnFrontStopDown); this.groupDo.Controls.Add(this.HY_ShortL_StopDown);
this.groupBox5.Controls.Add(this.btnLocation_Up); this.groupDo.Controls.Add(this.HY_OL_StopCylinder_Up);
this.groupBox5.Controls.Add(this.btnStopDown); this.groupDo.Controls.Add(this.HY_StopCylinder_Down);
this.groupBox5.Controls.Add(this.btnLineRun); this.groupDo.Controls.Add(this.HY_StopCylinder_Up);
this.groupBox5.Controls.Add(this.btnTopCylinder_Up); this.groupDo.Controls.Add(this.HY_ClampCylinder_Relax);
this.groupBox5.Controls.Add(this.btnLineBackRun); this.groupDo.Controls.Add(this.HY_MoveCylinder_Give);
this.groupBox5.Location = new System.Drawing.Point(497, 190); this.groupDo.Controls.Add(this.HY_LocationCylinder_Down);
this.groupBox5.Name = "groupBox5"; this.groupDo.Controls.Add(this.HY_TopCylinder_Down);
this.groupBox5.Size = new System.Drawing.Size(400, 317); this.groupDo.Controls.Add(this.HY_ClampCylinder_Work);
this.groupBox5.TabIndex = 255; this.groupDo.Controls.Add(this.HY_MoveCylinder_Take);
this.groupBox5.TabStop = false; this.groupDo.Controls.Add(this.HY_FrontStopDown);
this.groupBox5.Text = "IO操作测试"; this.groupDo.Controls.Add(this.HY_LocationCylinder_Up);
// this.groupDo.Controls.Add(this.HY_StopDown);
// btnClampWork this.groupDo.Controls.Add(this.HY_LineRun);
// this.groupDo.Controls.Add(this.HY_TopCylinder_Up);
this.btnClampWork.BackColor = System.Drawing.Color.White; this.groupDo.Controls.Add(this.HY_LineBackRun);
this.btnClampWork.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.groupDo.Location = new System.Drawing.Point(497, 188);
this.btnClampWork.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupDo.Name = "groupDo";
this.btnClampWork.Location = new System.Drawing.Point(173, 140); this.groupDo.Size = new System.Drawing.Size(731, 195);
this.btnClampWork.Name = "btnClampWork"; this.groupDo.TabIndex = 255;
this.btnClampWork.Size = new System.Drawing.Size(140, 34); this.groupDo.TabStop = false;
this.btnClampWork.TabIndex = 265; this.groupDo.Text = "IO操作测试";
this.btnClampWork.Text = "夹料气缸夹紧"; //
this.btnClampWork.UseVisualStyleBackColor = false; // HY_LongL_StopDown
this.btnClampWork.Click += new System.EventHandler(this.btnClampWork_Click); //
// this.HY_LongL_StopDown.BackColor = System.Drawing.Color.White;
// btnMoveTake this.HY_LongL_StopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
// this.HY_LongL_StopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMoveTake.BackColor = System.Drawing.Color.White; this.HY_LongL_StopDown.Location = new System.Drawing.Point(329, 61);
this.btnMoveTake.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.HY_LongL_StopDown.Name = "HY_LongL_StopDown";
this.btnMoveTake.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.HY_LongL_StopDown.Size = new System.Drawing.Size(140, 34);
this.btnMoveTake.Location = new System.Drawing.Point(173, 101); this.HY_LongL_StopDown.TabIndex = 280;
this.btnMoveTake.Name = "btnMoveTake"; this.HY_LongL_StopDown.Text = "▉ 长线前阻挡下降";
this.btnMoveTake.Size = new System.Drawing.Size(140, 34); this.HY_LongL_StopDown.UseVisualStyleBackColor = false;
this.btnMoveTake.TabIndex = 263; this.HY_LongL_StopDown.Click += new System.EventHandler(this.HY_LongL_StopDown_Click);
this.btnMoveTake.Text = "接驳台取料"; //
this.btnMoveTake.UseVisualStyleBackColor = false; // HY_OL_StopCylinder_Down
this.btnMoveTake.Click += new System.EventHandler(this.btnMoveTake_Click); //
// this.HY_OL_StopCylinder_Down.BackColor = System.Drawing.Color.White;
// btnFrontStopDown this.HY_OL_StopCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
// this.HY_OL_StopCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnFrontStopDown.BackColor = System.Drawing.Color.White; this.HY_OL_StopCylinder_Down.Location = new System.Drawing.Point(495, 60);
this.btnFrontStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.HY_OL_StopCylinder_Down.Name = "HY_OL_StopCylinder_Down";
this.btnFrontStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.HY_OL_StopCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.btnFrontStopDown.Location = new System.Drawing.Point(173, 61); this.HY_OL_StopCylinder_Down.TabIndex = 273;
this.btnFrontStopDown.Name = "btnFrontStopDown"; this.HY_OL_StopCylinder_Down.Text = "出料线侧阻挡下降 ↓";
this.btnFrontStopDown.Size = new System.Drawing.Size(140, 34); this.HY_OL_StopCylinder_Down.UseVisualStyleBackColor = false;
this.btnFrontStopDown.TabIndex = 261; this.HY_OL_StopCylinder_Down.Click += new System.EventHandler(this.HY_OL_StopCylinder_Down_Click);
this.btnFrontStopDown.Text = "托盘前阻挡下降"; //
this.btnFrontStopDown.UseVisualStyleBackColor = false; // HY_ShortL_StopDown
this.btnFrontStopDown.Click += new System.EventHandler(this.btnFrontStopDown_Click); //
// this.HY_ShortL_StopDown.BackColor = System.Drawing.Color.White;
// btnLocation_Up this.HY_ShortL_StopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
// this.HY_ShortL_StopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnLocation_Up.BackColor = System.Drawing.Color.White; this.HY_ShortL_StopDown.Location = new System.Drawing.Point(329, 22);
this.btnLocation_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.HY_ShortL_StopDown.Name = "HY_ShortL_StopDown";
this.btnLocation_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.HY_ShortL_StopDown.Size = new System.Drawing.Size(140, 34);
this.btnLocation_Up.Location = new System.Drawing.Point(17, 140); this.HY_ShortL_StopDown.TabIndex = 279;
this.btnLocation_Up.Name = "btnLocation_Up"; this.HY_ShortL_StopDown.Text = "▉ 短线前阻挡下降";
this.btnLocation_Up.Size = new System.Drawing.Size(140, 34); this.HY_ShortL_StopDown.UseVisualStyleBackColor = false;
this.btnLocation_Up.TabIndex = 260; this.HY_ShortL_StopDown.Click += new System.EventHandler(this.HY_ShortL_StopDown_Click);
this.btnLocation_Up.Text = "横移定位上升"; //
this.btnLocation_Up.UseVisualStyleBackColor = false; // HY_OL_StopCylinder_Up
this.btnLocation_Up.Click += new System.EventHandler(this.btnLocation_Up_Click); //
// this.HY_OL_StopCylinder_Up.BackColor = System.Drawing.Color.White;
// btnStopDown this.HY_OL_StopCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
// this.HY_OL_StopCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnStopDown.BackColor = System.Drawing.Color.White; this.HY_OL_StopCylinder_Up.Location = new System.Drawing.Point(495, 21);
this.btnStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.HY_OL_StopCylinder_Up.Name = "HY_OL_StopCylinder_Up";
this.btnStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.HY_OL_StopCylinder_Up.Size = new System.Drawing.Size(140, 34);
this.btnStopDown.Location = new System.Drawing.Point(173, 22); this.HY_OL_StopCylinder_Up.TabIndex = 272;
this.btnStopDown.Name = "btnStopDown"; this.HY_OL_StopCylinder_Up.Text = "出料线侧阻挡上升 ↑";
this.btnStopDown.Size = new System.Drawing.Size(140, 34); this.HY_OL_StopCylinder_Up.UseVisualStyleBackColor = false;
this.btnStopDown.TabIndex = 258; this.HY_OL_StopCylinder_Up.Click += new System.EventHandler(this.HY_OL_StopCylinder_Up_Click);
this.btnStopDown.Text = "阻挡下降"; //
this.btnStopDown.UseVisualStyleBackColor = false; // HY_StopCylinder_Down
this.btnStopDown.Click += new System.EventHandler(this.btnStopDown_Click); //
// this.HY_StopCylinder_Down.BackColor = System.Drawing.Color.White;
// btnLineRun this.HY_StopCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
// this.HY_StopCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnLineRun.BackColor = System.Drawing.Color.White; this.HY_StopCylinder_Down.Location = new System.Drawing.Point(337, 61);
this.btnLineRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.HY_StopCylinder_Down.Name = "HY_StopCylinder_Down";
this.btnLineRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.HY_StopCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.btnLineRun.Location = new System.Drawing.Point(17, 22); this.HY_StopCylinder_Down.TabIndex = 271;
this.btnLineRun.Name = "btnLineRun"; this.HY_StopCylinder_Down.Text = "阻挡气缸下降 ↓";
this.btnLineRun.Size = new System.Drawing.Size(140, 34); this.HY_StopCylinder_Down.UseVisualStyleBackColor = false;
this.btnLineRun.TabIndex = 256; this.HY_StopCylinder_Down.Click += new System.EventHandler(this.HY_StopCylinder_Down_Click);
this.btnLineRun.Text = "横移电机正转>>"; //
this.btnLineRun.UseVisualStyleBackColor = false; // HY_StopCylinder_Up
this.btnLineRun.Click += new System.EventHandler(this.btnLineRun_Click); //
// this.HY_StopCylinder_Up.BackColor = System.Drawing.Color.White;
// btnTopCylinder_Up this.HY_StopCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
// this.HY_StopCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnTopCylinder_Up.BackColor = System.Drawing.Color.White; this.HY_StopCylinder_Up.Location = new System.Drawing.Point(337, 22);
this.btnTopCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.HY_StopCylinder_Up.Name = "HY_StopCylinder_Up";
this.btnTopCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.HY_StopCylinder_Up.Size = new System.Drawing.Size(140, 34);
this.btnTopCylinder_Up.Location = new System.Drawing.Point(17, 101); this.HY_StopCylinder_Up.TabIndex = 270;
this.btnTopCylinder_Up.Name = "btnTopCylinder_Up"; this.HY_StopCylinder_Up.Text = "阻挡气缸上升 ↑";
this.btnTopCylinder_Up.Size = new System.Drawing.Size(140, 34); this.HY_StopCylinder_Up.UseVisualStyleBackColor = false;
this.btnTopCylinder_Up.TabIndex = 255; this.HY_StopCylinder_Up.Click += new System.EventHandler(this.HY_StopCylinder_Up_Click);
this.btnTopCylinder_Up.Text = "横移顶升上升"; //
this.btnTopCylinder_Up.UseVisualStyleBackColor = false; // HY_ClampCylinder_Relax
this.btnTopCylinder_Up.Click += new System.EventHandler(this.btnTopCylinder_Up_Click); //
// this.HY_ClampCylinder_Relax.BackColor = System.Drawing.Color.White;
// btnLineBackRun this.HY_ClampCylinder_Relax.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
// this.HY_ClampCylinder_Relax.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnLineBackRun.BackColor = System.Drawing.Color.White; this.HY_ClampCylinder_Relax.Location = new System.Drawing.Point(495, 146);
this.btnLineBackRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.HY_ClampCylinder_Relax.Name = "HY_ClampCylinder_Relax";
this.btnLineBackRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.HY_ClampCylinder_Relax.Size = new System.Drawing.Size(140, 34);
this.btnLineBackRun.Location = new System.Drawing.Point(17, 61); this.HY_ClampCylinder_Relax.TabIndex = 269;
this.btnLineBackRun.Name = "btnLineBackRun"; this.HY_ClampCylinder_Relax.Text = "夹料气缸放松";
this.btnLineBackRun.Size = new System.Drawing.Size(140, 34); this.HY_ClampCylinder_Relax.UseVisualStyleBackColor = false;
this.btnLineBackRun.TabIndex = 246; this.HY_ClampCylinder_Relax.Click += new System.EventHandler(this.HY_ClampCylinder_Relax_Click);
this.btnLineBackRun.Text = "横移电机反转<<"; //
this.btnLineBackRun.UseVisualStyleBackColor = false; // HY_MoveCylinder_Give
this.btnLineBackRun.Click += new System.EventHandler(this.btnLineBackRun_Click); //
this.HY_MoveCylinder_Give.BackColor = System.Drawing.Color.White;
this.HY_MoveCylinder_Give.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.HY_MoveCylinder_Give.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.HY_MoveCylinder_Give.Location = new System.Drawing.Point(337, 147);
this.HY_MoveCylinder_Give.Name = "HY_MoveCylinder_Give";
this.HY_MoveCylinder_Give.Size = new System.Drawing.Size(140, 34);
this.HY_MoveCylinder_Give.TabIndex = 268;
this.HY_MoveCylinder_Give.Text = "接驳台放料";
this.HY_MoveCylinder_Give.UseVisualStyleBackColor = false;
this.HY_MoveCylinder_Give.Click += new System.EventHandler(this.HY_MoveCylinder_Give_Click);
//
// HY_LocationCylinder_Down
//
this.HY_LocationCylinder_Down.BackColor = System.Drawing.Color.White;
this.HY_LocationCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.HY_LocationCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.HY_LocationCylinder_Down.Location = new System.Drawing.Point(173, 147);
this.HY_LocationCylinder_Down.Name = "HY_LocationCylinder_Down";
this.HY_LocationCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.HY_LocationCylinder_Down.TabIndex = 267;
this.HY_LocationCylinder_Down.Text = "横移定位下降 ↓";
this.HY_LocationCylinder_Down.UseVisualStyleBackColor = false;
this.HY_LocationCylinder_Down.Click += new System.EventHandler(this.HY_LocationCylinder_Down1_Click);
//
// HY_TopCylinder_Down
//
this.HY_TopCylinder_Down.BackColor = System.Drawing.Color.White;
this.HY_TopCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.HY_TopCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.HY_TopCylinder_Down.Location = new System.Drawing.Point(17, 60);
this.HY_TopCylinder_Down.Name = "HY_TopCylinder_Down";
this.HY_TopCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.HY_TopCylinder_Down.TabIndex = 266;
this.HY_TopCylinder_Down.Text = "横移顶升下降 ↓";
this.HY_TopCylinder_Down.UseVisualStyleBackColor = false;
this.HY_TopCylinder_Down.Click += new System.EventHandler(this.HY_TopCylinder_Down_Click);
//
// HY_ClampCylinder_Work
//
this.HY_ClampCylinder_Work.BackColor = System.Drawing.Color.White;
this.HY_ClampCylinder_Work.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.HY_ClampCylinder_Work.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.HY_ClampCylinder_Work.Location = new System.Drawing.Point(495, 107);
this.HY_ClampCylinder_Work.Name = "HY_ClampCylinder_Work";
this.HY_ClampCylinder_Work.Size = new System.Drawing.Size(140, 34);
this.HY_ClampCylinder_Work.TabIndex = 265;
this.HY_ClampCylinder_Work.Text = "夹料气缸夹紧";
this.HY_ClampCylinder_Work.UseVisualStyleBackColor = false;
this.HY_ClampCylinder_Work.Click += new System.EventHandler(this.btnClampWork_Click);
//
// HY_MoveCylinder_Take
//
this.HY_MoveCylinder_Take.BackColor = System.Drawing.Color.White;
this.HY_MoveCylinder_Take.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.HY_MoveCylinder_Take.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.HY_MoveCylinder_Take.Location = new System.Drawing.Point(337, 108);
this.HY_MoveCylinder_Take.Name = "HY_MoveCylinder_Take";
this.HY_MoveCylinder_Take.Size = new System.Drawing.Size(140, 34);
this.HY_MoveCylinder_Take.TabIndex = 263;
this.HY_MoveCylinder_Take.Text = "接驳台取料";
this.HY_MoveCylinder_Take.UseVisualStyleBackColor = false;
this.HY_MoveCylinder_Take.Click += new System.EventHandler(this.btnMoveTake_Click);
//
// HY_FrontStopDown
//
this.HY_FrontStopDown.BackColor = System.Drawing.Color.White;
this.HY_FrontStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.HY_FrontStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.HY_FrontStopDown.Location = new System.Drawing.Point(173, 60);
this.HY_FrontStopDown.Name = "HY_FrontStopDown";
this.HY_FrontStopDown.Size = new System.Drawing.Size(140, 34);
this.HY_FrontStopDown.TabIndex = 261;
this.HY_FrontStopDown.Text = "▉ 托盘前阻挡下降";
this.HY_FrontStopDown.UseVisualStyleBackColor = false;
this.HY_FrontStopDown.Click += new System.EventHandler(this.btnFrontStopDown_Click);
//
// HY_LocationCylinder_Up
//
this.HY_LocationCylinder_Up.BackColor = System.Drawing.Color.White;
this.HY_LocationCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.HY_LocationCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.HY_LocationCylinder_Up.Location = new System.Drawing.Point(173, 108);
this.HY_LocationCylinder_Up.Name = "HY_LocationCylinder_Up";
this.HY_LocationCylinder_Up.Size = new System.Drawing.Size(140, 34);
this.HY_LocationCylinder_Up.TabIndex = 260;
this.HY_LocationCylinder_Up.Text = "横移定位上升 ↑";
this.HY_LocationCylinder_Up.UseVisualStyleBackColor = false;
this.HY_LocationCylinder_Up.Click += new System.EventHandler(this.btnLocation_Up_Click);
//
// HY_StopDown
//
this.HY_StopDown.BackColor = System.Drawing.Color.White;
this.HY_StopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.HY_StopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.HY_StopDown.Location = new System.Drawing.Point(173, 21);
this.HY_StopDown.Name = "HY_StopDown";
this.HY_StopDown.Size = new System.Drawing.Size(140, 34);
this.HY_StopDown.TabIndex = 258;
this.HY_StopDown.Text = "▉ 托盘阻挡下降";
this.HY_StopDown.UseVisualStyleBackColor = false;
this.HY_StopDown.Click += new System.EventHandler(this.btnStopDown_Click);
//
// HY_LineRun
//
this.HY_LineRun.BackColor = System.Drawing.Color.White;
this.HY_LineRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.HY_LineRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.HY_LineRun.Location = new System.Drawing.Point(17, 108);
this.HY_LineRun.Name = "HY_LineRun";
this.HY_LineRun.Size = new System.Drawing.Size(140, 34);
this.HY_LineRun.TabIndex = 256;
this.HY_LineRun.Text = "横移电机正转>>";
this.HY_LineRun.UseVisualStyleBackColor = false;
this.HY_LineRun.Click += new System.EventHandler(this.btnLineRun_Click);
//
// HY_TopCylinder_Up
//
this.HY_TopCylinder_Up.BackColor = System.Drawing.Color.White;
this.HY_TopCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.HY_TopCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.HY_TopCylinder_Up.Location = new System.Drawing.Point(17, 21);
this.HY_TopCylinder_Up.Name = "HY_TopCylinder_Up";
this.HY_TopCylinder_Up.Size = new System.Drawing.Size(140, 34);
this.HY_TopCylinder_Up.TabIndex = 255;
this.HY_TopCylinder_Up.Text = "横移顶升上升 ↑";
this.HY_TopCylinder_Up.UseVisualStyleBackColor = false;
this.HY_TopCylinder_Up.Click += new System.EventHandler(this.btnTopCylinder_Up_Click);
//
// HY_LineBackRun
//
this.HY_LineBackRun.BackColor = System.Drawing.Color.White;
this.HY_LineBackRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.HY_LineBackRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.HY_LineBackRun.Location = new System.Drawing.Point(17, 147);
this.HY_LineBackRun.Name = "HY_LineBackRun";
this.HY_LineBackRun.Size = new System.Drawing.Size(140, 34);
this.HY_LineBackRun.TabIndex = 246;
this.HY_LineBackRun.Text = "横移电机反转<<";
this.HY_LineBackRun.UseVisualStyleBackColor = false;
this.HY_LineBackRun.Click += new System.EventHandler(this.btnLineBackRun_Click);
// //
// chbDebug // chbDebug
// //
...@@ -539,10 +689,9 @@ ...@@ -539,10 +689,9 @@
// tabPage1 // tabPage1
// //
this.tabPage1.Controls.Add(this.groupBox6); this.tabPage1.Controls.Add(this.groupBox6);
this.tabPage1.Controls.Add(this.lblMoveInfo);
this.tabPage1.Controls.Add(this.groupBox3); this.tabPage1.Controls.Add(this.groupBox3);
this.tabPage1.Controls.Add(this.groupBox4); this.tabPage1.Controls.Add(this.groupBox4);
this.tabPage1.Controls.Add(this.groupBox5); this.tabPage1.Controls.Add(this.groupDo);
this.tabPage1.Controls.Add(this.groupBox1); this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Location = new System.Drawing.Point(4, 26); this.tabPage1.Location = new System.Drawing.Point(4, 26);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
...@@ -558,6 +707,7 @@ ...@@ -558,6 +707,7 @@
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox6.Controls.Add(this.lblHyInfo); this.groupBox6.Controls.Add(this.lblHyInfo);
this.groupBox6.Controls.Add(this.lblMoveInfo);
this.groupBox6.Controls.Add(this.lblTrayNum); this.groupBox6.Controls.Add(this.lblTrayNum);
this.groupBox6.Controls.Add(this.lblThisSta); this.groupBox6.Controls.Add(this.lblThisSta);
this.groupBox6.Location = new System.Drawing.Point(497, 6); this.groupBox6.Location = new System.Drawing.Point(497, 6);
...@@ -578,6 +728,17 @@ ...@@ -578,6 +728,17 @@
this.lblHyInfo.TabIndex = 281; this.lblHyInfo.TabIndex = 281;
this.lblHyInfo.Text = "运动信息:"; this.lblHyInfo.Text = "运动信息:";
// //
// lblMoveInfo
//
this.lblMoveInfo.AutoSize = true;
this.lblMoveInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMoveInfo.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblMoveInfo.Location = new System.Drawing.Point(16, 96);
this.lblMoveInfo.Name = "lblMoveInfo";
this.lblMoveInfo.Size = new System.Drawing.Size(68, 17);
this.lblMoveInfo.TabIndex = 280;
this.lblMoveInfo.Text = "运动信息:";
//
// lblTrayNum // lblTrayNum
// //
this.lblTrayNum.AutoSize = true; this.lblTrayNum.AutoSize = true;
...@@ -589,17 +750,6 @@ ...@@ -589,17 +750,6 @@
this.lblTrayNum.TabIndex = 276; this.lblTrayNum.TabIndex = 276;
this.lblTrayNum.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.lblTrayNum.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// //
// lblMoveInfo
//
this.lblMoveInfo.AutoSize = true;
this.lblMoveInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMoveInfo.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblMoveInfo.Location = new System.Drawing.Point(914, 215);
this.lblMoveInfo.Name = "lblMoveInfo";
this.lblMoveInfo.Size = new System.Drawing.Size(68, 17);
this.lblMoveInfo.TabIndex = 280;
this.lblMoveInfo.Text = "运动信息:";
//
// tabPage2 // tabPage2
// //
this.tabPage2.Controls.Add(this.groupDetial); this.tabPage2.Controls.Add(this.groupDetial);
...@@ -937,10 +1087,9 @@ ...@@ -937,10 +1087,9 @@
this.groupBox1.PerformLayout(); this.groupBox1.PerformLayout();
this.groupBox4.ResumeLayout(false); this.groupBox4.ResumeLayout(false);
this.groupBox3.ResumeLayout(false); this.groupBox3.ResumeLayout(false);
this.groupBox5.ResumeLayout(false); this.groupDo.ResumeLayout(false);
this.tabControl1.ResumeLayout(false); this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false); this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.groupBox6.ResumeLayout(false); this.groupBox6.ResumeLayout(false);
this.groupBox6.PerformLayout(); this.groupBox6.PerformLayout();
this.tabPage2.ResumeLayout(false); this.tabPage2.ResumeLayout(false);
...@@ -964,9 +1113,9 @@ ...@@ -964,9 +1113,9 @@
private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.ComboBox cmbWriteIO; private System.Windows.Forms.ComboBox cmbWriteIO;
private System.Windows.Forms.TextBox txtSlaveId; private System.Windows.Forms.TextBox txtSlaveId;
private System.Windows.Forms.GroupBox groupBox5; private System.Windows.Forms.GroupBox groupDo;
private System.Windows.Forms.Button btnTopCylinder_Up; private System.Windows.Forms.Button HY_TopCylinder_Up;
private System.Windows.Forms.Button btnLineBackRun; private System.Windows.Forms.Button HY_LineBackRun;
private System.Windows.Forms.Label lblThisSta; private System.Windows.Forms.Label lblThisSta;
private System.Windows.Forms.Label lblStoreStatus; private System.Windows.Forms.Label lblStoreStatus;
private System.Windows.Forms.Button btnStart; private System.Windows.Forms.Button btnStart;
...@@ -974,8 +1123,8 @@ ...@@ -974,8 +1123,8 @@
private System.Windows.Forms.Button btnReset; private System.Windows.Forms.Button btnReset;
private System.Windows.Forms.Button btnOutStore; private System.Windows.Forms.Button btnOutStore;
private System.Windows.Forms.CheckBox chbDebug; private System.Windows.Forms.CheckBox chbDebug;
private System.Windows.Forms.Button btnStopDown; private System.Windows.Forms.Button HY_StopDown;
private System.Windows.Forms.Button btnLineRun; private System.Windows.Forms.Button HY_LineRun;
private System.Windows.Forms.TabControl tabControl1; private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1; private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Panel panel1;
...@@ -1014,11 +1163,21 @@ ...@@ -1014,11 +1163,21 @@
private System.Windows.Forms.ComboBox cmbDSize; private System.Windows.Forms.ComboBox cmbDSize;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnClose; private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Button btnLocation_Up; private System.Windows.Forms.Button HY_LocationCylinder_Up;
private System.Windows.Forms.Button btnFrontStopDown; private System.Windows.Forms.Button HY_FrontStopDown;
private System.Windows.Forms.Button btnClampWork; private System.Windows.Forms.Button HY_ClampCylinder_Work;
private System.Windows.Forms.Button btnMoveTake; private System.Windows.Forms.Button HY_MoveCylinder_Take;
private System.Windows.Forms.Label lblHyInfo; private System.Windows.Forms.Label lblHyInfo;
private System.Windows.Forms.Button HY_TopCylinder_Down;
private System.Windows.Forms.Button HY_LocationCylinder_Down;
private System.Windows.Forms.Button HY_ClampCylinder_Relax;
private System.Windows.Forms.Button HY_MoveCylinder_Give;
private System.Windows.Forms.Button HY_OL_StopCylinder_Down;
private System.Windows.Forms.Button HY_OL_StopCylinder_Up;
private System.Windows.Forms.Button HY_StopCylinder_Down;
private System.Windows.Forms.Button HY_StopCylinder_Up;
private System.Windows.Forms.Button HY_LongL_StopDown;
private System.Windows.Forms.Button HY_ShortL_StopDown;
} }
} }
...@@ -58,6 +58,7 @@ namespace OnlineStore.AssemblyLine ...@@ -58,6 +58,7 @@ namespace OnlineStore.AssemblyLine
this.Text = equipBean.Name; this.Text = equipBean.Name;
txtP1.Text = equipBean.Config.UpDownAxisP1.ToString(); txtP1.Text = equipBean.Config.UpDownAxisP1.ToString();
lblHyInfo.Text = equipBean.GetHYDesc(); lblHyInfo.Text = equipBean.GetHYDesc();
LoadDOBtn(groupDo);
IsLoad = true; IsLoad = true;
} }
...@@ -116,7 +117,7 @@ namespace OnlineStore.AssemblyLine ...@@ -116,7 +117,7 @@ namespace OnlineStore.AssemblyLine
if (this.Visible) if (this.Visible)
{ {
ReadIOList(); ReadIOList();
//lblTrayNum.Text = "托盘编码:" + TrayManager.GetTrayNum(equipBean.DeviceID); ReadBtnDO();
} }
lblName.BackColor = equipBean.GetShowColor(); lblName.BackColor = equipBean.GetShowColor();
if (equipBean.runStatus > LineRunStatus.Wait) if (equipBean.runStatus > LineRunStatus.Wait)
...@@ -320,51 +321,10 @@ namespace OnlineStore.AssemblyLine ...@@ -320,51 +321,10 @@ namespace OnlineStore.AssemblyLine
} }
} }
private void btnLineRun_Click(object sender, EventArgs e)
{
if (equipBean.Config.DOList.ContainsKey(IO_Type.HY_LineBackRun))
{
equipBean.IOMove(IO_Type.HY_LineBackRun, IO_VALUE.LOW);
}
BtnMove(btnLineRun, "横移电机正转>>", "横移电机停止", IO_Type.HY_LineRun);
}
private void btnStopDown_Click(object sender, EventArgs e)
{
BtnMove(btnStopDown, "阻挡下降", "阻挡上升", IO_Type.HY_StopDown);
}
private void btnLineBackRun_Click(object sender, EventArgs e)
{
equipBean.IOMove(IO_Type.HY_LineRun, IO_VALUE.LOW);
BtnMove(btnLineBackRun, "横移电机反转<<", "横移电机停止", IO_Type.HY_LineBackRun);
}
private void btnTopCylinder_Up_Click(object sender, EventArgs e)
{
BtnMove(btnTopCylinder_Up, "横移顶升上升", "横移顶升下降", IO_Type.HY_TopCylinder_Down, IO_Type.HY_TopCylinder_Up);
}
private void btnFrontStopDown_Click(object sender, EventArgs e)
{
BtnMove(btnFrontStopDown, "托盘前阻挡下降", "托盘前阻挡上升", IO_Type.HY_FrontStopDown);
}
private void btnLocation_Up_Click(object sender, EventArgs e)
{
BtnMove(btnLocation_Up, "横移定位上升", "横移定位下降", IO_Type.HY_LocationCylinder_Down, IO_Type.HY_LocationCylinder_Up);
}
private void btnMoveTake_Click(object sender, EventArgs e)
{
BtnMove(btnMoveTake, "接驳台取料", "接驳台放料", IO_Type.HY_MoveCylinder_Give, IO_Type.HY_MoveCylinder_Take);
}
private void btnClampWork_Click(object sender, EventArgs e)
{
BtnMove(btnClampWork, "夹料气缸夹紧", "夹料气缸放松", IO_Type.HY_MoveCylinder_Give, IO_Type.HY_MoveCylinder_Take);
}
private void btnCloseAll_Click(object sender, EventArgs e) private void btnCloseAll_Click(object sender, EventArgs e)
{ {
foreach (Control con in groupBox5.Controls) foreach (Control con in groupDo.Controls)
{ {
if (con is Button) if (con is Button)
{ {
...@@ -538,6 +498,93 @@ namespace OnlineStore.AssemblyLine ...@@ -538,6 +498,93 @@ namespace OnlineStore.AssemblyLine
{ {
this.Close(); this.Close();
} }
private void btnLineRun_Click(object sender, EventArgs e)
{
equipBean.LineRun();
}
private void btnStopDown_Click(object sender, EventArgs e)
{
DoBtnClick(sender);
}
private void btnLineBackRun_Click(object sender, EventArgs e)
{
equipBean.LineStop();
}
private void btnFrontStopDown_Click(object sender, EventArgs e)
{
DoBtnClick(sender);
}
private void btnTopCylinder_Up_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.HY_TopCylinder_Down, IO_Type.HY_TopCylinder_Up);
}
private void btnLocation_Up_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.HY_LocationCylinder_Down, IO_Type.HY_LocationCylinder_Up);
}
private void btnMoveTake_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.HY_MoveCylinder_Give, IO_Type.HY_MoveCylinder_Take);
}
private void btnClampWork_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.HY_ClampCylinder_Relax, IO_Type.HY_ClampCylinder_Work);
}
private void HY_ShortL_StopDown_Click(object sender, EventArgs e)
{
DoBtnClick(sender);
}
private void HY_LongL_StopDown_Click(object sender, EventArgs e)
{
DoBtnClick(sender);
}
private void HY_StopCylinder_Up_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.HY_StopCylinder_Down, IO_Type.HY_StopCylinder_Up);
}
private void HY_StopCylinder_Down_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.HY_StopCylinder_Up, IO_Type.HY_StopCylinder_Down);
}
private void HY_OL_StopCylinder_Up_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.HY_OL_StopCylinder_Down, IO_Type.HY_OL_StopCylinder_Up);
}
private void HY_OL_StopCylinder_Down_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.HY_OL_StopCylinder_Up, IO_Type.HY_OL_StopCylinder_Down);
}
private void HY_TopCylinder_Down_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.HY_TopCylinder_Up, IO_Type.HY_TopCylinder_Down);
}
private void HY_LocationCylinder_Down1_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.HY_LocationCylinder_Up, IO_Type.HY_LocationCylinder_Down);
}
private void HY_MoveCylinder_Give_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.HY_MoveCylinder_Take, IO_Type.HY_MoveCylinder_Give);
}
private void HY_ClampCylinder_Relax_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.HY_ClampCylinder_Work, IO_Type.HY_ClampCylinder_Relax);
}
} }
} }
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.txtDOIndex = new System.Windows.Forms.TextBox(); this.txtDOIndex = new System.Windows.Forms.TextBox();
this.chbAutoRead = new System.Windows.Forms.CheckBox();
this.txtDoName = new System.Windows.Forms.TextBox(); this.txtDoName = new System.Windows.Forms.TextBox();
this.label17 = new System.Windows.Forms.Label(); this.label17 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label(); this.label14 = new System.Windows.Forms.Label();
...@@ -36,22 +35,19 @@ ...@@ -36,22 +35,19 @@
this.groupBox2 = new System.Windows.Forms.GroupBox(); this.groupBox2 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox5 = new System.Windows.Forms.GroupBox(); this.groupBox5 = new System.Windows.Forms.GroupBox();
this.btnFrontStopDown = new System.Windows.Forms.Button();
this.btnStopDown = new System.Windows.Forms.Button();
this.lblTrayNum = new System.Windows.Forms.Label(); this.lblTrayNum = new System.Windows.Forms.Label();
this.btnDriveMotor_Run = new System.Windows.Forms.Button();
this.btnFrontStopDown = new System.Windows.Forms.Button();
this.btnCloseAll = new System.Windows.Forms.Button(); this.btnCloseAll = new System.Windows.Forms.Button();
this.btnStopDown = new System.Windows.Forms.Button();
this.btnTopDown = new System.Windows.Forms.Button(); this.btnTopDown = new System.Windows.Forms.Button();
this.btnDriveMotor_Run = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout(); this.groupBox4.SuspendLayout();
this.groupBox3.SuspendLayout(); this.groupBox3.SuspendLayout();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
this.groupBox5.SuspendLayout(); this.groupBox5.SuspendLayout();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.groupBox6.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// timer1 // timer1
...@@ -63,7 +59,6 @@ ...@@ -63,7 +59,6 @@
// //
this.groupBox1.Controls.Add(this.button1); this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Controls.Add(this.txtDOIndex); this.groupBox1.Controls.Add(this.txtDOIndex);
this.groupBox1.Controls.Add(this.chbAutoRead);
this.groupBox1.Controls.Add(this.txtDoName); this.groupBox1.Controls.Add(this.txtDoName);
this.groupBox1.Controls.Add(this.label17); this.groupBox1.Controls.Add(this.label17);
this.groupBox1.Controls.Add(this.label14); this.groupBox1.Controls.Add(this.label14);
...@@ -72,9 +67,9 @@ ...@@ -72,9 +67,9 @@
this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.cmbWriteIO); this.groupBox1.Controls.Add(this.cmbWriteIO);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(581, 3); this.groupBox1.Location = new System.Drawing.Point(573, 3);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(383, 120); this.groupBox1.Size = new System.Drawing.Size(400, 120);
this.groupBox1.TabIndex = 105; this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入"; this.groupBox1.Text = "DO写入";
...@@ -83,9 +78,9 @@ ...@@ -83,9 +78,9 @@
// //
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.button1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(238, 78); this.button1.Location = new System.Drawing.Point(138, 80);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(87, 34); this.button1.Size = new System.Drawing.Size(110, 34);
this.button1.TabIndex = 256; this.button1.TabIndex = 256;
this.button1.Text = "关闭"; this.button1.Text = "关闭";
this.button1.UseVisualStyleBackColor = true; this.button1.UseVisualStyleBackColor = true;
...@@ -94,35 +89,20 @@ ...@@ -94,35 +89,20 @@
// txtDOIndex // txtDOIndex
// //
this.txtDOIndex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtDOIndex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDOIndex.Location = new System.Drawing.Point(277, 50); this.txtDOIndex.Location = new System.Drawing.Point(191, 52);
this.txtDOIndex.MaxLength = 10; this.txtDOIndex.MaxLength = 10;
this.txtDOIndex.Name = "txtDOIndex"; this.txtDOIndex.Name = "txtDOIndex";
this.txtDOIndex.Size = new System.Drawing.Size(52, 23); this.txtDOIndex.Size = new System.Drawing.Size(52, 23);
this.txtDOIndex.TabIndex = 242; this.txtDOIndex.TabIndex = 242;
this.txtDOIndex.Text = "0"; this.txtDOIndex.Text = "0";
// //
// chbAutoRead
//
this.chbAutoRead.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chbAutoRead.AutoSize = true;
this.chbAutoRead.Checked = true;
this.chbAutoRead.CheckState = System.Windows.Forms.CheckState.Checked;
this.chbAutoRead.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbAutoRead.Location = new System.Drawing.Point(314, 20);
this.chbAutoRead.Name = "chbAutoRead";
this.chbAutoRead.Size = new System.Drawing.Size(75, 21);
this.chbAutoRead.TabIndex = 244;
this.chbAutoRead.Text = "自动读取";
this.chbAutoRead.UseVisualStyleBackColor = true;
this.chbAutoRead.Visible = false;
//
// txtDoName // txtDoName
// //
this.txtDoName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtDoName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDoName.Location = new System.Drawing.Point(71, 50); this.txtDoName.Location = new System.Drawing.Point(75, 52);
this.txtDoName.MaxLength = 10; this.txtDoName.MaxLength = 10;
this.txtDoName.Name = "txtDoName"; this.txtDoName.Name = "txtDoName";
this.txtDoName.Size = new System.Drawing.Size(133, 23); this.txtDoName.Size = new System.Drawing.Size(52, 23);
this.txtDoName.TabIndex = 241; this.txtDoName.TabIndex = 241;
this.txtDoName.Text = "0"; this.txtDoName.Text = "0";
// //
...@@ -131,7 +111,7 @@ ...@@ -131,7 +111,7 @@
this.label17.AutoSize = true; this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label17.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label17.Location = new System.Drawing.Point(19, 53); this.label17.Location = new System.Drawing.Point(19, 55);
this.label17.Name = "label17"; this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(46, 17); this.label17.Size = new System.Drawing.Size(46, 17);
this.label17.TabIndex = 240; this.label17.TabIndex = 240;
...@@ -143,7 +123,7 @@ ...@@ -143,7 +123,7 @@
this.label14.AutoSize = true; this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label14.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label14.Location = new System.Drawing.Point(227, 53); this.label14.Location = new System.Drawing.Point(137, 55);
this.label14.Name = "label14"; this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(44, 17); this.label14.Size = new System.Drawing.Size(44, 17);
this.label14.TabIndex = 239; this.label14.TabIndex = 239;
...@@ -154,9 +134,9 @@ ...@@ -154,9 +134,9 @@
// //
this.btnWriteSingleDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnWriteSingleDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnWriteSingleDO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnWriteSingleDO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnWriteSingleDO.Location = new System.Drawing.Point(145, 78); this.btnWriteSingleDO.Location = new System.Drawing.Point(22, 80);
this.btnWriteSingleDO.Name = "btnWriteSingleDO"; this.btnWriteSingleDO.Name = "btnWriteSingleDO";
this.btnWriteSingleDO.Size = new System.Drawing.Size(87, 34); this.btnWriteSingleDO.Size = new System.Drawing.Size(110, 34);
this.btnWriteSingleDO.TabIndex = 232; this.btnWriteSingleDO.TabIndex = 232;
this.btnWriteSingleDO.Text = "打开"; this.btnWriteSingleDO.Text = "打开";
this.btnWriteSingleDO.UseVisualStyleBackColor = true; this.btnWriteSingleDO.UseVisualStyleBackColor = true;
...@@ -165,7 +145,7 @@ ...@@ -165,7 +145,7 @@
// txtWriteTime // txtWriteTime
// //
this.txtWriteTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtWriteTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtWriteTime.Location = new System.Drawing.Point(82, 84); this.txtWriteTime.Location = new System.Drawing.Point(323, 52);
this.txtWriteTime.MaxLength = 10; this.txtWriteTime.MaxLength = 10;
this.txtWriteTime.Name = "txtWriteTime"; this.txtWriteTime.Name = "txtWriteTime";
this.txtWriteTime.Size = new System.Drawing.Size(52, 23); this.txtWriteTime.Size = new System.Drawing.Size(52, 23);
...@@ -177,7 +157,7 @@ ...@@ -177,7 +157,7 @@
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label5.Location = new System.Drawing.Point(19, 87); this.label5.Location = new System.Drawing.Point(253, 55);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(60, 17); this.label5.Size = new System.Drawing.Size(60, 17);
this.label5.TabIndex = 237; this.label5.TabIndex = 237;
...@@ -194,7 +174,7 @@ ...@@ -194,7 +174,7 @@
this.cmbWriteIO.ItemHeight = 22; this.cmbWriteIO.ItemHeight = 22;
this.cmbWriteIO.Location = new System.Drawing.Point(11, 18); this.cmbWriteIO.Location = new System.Drawing.Point(11, 18);
this.cmbWriteIO.Name = "cmbWriteIO"; this.cmbWriteIO.Name = "cmbWriteIO";
this.cmbWriteIO.Size = new System.Drawing.Size(318, 28); this.cmbWriteIO.Size = new System.Drawing.Size(366, 28);
this.cmbWriteIO.TabIndex = 234; this.cmbWriteIO.TabIndex = 234;
this.cmbWriteIO.ValueMember = "ProName"; this.cmbWriteIO.ValueMember = "ProName";
this.cmbWriteIO.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.cmbWriteIO_DrawItem); this.cmbWriteIO.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.cmbWriteIO_DrawItem);
...@@ -288,49 +268,24 @@ ...@@ -288,49 +268,24 @@
// //
this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left))); | System.Windows.Forms.AnchorStyles.Left)));
this.groupBox5.Controls.Add(this.lblTrayNum);
this.groupBox5.Controls.Add(this.btnDriveMotor_Run); this.groupBox5.Controls.Add(this.btnDriveMotor_Run);
this.groupBox5.Controls.Add(this.btnFrontStopDown); this.groupBox5.Controls.Add(this.btnFrontStopDown);
this.groupBox5.Controls.Add(this.btnCloseAll); this.groupBox5.Controls.Add(this.btnCloseAll);
this.groupBox5.Controls.Add(this.btnStopDown); this.groupBox5.Controls.Add(this.btnStopDown);
this.groupBox5.Controls.Add(this.btnTopDown); this.groupBox5.Controls.Add(this.btnTopDown);
this.groupBox5.Location = new System.Drawing.Point(581, 129); this.groupBox5.Location = new System.Drawing.Point(573, 139);
this.groupBox5.Name = "groupBox5"; this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(383, 206); this.groupBox5.Size = new System.Drawing.Size(400, 208);
this.groupBox5.TabIndex = 246; this.groupBox5.TabIndex = 246;
this.groupBox5.TabStop = false; this.groupBox5.TabStop = false;
this.groupBox5.Text = "IO操作测试"; this.groupBox5.Text = "IO操作测试";
// //
// btnFrontStopDown
//
this.btnFrontStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnFrontStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnFrontStopDown.Location = new System.Drawing.Point(32, 22);
this.btnFrontStopDown.Name = "btnFrontStopDown";
this.btnFrontStopDown.Size = new System.Drawing.Size(153, 37);
this.btnFrontStopDown.TabIndex = 276;
this.btnFrontStopDown.Text = "T3-C1前阻挡上升";
this.btnFrontStopDown.UseVisualStyleBackColor = true;
this.btnFrontStopDown.Click += new System.EventHandler(this.btnSw4Location_Click);
//
// btnStopDown
//
this.btnStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnStopDown.Location = new System.Drawing.Point(32, 63);
this.btnStopDown.Name = "btnStopDown";
this.btnStopDown.Size = new System.Drawing.Size(153, 37);
this.btnStopDown.TabIndex = 269;
this.btnStopDown.Text = "T3-C1阻挡上升";
this.btnStopDown.UseVisualStyleBackColor = true;
this.btnStopDown.Click += new System.EventHandler(this.btn34Top_Click);
//
// lblTrayNum // lblTrayNum
// //
this.lblTrayNum.AutoSize = true; this.lblTrayNum.AutoSize = true;
this.lblTrayNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblTrayNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblTrayNum.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.lblTrayNum.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblTrayNum.Location = new System.Drawing.Point(29, 156); this.lblTrayNum.Location = new System.Drawing.Point(571, 361);
this.lblTrayNum.Name = "lblTrayNum"; this.lblTrayNum.Name = "lblTrayNum";
this.lblTrayNum.Size = new System.Drawing.Size(68, 17); this.lblTrayNum.Size = new System.Drawing.Size(68, 17);
this.lblTrayNum.TabIndex = 275; this.lblTrayNum.TabIndex = 275;
...@@ -338,48 +293,72 @@ ...@@ -338,48 +293,72 @@
this.lblTrayNum.TextAlign = System.Drawing.ContentAlignment.BottomRight; this.lblTrayNum.TextAlign = System.Drawing.ContentAlignment.BottomRight;
this.lblTrayNum.Visible = false; this.lblTrayNum.Visible = false;
// //
// btnDriveMotor_Run
//
this.btnDriveMotor_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnDriveMotor_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnDriveMotor_Run.Location = new System.Drawing.Point(194, 32);
this.btnDriveMotor_Run.Name = "btnDriveMotor_Run";
this.btnDriveMotor_Run.Size = new System.Drawing.Size(140, 37);
this.btnDriveMotor_Run.TabIndex = 260;
this.btnDriveMotor_Run.Text = "驱动电机正转";
this.btnDriveMotor_Run.UseVisualStyleBackColor = false;
this.btnDriveMotor_Run.Click += new System.EventHandler(this.btnDriveMotor_Run_Click);
//
// btnFrontStopDown
//
this.btnFrontStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnFrontStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnFrontStopDown.Location = new System.Drawing.Point(22, 32);
this.btnFrontStopDown.Name = "btnFrontStopDown";
this.btnFrontStopDown.Size = new System.Drawing.Size(140, 37);
this.btnFrontStopDown.TabIndex = 276;
this.btnFrontStopDown.Text = "T3-C1前阻挡上升";
this.btnFrontStopDown.UseVisualStyleBackColor = true;
this.btnFrontStopDown.Click += new System.EventHandler(this.btnSw4Location_Click);
//
// btnCloseAll // btnCloseAll
// //
this.btnCloseAll.BackColor = System.Drawing.Color.White; this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(204, 104); this.btnCloseAll.Location = new System.Drawing.Point(194, 114);
this.btnCloseAll.Name = "btnCloseAll"; this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(153, 37); this.btnCloseAll.Size = new System.Drawing.Size(140, 37);
this.btnCloseAll.TabIndex = 274; this.btnCloseAll.TabIndex = 274;
this.btnCloseAll.Text = "关闭所有DO"; this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false; this.btnCloseAll.UseVisualStyleBackColor = false;
this.btnCloseAll.Click += new System.EventHandler(this.btnCloseAll_Click); this.btnCloseAll.Click += new System.EventHandler(this.btnCloseAll_Click);
// //
// btnStopDown
//
this.btnStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnStopDown.Location = new System.Drawing.Point(22, 73);
this.btnStopDown.Name = "btnStopDown";
this.btnStopDown.Size = new System.Drawing.Size(140, 37);
this.btnStopDown.TabIndex = 269;
this.btnStopDown.Text = "T3-C1阻挡上升";
this.btnStopDown.UseVisualStyleBackColor = true;
this.btnStopDown.Click += new System.EventHandler(this.btn34Top_Click);
//
// btnTopDown // btnTopDown
// //
this.btnTopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnTopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnTopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnTopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnTopDown.Location = new System.Drawing.Point(32, 104); this.btnTopDown.Location = new System.Drawing.Point(22, 114);
this.btnTopDown.Name = "btnTopDown"; this.btnTopDown.Name = "btnTopDown";
this.btnTopDown.Size = new System.Drawing.Size(153, 37); this.btnTopDown.Size = new System.Drawing.Size(140, 37);
this.btnTopDown.TabIndex = 262; this.btnTopDown.TabIndex = 262;
this.btnTopDown.Text = "T3-C1顶升上升"; this.btnTopDown.Text = "T3-C1顶升上升";
this.btnTopDown.UseVisualStyleBackColor = true; this.btnTopDown.UseVisualStyleBackColor = true;
this.btnTopDown.Click += new System.EventHandler(this.btnSWRun_Click); this.btnTopDown.Click += new System.EventHandler(this.btnSWRun_Click);
// //
// btnDriveMotor_Run
//
this.btnDriveMotor_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnDriveMotor_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnDriveMotor_Run.Location = new System.Drawing.Point(204, 22);
this.btnDriveMotor_Run.Name = "btnDriveMotor_Run";
this.btnDriveMotor_Run.Size = new System.Drawing.Size(153, 37);
this.btnDriveMotor_Run.TabIndex = 260;
this.btnDriveMotor_Run.Text = "驱动电机正转";
this.btnDriveMotor_Run.UseVisualStyleBackColor = false;
this.btnDriveMotor_Run.Click += new System.EventHandler(this.btnDriveMotor_Run_Click);
//
// panel1 // panel1
// //
this.panel1.AutoScroll = true; this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.lblTrayNum);
this.panel1.Controls.Add(this.groupBox4); this.panel1.Controls.Add(this.groupBox4);
this.panel1.Controls.Add(this.groupBox6);
this.panel1.Controls.Add(this.groupBox3); this.panel1.Controls.Add(this.groupBox3);
this.panel1.Controls.Add(this.groupBox5); this.panel1.Controls.Add(this.groupBox5);
this.panel1.Controls.Add(this.groupBox2); this.panel1.Controls.Add(this.groupBox2);
...@@ -390,35 +369,6 @@ ...@@ -390,35 +369,6 @@
this.panel1.Size = new System.Drawing.Size(983, 571); this.panel1.Size = new System.Drawing.Size(983, 571);
this.panel1.TabIndex = 248; this.panel1.TabIndex = 248;
// //
// groupBox6
//
this.groupBox6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox6.Controls.Add(this.tableLayoutPanel4);
this.groupBox6.Location = new System.Drawing.Point(693, 499);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(225, 64);
this.groupBox6.TabIndex = 105;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "DO列表";
this.groupBox6.Visible = false;
//
// tableLayoutPanel4
//
this.tableLayoutPanel4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel4.AutoScroll = true;
this.tableLayoutPanel4.ColumnCount = 1;
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel4.Location = new System.Drawing.Point(5, 14);
this.tableLayoutPanel4.Name = "tableLayoutPanel4";
this.tableLayoutPanel4.RowCount = 2;
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(214, 44);
this.tableLayoutPanel4.TabIndex = 103;
//
// FrmLineIO // FrmLineIO
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
...@@ -439,9 +389,8 @@ ...@@ -439,9 +389,8 @@
this.groupBox3.ResumeLayout(false); this.groupBox3.ResumeLayout(false);
this.groupBox2.ResumeLayout(false); this.groupBox2.ResumeLayout(false);
this.groupBox5.ResumeLayout(false); this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.groupBox6.ResumeLayout(false); this.panel1.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
...@@ -461,7 +410,6 @@ ...@@ -461,7 +410,6 @@
private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button btnWriteSingleDO; private System.Windows.Forms.Button btnWriteSingleDO;
private System.Windows.Forms.ComboBox cmbWriteIO; private System.Windows.Forms.ComboBox cmbWriteIO;
private System.Windows.Forms.CheckBox chbAutoRead;
private System.Windows.Forms.TextBox txtDoName; private System.Windows.Forms.TextBox txtDoName;
private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
...@@ -474,8 +422,6 @@ ...@@ -474,8 +422,6 @@
private System.Windows.Forms.Label lblTrayNum; private System.Windows.Forms.Label lblTrayNum;
private System.Windows.Forms.Button btnFrontStopDown; private System.Windows.Forms.Button btnFrontStopDown;
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button1;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4;
} }
} }
...@@ -106,7 +106,7 @@ namespace OnlineStore.AssemblyLine ...@@ -106,7 +106,7 @@ namespace OnlineStore.AssemblyLine
private void timer1_Tick(object sender, EventArgs e) private void timer1_Tick(object sender, EventArgs e)
{ {
if (chbAutoRead.Checked && this.Visible) if ( this.Visible)
{ {
ReadIOList(); ReadIOList();
// lblTrayNum.Text = "托盘编码:" + TrayManager.GetTrayNum(0); // lblTrayNum.Text = "托盘编码:" + TrayManager.GetTrayNum(0);
......
...@@ -32,13 +32,30 @@ ...@@ -32,13 +32,30 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmLineStore)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmLineStore));
this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.listView1 = new System.Windows.Forms.ListView();
this.logBox = new System.Windows.Forms.RichTextBox(); this.logBox = new System.Windows.Forms.RichTextBox();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.panel2 = new System.Windows.Forms.Panel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.panel1 = new System.Windows.Forms.Panel();
this.label8 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.lblCID = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.panel3 = new System.Windows.Forms.Panel();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.lblMoveInfo = new System.Windows.Forms.Label(); this.lblMoveInfo = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lblPosId = new System.Windows.Forms.Label(); this.lblPosId = new System.Windows.Forms.Label();
this.btnUpdateStatus = new System.Windows.Forms.Button(); this.btnUpdateStatus = new System.Windows.Forms.Button();
this.txtPosId = new System.Windows.Forms.TextBox(); this.txtPosId = new System.Windows.Forms.TextBox();
this.cmbBoxIndex = new System.Windows.Forms.ComboBox();
this.btnInStoreTset = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.groupBox3 = new System.Windows.Forms.GroupBox(); this.groupBox3 = new System.Windows.Forms.GroupBox();
this.chbInStoNG = new System.Windows.Forms.CheckBox(); this.chbInStoNG = new System.Windows.Forms.CheckBox();
this.cmbTrayType = new System.Windows.Forms.ComboBox(); this.cmbTrayType = new System.Windows.Forms.ComboBox();
...@@ -50,16 +67,7 @@ ...@@ -50,16 +67,7 @@
this.txtTrayPosid = new System.Windows.Forms.TextBox(); this.txtTrayPosid = new System.Windows.Forms.TextBox();
this.cmbTray = new System.Windows.Forms.ComboBox(); this.cmbTray = new System.Windows.Forms.ComboBox();
this.btnUpdateTray = new System.Windows.Forms.Button(); this.btnUpdateTray = new System.Windows.Forms.Button();
this.cmbBoxIndex = new System.Windows.Forms.ComboBox(); this.listView1 = new System.Windows.Forms.ListView();
this.btnInStoreTset = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.panel2 = new System.Windows.Forms.Panel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.panel3 = new System.Windows.Forms.Panel();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.lblStatus = new System.Windows.Forms.Label(); this.lblStatus = new System.Windows.Forms.Label();
this.lblWarnMsg = new System.Windows.Forms.Label(); this.lblWarnMsg = new System.Windows.Forms.Label();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
...@@ -107,6 +115,8 @@ ...@@ -107,6 +115,8 @@
this.toolStripSeparator17 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator17 = new System.Windows.Forms.ToolStripSeparator();
this.contextMenuStrip_control = new System.Windows.Forms.ContextMenuStrip(this.components); this.contextMenuStrip_control = new System.Windows.Forms.ContextMenuStrip(this.components);
this.toolStripSeparator21 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator21 = new System.Windows.Forms.ToolStripSeparator();
this.toolName = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator23 = new System.Windows.Forms.ToolStripSeparator();
this.control_InDetial = new System.Windows.Forms.ToolStripMenuItem(); this.control_InDetial = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator18 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator18 = new System.Windows.Forms.ToolStripSeparator();
this.control_StartDebug = new System.Windows.Forms.ToolStripMenuItem(); this.control_StartDebug = new System.Windows.Forms.ToolStripMenuItem();
...@@ -115,25 +125,20 @@ ...@@ -115,25 +125,20 @@
this.toolStripSeparator20 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator20 = new System.Windows.Forms.ToolStripSeparator();
this.control_Debug = new System.Windows.Forms.ToolStripMenuItem(); this.control_Debug = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator22 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator22 = new System.Windows.Forms.ToolStripSeparator();
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.lblCID = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout(); this.tabPage1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox3.SuspendLayout();
this.tabPage2.SuspendLayout(); this.tabPage2.SuspendLayout();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
this.panel1.SuspendLayout();
this.tabPage3.SuspendLayout(); this.tabPage3.SuspendLayout();
this.panel3.SuspendLayout(); this.panel3.SuspendLayout();
this.tabPage4.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox3.SuspendLayout();
this.contextMenuStrip1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
this.contextMenuStrip_control.SuspendLayout(); this.contextMenuStrip_control.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// tabControl1 // tabControl1
...@@ -144,7 +149,7 @@ ...@@ -144,7 +149,7 @@
this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3); this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed; this.tabControl1.Controls.Add(this.tabPage4);
this.tabControl1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.tabControl1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tabControl1.Location = new System.Drawing.Point(8, 81); this.tabControl1.Location = new System.Drawing.Point(8, 81);
this.tabControl1.Multiline = true; this.tabControl1.Multiline = true;
...@@ -156,54 +161,205 @@ ...@@ -156,54 +161,205 @@
// //
// tabPage1 // tabPage1
// //
this.tabPage1.Controls.Add(this.listView1);
this.tabPage1.Controls.Add(this.logBox); this.tabPage1.Controls.Add(this.logBox);
this.tabPage1.Controls.Add(this.lblMoveInfo);
this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Location = new System.Drawing.Point(4, 29); this.tabPage1.Location = new System.Drawing.Point(4, 29);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(1328, 609); this.tabPage1.Size = new System.Drawing.Size(1328, 609);
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "状态信息"; this.tabPage1.Text = " 运行日志 ";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
// //
// listView1
//
this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.listView1.BackColor = System.Drawing.Color.White;
this.listView1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.listView1.FullRowSelect = true;
this.listView1.GridLines = true;
this.listView1.HideSelection = false;
this.listView1.Location = new System.Drawing.Point(9, 7);
this.listView1.MultiSelect = false;
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size(725, 599);
this.listView1.TabIndex = 191;
this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.View = System.Windows.Forms.View.Details;
this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
//
// logBox // logBox
// //
this.logBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.logBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.logBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.logBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.logBox.Location = new System.Drawing.Point(740, 113); this.logBox.Location = new System.Drawing.Point(3, 5);
this.logBox.Name = "logBox"; this.logBox.Name = "logBox";
this.logBox.Size = new System.Drawing.Size(580, 493); this.logBox.Size = new System.Drawing.Size(1317, 599);
this.logBox.TabIndex = 106; this.logBox.TabIndex = 106;
this.logBox.Text = ""; this.logBox.Text = "";
this.logBox.VisibleChanged += new System.EventHandler(this.logBox_VisibleChanged); this.logBox.VisibleChanged += new System.EventHandler(this.logBox_VisibleChanged);
// //
// tabPage2
//
this.tabPage2.Controls.Add(this.panel2);
this.tabPage2.Location = new System.Drawing.Point(4, 29);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(1328, 609);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = " 进仓移栽 ";
this.tabPage2.UseVisualStyleBackColor = true;
//
// panel2
//
this.panel2.Controls.Add(this.tableLayoutPanel1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1328, 609);
this.panel2.TabIndex = 98;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 5;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.Controls.Add(this.panel1, 4, 4);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 5;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1328, 609);
this.tableLayoutPanel1.TabIndex = 10;
//
// panel1
//
this.panel1.Controls.Add(this.label8);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.label7);
this.panel1.Controls.Add(this.lblCID);
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.label5);
this.panel1.Location = new System.Drawing.Point(1063, 487);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(262, 119);
this.panel1.TabIndex = 202;
//
// label8
//
this.label8.BackColor = System.Drawing.Color.White;
this.label8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label8.Location = new System.Drawing.Point(150, 97);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(109, 18);
this.label8.TabIndex = 201;
this.label8.Text = "双击进入详情界面";
//
// label1
//
this.label1.BackColor = System.Drawing.Color.LightBlue;
this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label1.Location = new System.Drawing.Point(7, 4);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(109, 18);
this.label1.TabIndex = 197;
this.label1.Text = "蓝色:正常待机中";
//
// label7
//
this.label7.BackColor = System.Drawing.Color.Red;
this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label7.Location = new System.Drawing.Point(7, 84);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(109, 18);
this.label7.TabIndex = 200;
this.label7.Text = "红色:严重报警";
//
// lblCID
//
this.lblCID.BackColor = System.Drawing.Color.Orange;
this.lblCID.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblCID.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblCID.Location = new System.Drawing.Point(7, 44);
this.lblCID.Name = "lblCID";
this.lblCID.Size = new System.Drawing.Size(109, 18);
this.lblCID.TabIndex = 95;
this.lblCID.Text = "橘色:复位中";
//
// label6
//
this.label6.BackColor = System.Drawing.Color.LightCoral;
this.label6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label6.Location = new System.Drawing.Point(7, 64);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(109, 18);
this.label6.TabIndex = 199;
this.label6.Text = "珊瑚色:信号超时报警";
//
// label5
//
this.label5.BackColor = System.Drawing.Color.LightGreen;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label5.Location = new System.Drawing.Point(7, 24);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(109, 18);
this.label5.TabIndex = 198;
this.label5.Text = "绿色:忙碌中";
//
// tabPage3
//
this.tabPage3.Controls.Add(this.panel3);
this.tabPage3.Location = new System.Drawing.Point(4, 29);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(1328, 609);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = " 入料/横移 ";
this.tabPage3.UseVisualStyleBackColor = true;
//
// panel3
//
this.panel3.Controls.Add(this.tableLayoutPanel2);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1328, 609);
this.panel3.TabIndex = 0;
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.ColumnCount = 5;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 6;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(1328, 609);
this.tableLayoutPanel2.TabIndex = 11;
//
// tabPage4
//
this.tabPage4.Controls.Add(this.lblMoveInfo);
this.tabPage4.Controls.Add(this.groupBox1);
this.tabPage4.Controls.Add(this.groupBox3);
this.tabPage4.Controls.Add(this.listView1);
this.tabPage4.Location = new System.Drawing.Point(4, 29);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Size = new System.Drawing.Size(1328, 609);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = " 设备状态 ";
this.tabPage4.UseVisualStyleBackColor = true;
//
// lblMoveInfo // lblMoveInfo
// //
this.lblMoveInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblMoveInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblMoveInfo.AutoSize = true; this.lblMoveInfo.AutoSize = true;
this.lblMoveInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblMoveInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMoveInfo.Location = new System.Drawing.Point(935, 7); this.lblMoveInfo.Location = new System.Drawing.Point(1154, 20);
this.lblMoveInfo.Name = "lblMoveInfo"; this.lblMoveInfo.Name = "lblMoveInfo";
this.lblMoveInfo.Size = new System.Drawing.Size(29, 17); this.lblMoveInfo.Size = new System.Drawing.Size(29, 17);
this.lblMoveInfo.TabIndex = 196; this.lblMoveInfo.TabIndex = 196;
...@@ -216,12 +372,11 @@ ...@@ -216,12 +372,11 @@
this.groupBox1.Controls.Add(this.lblPosId); this.groupBox1.Controls.Add(this.lblPosId);
this.groupBox1.Controls.Add(this.btnUpdateStatus); this.groupBox1.Controls.Add(this.btnUpdateStatus);
this.groupBox1.Controls.Add(this.txtPosId); this.groupBox1.Controls.Add(this.txtPosId);
this.groupBox1.Controls.Add(this.groupBox3);
this.groupBox1.Controls.Add(this.cmbBoxIndex); this.groupBox1.Controls.Add(this.cmbBoxIndex);
this.groupBox1.Controls.Add(this.btnInStoreTset); this.groupBox1.Controls.Add(this.btnInStoreTset);
this.groupBox1.Controls.Add(this.button2); this.groupBox1.Controls.Add(this.button2);
this.groupBox1.Controls.Add(this.button1); this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Location = new System.Drawing.Point(448, 167); this.groupBox1.Location = new System.Drawing.Point(406, 59);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(872, 61); this.groupBox1.Size = new System.Drawing.Size(872, 61);
this.groupBox1.TabIndex = 195; this.groupBox1.TabIndex = 195;
...@@ -232,7 +387,7 @@ ...@@ -232,7 +387,7 @@
// lblPosId // lblPosId
// //
this.lblPosId.AutoSize = true; this.lblPosId.AutoSize = true;
this.lblPosId.Location = new System.Drawing.Point(366, 35); this.lblPosId.Location = new System.Drawing.Point(366, 24);
this.lblPosId.Name = "lblPosId"; this.lblPosId.Name = "lblPosId";
this.lblPosId.Size = new System.Drawing.Size(40, 20); this.lblPosId.Size = new System.Drawing.Size(40, 20);
this.lblPosId.TabIndex = 197; this.lblPosId.TabIndex = 197;
...@@ -243,7 +398,7 @@ ...@@ -243,7 +398,7 @@
this.btnUpdateStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnUpdateStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnUpdateStatus.BackColor = System.Drawing.Color.White; this.btnUpdateStatus.BackColor = System.Drawing.Color.White;
this.btnUpdateStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnUpdateStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpdateStatus.Location = new System.Drawing.Point(641, 11); this.btnUpdateStatus.Location = new System.Drawing.Point(641, 17);
this.btnUpdateStatus.Name = "btnUpdateStatus"; this.btnUpdateStatus.Name = "btnUpdateStatus";
this.btnUpdateStatus.Size = new System.Drawing.Size(222, 35); this.btnUpdateStatus.Size = new System.Drawing.Size(222, 35);
this.btnUpdateStatus.TabIndex = 195; this.btnUpdateStatus.TabIndex = 195;
...@@ -253,11 +408,56 @@ ...@@ -253,11 +408,56 @@
// //
// txtPosId // txtPosId
// //
this.txtPosId.Location = new System.Drawing.Point(426, 32); this.txtPosId.Location = new System.Drawing.Point(426, 21);
this.txtPosId.Name = "txtPosId"; this.txtPosId.Name = "txtPosId";
this.txtPosId.Size = new System.Drawing.Size(80, 26); this.txtPosId.Size = new System.Drawing.Size(80, 26);
this.txtPosId.TabIndex = 196; this.txtPosId.TabIndex = 196;
// //
// cmbBoxIndex
//
this.cmbBoxIndex.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbBoxIndex.FormattingEnabled = true;
this.cmbBoxIndex.Location = new System.Drawing.Point(272, 20);
this.cmbBoxIndex.Name = "cmbBoxIndex";
this.cmbBoxIndex.Size = new System.Drawing.Size(85, 28);
this.cmbBoxIndex.TabIndex = 195;
//
// btnInStoreTset
//
this.btnInStoreTset.BackColor = System.Drawing.Color.White;
this.btnInStoreTset.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnInStoreTset.Location = new System.Drawing.Point(515, 17);
this.btnInStoreTset.Name = "btnInStoreTset";
this.btnInStoreTset.Size = new System.Drawing.Size(105, 35);
this.btnInStoreTset.TabIndex = 194;
this.btnInStoreTset.Text = "入库测试";
this.btnInStoreTset.UseVisualStyleBackColor = false;
this.btnInStoreTset.Click += new System.EventHandler(this.btnInStoreTset_Click);
//
// button2
//
this.button2.BackColor = System.Drawing.Color.White;
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button2.Location = new System.Drawing.Point(118, 17);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(105, 35);
this.button2.TabIndex = 193;
this.button2.Text = "停止服务";
this.button2.UseVisualStyleBackColor = false;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button1
//
this.button1.BackColor = System.Drawing.Color.White;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Location = new System.Drawing.Point(11, 17);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(105, 35);
this.button1.TabIndex = 192;
this.button1.Text = "启动服务";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// groupBox3 // groupBox3
// //
this.groupBox3.Controls.Add(this.chbInStoNG); this.groupBox3.Controls.Add(this.chbInStoNG);
...@@ -271,9 +471,9 @@ ...@@ -271,9 +471,9 @@
this.groupBox3.Controls.Add(this.cmbTray); this.groupBox3.Controls.Add(this.cmbTray);
this.groupBox3.Controls.Add(this.btnUpdateTray); this.groupBox3.Controls.Add(this.btnUpdateTray);
this.groupBox3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupBox3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox3.Location = new System.Drawing.Point(292, 11); this.groupBox3.Location = new System.Drawing.Point(406, 126);
this.groupBox3.Name = "groupBox3"; this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(567, 61); this.groupBox3.Size = new System.Drawing.Size(670, 61);
this.groupBox3.TabIndex = 197; this.groupBox3.TabIndex = 197;
this.groupBox3.TabStop = false; this.groupBox3.TabStop = false;
this.groupBox3.Text = "操作信息"; this.groupBox3.Text = "操作信息";
...@@ -376,130 +576,23 @@ ...@@ -376,130 +576,23 @@
this.btnUpdateTray.UseVisualStyleBackColor = false; this.btnUpdateTray.UseVisualStyleBackColor = false;
this.btnUpdateTray.Click += new System.EventHandler(this.btnUpdateTray_Click); this.btnUpdateTray.Click += new System.EventHandler(this.btnUpdateTray_Click);
// //
// cmbBoxIndex // listView1
//
this.cmbBoxIndex.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbBoxIndex.FormattingEnabled = true;
this.cmbBoxIndex.Location = new System.Drawing.Point(272, 31);
this.cmbBoxIndex.Name = "cmbBoxIndex";
this.cmbBoxIndex.Size = new System.Drawing.Size(85, 28);
this.cmbBoxIndex.TabIndex = 195;
//
// btnInStoreTset
//
this.btnInStoreTset.BackColor = System.Drawing.Color.White;
this.btnInStoreTset.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnInStoreTset.Location = new System.Drawing.Point(515, 28);
this.btnInStoreTset.Name = "btnInStoreTset";
this.btnInStoreTset.Size = new System.Drawing.Size(105, 35);
this.btnInStoreTset.TabIndex = 194;
this.btnInStoreTset.Text = "入库测试";
this.btnInStoreTset.UseVisualStyleBackColor = false;
this.btnInStoreTset.Click += new System.EventHandler(this.btnInStoreTset_Click);
//
// button2
//
this.button2.BackColor = System.Drawing.Color.White;
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button2.Location = new System.Drawing.Point(118, 28);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(105, 35);
this.button2.TabIndex = 193;
this.button2.Text = "停止服务";
this.button2.UseVisualStyleBackColor = false;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button1
//
this.button1.BackColor = System.Drawing.Color.White;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Location = new System.Drawing.Point(11, 28);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(105, 35);
this.button1.TabIndex = 192;
this.button1.Text = "启动服务";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// tabPage2
//
this.tabPage2.Controls.Add(this.panel2);
this.tabPage2.Location = new System.Drawing.Point(4, 29);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(1328, 609);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = " 料仓移栽设备 ";
this.tabPage2.UseVisualStyleBackColor = true;
//
// panel2
//
this.panel2.Controls.Add(this.tableLayoutPanel1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1328, 609);
this.panel2.TabIndex = 98;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 5;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.Controls.Add(this.panel1, 4, 4);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 5;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1328, 609);
this.tableLayoutPanel1.TabIndex = 10;
//
// tabPage3
//
this.tabPage3.Controls.Add(this.panel3);
this.tabPage3.Location = new System.Drawing.Point(4, 29);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(1328, 609);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = " 入料/横移设备 ";
this.tabPage3.UseVisualStyleBackColor = true;
//
// panel3
//
this.panel3.Controls.Add(this.tableLayoutPanel2);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1328, 609);
this.panel3.TabIndex = 0;
//
// tableLayoutPanel2
// //
this.tableLayoutPanel2.ColumnCount = 5; this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); | System.Windows.Forms.AnchorStyles.Left)));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.listView1.BackColor = System.Drawing.Color.White;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.listView1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.listView1.FullRowSelect = true;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.listView1.GridLines = true;
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; this.listView1.HideSelection = false;
this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0); this.listView1.Location = new System.Drawing.Point(5, 7);
this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.listView1.MultiSelect = false;
this.tableLayoutPanel2.RowCount = 6; this.listView1.Name = "listView1";
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); this.listView1.Size = new System.Drawing.Size(1319, 582);
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); this.listView1.TabIndex = 191;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); this.listView1.UseCompatibleStateImageBehavior = false;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); this.listView1.View = System.Windows.Forms.View.Details;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(1328, 609);
this.tableLayoutPanel2.TabIndex = 11;
// //
// lblStatus // lblStatus
// //
...@@ -842,6 +935,8 @@ ...@@ -842,6 +935,8 @@
this.contextMenuStrip_control.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.contextMenuStrip_control.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.contextMenuStrip_control.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.contextMenuStrip_control.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripSeparator21, this.toolStripSeparator21,
this.toolName,
this.toolStripSeparator23,
this.control_InDetial, this.control_InDetial,
this.toolStripSeparator18, this.toolStripSeparator18,
this.control_StartDebug, this.control_StartDebug,
...@@ -851,12 +946,25 @@ ...@@ -851,12 +946,25 @@
this.control_Debug, this.control_Debug,
this.toolStripSeparator22}); this.toolStripSeparator22});
this.contextMenuStrip_control.Name = "contextMenuStrip1"; this.contextMenuStrip_control.Name = "contextMenuStrip1";
this.contextMenuStrip_control.Size = new System.Drawing.Size(163, 130); this.contextMenuStrip_control.Size = new System.Drawing.Size(163, 160);
// //
// toolStripSeparator21 // toolStripSeparator21
// //
this.toolStripSeparator21.Name = "toolStripSeparator21"; this.toolStripSeparator21.Name = "toolStripSeparator21";
this.toolStripSeparator21.Size = new System.Drawing.Size(159, 6); this.toolStripSeparator21.Size = new System.Drawing.Size(159, 6);
this.toolStripSeparator21.Visible = false;
//
// toolName
//
this.toolName.BackColor = System.Drawing.Color.White;
this.toolName.Name = "toolName";
this.toolName.Size = new System.Drawing.Size(162, 24);
this.toolName.Visible = false;
//
// toolStripSeparator23
//
this.toolStripSeparator23.Name = "toolStripSeparator23";
this.toolStripSeparator23.Size = new System.Drawing.Size(159, 6);
// //
// control_InDetial // control_InDetial
// //
...@@ -906,73 +1014,6 @@ ...@@ -906,73 +1014,6 @@
this.toolStripSeparator22.Name = "toolStripSeparator22"; this.toolStripSeparator22.Name = "toolStripSeparator22";
this.toolStripSeparator22.Size = new System.Drawing.Size(159, 6); this.toolStripSeparator22.Size = new System.Drawing.Size(159, 6);
// //
// panel1
//
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.label7);
this.panel1.Controls.Add(this.lblCID);
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.label5);
this.panel1.Location = new System.Drawing.Point(1063, 487);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(165, 105);
this.panel1.TabIndex = 202;
//
// label1
//
this.label1.BackColor = System.Drawing.Color.LightBlue;
this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label1.Location = new System.Drawing.Point(7, 4);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(109, 18);
this.label1.TabIndex = 197;
this.label1.Text = "蓝色:正常待机中";
//
// label7
//
this.label7.BackColor = System.Drawing.Color.Red;
this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label7.Location = new System.Drawing.Point(7, 84);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(109, 18);
this.label7.TabIndex = 200;
this.label7.Text = "红色:严重报警";
//
// lblCID
//
this.lblCID.BackColor = System.Drawing.Color.Orange;
this.lblCID.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblCID.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblCID.Location = new System.Drawing.Point(7, 44);
this.lblCID.Name = "lblCID";
this.lblCID.Size = new System.Drawing.Size(109, 18);
this.lblCID.TabIndex = 95;
this.lblCID.Text = "橘色:复位中";
//
// label6
//
this.label6.BackColor = System.Drawing.Color.LightCoral;
this.label6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label6.Location = new System.Drawing.Point(7, 64);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(109, 18);
this.label6.TabIndex = 199;
this.label6.Text = "珊瑚色:信号超时报警";
//
// label5
//
this.label5.BackColor = System.Drawing.Color.LightGreen;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label5.Location = new System.Drawing.Point(7, 24);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(109, 18);
this.label5.TabIndex = 198;
this.label5.Text = "绿色:忙碌中";
//
// FrmLineStore // FrmLineStore
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
...@@ -994,21 +1035,22 @@ ...@@ -994,21 +1035,22 @@
this.Load += new System.EventHandler(this.FrmMain_Load); this.Load += new System.EventHandler(this.FrmMain_Load);
this.tabControl1.ResumeLayout(false); this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false); this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.tabPage2.ResumeLayout(false); this.tabPage2.ResumeLayout(false);
this.panel2.ResumeLayout(false); this.panel2.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.tabPage3.ResumeLayout(false); this.tabPage3.ResumeLayout(false);
this.panel3.ResumeLayout(false); this.panel3.ResumeLayout(false);
this.tabPage4.ResumeLayout(false);
this.tabPage4.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.contextMenuStrip1.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false);
this.menuStrip1.ResumeLayout(false); this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout(); this.menuStrip1.PerformLayout();
this.contextMenuStrip_control.ResumeLayout(false); this.contextMenuStrip_control.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
...@@ -1107,6 +1149,10 @@ ...@@ -1107,6 +1149,10 @@
private System.Windows.Forms.Label lblCID; private System.Windows.Forms.Label lblCID;
private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label5;
private System.Windows.Forms.TabPage tabPage4;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.ToolStripMenuItem toolName;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator23;
} }
} }
...@@ -20,8 +20,6 @@ namespace OnlineStore.AssemblyLine ...@@ -20,8 +20,6 @@ namespace OnlineStore.AssemblyLine
{ {
internal partial class FrmLineStore : Form internal partial class FrmLineStore : Form
{ {
//internal static readonly ILog LOGGER = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private LineBean lineBean = null; private LineBean lineBean = null;
private List<TabPage> tabPageList = new List<TabPage>(); private List<TabPage> tabPageList = new List<TabPage>();
private bool LoadOk = false; private bool LoadOk = false;
...@@ -1104,20 +1102,20 @@ namespace OnlineStore.AssemblyLine ...@@ -1104,20 +1102,20 @@ namespace OnlineStore.AssemblyLine
if (seleEquip.runStatus > LineRunStatus.Wait) if (seleEquip.runStatus > LineRunStatus.Wait)
{ {
control_StartDebug.Text = "复位[" + seleEquip.Name+"]"; control_StartDebug.Text = seleEquip.Name + "复位 " + "";
} }
else else
{ {
control_StartDebug.Text = "启动调试[" + seleEquip.Name + "]"; control_StartDebug.Text = seleEquip.Name + "启动调试" + "";
} }
string name = "打开[" + seleEquip.Name + "]"; string name = seleEquip.Name + "打开详情";
if (control_InDetial.Text.Equals(name)) if (control_InDetial.Text.Equals(name))
{ {
return; return;
} }
control_InDetial.Text = name; control_InDetial.Text = name;
control_Stop.Text= "停止[" + seleEquip.Name + "]"; control_Stop.Text = seleEquip.Name + "停止";
if (seleEquip.IsDebug) if (seleEquip.IsDebug)
{ {
control_Debug.Text = "✘ 未启用"; control_Debug.Text = "✘ 未启用";
...@@ -1160,7 +1158,7 @@ namespace OnlineStore.AssemblyLine ...@@ -1160,7 +1158,7 @@ namespace OnlineStore.AssemblyLine
{ {
if (seleEquip.runStatus > LineRunStatus.Wait) if (seleEquip.runStatus > LineRunStatus.Wait)
{ {
LogUtil.info(Name + "点击:复位[" + seleEquip.Name + "]"); LogUtil.info(Name + "点击:模块复位[" + seleEquip.Name + "]");
bool result = seleEquip.Reset(); bool result = seleEquip.Reset();
if (!result) if (!result)
{ {
...@@ -1185,7 +1183,7 @@ namespace OnlineStore.AssemblyLine ...@@ -1185,7 +1183,7 @@ namespace OnlineStore.AssemblyLine
{ {
if (seleEquip.runStatus > LineRunStatus.Wait) if (seleEquip.runStatus > LineRunStatus.Wait)
{ {
LogUtil.info(Name + "点击:停止[" + seleEquip.Name + "]"); LogUtil.info(Name + "点击:停止运行[" + seleEquip.Name + "]");
seleEquip.Reset(); seleEquip.Reset();
} }
} }
......
...@@ -34,13 +34,17 @@ ...@@ -34,13 +34,17 @@
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox3 = new System.Windows.Forms.GroupBox(); this.groupBox3 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox5 = new System.Windows.Forms.GroupBox(); this.groupDO = new System.Windows.Forms.GroupBox();
this.btnStop2Up = new System.Windows.Forms.Button(); this.ClampCylinder_Work = new System.Windows.Forms.Button();
this.btnStop1Up = new System.Windows.Forms.Button(); this.BeforeAfterCylinder_After = new System.Windows.Forms.Button();
this.btnClampSlack = new System.Windows.Forms.Button(); this.UpDownCylinder_Down = new System.Windows.Forms.Button();
this.btnUpDownUp = new System.Windows.Forms.Button(); this.TopCylinder_Down = new System.Windows.Forms.Button();
this.btnBeforeAfterBefore = new System.Windows.Forms.Button(); this.StopDown2 = new System.Windows.Forms.Button();
this.btnTopUp = new System.Windows.Forms.Button(); this.StopDown1 = new System.Windows.Forms.Button();
this.ClampCylinder_Relax = new System.Windows.Forms.Button();
this.UpDownCylinder_Up = new System.Windows.Forms.Button();
this.BeforeAfterCylinder_Before = new System.Windows.Forms.Button();
this.TopCylinder_Up = new System.Windows.Forms.Button();
this.chbDebug = new System.Windows.Forms.CheckBox(); this.chbDebug = new System.Windows.Forms.CheckBox();
this.lblThisSta = new System.Windows.Forms.Label(); this.lblThisSta = new System.Windows.Forms.Label();
this.lblStoreStatus = new System.Windows.Forms.Label(); this.lblStoreStatus = new System.Windows.Forms.Label();
...@@ -81,7 +85,7 @@ ...@@ -81,7 +85,7 @@
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout(); this.groupBox4.SuspendLayout();
this.groupBox3.SuspendLayout(); this.groupBox3.SuspendLayout();
this.groupBox5.SuspendLayout(); this.groupDO.SuspendLayout();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout(); this.tabPage1.SuspendLayout();
this.groupBox6.SuspendLayout(); this.groupBox6.SuspendLayout();
...@@ -110,9 +114,9 @@ ...@@ -110,9 +114,9 @@
this.groupBox1.Controls.Add(this.txtSlaveId); this.groupBox1.Controls.Add(this.txtSlaveId);
this.groupBox1.Controls.Add(this.cmbWriteIO); this.groupBox1.Controls.Add(this.cmbWriteIO);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(498, 6); this.groupBox1.Location = new System.Drawing.Point(496, 411);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(375, 149); this.groupBox1.Size = new System.Drawing.Size(661, 102);
this.groupBox1.TabIndex = 105; this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入"; this.groupBox1.Text = "DO写入";
...@@ -122,7 +126,7 @@ ...@@ -122,7 +126,7 @@
this.btnCloseAll.BackColor = System.Drawing.Color.White; this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(17, 94); this.btnCloseAll.Location = new System.Drawing.Point(479, 18);
this.btnCloseAll.Name = "btnCloseAll"; this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(110, 34); this.btnCloseAll.Size = new System.Drawing.Size(110, 34);
this.btnCloseAll.TabIndex = 259; this.btnCloseAll.TabIndex = 259;
...@@ -134,7 +138,7 @@ ...@@ -134,7 +138,7 @@
// //
this.txtDOIndex.Enabled = false; this.txtDOIndex.Enabled = false;
this.txtDOIndex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtDOIndex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDOIndex.Location = new System.Drawing.Point(198, 60); this.txtDOIndex.Location = new System.Drawing.Point(150, 64);
this.txtDOIndex.MaxLength = 10; this.txtDOIndex.MaxLength = 10;
this.txtDOIndex.Name = "txtDOIndex"; this.txtDOIndex.Name = "txtDOIndex";
this.txtDOIndex.Size = new System.Drawing.Size(40, 23); this.txtDOIndex.Size = new System.Drawing.Size(40, 23);
...@@ -145,10 +149,10 @@ ...@@ -145,10 +149,10 @@
// //
this.txtDoName.Enabled = false; this.txtDoName.Enabled = false;
this.txtDoName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtDoName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDoName.Location = new System.Drawing.Point(55, 60); this.txtDoName.Location = new System.Drawing.Point(66, 64);
this.txtDoName.MaxLength = 10; this.txtDoName.MaxLength = 10;
this.txtDoName.Name = "txtDoName"; this.txtDoName.Name = "txtDoName";
this.txtDoName.Size = new System.Drawing.Size(92, 23); this.txtDoName.Size = new System.Drawing.Size(27, 23);
this.txtDoName.TabIndex = 275; this.txtDoName.TabIndex = 275;
this.txtDoName.Text = "0"; this.txtDoName.Text = "0";
// //
...@@ -157,7 +161,7 @@ ...@@ -157,7 +161,7 @@
this.label17.AutoSize = true; this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label17.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label17.Location = new System.Drawing.Point(12, 63); this.label17.Location = new System.Drawing.Point(20, 67);
this.label17.Name = "label17"; this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(35, 17); this.label17.Size = new System.Drawing.Size(35, 17);
this.label17.TabIndex = 274; this.label17.TabIndex = 274;
...@@ -169,7 +173,7 @@ ...@@ -169,7 +173,7 @@
this.label14.AutoSize = true; this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label14.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label14.Location = new System.Drawing.Point(155, 63); this.label14.Location = new System.Drawing.Point(104, 67);
this.label14.Name = "label14"; this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(35, 17); this.label14.Size = new System.Drawing.Size(35, 17);
this.label14.TabIndex = 273; this.label14.TabIndex = 273;
...@@ -181,7 +185,7 @@ ...@@ -181,7 +185,7 @@
this.btnOpenDo.BackColor = System.Drawing.Color.White; this.btnOpenDo.BackColor = System.Drawing.Color.White;
this.btnOpenDo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenDo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenDo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnOpenDo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenDo.Location = new System.Drawing.Point(135, 94); this.btnOpenDo.Location = new System.Drawing.Point(347, 18);
this.btnOpenDo.Name = "btnOpenDo"; this.btnOpenDo.Name = "btnOpenDo";
this.btnOpenDo.Size = new System.Drawing.Size(110, 34); this.btnOpenDo.Size = new System.Drawing.Size(110, 34);
this.btnOpenDo.TabIndex = 272; this.btnOpenDo.TabIndex = 272;
...@@ -194,7 +198,7 @@ ...@@ -194,7 +198,7 @@
this.btnWriteSingleDO.BackColor = System.Drawing.Color.White; this.btnWriteSingleDO.BackColor = System.Drawing.Color.White;
this.btnWriteSingleDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnWriteSingleDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnWriteSingleDO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnWriteSingleDO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnWriteSingleDO.Location = new System.Drawing.Point(251, 94); this.btnWriteSingleDO.Location = new System.Drawing.Point(348, 58);
this.btnWriteSingleDO.Name = "btnWriteSingleDO"; this.btnWriteSingleDO.Name = "btnWriteSingleDO";
this.btnWriteSingleDO.Size = new System.Drawing.Size(110, 34); this.btnWriteSingleDO.Size = new System.Drawing.Size(110, 34);
this.btnWriteSingleDO.TabIndex = 269; this.btnWriteSingleDO.TabIndex = 269;
...@@ -205,7 +209,7 @@ ...@@ -205,7 +209,7 @@
// txtWriteTime // txtWriteTime
// //
this.txtWriteTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtWriteTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtWriteTime.Location = new System.Drawing.Point(321, 60); this.txtWriteTime.Location = new System.Drawing.Point(272, 64);
this.txtWriteTime.MaxLength = 10; this.txtWriteTime.MaxLength = 10;
this.txtWriteTime.Name = "txtWriteTime"; this.txtWriteTime.Name = "txtWriteTime";
this.txtWriteTime.Size = new System.Drawing.Size(40, 23); this.txtWriteTime.Size = new System.Drawing.Size(40, 23);
...@@ -217,7 +221,7 @@ ...@@ -217,7 +221,7 @@
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label5.Location = new System.Drawing.Point(253, 63); this.label5.Location = new System.Drawing.Point(201, 67);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(60, 17); this.label5.Size = new System.Drawing.Size(60, 17);
this.label5.TabIndex = 270; this.label5.TabIndex = 270;
...@@ -227,7 +231,7 @@ ...@@ -227,7 +231,7 @@
// txtSlaveId // txtSlaveId
// //
this.txtSlaveId.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtSlaveId.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtSlaveId.Location = new System.Drawing.Point(417, 26); this.txtSlaveId.Location = new System.Drawing.Point(322, 24);
this.txtSlaveId.MaxLength = 10; this.txtSlaveId.MaxLength = 10;
this.txtSlaveId.Name = "txtSlaveId"; this.txtSlaveId.Name = "txtSlaveId";
this.txtSlaveId.Size = new System.Drawing.Size(12, 23); this.txtSlaveId.Size = new System.Drawing.Size(12, 23);
...@@ -243,9 +247,9 @@ ...@@ -243,9 +247,9 @@
this.cmbWriteIO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.cmbWriteIO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cmbWriteIO.FormattingEnabled = true; this.cmbWriteIO.FormattingEnabled = true;
this.cmbWriteIO.ItemHeight = 22; this.cmbWriteIO.ItemHeight = 22;
this.cmbWriteIO.Location = new System.Drawing.Point(17, 19); this.cmbWriteIO.Location = new System.Drawing.Point(17, 24);
this.cmbWriteIO.Name = "cmbWriteIO"; this.cmbWriteIO.Name = "cmbWriteIO";
this.cmbWriteIO.Size = new System.Drawing.Size(344, 28); this.cmbWriteIO.Size = new System.Drawing.Size(299, 28);
this.cmbWriteIO.TabIndex = 234; this.cmbWriteIO.TabIndex = 234;
this.cmbWriteIO.ValueMember = "ProName"; this.cmbWriteIO.ValueMember = "ProName";
this.cmbWriteIO.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.cmbWriteIO_DrawItem); this.cmbWriteIO.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.cmbWriteIO_DrawItem);
...@@ -307,100 +311,156 @@ ...@@ -307,100 +311,156 @@
this.tableLayoutPanel1.Size = new System.Drawing.Size(229, 487); this.tableLayoutPanel1.Size = new System.Drawing.Size(229, 487);
this.tableLayoutPanel1.TabIndex = 102; this.tableLayoutPanel1.TabIndex = 102;
// //
// groupBox5 // groupDO
// //
this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupDO.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox5.Controls.Add(this.btnStop2Up); this.groupDO.Controls.Add(this.ClampCylinder_Work);
this.groupBox5.Controls.Add(this.btnStop1Up); this.groupDO.Controls.Add(this.BeforeAfterCylinder_After);
this.groupBox5.Controls.Add(this.btnClampSlack); this.groupDO.Controls.Add(this.UpDownCylinder_Down);
this.groupBox5.Controls.Add(this.btnUpDownUp); this.groupDO.Controls.Add(this.TopCylinder_Down);
this.groupBox5.Controls.Add(this.btnBeforeAfterBefore); this.groupDO.Controls.Add(this.StopDown2);
this.groupBox5.Controls.Add(this.btnTopUp); this.groupDO.Controls.Add(this.StopDown1);
this.groupBox5.Location = new System.Drawing.Point(879, 6); this.groupDO.Controls.Add(this.ClampCylinder_Relax);
this.groupBox5.Name = "groupBox5"; this.groupDO.Controls.Add(this.BeforeAfterCylinder_Before);
this.groupBox5.Size = new System.Drawing.Size(271, 149); this.groupDO.Controls.Add(this.TopCylinder_Up);
this.groupBox5.TabIndex = 255; this.groupDO.Controls.Add(this.UpDownCylinder_Up);
this.groupBox5.TabStop = false; this.groupDO.Location = new System.Drawing.Point(496, 280);
this.groupBox5.Text = "IO操作测试"; this.groupDO.Name = "groupDO";
// this.groupDO.Size = new System.Drawing.Size(661, 125);
// btnStop2Up this.groupDO.TabIndex = 255;
// this.groupDO.TabStop = false;
this.btnStop2Up.BackColor = System.Drawing.Color.White; this.groupDO.Text = "IO操作测试";
this.btnStop2Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat; //
this.btnStop2Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); // ClampCylinder_Work
this.btnStop2Up.Location = new System.Drawing.Point(134, 21); //
this.btnStop2Up.Name = "btnStop2Up"; this.ClampCylinder_Work.BackColor = System.Drawing.Color.White;
this.btnStop2Up.Size = new System.Drawing.Size(110, 34); this.ClampCylinder_Work.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnStop2Up.TabIndex = 258; this.ClampCylinder_Work.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnStop2Up.Text = "阻挡2下降"; this.ClampCylinder_Work.Location = new System.Drawing.Point(262, 30);
this.btnStop2Up.UseVisualStyleBackColor = false; this.ClampCylinder_Work.Name = "ClampCylinder_Work";
this.btnStop2Up.Click += new System.EventHandler(this.btnStop2Up_Click); this.ClampCylinder_Work.Size = new System.Drawing.Size(120, 34);
// this.ClampCylinder_Work.TabIndex = 262;
// btnStop1Up this.ClampCylinder_Work.Text = "夹料气缸夹紧";
// this.ClampCylinder_Work.UseVisualStyleBackColor = false;
this.btnStop1Up.BackColor = System.Drawing.Color.White; this.ClampCylinder_Work.Click += new System.EventHandler(this.ClampCylinder_Check_Click);
this.btnStop1Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat; //
this.btnStop1Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); // BeforeAfterCylinder_After
this.btnStop1Up.Location = new System.Drawing.Point(18, 21); //
this.btnStop1Up.Name = "btnStop1Up"; this.BeforeAfterCylinder_After.BackColor = System.Drawing.Color.White;
this.btnStop1Up.Size = new System.Drawing.Size(110, 34); this.BeforeAfterCylinder_After.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnStop1Up.TabIndex = 256; this.BeforeAfterCylinder_After.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnStop1Up.Text = "阻挡1下降"; this.BeforeAfterCylinder_After.Location = new System.Drawing.Point(394, 70);
this.btnStop1Up.UseVisualStyleBackColor = false; this.BeforeAfterCylinder_After.Name = "BeforeAfterCylinder_After";
this.btnStop1Up.Click += new System.EventHandler(this.btnStop1Up_Click); this.BeforeAfterCylinder_After.Size = new System.Drawing.Size(120, 34);
// this.BeforeAfterCylinder_After.TabIndex = 261;
// btnClampSlack this.BeforeAfterCylinder_After.Text = "横移后退<<-";
// this.BeforeAfterCylinder_After.UseVisualStyleBackColor = false;
this.btnClampSlack.BackColor = System.Drawing.Color.White; this.BeforeAfterCylinder_After.Click += new System.EventHandler(this.BeforeAfterCylinder_After_Click);
this.btnClampSlack.FlatStyle = System.Windows.Forms.FlatStyle.Flat; //
this.btnClampSlack.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); // UpDownCylinder_Down
this.btnClampSlack.Location = new System.Drawing.Point(18, 99); //
this.btnClampSlack.Name = "btnClampSlack"; this.UpDownCylinder_Down.BackColor = System.Drawing.Color.White;
this.btnClampSlack.Size = new System.Drawing.Size(110, 34); this.UpDownCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClampSlack.TabIndex = 255; this.UpDownCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClampSlack.Text = "夹料夹紧"; this.UpDownCylinder_Down.Location = new System.Drawing.Point(524, 70);
this.btnClampSlack.UseVisualStyleBackColor = false; this.UpDownCylinder_Down.Name = "UpDownCylinder_Down";
this.btnClampSlack.Click += new System.EventHandler(this.btnClampSlack_Click); this.UpDownCylinder_Down.Size = new System.Drawing.Size(120, 34);
// this.UpDownCylinder_Down.TabIndex = 260;
// btnUpDownUp this.UpDownCylinder_Down.Text = "↓ 升降下降";
// this.UpDownCylinder_Down.UseVisualStyleBackColor = false;
this.btnUpDownUp.BackColor = System.Drawing.Color.White; this.UpDownCylinder_Down.Click += new System.EventHandler(this.button4_Click);
this.btnUpDownUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat; //
this.btnUpDownUp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); // TopCylinder_Down
this.btnUpDownUp.Location = new System.Drawing.Point(134, 99); //
this.btnUpDownUp.Name = "btnUpDownUp"; this.TopCylinder_Down.BackColor = System.Drawing.Color.White;
this.btnUpDownUp.Size = new System.Drawing.Size(110, 34); this.TopCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpDownUp.TabIndex = 252; this.TopCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpDownUp.Text = "升降上升"; this.TopCylinder_Down.Location = new System.Drawing.Point(136, 70);
this.btnUpDownUp.UseVisualStyleBackColor = false; this.TopCylinder_Down.Name = "TopCylinder_Down";
this.btnUpDownUp.Click += new System.EventHandler(this.btnUpDownUp_Click); this.TopCylinder_Down.Size = new System.Drawing.Size(120, 34);
// this.TopCylinder_Down.TabIndex = 259;
// btnBeforeAfterBefore this.TopCylinder_Down.Text = "↓ 顶升下降";
// this.TopCylinder_Down.UseVisualStyleBackColor = false;
this.btnBeforeAfterBefore.BackColor = System.Drawing.Color.White; this.TopCylinder_Down.Click += new System.EventHandler(this.TopCylinder_Down_Click);
this.btnBeforeAfterBefore.FlatStyle = System.Windows.Forms.FlatStyle.Flat; //
this.btnBeforeAfterBefore.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); // StopDown2
this.btnBeforeAfterBefore.Location = new System.Drawing.Point(134, 60); //
this.btnBeforeAfterBefore.Name = "btnBeforeAfterBefore"; this.StopDown2.BackColor = System.Drawing.Color.White;
this.btnBeforeAfterBefore.Size = new System.Drawing.Size(110, 34); this.StopDown2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnBeforeAfterBefore.TabIndex = 249; this.StopDown2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnBeforeAfterBefore.Text = "横移前进"; this.StopDown2.Location = new System.Drawing.Point(8, 70);
this.btnBeforeAfterBefore.UseVisualStyleBackColor = false; this.StopDown2.Name = "StopDown2";
this.btnBeforeAfterBefore.Click += new System.EventHandler(this.btnBeforeAfterBefore_Click); this.StopDown2.Size = new System.Drawing.Size(120, 34);
// this.StopDown2.TabIndex = 258;
// btnTopUp this.StopDown2.Text = "▉ 阻挡2下降";
// this.StopDown2.UseVisualStyleBackColor = false;
this.btnTopUp.BackColor = System.Drawing.Color.White; this.StopDown2.Click += new System.EventHandler(this.StopCheck2_Click);
this.btnTopUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat; //
this.btnTopUp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); // StopDown1
this.btnTopUp.Location = new System.Drawing.Point(18, 60); //
this.btnTopUp.Name = "btnTopUp"; this.StopDown1.BackColor = System.Drawing.Color.White;
this.btnTopUp.Size = new System.Drawing.Size(110, 34); this.StopDown1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnTopUp.TabIndex = 246; this.StopDown1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnTopUp.Text = "顶升上升"; this.StopDown1.Location = new System.Drawing.Point(8, 30);
this.btnTopUp.UseVisualStyleBackColor = false; this.StopDown1.Name = "StopDown1";
this.btnTopUp.Click += new System.EventHandler(this.btnTopUp_Click); this.StopDown1.Size = new System.Drawing.Size(120, 34);
this.StopDown1.TabIndex = 256;
this.StopDown1.Text = "▉ 阻挡1下降";
this.StopDown1.UseVisualStyleBackColor = false;
this.StopDown1.Click += new System.EventHandler(this.StopCheck1_Click);
//
// ClampCylinder_Relax
//
this.ClampCylinder_Relax.BackColor = System.Drawing.Color.White;
this.ClampCylinder_Relax.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.ClampCylinder_Relax.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ClampCylinder_Relax.Location = new System.Drawing.Point(262, 70);
this.ClampCylinder_Relax.Name = "ClampCylinder_Relax";
this.ClampCylinder_Relax.Size = new System.Drawing.Size(120, 34);
this.ClampCylinder_Relax.TabIndex = 255;
this.ClampCylinder_Relax.Text = "夹料气缸放松";
this.ClampCylinder_Relax.UseVisualStyleBackColor = false;
this.ClampCylinder_Relax.Click += new System.EventHandler(this.btnClampSlack_Click);
//
// UpDownCylinder_Up
//
this.UpDownCylinder_Up.BackColor = System.Drawing.Color.White;
this.UpDownCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.UpDownCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.UpDownCylinder_Up.Location = new System.Drawing.Point(524, 30);
this.UpDownCylinder_Up.Name = "UpDownCylinder_Up";
this.UpDownCylinder_Up.Size = new System.Drawing.Size(120, 34);
this.UpDownCylinder_Up.TabIndex = 252;
this.UpDownCylinder_Up.Text = "↑ 升降上升";
this.UpDownCylinder_Up.UseVisualStyleBackColor = false;
this.UpDownCylinder_Up.Click += new System.EventHandler(this.btnUpDownUp_Click);
//
// BeforeAfterCylinder_Before
//
this.BeforeAfterCylinder_Before.BackColor = System.Drawing.Color.White;
this.BeforeAfterCylinder_Before.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BeforeAfterCylinder_Before.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.BeforeAfterCylinder_Before.Location = new System.Drawing.Point(394, 30);
this.BeforeAfterCylinder_Before.Name = "BeforeAfterCylinder_Before";
this.BeforeAfterCylinder_Before.Size = new System.Drawing.Size(120, 34);
this.BeforeAfterCylinder_Before.TabIndex = 249;
this.BeforeAfterCylinder_Before.Text = "横移前进->>";
this.BeforeAfterCylinder_Before.UseVisualStyleBackColor = false;
this.BeforeAfterCylinder_Before.Click += new System.EventHandler(this.btnBeforeAfterBefore_Click);
//
// TopCylinder_Up
//
this.TopCylinder_Up.BackColor = System.Drawing.Color.White;
this.TopCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.TopCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.TopCylinder_Up.Location = new System.Drawing.Point(135, 30);
this.TopCylinder_Up.Name = "TopCylinder_Up";
this.TopCylinder_Up.Size = new System.Drawing.Size(120, 34);
this.TopCylinder_Up.TabIndex = 246;
this.TopCylinder_Up.Text = "↑ 顶升上升";
this.TopCylinder_Up.UseVisualStyleBackColor = false;
this.TopCylinder_Up.Click += new System.EventHandler(this.btnTopUp_Click);
// //
// chbDebug // chbDebug
// //
...@@ -421,9 +481,9 @@ ...@@ -421,9 +481,9 @@
this.lblThisSta.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblThisSta.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblThisSta.ForeColor = System.Drawing.Color.Red; this.lblThisSta.ForeColor = System.Drawing.Color.Red;
this.lblThisSta.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.lblThisSta.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblThisSta.Location = new System.Drawing.Point(274, 64); this.lblThisSta.Location = new System.Drawing.Point(147, 58);
this.lblThisSta.Name = "lblThisSta"; this.lblThisSta.Name = "lblThisSta";
this.lblThisSta.Size = new System.Drawing.Size(372, 132); this.lblThisSta.Size = new System.Drawing.Size(511, 62);
this.lblThisSta.TabIndex = 246; this.lblThisSta.TabIndex = 246;
this.lblThisSta.Text = "等待启动"; this.lblThisSta.Text = "等待启动";
this.lblThisSta.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblThisSta.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
...@@ -508,10 +568,10 @@ ...@@ -508,10 +568,10 @@
// //
// tabPage1 // tabPage1
// //
this.tabPage1.Controls.Add(this.groupDO);
this.tabPage1.Controls.Add(this.groupBox6); this.tabPage1.Controls.Add(this.groupBox6);
this.tabPage1.Controls.Add(this.groupBox3); this.tabPage1.Controls.Add(this.groupBox3);
this.tabPage1.Controls.Add(this.groupBox4); this.tabPage1.Controls.Add(this.groupBox4);
this.tabPage1.Controls.Add(this.groupBox5);
this.tabPage1.Controls.Add(this.groupBox1); this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Location = new System.Drawing.Point(4, 26); this.tabPage1.Location = new System.Drawing.Point(4, 26);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
...@@ -530,9 +590,9 @@ ...@@ -530,9 +590,9 @@
this.groupBox6.Controls.Add(this.lblMoveInfo); this.groupBox6.Controls.Add(this.lblMoveInfo);
this.groupBox6.Controls.Add(this.lblInstoreList); this.groupBox6.Controls.Add(this.lblInstoreList);
this.groupBox6.Controls.Add(this.lblThisSta); this.groupBox6.Controls.Add(this.lblThisSta);
this.groupBox6.Location = new System.Drawing.Point(498, 161); this.groupBox6.Location = new System.Drawing.Point(496, 6);
this.groupBox6.Name = "groupBox6"; this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(652, 352); this.groupBox6.Size = new System.Drawing.Size(661, 268);
this.groupBox6.TabIndex = 278; this.groupBox6.TabIndex = 278;
this.groupBox6.TabStop = false; this.groupBox6.TabStop = false;
this.groupBox6.Text = "消息"; this.groupBox6.Text = "消息";
...@@ -542,9 +602,9 @@ ...@@ -542,9 +602,9 @@
this.lblInoutInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.lblInoutInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lblInoutInfo.ForeColor = System.Drawing.Color.Green; this.lblInoutInfo.ForeColor = System.Drawing.Color.Green;
this.lblInoutInfo.Location = new System.Drawing.Point(13, 16); this.lblInoutInfo.Location = new System.Drawing.Point(16, 16);
this.lblInoutInfo.Name = "lblInoutInfo"; this.lblInoutInfo.Name = "lblInoutInfo";
this.lblInoutInfo.Size = new System.Drawing.Size(633, 42); this.lblInoutInfo.Size = new System.Drawing.Size(642, 40);
this.lblInoutInfo.TabIndex = 281; this.lblInoutInfo.TabIndex = 281;
this.lblInoutInfo.Text = "当前出入库:"; this.lblInoutInfo.Text = "当前出入库:";
// //
...@@ -553,7 +613,7 @@ ...@@ -553,7 +613,7 @@
this.lblMoveInfo.AutoSize = true; this.lblMoveInfo.AutoSize = true;
this.lblMoveInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblMoveInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMoveInfo.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.lblMoveInfo.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblMoveInfo.Location = new System.Drawing.Point(11, 62); this.lblMoveInfo.Location = new System.Drawing.Point(14, 58);
this.lblMoveInfo.Name = "lblMoveInfo"; this.lblMoveInfo.Name = "lblMoveInfo";
this.lblMoveInfo.Size = new System.Drawing.Size(68, 17); this.lblMoveInfo.Size = new System.Drawing.Size(68, 17);
this.lblMoveInfo.TabIndex = 280; this.lblMoveInfo.TabIndex = 280;
...@@ -566,10 +626,11 @@ ...@@ -566,10 +626,11 @@
this.lblInstoreList.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblInstoreList.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblInstoreList.ForeColor = System.Drawing.Color.Green; this.lblInstoreList.ForeColor = System.Drawing.Color.Green;
this.lblInstoreList.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.lblInstoreList.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblInstoreList.Location = new System.Drawing.Point(274, 180); this.lblInstoreList.Location = new System.Drawing.Point(149, 123);
this.lblInstoreList.Name = "lblInstoreList"; this.lblInstoreList.Name = "lblInstoreList";
this.lblInstoreList.Size = new System.Drawing.Size(372, 115); this.lblInstoreList.Size = new System.Drawing.Size(507, 139);
this.lblInstoreList.TabIndex = 277; this.lblInstoreList.TabIndex = 277;
this.lblInstoreList.Click += new System.EventHandler(this.lblInstoreList_Click);
// //
// tabPage2 // tabPage2
// //
...@@ -728,10 +789,10 @@ ...@@ -728,10 +789,10 @@
this.btnP3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnP3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnP3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnP3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnP3.ForeColor = System.Drawing.Color.Blue; this.btnP3.ForeColor = System.Drawing.Color.Blue;
this.btnP3.Location = new System.Drawing.Point(275, 66); this.btnP3.Location = new System.Drawing.Point(275, 63);
this.btnP3.Name = "btnP3"; this.btnP3.Name = "btnP3";
this.btnP3.RightToLeft = System.Windows.Forms.RightToLeft.No; this.btnP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnP3.Size = new System.Drawing.Size(156, 34); this.btnP3.Size = new System.Drawing.Size(154, 34);
this.btnP3.TabIndex = 312; this.btnP3.TabIndex = 312;
this.btnP3.Text = "料仓门口位置P3"; this.btnP3.Text = "料仓门口位置P3";
this.btnP3.UseVisualStyleBackColor = true; this.btnP3.UseVisualStyleBackColor = true;
...@@ -743,7 +804,7 @@ ...@@ -743,7 +804,7 @@
this.txtP3.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtP3.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtP3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtP3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtP3.ForeColor = System.Drawing.SystemColors.WindowText; this.txtP3.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtP3.Location = new System.Drawing.Point(441, 70); this.txtP3.Location = new System.Drawing.Point(441, 67);
this.txtP3.MaxLength = 12; this.txtP3.MaxLength = 12;
this.txtP3.Name = "txtP3"; this.txtP3.Name = "txtP3";
this.txtP3.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
...@@ -755,9 +816,9 @@ ...@@ -755,9 +816,9 @@
// //
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSave.ForeColor = System.Drawing.Color.Blue; this.btnSave.ForeColor = System.Drawing.Color.Blue;
this.btnSave.Location = new System.Drawing.Point(209, 115); this.btnSave.Location = new System.Drawing.Point(275, 106);
this.btnSave.Name = "btnSave"; this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(110, 34); this.btnSave.Size = new System.Drawing.Size(154, 34);
this.btnSave.TabIndex = 310; this.btnSave.TabIndex = 310;
this.btnSave.Text = "保存位置"; this.btnSave.Text = "保存位置";
this.btnSave.UseVisualStyleBackColor = true; this.btnSave.UseVisualStyleBackColor = true;
...@@ -787,7 +848,7 @@ ...@@ -787,7 +848,7 @@
this.btnMoveToP1.Location = new System.Drawing.Point(275, 22); this.btnMoveToP1.Location = new System.Drawing.Point(275, 22);
this.btnMoveToP1.Name = "btnMoveToP1"; this.btnMoveToP1.Name = "btnMoveToP1";
this.btnMoveToP1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.btnMoveToP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnMoveToP1.Size = new System.Drawing.Size(156, 34); this.btnMoveToP1.Size = new System.Drawing.Size(154, 34);
this.btnMoveToP1.TabIndex = 307; this.btnMoveToP1.TabIndex = 307;
this.btnMoveToP1.Text = "移栽升降轴待机位置P1:"; this.btnMoveToP1.Text = "移栽升降轴待机位置P1:";
this.btnMoveToP1.UseVisualStyleBackColor = true; this.btnMoveToP1.UseVisualStyleBackColor = true;
...@@ -823,7 +884,7 @@ ...@@ -823,7 +884,7 @@
this.btnP2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnP2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnP2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnP2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnP2.ForeColor = System.Drawing.Color.Blue; this.btnP2.ForeColor = System.Drawing.Color.Blue;
this.btnP2.Location = new System.Drawing.Point(13, 66); this.btnP2.Location = new System.Drawing.Point(13, 63);
this.btnP2.Name = "btnP2"; this.btnP2.Name = "btnP2";
this.btnP2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.btnP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnP2.Size = new System.Drawing.Size(154, 34); this.btnP2.Size = new System.Drawing.Size(154, 34);
...@@ -838,7 +899,7 @@ ...@@ -838,7 +899,7 @@
this.txtP2.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtP2.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtP2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtP2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtP2.ForeColor = System.Drawing.SystemColors.WindowText; this.txtP2.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtP2.Location = new System.Drawing.Point(179, 70); this.txtP2.Location = new System.Drawing.Point(179, 67);
this.txtP2.MaxLength = 12; this.txtP2.MaxLength = 12;
this.txtP2.Name = "txtP2"; this.txtP2.Name = "txtP2";
this.txtP2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
...@@ -907,7 +968,7 @@ ...@@ -907,7 +968,7 @@
this.groupBox1.PerformLayout(); this.groupBox1.PerformLayout();
this.groupBox4.ResumeLayout(false); this.groupBox4.ResumeLayout(false);
this.groupBox3.ResumeLayout(false); this.groupBox3.ResumeLayout(false);
this.groupBox5.ResumeLayout(false); this.groupDO.ResumeLayout(false);
this.tabControl1.ResumeLayout(false); this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false); this.tabPage1.ResumeLayout(false);
this.groupBox6.ResumeLayout(false); this.groupBox6.ResumeLayout(false);
...@@ -933,11 +994,11 @@ ...@@ -933,11 +994,11 @@
private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.ComboBox cmbWriteIO; private System.Windows.Forms.ComboBox cmbWriteIO;
private System.Windows.Forms.TextBox txtSlaveId; private System.Windows.Forms.TextBox txtSlaveId;
private System.Windows.Forms.GroupBox groupBox5; private System.Windows.Forms.GroupBox groupDO;
private System.Windows.Forms.Button btnClampSlack; private System.Windows.Forms.Button ClampCylinder_Relax;
private System.Windows.Forms.Button btnUpDownUp; private System.Windows.Forms.Button UpDownCylinder_Up;
private System.Windows.Forms.Button btnBeforeAfterBefore; private System.Windows.Forms.Button BeforeAfterCylinder_Before;
private System.Windows.Forms.Button btnTopUp; private System.Windows.Forms.Button TopCylinder_Up;
private System.Windows.Forms.Label lblThisSta; private System.Windows.Forms.Label lblThisSta;
private System.Windows.Forms.Label lblStoreStatus; private System.Windows.Forms.Label lblStoreStatus;
private System.Windows.Forms.Button btnStart; private System.Windows.Forms.Button btnStart;
...@@ -945,8 +1006,8 @@ ...@@ -945,8 +1006,8 @@
private System.Windows.Forms.Button btnInStore; private System.Windows.Forms.Button btnInStore;
private System.Windows.Forms.Button btnOutStore; private System.Windows.Forms.Button btnOutStore;
private System.Windows.Forms.CheckBox chbDebug; private System.Windows.Forms.CheckBox chbDebug;
private System.Windows.Forms.Button btnStop2Up; private System.Windows.Forms.Button StopDown2;
private System.Windows.Forms.Button btnStop1Up; private System.Windows.Forms.Button StopDown1;
private System.Windows.Forms.TabControl tabControl1; private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1; private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.TabPage tabPage2;
...@@ -986,6 +1047,10 @@ ...@@ -986,6 +1047,10 @@
private System.Windows.Forms.Button btnDSave; private System.Windows.Forms.Button btnDSave;
private System.Windows.Forms.Label lblInoutInfo; private System.Windows.Forms.Label lblInoutInfo;
private System.Windows.Forms.Button btnClose; private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Button ClampCylinder_Work;
private System.Windows.Forms.Button BeforeAfterCylinder_After;
private System.Windows.Forms.Button UpDownCylinder_Down;
private System.Windows.Forms.Button TopCylinder_Down;
} }
} }
...@@ -39,12 +39,12 @@ namespace OnlineStore.AssemblyLine ...@@ -39,12 +39,12 @@ namespace OnlineStore.AssemblyLine
if (equipBean.UseAxis) if (equipBean.UseAxis)
{ {
axisMoveControl1.LoadData(equipBean, new AxisBean[] { equipBean.UpdownAxis }); axisMoveControl1.LoadData(equipBean, new AxisBean[] { equipBean.UpdownAxis });
btnUpDownUp.Visible = false; UpDownCylinder_Up.Visible = false;
} }
else else
{ {
tabControl1.TabPages.Remove(tabPage2); tabControl1.TabPages.Remove(tabPage2);
btnUpDownUp.Visible = true; UpDownCylinder_Up.Visible = true;
} }
cmbSizeList.Items.Clear(); cmbSizeList.Items.Clear();
cmbSizeList.Items.Add("0=默认位置"); cmbSizeList.Items.Add("0=默认位置");
...@@ -59,6 +59,7 @@ namespace OnlineStore.AssemblyLine ...@@ -59,6 +59,7 @@ namespace OnlineStore.AssemblyLine
lblName.Text = equipBean.Name; lblName.Text = equipBean.Name;
this.Text = equipBean.Name; this.Text = equipBean.Name;
LoadDP2(); LoadDP2();
LoadDOBtn(groupDO);
IsLoad = true; IsLoad = true;
} }
...@@ -118,6 +119,7 @@ namespace OnlineStore.AssemblyLine ...@@ -118,6 +119,7 @@ namespace OnlineStore.AssemblyLine
if ( this.Visible) if ( this.Visible)
{ {
ReadIOList(); ReadIOList();
ReadBtnDO();
} }
lblName.BackColor = equipBean.GetShowColor(); lblName.BackColor = equipBean.GetShowColor();
if (equipBean.runStatus > LineRunStatus.Wait) if (equipBean.runStatus > LineRunStatus.Wait)
...@@ -387,40 +389,7 @@ namespace OnlineStore.AssemblyLine ...@@ -387,40 +389,7 @@ namespace OnlineStore.AssemblyLine
} }
private void btnStop1Up_Click(object sender, EventArgs e)
{
BtnMove(btnStop1Up, "阻挡1下降", "阻挡1上升", IO_Type.StopDown1);
}
private void btnStop2Up_Click(object sender, EventArgs e)
{
BtnMove(btnStop2Up, "阻挡2下降", "阻挡2上升", IO_Type.StopDown2);
}
private void btnTopUp_Click(object sender, EventArgs e)
{
BtnMove(btnTopUp, "顶升上升", "顶升下降", IO_Type.TopCylinder_Down, IO_Type.TopCylinder_Up);
}
private void btnBeforeAfterBefore_Click(object sender, EventArgs e)
{
if (equipBean.CanBeforeAfter())
{
BtnMove(btnBeforeAfterBefore, "横移前进", "横移后退", IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
}
else
{
MessageBox.Show("升降气缸不在上升端 或 升降轴不在待机点P1", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void btnUpDownUp_Click(object sender, EventArgs e)
{
BtnMove(btnUpDownUp, "升降上升", "升降下降", IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
}
private void btnClampSlack_Click(object sender, EventArgs e)
{
BtnMove(btnClampSlack, "夹料夹紧", "夹料放松", IO_Type.ClampCylinder_Relax, IO_Type.ClampCylinder_Work);
}
private void cmbSizeList_SelectedIndexChanged(object sender, EventArgs e) private void cmbSizeList_SelectedIndexChanged(object sender, EventArgs e)
{ {
...@@ -464,7 +433,7 @@ namespace OnlineStore.AssemblyLine ...@@ -464,7 +433,7 @@ namespace OnlineStore.AssemblyLine
private void btnCloseAll_Click(object sender, EventArgs e) private void btnCloseAll_Click(object sender, EventArgs e)
{ {
foreach (Control con in groupBox5.Controls) foreach (Control con in groupDO.Controls)
{ {
if (con is Button) if (con is Button)
{ {
...@@ -613,6 +582,75 @@ namespace OnlineStore.AssemblyLine ...@@ -613,6 +582,75 @@ namespace OnlineStore.AssemblyLine
{ {
this.Close(); this.Close();
} }
private void StopCheck1_Click(object sender, EventArgs e)
{
DoBtnClick(sender);
}
private void StopCheck2_Click(object sender, EventArgs e)
{
DoBtnClick(sender);
}
private void TopCylinder_Down_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.TopCylinder_Up, IO_Type.TopCylinder_Down);
}
private void btnTopUp_Click(object sender, EventArgs e)
{
equipBean.CylinderMove(null, IO_Type.TopCylinder_Down, IO_Type.TopCylinder_Up);
}
private void btnBeforeAfterBefore_Click(object sender, EventArgs e)
{
if (equipBean.CanBeforeAfter())
{
equipBase.CylinderMove(null, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
}
else
{
MessageBox.Show("升降气缸不在上升端 或 升降轴不在待机点P1", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void btnUpDownUp_Click(object sender, EventArgs e)
{
equipBase.CylinderMove(null, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
}
private void button4_Click(object sender, EventArgs e)
{
equipBase.CylinderMove(null, IO_Type.UpDownCylinder_Up, IO_Type.UpDownCylinder_Down);
}
private void BeforeAfterCylinder_After_Click(object sender, EventArgs e)
{
if (equipBean.CanBeforeAfter())
{
equipBase.CylinderMove(null, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
}
else
{
MessageBox.Show("升降气缸不在上升端 或 升降轴不在待机点P1", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void ClampCylinder_Check_Click(object sender, EventArgs e)
{
equipBase.CylinderMove(null, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
}
private void btnClampSlack_Click(object sender, EventArgs e)
{
equipBase.CylinderMove(null, IO_Type.ClampCylinder_Relax, IO_Type.ClampCylinder_Work);
}
private void lblInstoreList_Click(object sender, EventArgs e)
{
}
} }
} }
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
this.groupAxis = new System.Windows.Forms.GroupBox(); this.groupAxis = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox(); this.groupBox2 = new System.Windows.Forms.GroupBox();
this.lblAlarmcode = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
this.lblhomeSts = new System.Windows.Forms.Label(); this.lblhomeSts = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
...@@ -75,7 +76,6 @@ ...@@ -75,7 +76,6 @@
this.btnAxisStop = new System.Windows.Forms.Button(); this.btnAxisStop = new System.Windows.Forms.Button();
this.btnAxisReturnHome = new System.Windows.Forms.Button(); this.btnAxisReturnHome = new System.Windows.Forms.Button();
this.cmbAxis = new System.Windows.Forms.ComboBox(); this.cmbAxis = new System.Windows.Forms.ComboBox();
this.btnMCopy = new System.Windows.Forms.Button();
this.btnDelMove = new System.Windows.Forms.Button(); this.btnDelMove = new System.Windows.Forms.Button();
this.btnOpenAxis = new System.Windows.Forms.Button(); this.btnOpenAxis = new System.Windows.Forms.Button();
this.txtMiddleSpeed = new System.Windows.Forms.TextBox(); this.txtMiddleSpeed = new System.Windows.Forms.TextBox();
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
this.txtAxisDeviceName = new System.Windows.Forms.TextBox(); this.txtAxisDeviceName = new System.Windows.Forms.TextBox();
this.lblServerOn = new System.Windows.Forms.Label(); this.lblServerOn = new System.Windows.Forms.Label();
this.timer1 = new System.Windows.Forms.Timer(this.components); this.timer1 = new System.Windows.Forms.Timer(this.components);
this.lblAlarmcode = new System.Windows.Forms.Label(); this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.groupAxis.SuspendLayout(); this.groupAxis.SuspendLayout();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
...@@ -112,9 +112,12 @@ ...@@ -112,9 +112,12 @@
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupAxis.Controls.Add(this.groupBox2); this.groupAxis.Controls.Add(this.groupBox2);
this.groupAxis.Controls.Add(this.btnComAlarmClear);
this.groupAxis.Controls.Add(this.groupBox1); this.groupAxis.Controls.Add(this.groupBox1);
this.groupAxis.Controls.Add(this.panel1); this.groupAxis.Controls.Add(this.panel1);
this.groupAxis.Controls.Add(this.lblServerOn); this.groupAxis.Controls.Add(this.lblServerOn);
this.groupAxis.Controls.Add(this.btnAxisVMove);
this.groupAxis.Controls.Add(this.btnReadPosition);
this.groupAxis.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupAxis.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupAxis.Location = new System.Drawing.Point(9, 4); this.groupAxis.Location = new System.Drawing.Point(9, 4);
this.groupAxis.Name = "groupAxis"; this.groupAxis.Name = "groupAxis";
...@@ -149,7 +152,7 @@ ...@@ -149,7 +152,7 @@
this.groupBox2.Controls.Add(this.lblAxPrfPos); this.groupBox2.Controls.Add(this.lblAxPrfPos);
this.groupBox2.Controls.Add(this.lblAxisPrfMode); this.groupBox2.Controls.Add(this.lblAxisPrfMode);
this.groupBox2.Controls.Add(this.label50); this.groupBox2.Controls.Add(this.label50);
this.groupBox2.Location = new System.Drawing.Point(9, 293); this.groupBox2.Location = new System.Drawing.Point(9, 265);
this.groupBox2.Margin = new System.Windows.Forms.Padding(2); this.groupBox2.Margin = new System.Windows.Forms.Padding(2);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
this.groupBox2.Padding = new System.Windows.Forms.Padding(2); this.groupBox2.Padding = new System.Windows.Forms.Padding(2);
...@@ -158,6 +161,17 @@ ...@@ -158,6 +161,17 @@
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
this.groupBox2.Text = "轴状态监控"; this.groupBox2.Text = "轴状态监控";
// //
// lblAlarmcode
//
this.lblAlarmcode.AutoSize = true;
this.lblAlarmcode.Location = new System.Drawing.Point(422, 65);
this.lblAlarmcode.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblAlarmcode.Name = "lblAlarmcode";
this.lblAlarmcode.Size = new System.Drawing.Size(68, 17);
this.lblAlarmcode.TabIndex = 20;
this.lblAlarmcode.Text = "错误码:160";
this.lblAlarmcode.Visible = false;
//
// label4 // label4
// //
this.label4.AutoSize = true; this.label4.AutoSize = true;
...@@ -548,11 +562,10 @@ ...@@ -548,11 +562,10 @@
// //
// panel1 // panel1
// //
this.panel1.Controls.Add(this.btnComAlarmClear); this.panel1.Controls.Add(this.linkLabel1);
this.panel1.Controls.Add(this.btnAxisStop); this.panel1.Controls.Add(this.btnAxisStop);
this.panel1.Controls.Add(this.btnAxisReturnHome); this.panel1.Controls.Add(this.btnAxisReturnHome);
this.panel1.Controls.Add(this.cmbAxis); this.panel1.Controls.Add(this.cmbAxis);
this.panel1.Controls.Add(this.btnMCopy);
this.panel1.Controls.Add(this.btnDelMove); this.panel1.Controls.Add(this.btnDelMove);
this.panel1.Controls.Add(this.btnOpenAxis); this.panel1.Controls.Add(this.btnOpenAxis);
this.panel1.Controls.Add(this.txtMiddleSpeed); this.panel1.Controls.Add(this.txtMiddleSpeed);
...@@ -561,8 +574,6 @@ ...@@ -561,8 +574,6 @@
this.panel1.Controls.Add(this.txtASpeed); this.panel1.Controls.Add(this.txtASpeed);
this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.label47); this.panel1.Controls.Add(this.label47);
this.panel1.Controls.Add(this.btnReadPosition);
this.panel1.Controls.Add(this.btnAxisVMove);
this.panel1.Controls.Add(this.label8); this.panel1.Controls.Add(this.label8);
this.panel1.Controls.Add(this.btnAxisRMove); this.panel1.Controls.Add(this.btnAxisRMove);
this.panel1.Controls.Add(this.lblCountPulse); this.panel1.Controls.Add(this.lblCountPulse);
...@@ -575,20 +586,21 @@ ...@@ -575,20 +586,21 @@
this.panel1.Controls.Add(this.txtAxisValue); this.panel1.Controls.Add(this.txtAxisValue);
this.panel1.Controls.Add(this.txtAxisDeviceName); this.panel1.Controls.Add(this.txtAxisDeviceName);
this.panel1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.panel1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel1.Location = new System.Drawing.Point(7, 17); this.panel1.Location = new System.Drawing.Point(7, 18);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(540, 273); this.panel1.Size = new System.Drawing.Size(540, 241);
this.panel1.TabIndex = 219; this.panel1.TabIndex = 219;
// //
// btnComAlarmClear // btnComAlarmClear
// //
this.btnComAlarmClear.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnComAlarmClear.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnComAlarmClear.Location = new System.Drawing.Point(307, 169); this.btnComAlarmClear.Location = new System.Drawing.Point(563, 297);
this.btnComAlarmClear.Name = "btnComAlarmClear"; this.btnComAlarmClear.Name = "btnComAlarmClear";
this.btnComAlarmClear.Size = new System.Drawing.Size(110, 34); this.btnComAlarmClear.Size = new System.Drawing.Size(110, 34);
this.btnComAlarmClear.TabIndex = 50; this.btnComAlarmClear.TabIndex = 50;
this.btnComAlarmClear.Text = "清除报警"; this.btnComAlarmClear.Text = "清除报警";
this.btnComAlarmClear.UseVisualStyleBackColor = true; this.btnComAlarmClear.UseVisualStyleBackColor = true;
this.btnComAlarmClear.Visible = false;
this.btnComAlarmClear.Click += new System.EventHandler(this.btnComAlarmClear_Click); this.btnComAlarmClear.Click += new System.EventHandler(this.btnComAlarmClear_Click);
// //
// btnAxisStop // btnAxisStop
...@@ -598,7 +610,7 @@ ...@@ -598,7 +610,7 @@
this.btnAxisStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnAxisStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnAxisStop.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnAxisStop.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAxisStop.ForeColor = System.Drawing.SystemColors.ControlText; this.btnAxisStop.ForeColor = System.Drawing.SystemColors.ControlText;
this.btnAxisStop.Location = new System.Drawing.Point(427, 90); this.btnAxisStop.Location = new System.Drawing.Point(427, 50);
this.btnAxisStop.Name = "btnAxisStop"; this.btnAxisStop.Name = "btnAxisStop";
this.btnAxisStop.RightToLeft = System.Windows.Forms.RightToLeft.No; this.btnAxisStop.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnAxisStop.Size = new System.Drawing.Size(110, 114); this.btnAxisStop.Size = new System.Drawing.Size(110, 114);
...@@ -634,23 +646,12 @@ ...@@ -634,23 +646,12 @@
this.cmbAxis.TabIndex = 301; this.cmbAxis.TabIndex = 301;
this.cmbAxis.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); this.cmbAxis.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
// //
// btnMCopy
//
this.btnMCopy.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMCopy.Location = new System.Drawing.Point(468, 225);
this.btnMCopy.Name = "btnMCopy";
this.btnMCopy.Size = new System.Drawing.Size(69, 28);
this.btnMCopy.TabIndex = 334;
this.btnMCopy.Text = "复制";
this.btnMCopy.UseVisualStyleBackColor = true;
this.btnMCopy.Visible = false;
//
// btnDelMove // btnDelMove
// //
this.btnDelMove.BackColor = System.Drawing.SystemColors.Control; this.btnDelMove.BackColor = System.Drawing.SystemColors.Control;
this.btnDelMove.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnDelMove.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnDelMove.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnDelMove.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnDelMove.Location = new System.Drawing.Point(321, 217); this.btnDelMove.Location = new System.Drawing.Point(344, 184);
this.btnDelMove.Name = "btnDelMove"; this.btnDelMove.Name = "btnDelMove";
this.btnDelMove.Size = new System.Drawing.Size(140, 45); this.btnDelMove.Size = new System.Drawing.Size(140, 45);
this.btnDelMove.TabIndex = 332; this.btnDelMove.TabIndex = 332;
...@@ -678,7 +679,7 @@ ...@@ -678,7 +679,7 @@
// txtMiddleSpeed // txtMiddleSpeed
// //
this.txtMiddleSpeed.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtMiddleSpeed.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtMiddleSpeed.Location = new System.Drawing.Point(74, 226); this.txtMiddleSpeed.Location = new System.Drawing.Point(85, 194);
this.txtMiddleSpeed.MaxLength = 6; this.txtMiddleSpeed.MaxLength = 6;
this.txtMiddleSpeed.Name = "txtMiddleSpeed"; this.txtMiddleSpeed.Name = "txtMiddleSpeed";
this.txtMiddleSpeed.Size = new System.Drawing.Size(73, 26); this.txtMiddleSpeed.Size = new System.Drawing.Size(73, 26);
...@@ -706,11 +707,11 @@ ...@@ -706,11 +707,11 @@
this.btnAddMove.BackColor = System.Drawing.SystemColors.Control; this.btnAddMove.BackColor = System.Drawing.SystemColors.Control;
this.btnAddMove.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnAddMove.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnAddMove.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnAddMove.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAddMove.Location = new System.Drawing.Point(172, 217); this.btnAddMove.Location = new System.Drawing.Point(195, 184);
this.btnAddMove.Name = "btnAddMove"; this.btnAddMove.Name = "btnAddMove";
this.btnAddMove.Size = new System.Drawing.Size(140, 45); this.btnAddMove.Size = new System.Drawing.Size(140, 45);
this.btnAddMove.TabIndex = 330; this.btnAddMove.TabIndex = 330;
this.btnAddMove.Text = "点动+(上升)"; this.btnAddMove.Text = "点动+(下降)";
this.btnAddMove.UseVisualStyleBackColor = false; this.btnAddMove.UseVisualStyleBackColor = false;
this.btnAddMove.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btnAddMove_MouseDown); this.btnAddMove.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btnAddMove_MouseDown);
this.btnAddMove.MouseUp += new System.Windows.Forms.MouseEventHandler(this.btnAddMove_MouseUp); this.btnAddMove.MouseUp += new System.Windows.Forms.MouseEventHandler(this.btnAddMove_MouseUp);
...@@ -733,7 +734,7 @@ ...@@ -733,7 +734,7 @@
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(9, 231); this.label1.Location = new System.Drawing.Point(20, 199);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(68, 17); this.label1.Size = new System.Drawing.Size(68, 17);
this.label1.TabIndex = 329; this.label1.TabIndex = 329;
...@@ -760,13 +761,14 @@ ...@@ -760,13 +761,14 @@
this.btnReadPosition.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnReadPosition.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnReadPosition.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnReadPosition.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnReadPosition.ForeColor = System.Drawing.SystemColors.ControlText; this.btnReadPosition.ForeColor = System.Drawing.SystemColors.ControlText;
this.btnReadPosition.Location = new System.Drawing.Point(188, 140); this.btnReadPosition.Location = new System.Drawing.Point(563, 374);
this.btnReadPosition.Name = "btnReadPosition"; this.btnReadPosition.Name = "btnReadPosition";
this.btnReadPosition.RightToLeft = System.Windows.Forms.RightToLeft.No; this.btnReadPosition.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnReadPosition.Size = new System.Drawing.Size(110, 34); this.btnReadPosition.Size = new System.Drawing.Size(110, 34);
this.btnReadPosition.TabIndex = 278; this.btnReadPosition.TabIndex = 278;
this.btnReadPosition.Text = "读取位置"; this.btnReadPosition.Text = "读取位置";
this.btnReadPosition.UseVisualStyleBackColor = true; this.btnReadPosition.UseVisualStyleBackColor = true;
this.btnReadPosition.Visible = false;
this.btnReadPosition.Click += new System.EventHandler(this.btnReadPosition_Click); this.btnReadPosition.Click += new System.EventHandler(this.btnReadPosition_Click);
// //
// btnAxisVMove // btnAxisVMove
...@@ -776,13 +778,14 @@ ...@@ -776,13 +778,14 @@
this.btnAxisVMove.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnAxisVMove.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnAxisVMove.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnAxisVMove.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAxisVMove.ForeColor = System.Drawing.SystemColors.ControlText; this.btnAxisVMove.ForeColor = System.Drawing.SystemColors.ControlText;
this.btnAxisVMove.Location = new System.Drawing.Point(307, 89); this.btnAxisVMove.Location = new System.Drawing.Point(563, 337);
this.btnAxisVMove.Name = "btnAxisVMove"; this.btnAxisVMove.Name = "btnAxisVMove";
this.btnAxisVMove.RightToLeft = System.Windows.Forms.RightToLeft.No; this.btnAxisVMove.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnAxisVMove.Size = new System.Drawing.Size(110, 34); this.btnAxisVMove.Size = new System.Drawing.Size(110, 34);
this.btnAxisVMove.TabIndex = 249; this.btnAxisVMove.TabIndex = 249;
this.btnAxisVMove.Text = "匀速运动"; this.btnAxisVMove.Text = "匀速运动";
this.btnAxisVMove.UseVisualStyleBackColor = true; this.btnAxisVMove.UseVisualStyleBackColor = true;
this.btnAxisVMove.Visible = false;
this.btnAxisVMove.Click += new System.EventHandler(this.btnAxisVMove_Click); this.btnAxisVMove.Click += new System.EventHandler(this.btnAxisVMove_Click);
// //
// label8 // label8
...@@ -802,7 +805,7 @@ ...@@ -802,7 +805,7 @@
this.btnAxisRMove.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnAxisRMove.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnAxisRMove.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnAxisRMove.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAxisRMove.ForeColor = System.Drawing.SystemColors.ControlText; this.btnAxisRMove.ForeColor = System.Drawing.SystemColors.ControlText;
this.btnAxisRMove.Location = new System.Drawing.Point(427, 48); this.btnAxisRMove.Location = new System.Drawing.Point(307, 89);
this.btnAxisRMove.Name = "btnAxisRMove"; this.btnAxisRMove.Name = "btnAxisRMove";
this.btnAxisRMove.RightToLeft = System.Windows.Forms.RightToLeft.No; this.btnAxisRMove.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnAxisRMove.Size = new System.Drawing.Size(110, 34); this.btnAxisRMove.Size = new System.Drawing.Size(110, 34);
...@@ -937,16 +940,16 @@ ...@@ -937,16 +940,16 @@
// //
this.timer1.Tick += new System.EventHandler(this.timer1_Tick); this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
// //
// lblAlarmcode // linkLabel1
// //
this.lblAlarmcode.AutoSize = true; this.linkLabel1.AutoSize = true;
this.lblAlarmcode.Location = new System.Drawing.Point(422, 65); this.linkLabel1.Location = new System.Drawing.Point(192, 150);
this.lblAlarmcode.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.linkLabel1.Name = "linkLabel1";
this.lblAlarmcode.Name = "lblAlarmcode"; this.linkLabel1.Size = new System.Drawing.Size(32, 17);
this.lblAlarmcode.Size = new System.Drawing.Size(68, 17); this.linkLabel1.TabIndex = 333;
this.lblAlarmcode.TabIndex = 20; this.linkLabel1.TabStop = true;
this.lblAlarmcode.Text = "错误码:160"; this.linkLabel1.Text = "复制";
this.lblAlarmcode.Visible = false; this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
// //
// AxisMoveControl // AxisMoveControl
// //
...@@ -1008,7 +1011,6 @@ ...@@ -1008,7 +1011,6 @@
private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox txtServoStatue; private System.Windows.Forms.TextBox txtServoStatue;
private System.Windows.Forms.Button btnMCopy;
private System.Windows.Forms.Button btnDelMove; private System.Windows.Forms.Button btnDelMove;
private System.Windows.Forms.TextBox txtMiddleSpeed; private System.Windows.Forms.TextBox txtMiddleSpeed;
private System.Windows.Forms.Button btnAddMove; private System.Windows.Forms.Button btnAddMove;
...@@ -1040,5 +1042,6 @@ ...@@ -1040,5 +1042,6 @@
private System.Windows.Forms.Label label50; private System.Windows.Forms.Label label50;
private System.Windows.Forms.Timer timer1; private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Label lblAlarmcode; private System.Windows.Forms.Label lblAlarmcode;
private System.Windows.Forms.LinkLabel linkLabel1;
} }
} }
...@@ -12,6 +12,7 @@ using OnlineStore.Common; ...@@ -12,6 +12,7 @@ using OnlineStore.Common;
using System.Threading; using System.Threading;
using OnlineStore.LoadCSVLibrary; using OnlineStore.LoadCSVLibrary;
using HuichuanLibrary; using HuichuanLibrary;
using System.Net.Sockets;
namespace OnlineStore.AssemblyLine namespace OnlineStore.AssemblyLine
{ {
...@@ -353,5 +354,9 @@ namespace OnlineStore.AssemblyLine ...@@ -353,5 +354,9 @@ namespace OnlineStore.AssemblyLine
{ {
this.timer1.Stop(); this.timer1.Stop();
} }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Clipboard.SetText(lblCountPulse.Text);
}
} }
} }
...@@ -105,7 +105,7 @@ namespace OnlineStore.AssemblyLine ...@@ -105,7 +105,7 @@ namespace OnlineStore.AssemblyLine
} }
if (box.SAlarmType.Equals(LineAlarm.None)) if (box.SAlarmType.Equals(LineAlarm.None))
{ {
lblBox.Text = "BOX[" + box.CId.ToString() + "]:" + online +" "+ box.ToShowStr(); lblBox.Text = "BOX[" + box.CId.ToString() + "]:" + online + " " + box.ToShowStr();
lblBox.BackColor = Color.Green; lblBox.BackColor = Color.Green;
} }
else else
...@@ -124,8 +124,15 @@ namespace OnlineStore.AssemblyLine ...@@ -124,8 +124,15 @@ namespace OnlineStore.AssemblyLine
} }
else else
{ {
if (equip.MoveInfo.MoveType.Equals(LineMoveType.CheckFixture))
{
lblMoveInfo.Text = "托盘["+equip.currTrayNum+"]处理中";
}
else
{
lblMoveInfo.Text = "暂无托盘横移"; lblMoveInfo.Text = "暂无托盘横移";
} }
}
this.BackColor = equip.GetShowColor(); this.BackColor = equip.GetShowColor();
//SetItemColor(equip.runStatus, equip.alarmType); //SetItemColor(equip.runStatus, equip.alarmType);
} }
......
...@@ -14,12 +14,14 @@ namespace OnlineStore.DeviceLibrary ...@@ -14,12 +14,14 @@ namespace OnlineStore.DeviceLibrary
public abstract class EquipBase : KTK_Store public abstract class EquipBase : KTK_Store
{ {
public LineMoveInfo SecondMoveInfo = null;
public bool IsDebug = false; public bool IsDebug = false;
public bool UseAxis = false; public bool UseAxis = false;
public ConcurrentQueue<InOutParam> waitOutStoreList = new ConcurrentQueue<InOutParam>(); public ConcurrentQueue<InOutParam> waitOutStoreList = new ConcurrentQueue<InOutParam>();
public List<InOutParam> waitInStoreList = new List<InOutParam>(); public List<InOutParam> waitInStoreList = new List<InOutParam>();
internal object waitInListLock = ""; internal object waitInListLock = "";
public LineMoveInfo SecondMoveInfo = null;
protected int trayCount = 0; protected int trayCount = 0;
/// <summary> /// <summary>
/// 上一个盘号 /// 上一个盘号
...@@ -35,9 +37,6 @@ namespace OnlineStore.DeviceLibrary ...@@ -35,9 +37,6 @@ namespace OnlineStore.DeviceLibrary
public AxisBean UpdownAxis = null; public AxisBean UpdownAxis = null;
public delegate void TrayProcessEnd(int swNum, int trayNum); public delegate void TrayProcessEnd(int swNum, int trayNum);
protected virtual void StopMoveProcess()
{
}
protected abstract void BaseTimerProcess(); protected abstract void BaseTimerProcess();
protected abstract void CheckFixtureProcess(); protected abstract void CheckFixtureProcess();
...@@ -75,38 +74,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -75,38 +74,7 @@ namespace OnlineStore.DeviceLibrary
} }
public bool MoveStop = false; public bool MoveStop = false;
protected override void BusyMoveProcess()
{
if (MoveStop)
{
return;
}
if (SecondMoveInfo.MoveType.Equals(LineMoveType.CheckFixture))
{
CheckFixtureProcess();
}
if (MoveInfo.MoveType.Equals(LineMoveType.InStore) || this.SecondMoveInfo.MoveType.Equals(LineMoveType.InStore))
{
InStoreProcess();
}
else if (MoveInfo.MoveType.Equals(LineMoveType.OutStore) || SecondMoveInfo.MoveType.Equals(LineMoveType.OutStore))
{
OutStoreProcess();
}
else if (MoveInfo.MoveType.Equals(LineMoveType.ReturnHome))
{
ResetProcess();
}
else if (MoveInfo.MoveType.Equals(LineMoveType.Reset))
{
ResetProcess();
}
else if (MoveInfo.MoveType.Equals(LineMoveType.StopMove))
{
StopMoveProcess();
}
}
private DateTime lastProTimer = DateTime.Now; private DateTime lastProTimer = DateTime.Now;
protected int TimerMaxSeconds = 3; protected int TimerMaxSeconds = 3;
...@@ -187,7 +155,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -187,7 +155,7 @@ namespace OnlineStore.DeviceLibrary
string canResult = LineManager.Line.CanStart(); string canResult = LineManager.Line.CanStart();
if (String.IsNullOrEmpty(canResult).Equals(false)) if (String.IsNullOrEmpty(canResult).Equals(false))
{ {
SetWarnMsg(canResult); SetWarnMsg(Name+ canResult);
return false; return false;
} }
return true; return true;
...@@ -613,32 +581,20 @@ namespace OnlineStore.DeviceLibrary ...@@ -613,32 +581,20 @@ namespace OnlineStore.DeviceLibrary
} }
} }
} }
protected string RFIDIP="";
protected void SInOutLog(string msg)
{
string posId = SecondMoveInfo.MoveParam != null ? SecondMoveInfo.MoveParam.PosId : "";
if (String.IsNullOrEmpty(posId))
{
LogUtil.info(Name + " " + msg);
}
else
{
LogUtil.info(Name + " " + "[" + posId + "] " + msg);
}
}
public virtual string GetMoveStr() public virtual string GetMoveStr()
{ {
string msg = ""; string msg = "";
int tLength = 15; int tLength = 15;
if (!String.IsNullOrEmpty(RFIDIP))
{
msg += "上个托盘:" + preTrayNum + "\n"; msg += "上个托盘:" + preTrayNum + "\n";
msg += "当前托盘:" + currTrayNum + "\n"; msg += "当前托盘:" + currTrayNum + "\n";
}
msg += "runS: " + runStatus + "\n"; msg += "runS: " + runStatus + "\n";
msg += "alarm: " + alarmType +" "+LastAlarmTime.ToLongTimeString()+ "\n"; msg += "alarm: " + alarmType +" "+LastAlarmTime.ToLongTimeString()+ "\n";
msg += "MoveT:"+ MoveInfo.MoveType+"\n"; msg += "Move:"+ MoveInfo.MoveType+ " " + MoveInfo.SLog + "\n";
msg += "MoveS :" + MoveInfo.SLog + "\n"; msg += "SMove:" + SecondMoveInfo.MoveType + " " + SecondMoveInfo.MoveStep + "\n";
msg += "SMoveT:" + SecondMoveInfo.MoveType + "\n";
msg += "SMoveS:" + SecondMoveInfo.MoveStep + "";
return msg; return msg;
} }
internal void MoveEndS() internal void MoveEndS()
......
...@@ -28,7 +28,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -28,7 +28,7 @@ namespace OnlineStore.DeviceLibrary
baseConfig = config; baseConfig = config;
this.Config = config; this.Config = config;
IsDebug = config.IsDebug.Equals(1); IsDebug = config.IsDebug.Equals(1);
Name = (" " + "_入料_T" + DeviceID % 100 + " ").ToUpper(); Name = (" " + "入料T" + DeviceID % 100 + " ").ToUpper();
Init(); Init();
UseAxis = true; UseAxis = true;
...@@ -36,6 +36,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -36,6 +36,7 @@ namespace OnlineStore.DeviceLibrary
BatchAxis = new AxisBean(config.Batch_Axis, Name); BatchAxis = new AxisBean(config.Batch_Axis, Name);
MoveInfo = new LineMoveInfo(DeviceID, "[" + Name.Trim() + "-Move]"); MoveInfo = new LineMoveInfo(DeviceID, "[" + Name.Trim() + "-Move]");
SecondMoveInfo = new LineMoveInfo(DeviceID, "[" + Name.Trim() + "-SMove]"); SecondMoveInfo = new LineMoveInfo(DeviceID, "[" + Name.Trim() + "-SMove]");
RFIDIP = RFIDManager.GetRFIP(DeviceID);
} }
...@@ -396,17 +397,17 @@ namespace OnlineStore.DeviceLibrary ...@@ -396,17 +397,17 @@ namespace OnlineStore.DeviceLibrary
StartOutStoreP(); StartOutStoreP();
} }
} }
if (SecondMoveInfo.MoveType.Equals(LineMoveType.None) && NoErrorAlarm()) //if (SecondMoveInfo.MoveType.Equals(LineMoveType.None) && NoErrorAlarm())
{ //{
if (Config.IsCanOut.Equals(0)) // if (Config.IsCanOut.Equals(0))
{ // {
StartCheckFixture(); // StartCheckFixture();
} // }
else if (LineManager.Line.runStatus <= LineRunStatus.Wait) // else if (LineManager.Line.runStatus <= LineRunStatus.Wait)
{ // {
StartCheckFixture(); // StartCheckFixture();
} // }
} //}
if (NoErrorAlarm()) if (NoErrorAlarm())
{ {
if (IOValue(IO_Type.SL_Out_Check).Equals(IO_VALUE.HIGH)) if (IOValue(IO_Type.SL_Out_Check).Equals(IO_VALUE.HIGH))
...@@ -964,8 +965,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -964,8 +965,8 @@ namespace OnlineStore.DeviceLibrary
msg += "alarm: " + alarmType + "\n"; msg += "alarm: " + alarmType + "\n";
msg += "MoveT:" + MoveInfo.MoveType + "\n"; msg += "MoveT:" + MoveInfo.MoveType + "\n";
msg += "MoveS :" + MoveInfo.SLog + "\n"; msg += "MoveS :" + MoveInfo.SLog + "\n";
msg += "SMoveT:" + SecondMoveInfo.MoveType + "\n"; //msg += "SMoveT:" + SecondMoveInfo.MoveType + "\n";
msg += "SMoveS:" + SecondMoveInfo.MoveStep + "\n"; //msg += "SMoveS:" + SecondMoveInfo.MoveStep + "\n";
// msg += "" + LastWidth + "X" + LastHeight + "="+ lastcode + ""; // msg += "" + LastWidth + "X" + LastHeight + "="+ lastcode + "";
return msg; return msg;
......
...@@ -51,7 +51,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -51,7 +51,7 @@ namespace OnlineStore.DeviceLibrary
this.Config = config; this.Config = config;
baseConfig = config; baseConfig = config;
IsDebug = config.IsDebug.Equals(1); IsDebug = config.IsDebug.Equals(1);
Name = ("_HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper(); Name = (" HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + " ").ToUpper();
Init(); Init();
MoveInfo = new LineMoveInfo(DeviceID, "[" + Name.Trim() + "-Move]"); MoveInfo = new LineMoveInfo(DeviceID, "[" + Name.Trim() + "-Move]");
...@@ -115,6 +115,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -115,6 +115,7 @@ namespace OnlineStore.DeviceLibrary
{ {
HyInDeviceId = 218; HyInDeviceId = 218;
} }
RFIDIP = RFIDManager.GetRFIP(DeviceID);
} }
......
...@@ -20,7 +20,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -20,7 +20,7 @@ namespace OnlineStore.DeviceLibrary
{ {
public HY_C1Line(string cid, HYEquip_Config config) : base(cid, config) public HY_C1Line(string cid, HYEquip_Config config) : base(cid, config)
{ {
Name = ("_C1线HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper(); Name = (" C1HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + " ").ToUpper();
} }
public override bool StartRun(bool isDebug = false) public override bool StartRun(bool isDebug = false)
......
...@@ -17,7 +17,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -17,7 +17,7 @@ namespace OnlineStore.DeviceLibrary
{ {
public HY_C1_SLStation(string cid, HYEquip_Config config) : base(cid, config) public HY_C1_SLStation(string cid, HYEquip_Config config) : base(cid, config)
{ {
Name = ("_C1线THY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper(); Name = (" C1THY" + (DeviceID % 100).ToString().PadLeft(2, '0') + " ").ToUpper();
} }
public override bool StartRun(bool isDebug = false) public override bool StartRun(bool isDebug = false)
......
...@@ -7,11 +7,14 @@ using System.Threading.Tasks; ...@@ -7,11 +7,14 @@ using System.Threading.Tasks;
namespace OnlineStore.DeviceLibrary namespace OnlineStore.DeviceLibrary
{ {
/// <summary>
/// 接驳台横移
/// </summary>
public class HY_Coveryor:HYEquipBase public class HY_Coveryor:HYEquipBase
{ {
public HY_Coveryor(string cid, HYEquip_Config config) : base(cid, config) public HY_Coveryor(string cid, HYEquip_Config config) : base(cid, config)
{ {
Name = ("_接驳台HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper(); Name = (" JHY" + (DeviceID % 100).ToString().PadLeft(2, '0') + " ").ToUpper();
} }
...@@ -46,7 +49,6 @@ namespace OnlineStore.DeviceLibrary ...@@ -46,7 +49,6 @@ namespace OnlineStore.DeviceLibrary
return false; return false;
} }
LogInfo("开始重置: 升降轴回原点,阻挡气缸上升 "); LogInfo("开始重置: 升降轴回原点,阻挡气缸上升 ");
runStatus = LineRunStatus.Reset; runStatus = LineRunStatus.Reset;
SecondMoveInfo.EndMove(); SecondMoveInfo.EndMove();
MoveInfo.NewMove(LineMoveType.Reset); MoveInfo.NewMove(LineMoveType.Reset);
......
...@@ -14,10 +14,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -14,10 +14,8 @@ namespace OnlineStore.DeviceLibrary
{ {
public HY_OutLine(string cid, HYEquip_Config config) : base(cid, config) public HY_OutLine(string cid, HYEquip_Config config) : base(cid, config)
{ {
Name = ("_"+config.LineName+"线HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper(); Name = (" "+config.LineName+"HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + " ").ToUpper();
} }
public override bool StartRun(bool isDebug = false) public override bool StartRun(bool isDebug = false)
{ {
if (CanStartRun().Equals(false)) if (CanStartRun().Equals(false))
...@@ -309,9 +307,6 @@ namespace OnlineStore.DeviceLibrary ...@@ -309,9 +307,6 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_TrayCheck, IO_VALUE.LOW)); MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_TrayCheck, IO_VALUE.LOW));
} }
#endregion #endregion
else if (MoveInfo.IsStep(LineMoveStep.OHY21_WaitTrayLeave)) else if (MoveInfo.IsStep(LineMoveStep.OHY21_WaitTrayLeave))
{ {
MoveInfo.NextMoveStep(LineMoveStep.OHY22_TrayLeave); MoveInfo.NextMoveStep(LineMoveStep.OHY22_TrayLeave);
......
...@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
this.Config = config; this.Config = config;
baseConfig = config; baseConfig = config;
IsDebug = config.IsDebug.Equals(1); IsDebug = config.IsDebug.Equals(1);
Name = (" " + "_"+ GetNByID() + "_进仓" + DeviceID.ToString().PadLeft(2, '0') + "_" ).ToUpper(); Name = (" " + ""+ GetNByID() + "进仓" + DeviceID.ToString().PadLeft(2, '0') + " " ).ToUpper();
Init(); Init();
...@@ -32,6 +32,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -32,6 +32,7 @@ namespace OnlineStore.DeviceLibrary
UseAxis = config.UpDownUseAxis.Equals(1); UseAxis = config.UpDownUseAxis.Equals(1);
UpdownAxis = new AxisBean(config.UpDown_Axis, Name); UpdownAxis = new AxisBean(config.UpDown_Axis, Name);
RFIDIP = RFIDManager.GetRFIP(DeviceID);
} }
private string GetNByID() private string GetNByID()
{ {
...@@ -221,8 +222,34 @@ namespace OnlineStore.DeviceLibrary ...@@ -221,8 +222,34 @@ namespace OnlineStore.DeviceLibrary
CheckAndMove(IO_Type.ClampCylinder_Relax, IO_VALUE.LOW); CheckAndMove(IO_Type.ClampCylinder_Relax, IO_VALUE.LOW);
runStatus = LineRunStatus.Wait; runStatus = LineRunStatus.Wait;
} }
protected override void BusyMoveProcess()
{
if (MoveStop)
{
return;
}
if (SecondMoveInfo.MoveType.Equals(LineMoveType.CheckFixture))
{
CheckFixtureProcess();
}
if (MoveInfo.MoveType.Equals(LineMoveType.InStore) || this.SecondMoveInfo.MoveType.Equals(LineMoveType.InStore))
{
InStoreProcess();
}
else if (MoveInfo.MoveType.Equals(LineMoveType.OutStore) || SecondMoveInfo.MoveType.Equals(LineMoveType.OutStore))
{
OutStoreProcess();
}
else if (MoveInfo.MoveType.Equals(LineMoveType.ReturnHome))
{
ResetProcess();
}
else if (MoveInfo.MoveType.Equals(LineMoveType.Reset))
{
ResetProcess();
}
}
protected override void BaseTimerProcess() protected override void BaseTimerProcess()
{ {
if (isInSuddenDown || isNoAirCheck) if (isInSuddenDown || isNoAirCheck)
......
...@@ -200,7 +200,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -200,7 +200,7 @@ namespace OnlineStore.DeviceLibrary
{ {
// 减去需要的盘数 // 减去需要的盘数
// TrayManager.DelNeedEmptyTrayNum(); // TrayManager.DelNeedEmptyTrayNum();
SInOutLog("出库 :移栽完成,放行托盘"); OutLog("出库 :移栽完成,放行托盘");
SecondMoveInfo.NewMove(LineMoveType.CheckFixture); SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_Up, IO_Type.TopCylinder_Down); CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_Up, IO_Type.TopCylinder_Down);
...@@ -330,9 +330,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -330,9 +330,10 @@ namespace OnlineStore.DeviceLibrary
{ {
int num = MoveInfo.MoveParam.TrayNumber; int num = MoveInfo.MoveParam.TrayNumber;
MoveInfo.NextMoveStep(LineMoveStep.MI_10_WaitBox); MoveInfo.NextMoveStep(LineMoveStep.MI_10_WaitBox);
LogInfo("入库【" + posId + "】 " + MoveInfo.SLog + ": 等待box可入库,更新托盘【" + num + "】为空盘"); LogInfo("入库【" + posId + "】 " + MoveInfo.SLog + ": 等待box可入库,更新托盘【" + num + "】为空盘,删除入库任务");
MoveInfo.WaitList.Add(WaitResultInfo.WaitBoxCanReviceTray()); MoveInfo.WaitList.Add(WaitResultInfo.WaitBoxCanReviceTray());
TrayManager.UpdateTrayInfo(num); TrayManager.UpdateTrayInfo(num);
RemoveInStore(MoveInfo.MoveParam);
InLog("放托盘(放开阻挡): " + MoveInfo.SLog + " 物品已移走,顶升气缸1下降"); InLog("放托盘(放开阻挡): " + MoveInfo.SLog + " 物品已移走,顶升气缸1下降");
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
...@@ -572,7 +573,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -572,7 +573,7 @@ namespace OnlineStore.DeviceLibrary
{ {
LogUtil.error(Name + "托盘号【" + currTrayNum + "】入库信息【" + currCode.ToStr() + "】料仓未验证成功,不拦截托盘,更新此托盘为NG,从waitInStoreList中删除,取消入库任务"); LogUtil.error(Name + "托盘号【" + currTrayNum + "】入库信息【" + currCode.ToStr() + "】料仓未验证成功,不拦截托盘,更新此托盘为NG,从waitInStoreList中删除,取消入库任务");
TrayManager.UpdateInStoreNG(currTrayNum, true, "Box验证入库失败"); TrayManager.UpdateInStoreNG(currTrayNum, true, "Box验证入库失败");
waitInStoreList.RemoveAt(reIndex); //waitInStoreList.RemoveAt(reIndex);
SServerManager.cancelPutInTask(Name, currCode.WareCode); SServerManager.cancelPutInTask(Name, currCode.WareCode);
return false; return false;
} }
...@@ -584,6 +585,35 @@ namespace OnlineStore.DeviceLibrary ...@@ -584,6 +585,35 @@ namespace OnlineStore.DeviceLibrary
return false; return false;
} }
private bool RemoveInStore(InOutParam param)
{
if (waitInStoreList.Count > 0)
{
lock (waitInListLock)
{
//判断是否是自己排队列表中的入库信息
int reIndex = -1;
for (int i = 0; i < waitInStoreList.Count; i++)
{
InOutParam cc = waitInStoreList[i];
//托盘号一致,二维码一致,库位号一致
if (cc.TrayNumber.Equals(param.TrayNumber) && cc.PosId.Equals(param.PosId) && cc.WareCode.Equals(param.WareCode))
{
reIndex = i;
break;
}
}
if (reIndex >= 0)
{
waitInStoreList.RemoveAt(reIndex);
LogInfo("*******料盘已移走,清理入库任务:【" + param.ToStr() + "】");
return true;
}
}
}
return false;
}
#endregion #endregion
#region 托盘检测 #region 托盘检测
......
...@@ -270,6 +270,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -270,6 +270,10 @@ namespace OnlineStore.DeviceLibrary
{ {
if (String.IsNullOrEmpty(msg).Equals(false)) if (String.IsNullOrEmpty(msg).Equals(false))
{ {
if (!msg.StartsWith(Name))
{
msg = Name + msg;
}
if (WarnMsg.Equals(msg)) if (WarnMsg.Equals(msg))
{ {
if (msg.StartsWith(Name)) if (msg.StartsWith(Name))
......
...@@ -576,17 +576,5 @@ namespace OnlineStore.DeviceLibrary ...@@ -576,17 +576,5 @@ namespace OnlineStore.DeviceLibrary
/// 夹具检测处理 /// 夹具检测处理
/// </summary> /// </summary>
CheckFixture = 5, CheckFixture = 5,
/// <summary>
/// 移栽装置的停止,需要先远点返回,然后停止
/// </summary>
StopMove = 6,
/// <summary>
/// 夹具横移处理
/// </summary>
HY=7,
///// <summary>
///// 移栽检测托盘
///// </summary>
//CheckFixture=6,
} }
} }
...@@ -107,14 +107,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -107,14 +107,8 @@ namespace OnlineStore.DeviceLibrary
ResetMove =13, ResetMove =13,
} }
/// <summary>
/// 料仓运动状态(当料仓状态=busy时,才会有此运动状态)
/// </summary>
public enum LineMoveStep public enum LineMoveStep
{ {
/// <summary>
/// 无操作,等待状态
/// </summary>
Wait = 0, Wait = 0,
...@@ -1251,7 +1245,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -1251,7 +1245,7 @@ namespace OnlineStore.DeviceLibrary
#endregion #endregion
#region 横移模块 50000开始 #region C1线横移模块 50000开始
#region 横移模块复位,50001 #region 横移模块复位,50001
/// <summary> /// <summary>
...@@ -1305,7 +1299,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -1305,7 +1299,7 @@ namespace OnlineStore.DeviceLibrary
#endregion #endregion
#region 横移 C1->C1分流入口横移操作 51011 #region 横移 C1->C1分流入口横移操作 51011-51019
/// <summary> /// <summary>
/// 横移C1->C1分流入口:开始横移,顶升上升,定位下降 /// 横移C1->C1分流入口:开始横移,顶升上升,定位下降
/// </summary> /// </summary>
...@@ -1343,7 +1337,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -1343,7 +1337,7 @@ namespace OnlineStore.DeviceLibrary
#endregion #endregion
#region 横移 C1线->出料线 横移处理 51031 #region 横移 C1线->出料线 横移处理 51031-51039
/// <summary> /// <summary>
/// C1线->出料线:开始横移,顶升上升 /// C1线->出料线:开始横移,顶升上升
/// </summary> /// </summary>
...@@ -1522,6 +1516,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -1522,6 +1516,8 @@ namespace OnlineStore.DeviceLibrary
HY95_StopDownUp, HY95_StopDownUp,
#endregion #endregion
#endregion
#region 出料线横移,52001 #region 出料线横移,52001
/// <summary> /// <summary>
...@@ -1587,8 +1583,52 @@ namespace OnlineStore.DeviceLibrary ...@@ -1587,8 +1583,52 @@ namespace OnlineStore.DeviceLibrary
OHY22_TrayLeave, OHY22_TrayLeave,
#endregion #endregion
#region 接驳台横移, 53001
#region 接驳台横移复位
//升降轴回待机点
//升降轴回P1
//电机停止,阻挡上升,定位下降,顶升下降,接驳台取料端
//,接驳台夹料气缸放松
//等待夹爪无料
/// <summary>
/// 接驳台横移复位:升降轴回原点
/// </summary>
JHY_R01_UpdownHome = 53001,
/// <summary>
/// 接驳台横移复位:升降轴到P1
/// </summary>
JHY_R02_UpdownUp,
/// <summary>
/// 接驳台横移复位:电机停止,阻挡上升,定位气缸下降,接驳台取料端
/// </summary>
JHY_R03_LocationDown,
/// <summary>
/// 接驳台横移复位:升降气缸下降,夹紧气缸放松
/// </summary>
JHY_R04_TopDown,
/// <summary>
/// 接驳台横移复位:等待夹爪无信号
/// </summary>
JHY_R05_ClampCheck,
#endregion
#region 接驳台横移托盘处理
#endregion
#endregion #endregion
} }
public enum LineAlarmType public enum LineAlarmType
......
...@@ -74,7 +74,12 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -74,7 +74,12 @@ namespace OnlineStore.LoadCSVLibrary
{ {
throw new FileNotFoundException("未找到文件:" + filePath); throw new FileNotFoundException("未找到文件:" + filePath);
} }
string[] lines = File.ReadAllLines(filePath, Encoding.UTF8); Encoding encoding = Encoding.UTF8;
if (!FileEncoding.GetType(filePath).Equals(Encoding.UTF8))
{
encoding = Encoding.GetEncoding("gb2312");
}
string[] lines = File.ReadAllLines(filePath, encoding);
return lines; return lines;
} }
/// <summary> /// <summary>
......
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace OnlineStore.LoadCSVLibrary
{
public class FileEncoding
{
/// <summary>
/// 给定文件的路径,读取文件的二进制数据,判断文件的编码类型
/// </summary>
/// <param name=“FILE_NAME“>文件路径</param>
/// <returns>文件的编码类型</returns>
public static System.Text.Encoding GetType(string FILE_NAME)
{
FileStream fs = new FileStream(FILE_NAME, FileMode.Open, FileAccess.Read);
Encoding r = GetType(fs);
fs.Close();
return r;
}
/// <summary>
/// 通过给定的文件流,判断文件的编码类型
/// </summary>
/// <param name=“fs“>文件流</param>
/// <returns>文件的编码类型</returns>
public static System.Text.Encoding GetType(FileStream fs)
{
byte[] Unicode = new byte[] { 0xFF, 0xFE, 0x41 };
byte[] UnicodeBIG = new byte[] { 0xFE, 0xFF, 0x00 };
byte[] UTF8 = new byte[] { 0xEF, 0xBB, 0xBF }; //带BOM
Encoding reVal = Encoding.Default;
BinaryReader r = new BinaryReader(fs, System.Text.Encoding.Default);
int i;
int.TryParse(fs.Length.ToString(), out i);
byte[] ss = r.ReadBytes(i);
if (IsUTF8Bytes(ss) || (ss[0] == 0xEF && ss[1] == 0xBB && ss[2] == 0xBF))
{
reVal = Encoding.UTF8;
}
else if (ss[0] == 0xFE && ss[1] == 0xFF && ss[2] == 0x00)
{
reVal = Encoding.BigEndianUnicode;
}
else if (ss[0] == 0xFF && ss[1] == 0xFE && ss[2] == 0x41)
{
reVal = Encoding.Unicode;
}
r.Close();
return reVal;
}
/// <summary>
/// 判断是否是不带 BOM 的 UTF8 格式
/// </summary>
/// <param name=“data“></param>
/// <returns></returns>
private static bool IsUTF8Bytes(byte[] data)
{
int charByteCounter = 1; //计算当前正分析的字符应还有的字节数
byte curByte; //当前分析的字节.
for (int i = 0; i < data.Length; i++)
{
curByte = data[i];
if (charByteCounter == 1)
{
if (curByte >= 0x80)
{
//判断当前
while (((curByte <<= 1) & 0x80) != 0)
{
charByteCounter++;
}
//标记位首位若为非0 则至少以2个1开始 如:110XXXXX...........1111110X
if (charByteCounter == 1 || charByteCounter > 6)
{
return false;
}
}
}
else
{
//若是UTF-8 此时第一位必须为1
if ((curByte & 0xC0) != 0x80)
{
return false;
}
charByteCounter--;
}
}
if (charByteCounter > 1)
{
throw new Exception("非预期的byte格式");
}
return true;
}
}
}
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="CSVExection.cs" /> <Compile Include="CSVExection.cs" />
<Compile Include="FileEncoding.cs" />
<Compile Include="storeConfig\ConfigItemBase.cs" /> <Compile Include="storeConfig\ConfigItemBase.cs" />
<Compile Include="storeConfig\ConfigProAttribute.cs" /> <Compile Include="storeConfig\ConfigProAttribute.cs" />
<Compile Include="storeConfig\config\Line_Config.cs" /> <Compile Include="storeConfig\config\Line_Config.cs" />
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!