Commit 6c12ac94 LN

1

1 个父辈 9baff2b0
......@@ -54,6 +54,13 @@
this.btnComMove = new System.Windows.Forms.Button();
this.txtComSpeed = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.trackBar1 = new System.Windows.Forms.TrackBar();
this.lblSpeed = new System.Windows.Forms.Label();
this.btnCCopy = new System.Windows.Forms.Button();
this.btnICopy = new System.Windows.Forms.Button();
this.btnUCopy = new System.Windows.Forms.Button();
this.btnMCopy = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
this.SuspendLayout();
//
// label1
......@@ -86,7 +93,8 @@
// btnMiddleMove
//
this.btnMiddleMove.BackColor = System.Drawing.SystemColors.Control;
this.btnMiddleMove.Location = new System.Drawing.Point(266, 70);
this.btnMiddleMove.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMiddleMove.Location = new System.Drawing.Point(254, 70);
this.btnMiddleMove.Name = "btnMiddleMove";
this.btnMiddleMove.Size = new System.Drawing.Size(131, 36);
this.btnMiddleMove.TabIndex = 4;
......@@ -97,29 +105,33 @@
//
// txtMiddleSpeed
//
this.txtMiddleSpeed.Enabled = false;
this.txtMiddleSpeed.Location = new System.Drawing.Point(150, 75);
this.txtMiddleSpeed.Name = "txtMiddleSpeed";
this.txtMiddleSpeed.Size = new System.Drawing.Size(108, 23);
this.txtMiddleSpeed.Size = new System.Drawing.Size(89, 23);
this.txtMiddleSpeed.TabIndex = 5;
//
// txtUpDownSpeed
//
this.txtUpDownSpeed.Enabled = false;
this.txtUpDownSpeed.Location = new System.Drawing.Point(150, 129);
this.txtUpDownSpeed.Name = "txtUpDownSpeed";
this.txtUpDownSpeed.Size = new System.Drawing.Size(108, 23);
this.txtUpDownSpeed.Size = new System.Drawing.Size(89, 23);
this.txtUpDownSpeed.TabIndex = 6;
//
// txtInOutSpeed
//
this.txtInOutSpeed.Enabled = false;
this.txtInOutSpeed.Location = new System.Drawing.Point(150, 182);
this.txtInOutSpeed.Name = "txtInOutSpeed";
this.txtInOutSpeed.Size = new System.Drawing.Size(108, 23);
this.txtInOutSpeed.Size = new System.Drawing.Size(89, 23);
this.txtInOutSpeed.TabIndex = 7;
//
// btnUpDownMove
//
this.btnUpDownMove.BackColor = System.Drawing.SystemColors.Control;
this.btnUpDownMove.Location = new System.Drawing.Point(266, 124);
this.btnUpDownMove.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpDownMove.Location = new System.Drawing.Point(254, 124);
this.btnUpDownMove.Name = "btnUpDownMove";
this.btnUpDownMove.Size = new System.Drawing.Size(131, 36);
this.btnUpDownMove.TabIndex = 9;
......@@ -131,7 +143,8 @@
// btnInOutMove
//
this.btnInOutMove.BackColor = System.Drawing.SystemColors.Control;
this.btnInOutMove.Location = new System.Drawing.Point(266, 177);
this.btnInOutMove.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnInOutMove.Location = new System.Drawing.Point(254, 177);
this.btnInOutMove.Name = "btnInOutMove";
this.btnInOutMove.Size = new System.Drawing.Size(131, 36);
this.btnInOutMove.TabIndex = 10;
......@@ -143,7 +156,8 @@
// btnInOutMovej
//
this.btnInOutMovej.BackColor = System.Drawing.SystemColors.Control;
this.btnInOutMovej.Location = new System.Drawing.Point(401, 177);
this.btnInOutMovej.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnInOutMovej.Location = new System.Drawing.Point(389, 177);
this.btnInOutMovej.Name = "btnInOutMovej";
this.btnInOutMovej.Size = new System.Drawing.Size(131, 36);
this.btnInOutMovej.TabIndex = 14;
......@@ -155,7 +169,8 @@
// btnUpDownMovej
//
this.btnUpDownMovej.BackColor = System.Drawing.SystemColors.Control;
this.btnUpDownMovej.Location = new System.Drawing.Point(401, 124);
this.btnUpDownMovej.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpDownMovej.Location = new System.Drawing.Point(389, 124);
this.btnUpDownMovej.Name = "btnUpDownMovej";
this.btnUpDownMovej.Size = new System.Drawing.Size(131, 36);
this.btnUpDownMovej.TabIndex = 13;
......@@ -167,7 +182,8 @@
// btnMiddleMovej
//
this.btnMiddleMovej.BackColor = System.Drawing.SystemColors.Control;
this.btnMiddleMovej.Location = new System.Drawing.Point(401, 70);
this.btnMiddleMovej.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMiddleMovej.Location = new System.Drawing.Point(389, 70);
this.btnMiddleMovej.Name = "btnMiddleMovej";
this.btnMiddleMovej.Size = new System.Drawing.Size(131, 36);
this.btnMiddleMovej.TabIndex = 12;
......@@ -178,7 +194,8 @@
//
// button1
//
this.button1.Location = new System.Drawing.Point(401, 336);
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Location = new System.Drawing.Point(533, 330);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(126, 37);
this.button1.TabIndex = 16;
......@@ -188,21 +205,24 @@
//
// txtInOutPosition
//
this.txtInOutPosition.Location = new System.Drawing.Point(551, 182);
this.txtInOutPosition.Enabled = false;
this.txtInOutPosition.Location = new System.Drawing.Point(534, 182);
this.txtInOutPosition.Name = "txtInOutPosition";
this.txtInOutPosition.Size = new System.Drawing.Size(108, 23);
this.txtInOutPosition.TabIndex = 19;
//
// txtUpdownPosition
//
this.txtUpdownPosition.Location = new System.Drawing.Point(551, 129);
this.txtUpdownPosition.Enabled = false;
this.txtUpdownPosition.Location = new System.Drawing.Point(534, 129);
this.txtUpdownPosition.Name = "txtUpdownPosition";
this.txtUpdownPosition.Size = new System.Drawing.Size(108, 23);
this.txtUpdownPosition.TabIndex = 18;
//
// txtMiddlePosition
//
this.txtMiddlePosition.Location = new System.Drawing.Point(551, 75);
this.txtMiddlePosition.Enabled = false;
this.txtMiddlePosition.Location = new System.Drawing.Point(534, 75);
this.txtMiddlePosition.Name = "txtMiddlePosition";
this.txtMiddlePosition.Size = new System.Drawing.Size(108, 23);
this.txtMiddlePosition.TabIndex = 17;
......@@ -210,7 +230,7 @@
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(172, 31);
this.label5.Location = new System.Drawing.Point(166, 31);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(56, 17);
this.label5.TabIndex = 20;
......@@ -219,7 +239,7 @@
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(566, 31);
this.label6.Location = new System.Drawing.Point(554, 31);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(56, 17);
this.label6.TabIndex = 21;
......@@ -232,7 +252,8 @@
//
// txtComPosition
//
this.txtComPosition.Location = new System.Drawing.Point(551, 240);
this.txtComPosition.Enabled = false;
this.txtComPosition.Location = new System.Drawing.Point(534, 240);
this.txtComPosition.Name = "txtComPosition";
this.txtComPosition.Size = new System.Drawing.Size(108, 23);
this.txtComPosition.TabIndex = 26;
......@@ -240,7 +261,8 @@
// btnComMovej
//
this.btnComMovej.BackColor = System.Drawing.SystemColors.Control;
this.btnComMovej.Location = new System.Drawing.Point(401, 235);
this.btnComMovej.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnComMovej.Location = new System.Drawing.Point(389, 235);
this.btnComMovej.Name = "btnComMovej";
this.btnComMovej.Size = new System.Drawing.Size(131, 36);
this.btnComMovej.TabIndex = 25;
......@@ -252,7 +274,8 @@
// btnComMove
//
this.btnComMove.BackColor = System.Drawing.SystemColors.Control;
this.btnComMove.Location = new System.Drawing.Point(266, 235);
this.btnComMove.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnComMove.Location = new System.Drawing.Point(254, 235);
this.btnComMove.Name = "btnComMove";
this.btnComMove.Size = new System.Drawing.Size(131, 36);
this.btnComMove.TabIndex = 24;
......@@ -263,9 +286,10 @@
//
// txtComSpeed
//
this.txtComSpeed.Enabled = false;
this.txtComSpeed.Location = new System.Drawing.Point(150, 240);
this.txtComSpeed.Name = "txtComSpeed";
this.txtComSpeed.Size = new System.Drawing.Size(108, 23);
this.txtComSpeed.Size = new System.Drawing.Size(89, 23);
this.txtComSpeed.TabIndex = 23;
//
// label4
......@@ -277,11 +301,82 @@
this.label4.TabIndex = 22;
this.label4.Text = "(轴四)压紧轴";
//
// trackBar1
//
this.trackBar1.LargeChange = 2;
this.trackBar1.Location = new System.Drawing.Point(53, 322);
this.trackBar1.Minimum = 1;
this.trackBar1.Name = "trackBar1";
this.trackBar1.Size = new System.Drawing.Size(366, 45);
this.trackBar1.TabIndex = 27;
this.trackBar1.Value = 2;
this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);
this.trackBar1.ValueChanged += new System.EventHandler(this.trackBar1_ValueChanged);
//
// lblSpeed
//
this.lblSpeed.AutoSize = true;
this.lblSpeed.Location = new System.Drawing.Point(324, 374);
this.lblSpeed.Name = "lblSpeed";
this.lblSpeed.Size = new System.Drawing.Size(142, 17);
this.lblSpeed.TabIndex = 28;
this.lblSpeed.Text = "点动速度=0.2倍目标速度";
//
// btnCCopy
//
this.btnCCopy.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCCopy.Location = new System.Drawing.Point(653, 237);
this.btnCCopy.Name = "btnCCopy";
this.btnCCopy.Size = new System.Drawing.Size(69, 28);
this.btnCCopy.TabIndex = 38;
this.btnCCopy.Text = "复制";
this.btnCCopy.UseVisualStyleBackColor = true;
this.btnCCopy.Click += new System.EventHandler(this.btnCCopy_Click);
//
// btnICopy
//
this.btnICopy.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnICopy.Location = new System.Drawing.Point(653, 179);
this.btnICopy.Name = "btnICopy";
this.btnICopy.Size = new System.Drawing.Size(69, 28);
this.btnICopy.TabIndex = 37;
this.btnICopy.Text = "复制";
this.btnICopy.UseVisualStyleBackColor = true;
this.btnICopy.Click += new System.EventHandler(this.btnICopy_Click);
//
// btnUCopy
//
this.btnUCopy.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUCopy.Location = new System.Drawing.Point(653, 128);
this.btnUCopy.Name = "btnUCopy";
this.btnUCopy.Size = new System.Drawing.Size(69, 28);
this.btnUCopy.TabIndex = 36;
this.btnUCopy.Text = "复制";
this.btnUCopy.UseVisualStyleBackColor = true;
this.btnUCopy.Click += new System.EventHandler(this.btnUCopy_Click);
//
// btnMCopy
//
this.btnMCopy.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMCopy.Location = new System.Drawing.Point(653, 73);
this.btnMCopy.Name = "btnMCopy";
this.btnMCopy.Size = new System.Drawing.Size(69, 28);
this.btnMCopy.TabIndex = 35;
this.btnMCopy.Text = "复制";
this.btnMCopy.UseVisualStyleBackColor = true;
this.btnMCopy.Click += new System.EventHandler(this.btnMCopy_Click);
//
// FrmAxisDebug
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(707, 413);
this.ClientSize = new System.Drawing.Size(765, 413);
this.Controls.Add(this.btnCCopy);
this.Controls.Add(this.btnICopy);
this.Controls.Add(this.btnUCopy);
this.Controls.Add(this.btnMCopy);
this.Controls.Add(this.lblSpeed);
this.Controls.Add(this.trackBar1);
this.Controls.Add(this.txtComPosition);
this.Controls.Add(this.btnComMovej);
this.Controls.Add(this.btnComMove);
......@@ -312,6 +407,7 @@
this.Text = "轴点动调试";
this.Load += new System.EventHandler(this.FrmAxisDebug_Load);
this.Shown += new System.EventHandler(this.FrmAxisDebug_Shown);
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
......@@ -343,5 +439,11 @@
private System.Windows.Forms.Button btnComMove;
private System.Windows.Forms.TextBox txtComSpeed;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TrackBar trackBar1;
private System.Windows.Forms.Label lblSpeed;
private System.Windows.Forms.Button btnCCopy;
private System.Windows.Forms.Button btnICopy;
private System.Windows.Forms.Button btnUCopy;
private System.Windows.Forms.Button btnMCopy;
}
}
\ No newline at end of file
......@@ -137,11 +137,6 @@ namespace OnlineStore.ACPackingStore
{
if (this.btnInOutMove.BackColor .Equals(System.Drawing.SystemColors.Control))
{
if (boxBean.InOutAxisCanMove().Equals(false))
{
MessageBox.Show("定位气缸不在下降端,不能移动进出轴", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
int speed = FormUtil.GetIntValue(txtInOutSpeed);
if (speed <= 0)
{
......@@ -224,11 +219,6 @@ namespace OnlineStore.ACPackingStore
{
if (btnInOutMovej.BackColor.Equals(System.Drawing.SystemColors.Control))
{
if (boxBean.InOutAxisCanMove().Equals(false))
{
MessageBox.Show("定位气缸不在下降端,不能移动进出轴", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
int speed = FormUtil.GetIntValue(txtInOutSpeed);
if (speed <= 0)
{
......@@ -350,5 +340,40 @@ namespace OnlineStore.ACPackingStore
txtInOutPosition.Text = inoutPosition.ToString();
}
}
private void trackBar1_ValueChanged(object sender, EventArgs e)
{
int value = trackBar1.Value;
lblSpeed.Text = "点动速度=" + (value / 10f) + "倍目标速度";
ACServerManager.ClearSpeed();
txtMiddleSpeed.Text = (middle.TargetSpeed * value / 10).ToString();
txtInOutSpeed.Text = (inout.TargetSpeed * value / 10).ToString();
txtUpDownSpeed.Text = (updown.TargetSpeed * value / 10).ToString();
txtComSpeed.Text = (comp.TargetSpeed * value / 10).ToString();
}
private void trackBar1_Scroll(object sender, EventArgs e)
{
}
private void btnMCopy_Click(object sender, EventArgs e)
{
Clipboard.SetDataObject(txtMiddlePosition.Text, true);
}
private void btnUCopy_Click(object sender, EventArgs e)
{
Clipboard.SetDataObject(txtUpdownPosition.Text, true);
}
private void btnICopy_Click(object sender, EventArgs e)
{
Clipboard.SetDataObject(txtInOutPosition.Text, true);
}
private void btnCCopy_Click(object sender, EventArgs e)
{
Clipboard.SetDataObject(txtComPosition.Text, true);
}
}
}
......@@ -27,32 +27,28 @@
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.lblWarnMsg = new System.Windows.Forms.Label();
this.groupAxis = new System.Windows.Forms.GroupBox();
this.label7 = new System.Windows.Forms.Label();
this.txtServoStatue = new System.Windows.Forms.TextBox();
this.label17 = new System.Windows.Forms.Label();
this.txtLimit2 = new System.Windows.Forms.TextBox();
this.label19 = new System.Windows.Forms.Label();
this.txtLimit1 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.btnReadHomeSingle = new System.Windows.Forms.Button();
this.txtHomeSingle = new System.Windows.Forms.TextBox();
this.chbAutoRead = new System.Windows.Forms.CheckBox();
this.label16 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.txtHomeStatus = new System.Windows.Forms.TextBox();
this.button2 = new System.Windows.Forms.Button();
this.label10 = new System.Windows.Forms.Label();
this.txtBusyStatus = new System.Windows.Forms.TextBox();
this.btnMP101 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.txtAlarmStatus = new System.Windows.Forms.TextBox();
this.btnGetAlarm = new System.Windows.Forms.Button();
this.btnReadPosition = new System.Windows.Forms.Button();
this.lblServerOn = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.btnOpenAxis = new System.Windows.Forms.Button();
this.btnCloseAxis = new System.Windows.Forms.Button();
this.lblCountPulse = new System.Windows.Forms.TextBox();
this.txtASpeed = new System.Windows.Forms.TextBox();
this.lblOutPulse = new System.Windows.Forms.TextBox();
this.label47 = new System.Windows.Forms.Label();
this.btnAxisVMove = new System.Windows.Forms.Button();
this.btnAxisRMove = new System.Windows.Forms.Button();
......@@ -179,14 +175,6 @@
this.txtUpdownP102 = new System.Windows.Forms.TextBox();
this.btnUpdownP101 = new System.Windows.Forms.Button();
this.btnUpdownP102 = new System.Windows.Forms.Button();
this.label17 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.btnReadLimit2 = new System.Windows.Forms.Button();
this.txtLimit2 = new System.Windows.Forms.TextBox();
this.label19 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.btnReadLimit1 = new System.Windows.Forms.Button();
this.txtLimit1 = new System.Windows.Forms.TextBox();
this.groupAxis.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupInout.SuspendLayout();
......@@ -213,7 +201,7 @@
this.lblWarnMsg.ForeColor = System.Drawing.Color.Red;
this.lblWarnMsg.Location = new System.Drawing.Point(12, 61);
this.lblWarnMsg.Name = "lblWarnMsg";
this.lblWarnMsg.Size = new System.Drawing.Size(744, 54);
this.lblWarnMsg.Size = new System.Drawing.Size(728, 54);
this.lblWarnMsg.TabIndex = 224;
this.lblWarnMsg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
......@@ -221,40 +209,28 @@
//
this.groupAxis.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupAxis.Controls.Add(this.label7);
this.groupAxis.Controls.Add(this.txtServoStatue);
this.groupAxis.Controls.Add(this.label17);
this.groupAxis.Controls.Add(this.label18);
this.groupAxis.Controls.Add(this.btnReadLimit2);
this.groupAxis.Controls.Add(this.txtLimit2);
this.groupAxis.Controls.Add(this.label19);
this.groupAxis.Controls.Add(this.label20);
this.groupAxis.Controls.Add(this.btnReadLimit1);
this.groupAxis.Controls.Add(this.txtLimit1);
this.groupAxis.Controls.Add(this.label6);
this.groupAxis.Controls.Add(this.label5);
this.groupAxis.Controls.Add(this.btnReadHomeSingle);
this.groupAxis.Controls.Add(this.txtHomeSingle);
this.groupAxis.Controls.Add(this.chbAutoRead);
this.groupAxis.Controls.Add(this.label16);
this.groupAxis.Controls.Add(this.label15);
this.groupAxis.Controls.Add(this.label14);
this.groupAxis.Controls.Add(this.label11);
this.groupAxis.Controls.Add(this.txtHomeStatus);
this.groupAxis.Controls.Add(this.button2);
this.groupAxis.Controls.Add(this.label10);
this.groupAxis.Controls.Add(this.txtBusyStatus);
this.groupAxis.Controls.Add(this.btnMP101);
this.groupAxis.Controls.Add(this.label2);
this.groupAxis.Controls.Add(this.txtAlarmStatus);
this.groupAxis.Controls.Add(this.btnGetAlarm);
this.groupAxis.Controls.Add(this.btnReadPosition);
this.groupAxis.Controls.Add(this.lblServerOn);
this.groupAxis.Controls.Add(this.label7);
this.groupAxis.Controls.Add(this.label8);
this.groupAxis.Controls.Add(this.btnOpenAxis);
this.groupAxis.Controls.Add(this.btnCloseAxis);
this.groupAxis.Controls.Add(this.lblCountPulse);
this.groupAxis.Controls.Add(this.txtASpeed);
this.groupAxis.Controls.Add(this.lblOutPulse);
this.groupAxis.Controls.Add(this.label47);
this.groupAxis.Controls.Add(this.btnAxisVMove);
this.groupAxis.Controls.Add(this.btnAxisRMove);
......@@ -274,43 +250,77 @@
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(6, 6);
this.groupAxis.Name = "groupAxis";
this.groupAxis.Size = new System.Drawing.Size(558, 421);
this.groupAxis.Size = new System.Drawing.Size(570, 336);
this.groupAxis.TabIndex = 216;
this.groupAxis.TabStop = false;
this.groupAxis.Text = "伺服运动";
//
// label6
// label7
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(49, 306);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(68, 17);
this.label6.TabIndex = 300;
this.label6.Text = "原点信号:";
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(56, 172);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(59, 17);
this.label7.TabIndex = 328;
this.label7.Text = "伺服状态:";
//
// txtServoStatue
//
this.txtServoStatue.Enabled = false;
this.txtServoStatue.Location = new System.Drawing.Point(121, 169);
this.txtServoStatue.Name = "txtServoStatue";
this.txtServoStatue.Size = new System.Drawing.Size(25, 23);
this.txtServoStatue.TabIndex = 327;
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(159, 272);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(71, 17);
this.label17.TabIndex = 316;
this.label17.Text = "负极限信号:";
this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label5
// txtLimit2
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(155, 306);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(94, 17);
this.label5.TabIndex = 299;
this.label5.Text = "1=ON,0=OFF";
this.txtLimit2.Enabled = false;
this.txtLimit2.Location = new System.Drawing.Point(235, 269);
this.txtLimit2.Name = "txtLimit2";
this.txtLimit2.Size = new System.Drawing.Size(25, 23);
this.txtLimit2.TabIndex = 313;
//
// btnReadHomeSingle
// label19
//
this.btnReadHomeSingle.Location = new System.Drawing.Point(278, 295);
this.btnReadHomeSingle.Name = "btnReadHomeSingle";
this.btnReadHomeSingle.Size = new System.Drawing.Size(105, 33);
this.btnReadHomeSingle.TabIndex = 298;
this.btnReadHomeSingle.Text = "读原点信号";
this.btnReadHomeSingle.UseVisualStyleBackColor = true;
this.btnReadHomeSingle.Click += new System.EventHandler(this.btnReadHomeSingle_Click);
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(159, 238);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(71, 17);
this.label19.TabIndex = 312;
this.label19.Text = "正极限信号:";
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtLimit1
//
this.txtLimit1.Enabled = false;
this.txtLimit1.Location = new System.Drawing.Point(235, 235);
this.txtLimit1.Name = "txtLimit1";
this.txtLimit1.Size = new System.Drawing.Size(25, 23);
this.txtLimit1.TabIndex = 309;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(171, 204);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(59, 17);
this.label6.TabIndex = 300;
this.label6.Text = "原点信号:";
//
// txtHomeSingle
//
this.txtHomeSingle.Enabled = false;
this.txtHomeSingle.Location = new System.Drawing.Point(121, 303);
this.txtHomeSingle.Location = new System.Drawing.Point(235, 201);
this.txtHomeSingle.Name = "txtHomeSingle";
this.txtHomeSingle.Size = new System.Drawing.Size(25, 23);
this.txtHomeSingle.TabIndex = 297;
......@@ -318,48 +328,21 @@
// chbAutoRead
//
this.chbAutoRead.AutoSize = true;
this.chbAutoRead.Location = new System.Drawing.Point(400, 371);
this.chbAutoRead.Location = new System.Drawing.Point(452, 256);
this.chbAutoRead.Name = "chbAutoRead";
this.chbAutoRead.Size = new System.Drawing.Size(99, 21);
this.chbAutoRead.TabIndex = 296;
this.chbAutoRead.Text = "自动读取位置";
this.chbAutoRead.UseVisualStyleBackColor = true;
//
// label16
//
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(155, 272);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(112, 17);
this.label16.TabIndex = 295;
this.label16.Text = "1=完成,0=未完成";
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(155, 238);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(124, 17);
this.label15.TabIndex = 294;
this.label15.Text = "1=执行中,0=未执行";
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(155, 204);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(100, 17);
this.label14.TabIndex = 293;
this.label14.Text = "1=报警,0=正常";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(3, 272);
this.label11.Location = new System.Drawing.Point(10, 272);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(114, 17);
this.label11.Size = new System.Drawing.Size(105, 17);
this.label11.TabIndex = 292;
this.label11.Text = "HOME-CMP状态";
this.label11.Text = "HOME-CMP状态:";
//
// txtHomeStatus
//
......@@ -369,24 +352,14 @@
this.txtHomeStatus.Size = new System.Drawing.Size(25, 23);
this.txtHomeStatus.TabIndex = 291;
//
// button2
//
this.button2.Location = new System.Drawing.Point(278, 261);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(105, 33);
this.button2.TabIndex = 290;
this.button2.Text = "读HOME状态";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(42, 238);
this.label10.Location = new System.Drawing.Point(49, 238);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(75, 17);
this.label10.Size = new System.Drawing.Size(66, 17);
this.label10.TabIndex = 289;
this.label10.Text = "BUSY状态";
this.label10.Text = "BUSY状态:";
//
// txtBusyStatus
//
......@@ -396,24 +369,14 @@
this.txtBusyStatus.Size = new System.Drawing.Size(25, 23);
this.txtBusyStatus.TabIndex = 288;
//
// btnMP101
//
this.btnMP101.Location = new System.Drawing.Point(278, 227);
this.btnMP101.Name = "btnMP101";
this.btnMP101.Size = new System.Drawing.Size(105, 33);
this.btnMP101.TabIndex = 287;
this.btnMP101.Text = "读BUSY状态";
this.btnMP101.UseVisualStyleBackColor = true;
this.btnMP101.Click += new System.EventHandler(this.button1_Click_1);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(49, 204);
this.label2.Location = new System.Drawing.Point(56, 204);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(68, 17);
this.label2.Size = new System.Drawing.Size(59, 17);
this.label2.TabIndex = 286;
this.label2.Text = "报警状态";
this.label2.Text = "报警状态:";
//
// txtAlarmStatus
//
......@@ -425,11 +388,11 @@
//
// btnGetAlarm
//
this.btnGetAlarm.Location = new System.Drawing.Point(278, 193);
this.btnGetAlarm.Location = new System.Drawing.Point(329, 204);
this.btnGetAlarm.Name = "btnGetAlarm";
this.btnGetAlarm.Size = new System.Drawing.Size(105, 33);
this.btnGetAlarm.TabIndex = 284;
this.btnGetAlarm.Text = "读报警状态";
this.btnGetAlarm.Text = "读状态";
this.btnGetAlarm.UseVisualStyleBackColor = true;
this.btnGetAlarm.Click += new System.EventHandler(this.btnGetAlarm_Click);
//
......@@ -439,44 +402,24 @@
this.btnReadPosition.Cursor = System.Windows.Forms.Cursors.Default;
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.Location = new System.Drawing.Point(321, 146);
this.btnReadPosition.Location = new System.Drawing.Point(329, 163);
this.btnReadPosition.Name = "btnReadPosition";
this.btnReadPosition.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnReadPosition.Size = new System.Drawing.Size(90, 33);
this.btnReadPosition.Size = new System.Drawing.Size(105, 33);
this.btnReadPosition.TabIndex = 278;
this.btnReadPosition.Text = "读取位置";
this.btnReadPosition.UseVisualStyleBackColor = true;
this.btnReadPosition.Click += new System.EventHandler(this.btnReadPosition_Click);
//
// lblServerOn
//
this.lblServerOn.AutoSize = true;
this.lblServerOn.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblServerOn.ForeColor = System.Drawing.Color.Red;
this.lblServerOn.Location = new System.Drawing.Point(411, 277);
this.lblServerOn.Name = "lblServerOn";
this.lblServerOn.Size = new System.Drawing.Size(0, 19);
this.lblServerOn.TabIndex = 268;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.Location = new System.Drawing.Point(7, 131);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(80, 17);
this.label7.TabIndex = 254;
this.label7.Text = "输出脉冲值:";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.Location = new System.Drawing.Point(7, 163);
this.label8.Location = new System.Drawing.Point(171, 171);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(80, 17);
this.label8.Size = new System.Drawing.Size(59, 17);
this.label8.TabIndex = 255;
this.label8.Text = "编码器计数:";
this.label8.Text = "实时位置:";
//
// btnOpenAxis
//
......@@ -484,10 +427,10 @@
this.btnOpenAxis.Cursor = System.Windows.Forms.Cursors.Default;
this.btnOpenAxis.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenAxis.ForeColor = System.Drawing.SystemColors.ControlText;
this.btnOpenAxis.Location = new System.Drawing.Point(319, 25);
this.btnOpenAxis.Location = new System.Drawing.Point(327, 25);
this.btnOpenAxis.Name = "btnOpenAxis";
this.btnOpenAxis.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnOpenAxis.Size = new System.Drawing.Size(90, 33);
this.btnOpenAxis.Size = new System.Drawing.Size(105, 33);
this.btnOpenAxis.TabIndex = 253;
this.btnOpenAxis.Text = "打开伺服";
this.btnOpenAxis.UseVisualStyleBackColor = true;
......@@ -499,10 +442,10 @@
this.btnCloseAxis.Cursor = System.Windows.Forms.Cursors.Default;
this.btnCloseAxis.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAxis.ForeColor = System.Drawing.SystemColors.ControlText;
this.btnCloseAxis.Location = new System.Drawing.Point(415, 25);
this.btnCloseAxis.Location = new System.Drawing.Point(446, 25);
this.btnCloseAxis.Name = "btnCloseAxis";
this.btnCloseAxis.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnCloseAxis.Size = new System.Drawing.Size(90, 33);
this.btnCloseAxis.Size = new System.Drawing.Size(105, 33);
this.btnCloseAxis.TabIndex = 252;
this.btnCloseAxis.Text = "关闭伺服";
this.btnCloseAxis.UseVisualStyleBackColor = true;
......@@ -510,7 +453,7 @@
//
// lblCountPulse
//
this.lblCountPulse.Location = new System.Drawing.Point(88, 158);
this.lblCountPulse.Location = new System.Drawing.Point(235, 169);
this.lblCountPulse.Name = "lblCountPulse";
this.lblCountPulse.ReadOnly = true;
this.lblCountPulse.Size = new System.Drawing.Size(87, 23);
......@@ -523,33 +466,25 @@
this.txtASpeed.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtASpeed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtASpeed.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtASpeed.Location = new System.Drawing.Point(234, 109);
this.txtASpeed.Location = new System.Drawing.Point(224, 111);
this.txtASpeed.MaxLength = 12;
this.txtASpeed.Name = "txtASpeed";
this.txtASpeed.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.txtASpeed.Size = new System.Drawing.Size(75, 23);
this.txtASpeed.Size = new System.Drawing.Size(82, 23);
this.txtASpeed.TabIndex = 251;
this.txtASpeed.Text = "30";
//
// lblOutPulse
//
this.lblOutPulse.Location = new System.Drawing.Point(88, 129);
this.lblOutPulse.Name = "lblOutPulse";
this.lblOutPulse.ReadOnly = true;
this.lblOutPulse.Size = new System.Drawing.Size(87, 23);
this.lblOutPulse.TabIndex = 30;
//
// label47
//
this.label47.Cursor = System.Windows.Forms.Cursors.Default;
this.label47.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label47.ForeColor = System.Drawing.SystemColors.ControlText;
this.label47.Location = new System.Drawing.Point(179, 110);
this.label47.Location = new System.Drawing.Point(168, 112);
this.label47.Name = "label47";
this.label47.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.label47.Size = new System.Drawing.Size(53, 20);
this.label47.TabIndex = 250;
this.label47.Text = "速度";
this.label47.Text = "速度:";
this.label47.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// btnAxisVMove
......@@ -558,10 +493,10 @@
this.btnAxisVMove.Cursor = System.Windows.Forms.Cursors.Default;
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.Location = new System.Drawing.Point(319, 106);
this.btnAxisVMove.Location = new System.Drawing.Point(327, 106);
this.btnAxisVMove.Name = "btnAxisVMove";
this.btnAxisVMove.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnAxisVMove.Size = new System.Drawing.Size(90, 33);
this.btnAxisVMove.Size = new System.Drawing.Size(105, 33);
this.btnAxisVMove.TabIndex = 249;
this.btnAxisVMove.Text = "匀速运动";
this.btnAxisVMove.UseVisualStyleBackColor = true;
......@@ -573,10 +508,10 @@
this.btnAxisRMove.Cursor = System.Windows.Forms.Cursors.Default;
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.Location = new System.Drawing.Point(415, 67);
this.btnAxisRMove.Location = new System.Drawing.Point(446, 67);
this.btnAxisRMove.Name = "btnAxisRMove";
this.btnAxisRMove.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnAxisRMove.Size = new System.Drawing.Size(90, 33);
this.btnAxisRMove.Size = new System.Drawing.Size(105, 33);
this.btnAxisRMove.TabIndex = 248;
this.btnAxisRMove.Text = "相对运动";
this.btnAxisRMove.UseVisualStyleBackColor = true;
......@@ -588,10 +523,10 @@
this.btnAxisReturnHome.Cursor = System.Windows.Forms.Cursors.Default;
this.btnAxisReturnHome.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAxisReturnHome.ForeColor = System.Drawing.SystemColors.ControlText;
this.btnAxisReturnHome.Location = new System.Drawing.Point(415, 146);
this.btnAxisReturnHome.Location = new System.Drawing.Point(446, 163);
this.btnAxisReturnHome.Name = "btnAxisReturnHome";
this.btnAxisReturnHome.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnAxisReturnHome.Size = new System.Drawing.Size(90, 33);
this.btnAxisReturnHome.Size = new System.Drawing.Size(105, 33);
this.btnAxisReturnHome.TabIndex = 247;
this.btnAxisReturnHome.Text = "原点返回";
this.btnAxisReturnHome.UseVisualStyleBackColor = true;
......@@ -603,10 +538,10 @@
this.btnAxisAMove.Cursor = System.Windows.Forms.Cursors.Default;
this.btnAxisAMove.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAxisAMove.ForeColor = System.Drawing.SystemColors.ControlText;
this.btnAxisAMove.Location = new System.Drawing.Point(319, 67);
this.btnAxisAMove.Location = new System.Drawing.Point(327, 67);
this.btnAxisAMove.Name = "btnAxisAMove";
this.btnAxisAMove.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnAxisAMove.Size = new System.Drawing.Size(90, 33);
this.btnAxisAMove.Size = new System.Drawing.Size(105, 33);
this.btnAxisAMove.TabIndex = 245;
this.btnAxisAMove.Text = "绝对运动";
this.btnAxisAMove.UseVisualStyleBackColor = true;
......@@ -614,7 +549,7 @@
//
// btnComAlarmClear
//
this.btnComAlarmClear.Location = new System.Drawing.Point(400, 196);
this.btnComAlarmClear.Location = new System.Drawing.Point(331, 244);
this.btnComAlarmClear.Name = "btnComAlarmClear";
this.btnComAlarmClear.Size = new System.Drawing.Size(105, 33);
this.btnComAlarmClear.TabIndex = 50;
......@@ -628,11 +563,11 @@
this.txtAPosition.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtAPosition.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtAPosition.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtAPosition.Location = new System.Drawing.Point(234, 71);
this.txtAPosition.Location = new System.Drawing.Point(224, 72);
this.txtAPosition.MaxLength = 12;
this.txtAPosition.Name = "txtAPosition";
this.txtAPosition.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.txtAPosition.Size = new System.Drawing.Size(75, 23);
this.txtAPosition.Size = new System.Drawing.Size(82, 23);
this.txtAPosition.TabIndex = 244;
this.txtAPosition.Text = "3000";
//
......@@ -641,12 +576,12 @@
this.label48.Cursor = System.Windows.Forms.Cursors.Default;
this.label48.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label48.ForeColor = System.Drawing.SystemColors.ControlText;
this.label48.Location = new System.Drawing.Point(179, 74);
this.label48.Location = new System.Drawing.Point(168, 73);
this.label48.Name = "label48";
this.label48.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.label48.Size = new System.Drawing.Size(53, 20);
this.label48.TabIndex = 243;
this.label48.Text = "位置";
this.label48.Text = "位置:";
this.label48.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// btnAxisStop
......@@ -655,10 +590,10 @@
this.btnAxisStop.Cursor = System.Windows.Forms.Cursors.Default;
this.btnAxisStop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAxisStop.ForeColor = System.Drawing.SystemColors.ControlText;
this.btnAxisStop.Location = new System.Drawing.Point(415, 106);
this.btnAxisStop.Location = new System.Drawing.Point(446, 106);
this.btnAxisStop.Name = "btnAxisStop";
this.btnAxisStop.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnAxisStop.Size = new System.Drawing.Size(90, 33);
this.btnAxisStop.Size = new System.Drawing.Size(105, 33);
this.btnAxisStop.TabIndex = 246;
this.btnAxisStop.Text = " 停止运动";
this.btnAxisStop.UseVisualStyleBackColor = true;
......@@ -667,22 +602,22 @@
// txtAxisValue
//
this.txtAxisValue.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtAxisValue.Location = new System.Drawing.Point(88, 97);
this.txtAxisValue.Location = new System.Drawing.Point(88, 109);
this.txtAxisValue.MaxLength = 10;
this.txtAxisValue.Name = "txtAxisValue";
this.txtAxisValue.ReadOnly = true;
this.txtAxisValue.Size = new System.Drawing.Size(87, 26);
this.txtAxisValue.Size = new System.Drawing.Size(74, 26);
this.txtAxisValue.TabIndex = 242;
this.txtAxisValue.Text = "0";
//
// txtAxisDeviceName
//
this.txtAxisDeviceName.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtAxisDeviceName.Location = new System.Drawing.Point(88, 65);
this.txtAxisDeviceName.Location = new System.Drawing.Point(88, 70);
this.txtAxisDeviceName.MaxLength = 10;
this.txtAxisDeviceName.Name = "txtAxisDeviceName";
this.txtAxisDeviceName.ReadOnly = true;
this.txtAxisDeviceName.Size = new System.Drawing.Size(87, 26);
this.txtAxisDeviceName.Size = new System.Drawing.Size(74, 26);
this.txtAxisDeviceName.TabIndex = 241;
this.txtAxisDeviceName.Text = "0";
//
......@@ -691,11 +626,11 @@
this.label45.AutoSize = true;
this.label45.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label45.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label45.Location = new System.Drawing.Point(31, 67);
this.label45.Location = new System.Drawing.Point(31, 75);
this.label45.Name = "label45";
this.label45.Size = new System.Drawing.Size(56, 17);
this.label45.Size = new System.Drawing.Size(47, 17);
this.label45.TabIndex = 240;
this.label45.Text = "端口号";
this.label45.Text = "端口号:";
this.label45.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label46
......@@ -703,11 +638,11 @@
this.label46.AutoSize = true;
this.label46.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label46.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label46.Location = new System.Drawing.Point(43, 99);
this.label46.Location = new System.Drawing.Point(43, 114);
this.label46.Name = "label46";
this.label46.Size = new System.Drawing.Size(44, 17);
this.label46.Size = new System.Drawing.Size(35, 17);
this.label46.TabIndex = 239;
this.label46.Text = "地址";
this.label46.Text = "地址:";
this.label46.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// cmbAxisList
......@@ -731,11 +666,11 @@
this.label49.AutoSize = true;
this.label49.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label49.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label49.Location = new System.Drawing.Point(27, 32);
this.label49.Location = new System.Drawing.Point(27, 33);
this.label49.Name = "label49";
this.label49.Size = new System.Drawing.Size(60, 17);
this.label49.Size = new System.Drawing.Size(51, 17);
this.label49.TabIndex = 233;
this.label49.Text = "AC伺服";
this.label49.Text = "AC伺服:";
this.label49.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// groupBox1
......@@ -762,9 +697,9 @@
this.groupBox1.Controls.Add(this.label43);
this.groupBox1.Controls.Add(this.label42);
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, 434);
this.groupBox1.Location = new System.Drawing.Point(6, 354);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(558, 182);
this.groupBox1.Size = new System.Drawing.Size(570, 262);
this.groupBox1.TabIndex = 217;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "伺服状态";
......@@ -805,9 +740,9 @@
this.label38.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label38.Location = new System.Drawing.Point(49, 40);
this.label38.Name = "label38";
this.label38.Size = new System.Drawing.Size(46, 17);
this.label38.Size = new System.Drawing.Size(37, 17);
this.label38.TabIndex = 263;
this.label38.Text = "ALM";
this.label38.Text = "ALM:";
//
// txtMiddleTarget
//
......@@ -839,9 +774,9 @@
this.label12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label12.Location = new System.Drawing.Point(7, 147);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(92, 17);
this.label12.Size = new System.Drawing.Size(83, 17);
this.label12.TabIndex = 258;
this.label12.Text = "出入库目标值";
this.label12.Text = "出入库目标值:";
//
// lblCountPulse1
//
......@@ -897,9 +832,9 @@
this.label4.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label4.Location = new System.Drawing.Point(303, 15);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(80, 17);
this.label4.Size = new System.Drawing.Size(71, 17);
this.label4.TabIndex = 100;
this.label4.Text = "轴三进出轴";
this.label4.Text = "轴三:进出轴";
//
// label3
//
......@@ -907,9 +842,9 @@
this.label3.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label3.Location = new System.Drawing.Point(204, 15);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(80, 17);
this.label3.Size = new System.Drawing.Size(71, 17);
this.label3.TabIndex = 99;
this.label3.Text = "轴二上下轴";
this.label3.Text = "轴二:上下轴";
//
// label1
//
......@@ -917,9 +852,9 @@
this.label1.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label1.Location = new System.Drawing.Point(106, 15);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(80, 17);
this.label1.Size = new System.Drawing.Size(71, 17);
this.label1.TabIndex = 97;
this.label1.Text = "轴一旋转轴";
this.label1.Text = "轴一:旋转轴";
//
// label43
//
......@@ -927,9 +862,9 @@
this.label43.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label43.Location = new System.Drawing.Point(15, 90);
this.label43.Name = "label43";
this.label43.Size = new System.Drawing.Size(80, 17);
this.label43.Size = new System.Drawing.Size(71, 17);
this.label43.TabIndex = 23;
this.label43.Text = "输出脉冲值";
this.label43.Text = "输出脉冲值:";
//
// label42
//
......@@ -937,9 +872,9 @@
this.label42.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label42.Location = new System.Drawing.Point(15, 117);
this.label42.Name = "label42";
this.label42.Size = new System.Drawing.Size(80, 17);
this.label42.Size = new System.Drawing.Size(71, 17);
this.label42.TabIndex = 24;
this.label42.Text = "编码器计数";
this.label42.Text = "编码器计数:";
//
// groupInout
//
......@@ -1039,9 +974,9 @@
this.label9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(12, 87);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(92, 17);
this.label9.Size = new System.Drawing.Size(83, 17);
this.label9.TabIndex = 220;
this.label9.Text = "入库间隔仓位";
this.label9.Text = "入库间隔仓位:";
//
// txtJiange
//
......@@ -1251,9 +1186,9 @@
this.label21.Location = new System.Drawing.Point(11, 37);
this.label21.Name = "label21";
this.label21.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.label21.Size = new System.Drawing.Size(68, 17);
this.label21.Size = new System.Drawing.Size(59, 17);
this.label21.TabIndex = 172;
this.label21.Text = "选择仓位";
this.label21.Text = "选择仓位:";
this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtUpDownP3
......@@ -1321,7 +1256,7 @@
this.btnComP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnComP1.Size = new System.Drawing.Size(140, 33);
this.btnComP1.TabIndex = 213;
this.btnComP1.Text = "压紧轴待机点P1";
this.btnComP1.Text = "压紧轴待机点P1:";
this.btnComP1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnComP1.UseVisualStyleBackColor = true;
this.btnComP1.Click += new System.EventHandler(this.btnComP1_Click);
......@@ -1339,7 +1274,7 @@
this.btnInOutP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnInOutP2.Size = new System.Drawing.Size(140, 33);
this.btnInOutP2.TabIndex = 211;
this.btnInOutP2.Text = "进出轴NG放料点P2";
this.btnInOutP2.Text = "进出轴NG放料点P2:";
this.btnInOutP2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnInOutP2.UseVisualStyleBackColor = true;
this.btnInOutP2.Click += new System.EventHandler(this.btnInOutP2_Click);
......@@ -1357,7 +1292,7 @@
this.btnInOutP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnInOutP1.Size = new System.Drawing.Size(140, 33);
this.btnInOutP1.TabIndex = 209;
this.btnInOutP1.Text = "进出轴待机点P1";
this.btnInOutP1.Text = "进出轴待机点P1:";
this.btnInOutP1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnInOutP1.UseVisualStyleBackColor = true;
this.btnInOutP1.Click += new System.EventHandler(this.btnInOutP1_Click);
......@@ -1375,7 +1310,7 @@
this.btnMiddleP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnMiddleP1.Size = new System.Drawing.Size(140, 33);
this.btnMiddleP1.TabIndex = 207;
this.btnMiddleP1.Text = "旋转轴待机/NG点P1";
this.btnMiddleP1.Text = "旋转轴待机/NG点P1:";
this.btnMiddleP1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnMiddleP1.UseVisualStyleBackColor = true;
this.btnMiddleP1.Click += new System.EventHandler(this.btnMiddleP1_Click);
......@@ -1393,7 +1328,7 @@
this.btnUpDownP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpDownP1.Size = new System.Drawing.Size(140, 33);
this.btnUpDownP1.TabIndex = 199;
this.btnUpDownP1.Text = "升降轴NG放料点P1";
this.btnUpDownP1.Text = "升降轴NG放料点P1:";
this.btnUpDownP1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnUpDownP1.UseVisualStyleBackColor = true;
this.btnUpDownP1.Click += new System.EventHandler(this.btnUpDownP1_Click);
......@@ -1411,7 +1346,7 @@
this.btnUpDownP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpDownP2.Size = new System.Drawing.Size(140, 33);
this.btnUpDownP2.TabIndex = 201;
this.btnUpDownP2.Text = "升降轴NG缓冲点P2";
this.btnUpDownP2.Text = "升降轴NG缓冲点P2:";
this.btnUpDownP2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnUpDownP2.UseVisualStyleBackColor = true;
this.btnUpDownP2.Click += new System.EventHandler(this.btnUpDownP2_Click);
......@@ -1428,7 +1363,7 @@
this.btnComP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnComP3.Size = new System.Drawing.Size(140, 33);
this.btnComP3.TabIndex = 197;
this.btnComP3.Text = "压紧轴压紧前点P3";
this.btnComP3.Text = "压紧轴压紧前点P3:";
this.btnComP3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnComP3.UseVisualStyleBackColor = true;
this.btnComP3.Click += new System.EventHandler(this.btnComP3_Click);
......@@ -1445,7 +1380,7 @@
this.btnComP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnComP2.Size = new System.Drawing.Size(140, 33);
this.btnComP2.TabIndex = 195;
this.btnComP2.Text = "压紧轴压紧点P2";
this.btnComP2.Text = "压紧轴压紧点P2:";
this.btnComP2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnComP2.UseVisualStyleBackColor = true;
this.btnComP2.Click += new System.EventHandler(this.btnComP2_Click);
......@@ -1462,7 +1397,7 @@
this.btnInOutP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnInOutP3.Size = new System.Drawing.Size(140, 33);
this.btnInOutP3.TabIndex = 193;
this.btnInOutP3.Text = "进出轴取料点P3";
this.btnInOutP3.Text = "进出轴取料点P3:";
this.btnInOutP3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnInOutP3.UseVisualStyleBackColor = true;
this.btnInOutP3.Click += new System.EventHandler(this.btnInOutP3_Click);
......@@ -1479,7 +1414,7 @@
this.btnMiddleP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnMiddleP2.Size = new System.Drawing.Size(140, 33);
this.btnMiddleP2.TabIndex = 191;
this.btnMiddleP2.Text = "旋转轴库位点P2";
this.btnMiddleP2.Text = "旋转轴库位点P2:";
this.btnMiddleP2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnMiddleP2.UseVisualStyleBackColor = true;
this.btnMiddleP2.Click += new System.EventHandler(this.btnMiddleP2_Click);
......@@ -1496,7 +1431,7 @@
this.btnUpDownP5.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpDownP5.Size = new System.Drawing.Size(140, 33);
this.btnUpDownP5.TabIndex = 187;
this.btnUpDownP5.Text = "升降轴出料前点P5";
this.btnUpDownP5.Text = "升降轴出料前点P5:";
this.btnUpDownP5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnUpDownP5.UseVisualStyleBackColor = true;
this.btnUpDownP5.Click += new System.EventHandler(this.btnUpDownP5_Click);
......@@ -1513,7 +1448,7 @@
this.btnUpDownP6.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpDownP6.Size = new System.Drawing.Size(140, 33);
this.btnUpDownP6.TabIndex = 189;
this.btnUpDownP6.Text = "升降轴出料缓冲点P6";
this.btnUpDownP6.Text = "升降轴出料缓冲点P6:";
this.btnUpDownP6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnUpDownP6.UseVisualStyleBackColor = true;
this.btnUpDownP6.Click += new System.EventHandler(this.btnUpDownP6_Click);
......@@ -1530,7 +1465,7 @@
this.btnUpDownP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpDownP3.Size = new System.Drawing.Size(140, 33);
this.btnUpDownP3.TabIndex = 161;
this.btnUpDownP3.Text = "升降轴入料前点P3";
this.btnUpDownP3.Text = "升降轴入料前点P3:";
this.btnUpDownP3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnUpDownP3.UseVisualStyleBackColor = true;
this.btnUpDownP3.Click += new System.EventHandler(this.btnUpDownP3_Click);
......@@ -1547,7 +1482,7 @@
this.btnUpDownP4.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpDownP4.Size = new System.Drawing.Size(140, 33);
this.btnUpDownP4.TabIndex = 165;
this.btnUpDownP4.Text = "升降轴入料缓冲点P4";
this.btnUpDownP4.Text = "升降轴入料缓冲点P4:";
this.btnUpDownP4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnUpDownP4.UseVisualStyleBackColor = true;
this.btnUpDownP4.Click += new System.EventHandler(this.btnUpDownP4_Click);
......@@ -1571,7 +1506,7 @@
this.groupBox3.Controls.Add(this.chbDebug);
this.groupBox3.Location = new System.Drawing.Point(7, 73);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(762, 124);
this.groupBox3.Size = new System.Drawing.Size(746, 124);
this.groupBox3.TabIndex = 268;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "设备状态";
......@@ -1592,7 +1527,7 @@
this.chbDebug.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chbDebug.AutoSize = true;
this.chbDebug.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbDebug.Location = new System.Drawing.Point(646, 24);
this.chbDebug.Location = new System.Drawing.Point(630, 24);
this.chbDebug.Name = "chbDebug";
this.chbDebug.Size = new System.Drawing.Size(93, 25);
this.chbDebug.TabIndex = 271;
......@@ -1607,10 +1542,10 @@
| System.Windows.Forms.AnchorStyles.Right)));
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Location = new System.Drawing.Point(775, 71);
this.tabControl1.Location = new System.Drawing.Point(759, 71);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(583, 692);
this.tabControl1.Size = new System.Drawing.Size(595, 692);
this.tabControl1.TabIndex = 272;
//
// tabPage1
......@@ -1620,7 +1555,7 @@
this.tabPage1.Location = new System.Drawing.Point(4, 29);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(575, 659);
this.tabPage1.Size = new System.Drawing.Size(587, 659);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = " 伺服调试 ";
this.tabPage1.UseVisualStyleBackColor = true;
......@@ -1685,9 +1620,9 @@
this.label24.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label24.Location = new System.Drawing.Point(226, 32);
this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(80, 17);
this.label24.Size = new System.Drawing.Size(71, 17);
this.label24.TabIndex = 249;
this.label24.Text = "记录总条数";
this.label24.Text = "记录总条数:";
this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtHistoryTime
......@@ -1717,9 +1652,9 @@
this.label30.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label30.Location = new System.Drawing.Point(29, 114);
this.label30.Name = "label30";
this.label30.Size = new System.Drawing.Size(68, 17);
this.label30.Size = new System.Drawing.Size(59, 17);
this.label30.TabIndex = 257;
this.label30.Text = "记录时间";
this.label30.Text = "记录时间:";
this.label30.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label23
......@@ -1729,9 +1664,9 @@
this.label23.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label23.Location = new System.Drawing.Point(226, 68);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(92, 17);
this.label23.Size = new System.Drawing.Size(83, 17);
this.label23.TabIndex = 251;
this.label23.Text = "当前指针位置";
this.label23.Text = "当前指针位置:";
this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtHistoryHum
......@@ -1761,9 +1696,9 @@
this.label26.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label26.Location = new System.Drawing.Point(17, 72);
this.label26.Name = "label26";
this.label26.Size = new System.Drawing.Size(80, 17);
this.label26.Size = new System.Drawing.Size(71, 17);
this.label26.TabIndex = 255;
this.label26.Text = "记录湿度值";
this.label26.Text = "记录湿度值:";
this.label26.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label22
......@@ -1773,9 +1708,9 @@
this.label22.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label22.Location = new System.Drawing.Point(17, 32);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(80, 17);
this.label22.Size = new System.Drawing.Size(71, 17);
this.label22.TabIndex = 253;
this.label22.Text = "记录温度值";
this.label22.Text = "记录温度值:";
this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// groupBox7
......@@ -1823,9 +1758,9 @@
this.label29.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label29.Location = new System.Drawing.Point(38, 101);
this.label29.Name = "label29";
this.label29.Size = new System.Drawing.Size(44, 17);
this.label29.Size = new System.Drawing.Size(35, 17);
this.label29.TabIndex = 246;
this.label29.Text = "湿度";
this.label29.Text = "湿度:";
this.label29.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtTemp
......@@ -1845,9 +1780,9 @@
this.label28.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label28.Location = new System.Drawing.Point(38, 67);
this.label28.Name = "label28";
this.label28.Size = new System.Drawing.Size(44, 17);
this.label28.Size = new System.Drawing.Size(35, 17);
this.label28.TabIndex = 244;
this.label28.Text = "温度";
this.label28.Text = "温度:";
this.label28.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtTempPort
......@@ -1867,9 +1802,9 @@
this.label27.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label27.Location = new System.Drawing.Point(26, 33);
this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(56, 17);
this.label27.Size = new System.Drawing.Size(47, 17);
this.label27.TabIndex = 242;
this.label27.Text = "端口号";
this.label27.Text = "端口号:";
this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// btnTempClose
......@@ -2026,7 +1961,7 @@
this.cmbShelfPosition.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbShelfPosition.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cmbShelfPosition.FormattingEnabled = true;
this.cmbShelfPosition.Location = new System.Drawing.Point(19, 77);
this.cmbShelfPosition.Location = new System.Drawing.Point(13, 77);
this.cmbShelfPosition.Name = "cmbShelfPosition";
this.cmbShelfPosition.Size = new System.Drawing.Size(189, 28);
this.cmbShelfPosition.TabIndex = 272;
......@@ -2048,7 +1983,7 @@
this.groupShelf.Enabled = false;
this.groupShelf.Location = new System.Drawing.Point(517, 201);
this.groupShelf.Name = "groupShelf";
this.groupShelf.Size = new System.Drawing.Size(252, 562);
this.groupShelf.Size = new System.Drawing.Size(236, 562);
this.groupShelf.TabIndex = 274;
this.groupShelf.TabStop = false;
this.groupShelf.Text = "料架位置";
......@@ -2073,9 +2008,9 @@
this.label13.Location = new System.Drawing.Point(16, 40);
this.label13.Name = "label13";
this.label13.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.label13.Size = new System.Drawing.Size(104, 17);
this.label13.Size = new System.Drawing.Size(95, 17);
this.label13.TabIndex = 281;
this.label13.Text = "请选择料架位置";
this.label13.Text = "请选择料架位置:";
this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtInoutP101
......@@ -2100,12 +2035,12 @@
this.btnInoutP101.Cursor = System.Windows.Forms.Cursors.Default;
this.btnInoutP101.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnInoutP101.ForeColor = System.Drawing.Color.Green;
this.btnInoutP101.Location = new System.Drawing.Point(18, 289);
this.btnInoutP101.Location = new System.Drawing.Point(13, 289);
this.btnInoutP101.Name = "btnInoutP101";
this.btnInoutP101.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnInoutP101.Size = new System.Drawing.Size(118, 33);
this.btnInoutP101.TabIndex = 279;
this.btnInoutP101.Text = "进出轴位置P101";
this.btnInoutP101.Text = "进出轴位置P101:";
this.btnInoutP101.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnInoutP101.UseVisualStyleBackColor = true;
//
......@@ -2132,12 +2067,12 @@
this.button5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
this.button5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button5.Location = new System.Drawing.Point(18, 239);
this.button5.Location = new System.Drawing.Point(13, 239);
this.button5.Name = "button5";
this.button5.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.button5.Size = new System.Drawing.Size(118, 33);
this.button5.TabIndex = 277;
this.button5.Text = "旋转轴位置P101";
this.button5.Text = "旋转轴位置P101:";
this.button5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button5.UseVisualStyleBackColor = true;
//
......@@ -2178,10 +2113,10 @@
this.btnUpdownP101.Cursor = System.Windows.Forms.Cursors.Default;
this.btnUpdownP101.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpdownP101.ForeColor = System.Drawing.Color.Red;
this.btnUpdownP101.Location = new System.Drawing.Point(18, 139);
this.btnUpdownP101.Location = new System.Drawing.Point(13, 139);
this.btnUpdownP101.Name = "btnUpdownP101";
this.btnUpdownP101.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpdownP101.Size = new System.Drawing.Size(114, 33);
this.btnUpdownP101.Size = new System.Drawing.Size(118, 33);
this.btnUpdownP101.TabIndex = 273;
this.btnUpdownP101.Text = "升降轴低点P101:";
this.btnUpdownP101.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
......@@ -2194,89 +2129,15 @@
this.btnUpdownP102.Cursor = System.Windows.Forms.Cursors.Default;
this.btnUpdownP102.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpdownP102.ForeColor = System.Drawing.Color.Red;
this.btnUpdownP102.Location = new System.Drawing.Point(18, 189);
this.btnUpdownP102.Location = new System.Drawing.Point(13, 189);
this.btnUpdownP102.Name = "btnUpdownP102";
this.btnUpdownP102.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpdownP102.Size = new System.Drawing.Size(118, 33);
this.btnUpdownP102.TabIndex = 275;
this.btnUpdownP102.Text = "升降轴高点P102";
this.btnUpdownP102.Text = "升降轴高点P102:";
this.btnUpdownP102.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnUpdownP102.UseVisualStyleBackColor = true;
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(46, 374);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(71, 17);
this.label17.TabIndex = 316;
this.label17.Text = "负极限信号:";
this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label18
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(155, 374);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(94, 17);
this.label18.TabIndex = 315;
this.label18.Text = "1=ON,0=OFF";
//
// btnReadLimit2
//
this.btnReadLimit2.Location = new System.Drawing.Point(278, 363);
this.btnReadLimit2.Name = "btnReadLimit2";
this.btnReadLimit2.Size = new System.Drawing.Size(105, 33);
this.btnReadLimit2.TabIndex = 314;
this.btnReadLimit2.Text = "读负极限信号";
this.btnReadLimit2.UseVisualStyleBackColor = true;
this.btnReadLimit2.Click += new System.EventHandler(this.btnReadLimit2_Click);
//
// txtLimit2
//
this.txtLimit2.Enabled = false;
this.txtLimit2.Location = new System.Drawing.Point(122, 371);
this.txtLimit2.Name = "txtLimit2";
this.txtLimit2.Size = new System.Drawing.Size(25, 23);
this.txtLimit2.TabIndex = 313;
//
// label19
//
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(46, 340);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(71, 17);
this.label19.TabIndex = 312;
this.label19.Text = "正极限信号:";
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label20
//
this.label20.AutoSize = true;
this.label20.Location = new System.Drawing.Point(155, 340);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(94, 17);
this.label20.TabIndex = 311;
this.label20.Text = "1=ON,0=OFF";
//
// btnReadLimit1
//
this.btnReadLimit1.Location = new System.Drawing.Point(278, 329);
this.btnReadLimit1.Name = "btnReadLimit1";
this.btnReadLimit1.Size = new System.Drawing.Size(105, 33);
this.btnReadLimit1.TabIndex = 310;
this.btnReadLimit1.Text = "读正极限信号";
this.btnReadLimit1.UseVisualStyleBackColor = true;
this.btnReadLimit1.Click += new System.EventHandler(this.btnReadLimit1_Click);
//
// txtLimit1
//
this.txtLimit1.Enabled = false;
this.txtLimit1.Location = new System.Drawing.Point(122, 337);
this.txtLimit1.Name = "txtLimit1";
this.txtLimit1.Size = new System.Drawing.Size(25, 23);
this.txtLimit1.TabIndex = 309;
//
// FrmBox
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
......@@ -2330,7 +2191,6 @@
private System.Windows.Forms.ComboBox cmbPosition;
private System.Windows.Forms.Label label43;
private System.Windows.Forms.Label label42;
private System.Windows.Forms.TextBox lblOutPulse;
private System.Windows.Forms.TextBox lblCountPulse;
private System.Windows.Forms.Button btnComAlarmClear;
private System.Windows.Forms.GroupBox groupAxis;
......@@ -2387,7 +2247,6 @@
private System.Windows.Forms.TextBox lblOutPulse2;
private System.Windows.Forms.TextBox lblCountPulse1;
private System.Windows.Forms.TextBox lblOutPulse1;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox txtJiange;
private System.Windows.Forms.Label label9;
......@@ -2402,26 +2261,18 @@
private UserFromControl.IOStatusControl axis_1_Alarm;
private System.Windows.Forms.Label label38;
private System.Windows.Forms.Label lblWarnMsg;
private System.Windows.Forms.Label lblServerOn;
public System.Windows.Forms.Button btnReadPosition;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.TextBox txtHomeStatus;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox txtBusyStatus;
private System.Windows.Forms.Button btnMP101;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txtAlarmStatus;
private System.Windows.Forms.Button btnGetAlarm;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.CheckBox chbAutoRead;
private System.Windows.Forms.Label lblTemp;
private System.Windows.Forms.Button btnReadHomeSingle;
private System.Windows.Forms.TextBox txtHomeSingle;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
......@@ -2474,13 +2325,11 @@
private System.Windows.Forms.Button btnSaveShelf;
private System.Windows.Forms.Button btnUpdown;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Button btnReadLimit2;
private System.Windows.Forms.TextBox txtLimit2;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Button btnReadLimit1;
private System.Windows.Forms.TextBox txtLimit1;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox txtServoStatue;
}
}
......@@ -46,7 +46,7 @@ namespace OnlineStore.ACPackingStore
this.Close();
return;
}
this.groupBox3.Text ="设备["+ BoxBean.CID+"]状态";
this.groupBox3.Text = "设备[" + BoxBean.CID + "]状态";
this.Text = BoxBean.Name;
//txtSpeed.Text = BoxBean.Config.CompressAxis_EndSpeed.ToString();
cmbAxisList.DataSource = new List<ConfigMoveAxis>(BoxBean.moveAxisList);
......@@ -167,15 +167,13 @@ namespace OnlineStore.ACPackingStore
//判断私服是否打开、
if (ACServerManager.ServerOnStatus(portName, SlvAddr))
{
lblServerOn.Text = "伺服ON";
int lOutPulse = ACServerManager.GetTargetPosition(portName, SlvAddr);
lblOutPulse.Text = string.Format("{0:d}", lOutPulse);
txtServoStatue.Text = "✔";
int lCountPulse = ACServerManager.GetActualtPosition(portName, SlvAddr);
lblCountPulse.Text = string.Format("{0:d}", lCountPulse);
}
else
{
lblServerOn.Text = "伺服OFF";
txtServoStatue.Text = "✘";
}
}
}
......@@ -295,11 +293,11 @@ namespace OnlineStore.ACPackingStore
//判断私服是否打开、
if (ACServerManager.ServerOnStatus(portName, SlvAddr))
{
lblServerOn.Text = "伺服ON";
txtServoStatue.Text = "✔";
}
else
{
lblServerOn.Text = "伺服OFF";
txtServoStatue.Text = "✘";
}
string deviceName = GetPortName();
if (ACServerManager.ServerOnStatus(BoxBean.Config.Middle_Axis.DeviceName, BoxBean.Config.Middle_Axis.GetAxisValue()))
......@@ -313,7 +311,6 @@ namespace OnlineStore.ACPackingStore
txtMiddleTarget.Text = BoxBean.Config.Middle_Axis.TargetPosition.ToString();
if (BoxBean.Config.Middle_Axis.IsSameAxis(portName, SlvAddr))
{
lblOutPulse.Text = lblOutPulse1.Text;
lblCountPulse.Text = lblCountPulse1.Text;
}
}
......@@ -328,7 +325,6 @@ namespace OnlineStore.ACPackingStore
txtInoutTarget.Text = BoxBean.Config.InOut_Axis.TargetPosition.ToString();
if (BoxBean.Config.UpDown_Axis.IsSameAxis(portName, SlvAddr))
{
lblOutPulse.Text = lblOutPulse2.Text;
lblCountPulse.Text = lblCountPulse2.Text;
}
}
......@@ -342,7 +338,6 @@ namespace OnlineStore.ACPackingStore
txtUpdownTarget.Text = BoxBean.Config.UpDown_Axis.TargetPosition.ToString();
if (BoxBean.Config.InOut_Axis.IsSameAxis(portName, SlvAddr))
{
lblOutPulse.Text = lblOutPulse3.Text;
lblCountPulse.Text = lblCountPulse3.Text;
}
}
......@@ -462,12 +457,7 @@ namespace OnlineStore.ACPackingStore
// MessageBox.Show("位置超出" + axisC.Explain + "上下限(" + axisC.PositionMin + "-" + axisC.PositionMax + ")");
// return;
//}
if (BoxBean.Config.InOut_Axis.IsSameAxis(portName, SlvAddr) && (BoxBean.InOutAxisCanMove().Equals(false)))
{
MessageBox.Show("定位气缸不在下降端,不能移动进出轴", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
else if (BoxBean.Config.Middle_Axis.IsSameAxis(portName, SlvAddr) || BoxBean.Config.UpDown_Axis.IsSameAxis(portName, SlvAddr))
if (BoxBean.Config.Middle_Axis.IsSameAxis(portName, SlvAddr) || BoxBean.Config.UpDown_Axis.IsSameAxis(portName, SlvAddr))
{
if (!InOutIsIsP1())
{
......@@ -483,12 +473,7 @@ namespace OnlineStore.ACPackingStore
string portName = txtAxisDeviceName.Text;
short SlvAddr = FormUtil.GetShortValue(txtAxisValue);
int speed = FormUtil.GetIntValue(txtASpeed);
if (BoxBean.Config.InOut_Axis.IsSameAxis(portName, SlvAddr) && (BoxBean.InOutAxisCanMove().Equals(false)))
{
MessageBox.Show("定位气缸不在下降端,不能移动进出轴", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
else if (BoxBean.Config.Middle_Axis.IsSameAxis(portName, SlvAddr) || BoxBean.Config.UpDown_Axis.IsSameAxis(portName, SlvAddr))
if (BoxBean.Config.Middle_Axis.IsSameAxis(portName, SlvAddr) || BoxBean.Config.UpDown_Axis.IsSameAxis(portName, SlvAddr))
{
if (!InOutIsIsP1())
{
......@@ -514,12 +499,7 @@ namespace OnlineStore.ACPackingStore
// return;
//}
if (BoxBean.Config.InOut_Axis.IsSameAxis(portName, SlvAddr) && (BoxBean.InOutAxisCanMove().Equals(false)))
{
MessageBox.Show("定位气缸不在下降端,不能移动进出轴", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
else if (BoxBean.Config.Middle_Axis.IsSameAxis(portName, SlvAddr) || BoxBean.Config.UpDown_Axis.IsSameAxis(portName, SlvAddr))
if (BoxBean.Config.Middle_Axis.IsSameAxis(portName, SlvAddr) || BoxBean.Config.UpDown_Axis.IsSameAxis(portName, SlvAddr))
{
if (!InOutIsIsP1())
{
......@@ -591,7 +571,7 @@ namespace OnlineStore.ACPackingStore
bool result = CSVPositionReader<ACBoxPosition>.SavePostion(positionConfigFile, ktkPosition);
if (!result)
{
MessageBox.Show("库位【"+selectPositionNum+ "】保存失败!");
MessageBox.Show("库位【" + selectPositionNum + "】保存失败!");
}
//料仓固定位置保存
bool needUpdate = false;
......@@ -753,33 +733,19 @@ namespace OnlineStore.ACPackingStore
private void btnInOutP1_Click(object sender, EventArgs e)
{
if (BoxBean.InOutAxisCanMove().Equals(false))
{
MessageBox.Show("定位气缸不在下降端,不能移动进出轴", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
int value = FormUtil.GetIntValue(txtInOutP1);
AxisABSMove(BoxBean.Config.InOut_Axis, value, BoxBean.Config.InOutAxis_P1_Speed);
}
private void btnInOutP3_Click(object sender, EventArgs e)
{
if (BoxBean.InOutAxisCanMove().Equals(false))
{
MessageBox.Show("定位气缸不在下降端,不能移动进出轴", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
int value = FormUtil.GetIntValue(txtInOutP3);
AxisABSMove(BoxBean.Config.InOut_Axis, value, BoxBean.Config.InOutAxis_P3_Speed);
}
private void btnInOutP2_Click(object sender, EventArgs e)
{
if (BoxBean.InOutAxisCanMove().Equals(false))
{
MessageBox.Show("定位气缸不在下降端,不能移动进出轴", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
int value = FormUtil.GetIntValue(txtInOutP2);
AxisABSMove(BoxBean.Config.InOut_Axis, value, BoxBean.Config.InOutAxis_P2_Speed);
}
......@@ -936,8 +902,6 @@ namespace OnlineStore.ACPackingStore
this.btnInOutP3.ForeColor = System.Drawing.Color.Green;
this.btnMiddleP1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
this.btnMiddleP2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
}
private int GetSlaveAddr()
......@@ -953,12 +917,7 @@ namespace OnlineStore.ACPackingStore
{
string portName = txtAxisDeviceName.Text;
short SlvAddr = FormUtil.GetShortValue(txtAxisValue);
if (BoxBean.Config.InOut_Axis.IsSameAxis(portName, SlvAddr) && (BoxBean.InOutAxisCanMove().Equals(false)))
{
MessageBox.Show("定位气缸不在下降端,不能移动进出轴", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
else if (BoxBean.Config.Middle_Axis.IsSameAxis(portName, SlvAddr) || BoxBean.Config.UpDown_Axis.IsSameAxis(portName, SlvAddr))
if (BoxBean.Config.Middle_Axis.IsSameAxis(portName, SlvAddr) || BoxBean.Config.UpDown_Axis.IsSameAxis(portName, SlvAddr))
{
if (!InOutIsIsP1())
{
......@@ -978,8 +937,15 @@ namespace OnlineStore.ACPackingStore
private void btnGetAlarm_Click(object sender, EventArgs e)
{
int value = ACServerManager.GetAlarmStatus(GetPortName(), GetSlaveAddr());
this.txtAlarmStatus.Text = value.ToString();
string PortName = txtAxisDeviceName.Text;
short SlvAddr = FormUtil.GetShortValue(txtAxisValue);
txtServoStatue.Text = ACServerManager.ServerOnStatus(PortName, SlvAddr) ? "✔" : "✘";
this.txtAlarmStatus.Text = ACServerManager.GetAlarmStatus(PortName, SlvAddr).ToString();
this.txtBusyStatus.Text = ACServerManager.GetBusyStatus(PortName, SlvAddr).ToString();
this.txtHomeStatus.Text = ACServerManager.GetHomeEndStatus(PortName, SlvAddr).ToString();
this.txtHomeSingle.Text = ACServerManager.GetHomeSingle(PortName, SlvAddr).ToString();
this.txtLimit1.Text = ACServerManager.GetLimitPositiveSingle(PortName, SlvAddr).ToString();
this.txtLimit2.Text = ACServerManager.GetLimitNegativeSingle(PortName, SlvAddr).ToString();
}
private void button1_Click_1(object sender, EventArgs e)
......@@ -1149,10 +1115,8 @@ namespace OnlineStore.ACPackingStore
ioIP = BoxBean.Config.DIList[IO_Type.TrayCheck_Fixture].DeviceName;
ioIndex = BoxBean.Config.DIList[IO_Type.TrayCheck_Fixture].GetIOAddr();
}
FrmPositionTool frm = new FrmPositionTool(PortName, slvAddr, ioIP, ioIndex,Text);
FrmPositionTool frm = new FrmPositionTool(PortName, slvAddr, ioIP, ioIndex, Text);
frm.ShowDialog();
}
private void btnReadLimit1_Click(object sender, EventArgs e)
......
......@@ -441,53 +441,43 @@ namespace OnlineStore.DeviceLibrary
LogUtil.error(CodeMsg);
}
MoveInfo.NextMoveStep(StoreMoveStep.SO_08_ToDoorPosition);
InOutStoreLog("出库:SO_08 走到料门口,旋转轴至P1(待机点)升降轴至P2(进料口出料前点),打开舱门 ");
ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P2, Config.UpDownAxis_P2_Speed);
ACAxisMove(Config.Middle_Axis, moveP.Middle_P1, Config.MiddleAxis_P1_Speed);
//打开舱门
//OpenDoorAndWait();
MoveInfo.NextMoveStep(StoreMoveStep.SO_08_ToShelfPosition);
InOutStoreLog("出库:SO_08 走到料架位置,旋转轴至P101,升降轴至P102, ");
ACAxisMove(Config.UpDown_Axis, moveP.UpDown_HP102, Config.UpDownAxis_P102_Speed);
ACAxisMove(Config.Middle_Axis, moveP.Middle_P101, Config.MiddleAxis_P101_Speed);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_07_LocationCylinder_Up)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_08_ToDoorPosition);
InOutStoreLog("出库:SO_08 走到料门口,旋转轴至P1(待机点)升降轴至P2(进料口出料前点) ");
ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P2, Config.UpDownAxis_P2_Speed);
ACAxisMove(Config.Middle_Axis, moveP.Middle_P1, Config.MiddleAxis_P1_Speed);
MoveInfo.NextMoveStep(StoreMoveStep.SO_08_ToShelfPosition);
InOutStoreLog("出库:SO_08 走到料架位置,旋转轴至P101,升降轴至P102, ");
ACAxisMove(Config.UpDown_Axis, moveP.UpDown_HP102, Config.UpDownAxis_P102_Speed);
ACAxisMove(Config.Middle_Axis, moveP.Middle_P101, Config.MiddleAxis_P101_Speed);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_08_ToDoorPosition)
else if (MoveInfo.MoveStep == StoreMoveStep.SO_08_ToShelfPosition)
{
//SO_10_DeviceToDoorPro();
MoveInfo.NextMoveStep(StoreMoveStep.SO_091_WaitNoTray);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW));
// StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0));
OpenDoor();
}
//此处需要等待移栽没有工作,才能把盘放入出料口
else if (MoveInfo.MoveStep == StoreMoveStep.SO_09_LocationCylinder_Down)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_091_WaitNoTray);
InOutStoreLog("出库:SO_091 打开仓门,等待门口无料盘 ");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW));
// StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0));
OpenDoor();
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_091_WaitNoTray)
{
SO_10_DeviceToDoorPro();
MoveInfo.NextMoveStep(StoreMoveStep.SO_10_DeviceToShelf);
InOutStoreLog("出库:SO_10 叉子进出料口,进出轴至P101");
ACAxisMove(Config.InOut_Axis, moveP.InOut_P101, Config.InOutAxis_P101_Speed);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_10_DeviceToDoor)
else if (MoveInfo.MoveStep == StoreMoveStep.SO_10_DeviceToShelf)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_11_DevicePutWare);
InOutStoreLog("出库:SO_11 放下物品,升降轴至P8(进料口出料缓冲点) ");
//NeedCheckSafetyLight = 0;
InOutStoreLog("出库:SO_11 放下物品,压紧轴到P1,升降轴至P101 ");
ComMoveToPosition(moveP.ComPress_P1, Config.CompAxis_P1_Speed);
// ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P8, Config.UpDownAxis_P8_Speed);
ACAxisMove(Config.UpDown_Axis, moveP.UpDown_LP101, Config.UpDownAxis_P101_Speed);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_11_DevicePutWare)
{
......@@ -500,27 +490,26 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.NextMoveStep(StoreMoveStep.SO_13_GoBack);
InOutStoreLog("出库:SO_13 升降轴返回,轴2至P1(待机点) ,关闭舱门");
ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P1, Config.UpDownAxis_P1_Speed);
CloseDoor();
//发送消息给流水线
SendOutStoreEnd(MoveInfo);
// SendOutStoreEnd(MoveInfo);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_13_GoBack)
{
int OutStoreWaitSeconds = ConfigAppSettings.GetIntValue(Setting_Init.OutStoreWaitSeconds);
if (OutStoreWaitSeconds <= 0)
{
OutStoreWaitSeconds = 600;
}
int ms = OutStoreWaitSeconds * 1000;
MoveInfo.NextMoveStep(StoreMoveStep.SO_14_WaitTake);
InOutStoreLog("出库:SO_14_WaitTake 等待拿走物品,最多等待" + OutStoreWaitSeconds + "秒");
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(ms));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW));
// StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0));
MoveInfo.OneWaitCanEndStep = true;
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_14_WaitTake)
{
// int OutStoreWaitSeconds = ConfigAppSettings.GetIntValue(Setting_Init.OutStoreWaitSeconds);
// if (OutStoreWaitSeconds <= 0)
// {
// OutStoreWaitSeconds = 600;
// }
// int ms = OutStoreWaitSeconds * 1000;
// MoveInfo.NextMoveStep(StoreMoveStep.SO_14_WaitTake);
// InOutStoreLog("出库:SO_14_WaitTake 等待拿走物品,最多等待" + OutStoreWaitSeconds + "秒");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(ms));
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW));
// // StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0));
// MoveInfo.OneWaitCanEndStep = true;
//}
//else if (MoveInfo.MoveStep == StoreMoveStep.SO_14_WaitTake)
//{
TimeSpan span = DateTime.Now - startOutStoreTime;
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosID : "";
......@@ -528,7 +517,7 @@ namespace OnlineStore.DeviceLibrary
LogInfo(" 【" + posId + "】 整个出库流程结束,耗时【" + FormUtil.GetSpanStr(span) + "】!");
MoveInfo.EndMove();
storeRunStatus = StoreRunStatus.Runing;
AutoInout.InOutEndProcess(this,StoreMoveType.OutStore);
AutoInout.InOutEndProcess(this, StoreMoveType.OutStore);
}
else
{
......@@ -536,41 +525,6 @@ namespace OnlineStore.DeviceLibrary
}
}
private void SendOutStoreEnd(StoreMoveInfo storeMove)
{
//int hasTray = (int)IOValue(IO_Type.TrayCheck_Door);
//int ss = (int)storeStatus;
//if (IsDebug)
//{
// ss = (int)StoreStatus.Debugging;
//}
//StoreSendBean store = new StoreSendBean(Config.Id, Config.CID, (int)storeStatus, (int)storeRunStatus, hasTray, (int)alarmType);
//store.PosId = MoveInfo.MoveParam.PositionNum;
//store.PlateH = MoveInfo.MoveParam.PlateH;
//store.PlateW = MoveInfo.MoveParam.PlateW;
//LineConnect.OutStoreEnd(store);
}
private void SO_10_DeviceToDoorPro()
{
LineMoveP moveP = MoveInfo.MoveParam.MoveP;
MoveInfo.NextMoveStep(StoreMoveStep.SO_10_DeviceToDoor);
InOutStoreLog("出库:SO_10 叉子进出料口,进出轴至P2(进料口取料点) ");
ACAxisMove(Config.InOut_Axis, moveP.InOut_P2, Config.InOutAxis_P2_Speed);
//NeedCheckSafetyLight = 1;
}
public bool InOutAxisCanMove()
{
//if (IOValue(IO_Type.LocationCylinder_Down).Equals(IO_VALUE.HIGH)
// && IOValue(IO_Type.LocationCylinder_Up).Equals(IO_VALUE.LOW)
// && IOValue(IO_Type.LocationCylinder2_Down).Equals(IO_VALUE.HIGH)
// && IOValue(IO_Type.LocationCylinder2_Up).Equals(IO_VALUE.LOW))
//{
// return true;
//}
return false;
}
#endregion
......
......@@ -205,14 +205,14 @@ namespace OnlineStore.DeviceLibrary
SO_06_BagDeviceBack =10106,
/// <summary>
/// 料仓出库,定位气缸伸出(有压紧轴的不需要此步骤),,定位气缸伸出 Y103-1/PCI5O1-83) Y103-2/PCI5O1-90) Y103-3/PCI5O1-95) 伸出到位
/// 料仓出库,定位气缸伸出(有压紧轴的不需要此步骤
/// </summary>
SO_07_LocationCylinder_Up =10107,
/// <summary>
/// 料仓出库,,所有设备运行到门,,轴1( 转盘) 至P1( 待机点)轴2( 上下) 至P2( 进料口出料前点)
/// 料仓出库,走到料架位置,旋转轴至P101,升降轴至P102,
/// </summary>
SO_08_ToDoorPosition =10108,
SO_08_ToShelfPosition = 10108,
/// <summary>
/// 料仓出库,定位气缸退回(有压紧轴的不需要此步骤),,定位气缸退回(Y104-1/PCI5O1-84) (Y104-2/PCI5O1-91) (Y104-2/PCI5O1-96) 退回到位
......@@ -224,13 +224,13 @@ namespace OnlineStore.DeviceLibrary
SO_091_WaitNoTray =10115,
/// <summary>
/// 料仓出库,,叉子进出料口,,轴3( 叉子) 至P2( 进料口取料点)
/// 料仓出库,叉子到料架,进出轴至P101
/// /// </summary>
SO_10_DeviceToDoor =10110,
SO_10_DeviceToShelf = 10110,
/// <summary>
/// 料仓出库,,把物品放下,,轴2( 上下) 至P8( 进料口出料缓冲点)轴4( 压紧) 至P1( 待机点)
/// 料仓出库,,把物品放下,压紧轴到P1,升降轴至P101
/// </summary>
SO_11_DevicePutWare =10111,
SO_11_DevicePutWare = 10111,
/// <summary>
/// 料仓出库,,叉子从出料口返回,,轴3( 叉子) 动作至P1( 待机点)
/// </summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!