Commit b5264ed2 LN

界面调整

1 个父辈 fd0b3169
正在显示 65 个修改的文件 包含 1313 行增加418 行删除
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
<!--storeType--> <!--storeType-->
<add key="Line_moveEquip_count" value="24" /> <add key="Line_moveEquip_count" value="24" />
<add key="Line_feedingEquip_count" value="5" /> <add key="Line_feedingEquip_count" value="5" />
<add key="Line_providingEquip_count" value="4" /> <add key="Line_HYEquip_count" value="21" />
<add key="Line_dischargeLine_count" value="2" /> <!--<add key="Line_dischargeLine_count" value="2" />-->
<!--start one store config--> <!--start one store config-->
<add key="ConfigPath_Line" value="\LineConfig\Config_Line.csv" /> <add key="ConfigPath_Line" value="\LineConfig\Config_Line.csv" />
<add key="ConfigPath_MoveEquip" value="\LineConfig\MoveEquip\Config_MoveEquip.csv" /> <add key="ConfigPath_MoveEquip" value="\LineConfig\MoveEquip\Config_MoveEquip.csv" />
<add key="ConfigPath_FeedingEquip" value="\LineConfig\Config_FeedingEquip.csv" /> <add key="ConfigPath_FeedingEquip" value="\LineConfig\Config_FeedingEquip.csv" />
<add key="ConfigPath_ProvidingEquip" value="\LineConfig\Config_ProvidingEquip.csv" /> <add key="ConfigPath_HYEquip" value="\LineConfig\HY\Config_HYEquip.csv" />
<add key="ConfigPath_DischargeLine" value="\LineConfig\Config_DischargeLine.csv" /> <add key="ConfigPath_DischargeLine" value="\LineConfig\Config_DischargeLine.csv" />
<add key="Line_Type" value="Line" /> <add key="Line_Type" value="Line" />
<add key="Line_CID" value="rc1250" /> <add key="Line_CID" value="rc1250" />
......
...@@ -104,6 +104,12 @@ ...@@ -104,6 +104,12 @@
<Compile Include="FrmIOStatus.Designer.cs"> <Compile Include="FrmIOStatus.Designer.cs">
<DependentUpon>FrmIOStatus.cs</DependentUpon> <DependentUpon>FrmIOStatus.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="FrmHYEquip.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmHYEquip.Designer.cs">
<DependentUpon>FrmHYEquip.cs</DependentUpon>
</Compile>
<Compile Include="FrmRFIPEdit.cs"> <Compile Include="FrmRFIPEdit.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -122,24 +128,12 @@ ...@@ -122,24 +128,12 @@
<Compile Include="FrmBase.Designer.cs"> <Compile Include="FrmBase.Designer.cs">
<DependentUpon>FrmBase.cs</DependentUpon> <DependentUpon>FrmBase.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="FrmDischargeLine.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmDischargeLine.Designer.cs">
<DependentUpon>FrmDischargeLine.cs</DependentUpon>
</Compile>
<Compile Include="FrmEquipBase.cs"> <Compile Include="FrmEquipBase.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="FrmEquipBase.Designer.cs"> <Compile Include="FrmEquipBase.Designer.cs">
<DependentUpon>FrmEquipBase.cs</DependentUpon> <DependentUpon>FrmEquipBase.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="FrmProvidingEquip.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmProvidingEquip.Designer.cs">
<DependentUpon>FrmProvidingEquip.cs</DependentUpon>
</Compile>
<Compile Include="FrmFeedingEquip.cs"> <Compile Include="FrmFeedingEquip.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -179,6 +173,12 @@ ...@@ -179,6 +173,12 @@
<Compile Include="ManagerUtil.cs" /> <Compile Include="ManagerUtil.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="useControl\EquipControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="useControl\EquipControl.Designer.cs">
<DependentUpon>EquipControl.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="agvtest\FrmAgvTest.resx"> <EmbeddedResource Include="agvtest\FrmAgvTest.resx">
<DependentUpon>FrmAgvTest.cs</DependentUpon> <DependentUpon>FrmAgvTest.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
...@@ -188,6 +188,9 @@ ...@@ -188,6 +188,9 @@
<EmbeddedResource Include="FrmIOStatus.resx"> <EmbeddedResource Include="FrmIOStatus.resx">
<DependentUpon>FrmIOStatus.cs</DependentUpon> <DependentUpon>FrmIOStatus.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="FrmHYEquip.resx">
<DependentUpon>FrmHYEquip.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmRFIPEdit.resx"> <EmbeddedResource Include="FrmRFIPEdit.resx">
<DependentUpon>FrmRFIPEdit.cs</DependentUpon> <DependentUpon>FrmRFIPEdit.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
...@@ -197,15 +200,9 @@ ...@@ -197,15 +200,9 @@
<EmbeddedResource Include="FrmBase.resx"> <EmbeddedResource Include="FrmBase.resx">
<DependentUpon>FrmBase.cs</DependentUpon> <DependentUpon>FrmBase.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="FrmDischargeLine.resx">
<DependentUpon>FrmDischargeLine.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmEquipBase.resx"> <EmbeddedResource Include="FrmEquipBase.resx">
<DependentUpon>FrmEquipBase.cs</DependentUpon> <DependentUpon>FrmEquipBase.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="FrmProvidingEquip.resx">
<DependentUpon>FrmProvidingEquip.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmFeedingEquip.resx"> <EmbeddedResource Include="FrmFeedingEquip.resx">
<DependentUpon>FrmFeedingEquip.cs</DependentUpon> <DependentUpon>FrmFeedingEquip.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
...@@ -234,6 +231,9 @@ ...@@ -234,6 +231,9 @@
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
</Compile> </Compile>
<EmbeddedResource Include="useControl\EquipControl.resx">
<DependentUpon>EquipControl.cs</DependentUpon>
</EmbeddedResource>
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput> <LastGenOutput>Settings.Designer.cs</LastGenOutput>
......
...@@ -35,7 +35,7 @@ namespace OnlineStore.AssemblyLine ...@@ -35,7 +35,7 @@ namespace OnlineStore.AssemblyLine
private void LoadIOList() private void LoadIOList()
{ {
int maxCount = 16; int maxCount = 20;
int roleindex = 0; int roleindex = 0;
this.tableLayoutPanel1.RowStyles.Clear(); this.tableLayoutPanel1.RowStyles.Clear();
this.tableLayoutPanel1.RowCount = maxCount; this.tableLayoutPanel1.RowCount = maxCount;
...@@ -289,6 +289,7 @@ namespace OnlineStore.AssemblyLine ...@@ -289,6 +289,7 @@ namespace OnlineStore.AssemblyLine
txtBP2.Text = equipBean.Config.BatchAxisP2.ToString(); txtBP2.Text = equipBean.Config.BatchAxisP2.ToString();
txtBP3.Text = equipBean.Config.BatchAxisP3.ToString(); txtBP3.Text = equipBean.Config.BatchAxisP3.ToString();
lblName.Text = equipBean.Name; lblName.Text = equipBean.Name;
this.Text = equipBean.Name;
chbBoxSendShelf.Visible = equipBean.Config.IsCanOut.Equals(1); chbBoxSendShelf.Visible = equipBean.Config.IsCanOut.Equals(1);
chbBoxSendShelf.Checked = equipBean.OutEndSendShelfOut; chbBoxSendShelf.Checked = equipBean.OutEndSendShelfOut;
IsLoad = true; IsLoad = true;
...@@ -749,6 +750,11 @@ namespace OnlineStore.AssemblyLine ...@@ -749,6 +750,11 @@ namespace OnlineStore.AssemblyLine
} }
} }
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
} }
} }
......
namespace OnlineStore.AssemblyLine namespace OnlineStore.AssemblyLine
{ {
partial class FrmProvidingEquip partial class FrmHYEquip
{ {
/// <summary> /// <summary>
/// 必需的设计器变量。 /// 必需的设计器变量。
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmProvidingEquip)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmHYEquip));
this.timer1 = new System.Windows.Forms.Timer(this.components); this.timer1 = new System.Windows.Forms.Timer(this.components);
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.txtDOIndex = new System.Windows.Forms.TextBox(); this.txtDOIndex = new System.Windows.Forms.TextBox();
...@@ -502,7 +502,7 @@ ...@@ -502,7 +502,7 @@
this.tabControl1.Location = new System.Drawing.Point(5, 62); this.tabControl1.Location = new System.Drawing.Point(5, 62);
this.tabControl1.Name = "tabControl1"; this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0; this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1307, 466); this.tabControl1.Size = new System.Drawing.Size(1173, 545);
this.tabControl1.TabIndex = 257; this.tabControl1.TabIndex = 257;
// //
// tabPage1 // tabPage1
...@@ -577,7 +577,7 @@ ...@@ -577,7 +577,7 @@
this.tabPage2.Controls.Add(this.axisMoveControl1); this.tabPage2.Controls.Add(this.axisMoveControl1);
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.Size = new System.Drawing.Size(1299, 436); this.tabPage2.Size = new System.Drawing.Size(1165, 515);
this.tabPage2.TabIndex = 1; this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "伺服调试"; this.tabPage2.Text = "伺服调试";
this.tabPage2.UseVisualStyleBackColor = true; this.tabPage2.UseVisualStyleBackColor = true;
...@@ -592,7 +592,7 @@ ...@@ -592,7 +592,7 @@
this.groupDetial.Controls.Add(this.label2); this.groupDetial.Controls.Add(this.label2);
this.groupDetial.Controls.Add(this.cmbDSize); this.groupDetial.Controls.Add(this.cmbDSize);
this.groupDetial.Controls.Add(this.label1); this.groupDetial.Controls.Add(this.label1);
this.groupDetial.Location = new System.Drawing.Point(753, 179); this.groupDetial.Location = new System.Drawing.Point(577, 180);
this.groupDetial.Name = "groupDetial"; this.groupDetial.Name = "groupDetial";
this.groupDetial.Size = new System.Drawing.Size(537, 205); this.groupDetial.Size = new System.Drawing.Size(537, 205);
this.groupDetial.TabIndex = 318; this.groupDetial.TabIndex = 318;
...@@ -705,7 +705,7 @@ ...@@ -705,7 +705,7 @@
this.groupBox2.Controls.Add(this.label4); this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.btnP2); this.groupBox2.Controls.Add(this.btnP2);
this.groupBox2.Controls.Add(this.txtP2); this.groupBox2.Controls.Add(this.txtP2);
this.groupBox2.Location = new System.Drawing.Point(753, 5); this.groupBox2.Location = new System.Drawing.Point(577, 6);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(538, 168); this.groupBox2.Size = new System.Drawing.Size(538, 168);
this.groupBox2.TabIndex = 219; this.groupBox2.TabIndex = 219;
...@@ -840,10 +840,10 @@ ...@@ -840,10 +840,10 @@
// //
// axisMoveControl1 // axisMoveControl1
// //
this.axisMoveControl1.Location = new System.Drawing.Point(6, 5); this.axisMoveControl1.Location = new System.Drawing.Point(5, 3);
this.axisMoveControl1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.axisMoveControl1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.axisMoveControl1.Name = "axisMoveControl1"; this.axisMoveControl1.Name = "axisMoveControl1";
this.axisMoveControl1.Size = new System.Drawing.Size(744, 349); this.axisMoveControl1.Size = new System.Drawing.Size(566, 427);
this.axisMoveControl1.TabIndex = 0; this.axisMoveControl1.TabIndex = 0;
// //
// panel1 // panel1
...@@ -859,7 +859,7 @@ ...@@ -859,7 +859,7 @@
this.panel1.Controls.Add(this.btnReset); this.panel1.Controls.Add(this.btnReset);
this.panel1.Location = new System.Drawing.Point(2, 1); this.panel1.Location = new System.Drawing.Point(2, 1);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1306, 58); this.panel1.Size = new System.Drawing.Size(1172, 58);
this.panel1.TabIndex = 258; this.panel1.TabIndex = 258;
// //
// lblName // lblName
...@@ -871,20 +871,20 @@ ...@@ -871,20 +871,20 @@
this.lblName.Name = "lblName"; this.lblName.Name = "lblName";
this.lblName.Size = new System.Drawing.Size(180, 40); this.lblName.Size = new System.Drawing.Size(180, 40);
this.lblName.TabIndex = 259; this.lblName.TabIndex = 259;
this.lblName.Text = "出料流水线"; this.lblName.Text = "HY";
this.lblName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// FrmProvidingEquip // FrmHYEquip
// //
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(1318, 532); this.ClientSize = new System.Drawing.Size(1184, 611);
this.Controls.Add(this.panel1); this.Controls.Add(this.panel1);
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;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "FrmProvidingEquip"; this.Name = "FrmHYEquip";
this.Text = "出料移栽——"; this.Text = "出料移栽——";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmTest_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmTest_FormClosing);
this.Load += new System.EventHandler(this.FrmStoreIOStatus_Load); this.Load += new System.EventHandler(this.FrmStoreIOStatus_Load);
......
...@@ -20,11 +20,11 @@ using OnlineStore.Common; ...@@ -20,11 +20,11 @@ using OnlineStore.Common;
namespace OnlineStore.AssemblyLine namespace OnlineStore.AssemblyLine
{ {
internal partial class FrmProvidingEquip : FrmEquipBase internal partial class FrmHYEquip : FrmEquipBase
{ {
private bool IsLoad = false; private bool IsLoad = false;
private ProvidingEquip equipBean; private HYEquipBase equipBean;
internal FrmProvidingEquip(ProvidingEquip moveEquip) internal FrmHYEquip(HYEquipBase moveEquip)
{ {
equipBase = moveEquip; equipBase = moveEquip;
this.equipBean = moveEquip; this.equipBean = moveEquip;
...@@ -61,6 +61,7 @@ namespace OnlineStore.AssemblyLine ...@@ -61,6 +61,7 @@ namespace OnlineStore.AssemblyLine
lblStoreStatus.Text = KTK_Store.GetRunStr(equipBean.lineStatus, equipBean.runStatus); lblStoreStatus.Text = KTK_Store.GetRunStr(equipBean.lineStatus, equipBean.runStatus);
lblThisSta.Text = equipBean.WarnMsg; lblThisSta.Text = equipBean.WarnMsg;
lblName.Text = equipBean.Name; lblName.Text = equipBean.Name;
this.Text = equipBean.Name;
txtP1.Text = equipBean.Config.UpDownAxisP1.ToString(); txtP1.Text = equipBean.Config.UpDownAxisP1.ToString();
IsLoad = true; IsLoad = true;
} }
...@@ -299,7 +300,7 @@ namespace OnlineStore.AssemblyLine ...@@ -299,7 +300,7 @@ namespace OnlineStore.AssemblyLine
{ {
equipBean.IsDebug = true; equipBean.IsDebug = true;
equipBean.Config.IsDebug = 1; equipBean.Config.IsDebug = 1;
LineManager.SaveProvidingEquipConfig(equipBean.Config); LineManager.SaveHYEquipConfig(equipBean.Config);
equipBean.ChangeDebug(true); equipBean.ChangeDebug(true);
LogUtil.info(equipBean.Name+ "用户切换到调试状态 "); LogUtil.info(equipBean.Name+ "用户切换到调试状态 ");
} }
...@@ -314,7 +315,7 @@ namespace OnlineStore.AssemblyLine ...@@ -314,7 +315,7 @@ namespace OnlineStore.AssemblyLine
{ {
equipBean.IsDebug = false; equipBean.IsDebug = false;
equipBean.Config.IsDebug = 0; equipBean.Config.IsDebug = 0;
LineManager.SaveProvidingEquipConfig(equipBean.Config); LineManager.SaveHYEquipConfig(equipBean.Config);
equipBean.ChangeDebug(false); equipBean.ChangeDebug(false);
LogUtil.info(equipBean.Name + "用户切换到正常工作状态 "); LogUtil.info(equipBean.Name + "用户切换到正常工作状态 ");
} }
...@@ -337,11 +338,11 @@ namespace OnlineStore.AssemblyLine ...@@ -337,11 +338,11 @@ namespace OnlineStore.AssemblyLine
private void btnStop1Up_Click(object sender, EventArgs e) private void btnStop1Up_Click(object sender, EventArgs e)
{ {
BtnMove(btnStop1Up, "阻挡1下降", "阻挡1上升", IO_Type.StopCylinder_Down1); BtnMove(btnStop1Up, "阻挡1下降", "阻挡1上升", IO_Type.StopDown1);
} }
private void btnStop2Up_Click(object sender, EventArgs e) private void btnStop2Up_Click(object sender, EventArgs e)
{ {
BtnMove(btnStop2Up, "阻挡2下降", "阻挡2上升", IO_Type.StopCylinder_Down2); BtnMove(btnStop2Up, "阻挡2下降", "阻挡2上升", IO_Type.StopDown2);
} }
private void btnTopUp_Click(object sender, EventArgs e) private void btnTopUp_Click(object sender, EventArgs e)
...@@ -351,14 +352,14 @@ namespace OnlineStore.AssemblyLine ...@@ -351,14 +352,14 @@ namespace OnlineStore.AssemblyLine
private void btnBeforeAfterBefore_Click(object sender, EventArgs e) private void btnBeforeAfterBefore_Click(object sender, EventArgs e)
{ {
if (equipBean.CanBeforeAfter()) //if (equipBean.CanBeforeAfter())
{ //{
BtnMove(btnBeforeAfterBefore, "横移前进", "横移后退", IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before); // BtnMove(btnBeforeAfterBefore, "横移前进", "横移后退", IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
} //}
else //else
{ //{
MessageBox.Show("升降气缸不在上升端 或 升降轴不在待机点P1", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); // MessageBox.Show("升降气缸不在上升端 或 升降轴不在待机点P1", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
} //}
} }
private void btnUpDownUp_Click(object sender, EventArgs e) private void btnUpDownUp_Click(object sender, EventArgs e)
...@@ -367,7 +368,7 @@ namespace OnlineStore.AssemblyLine ...@@ -367,7 +368,7 @@ namespace OnlineStore.AssemblyLine
} }
private void btnClampSlack_Click(object sender, EventArgs e) private void btnClampSlack_Click(object sender, EventArgs e)
{ {
BtnMove(btnClampSlack, "夹料夹紧", "夹料放松", IO_Type.ClampCylinder_Tighten, IO_Type.ClampCylinder_Slack); BtnMove(btnClampSlack, "夹料夹紧", "夹料放松", IO_Type.ClampCylinder_Relax, IO_Type.ClampCylinder_Work);
} }
private void btnCloseAll_Click(object sender, EventArgs e) private void btnCloseAll_Click(object sender, EventArgs e)
{ {
...@@ -440,7 +441,7 @@ namespace OnlineStore.AssemblyLine ...@@ -440,7 +441,7 @@ namespace OnlineStore.AssemblyLine
int sizeBoxP = FormUtil.GetIntValue(txtP3); int sizeBoxP = FormUtil.GetIntValue(txtP3);
equipBean.Config.UpdateUpdownP2(size, sizePosition); equipBean.Config.UpdateUpdownP2(size, sizePosition);
equipBean.Config.UpdateUpdownP3(size, sizeBoxP); equipBean.Config.UpdateUpdownP3(size, sizeBoxP);
LineManager.SaveProvidingEquipConfig(equipBean.Config); LineManager.SaveHYEquipConfig(equipBean.Config);
MessageBox.Show("保存成功!"); MessageBox.Show("保存成功!");
} }
...@@ -478,7 +479,7 @@ namespace OnlineStore.AssemblyLine ...@@ -478,7 +479,7 @@ namespace OnlineStore.AssemblyLine
if (result.Equals(DialogResult.OK)) if (result.Equals(DialogResult.OK))
{ {
equipBean.Config.UpdateUpdownP2Detial(size, height, position); equipBean.Config.UpdateUpdownP2Detial(size, height, position);
LineManager.SaveProvidingEquipConfig(equipBean.Config); LineManager.SaveHYEquipConfig(equipBean.Config);
LogUtil.info(equipBean.Name + "用户操作:尺寸:" + size + ",高度:" + height + ",P2值:" + position + ",保存成功"); LogUtil.info(equipBean.Name + "用户操作:尺寸:" + size + ",高度:" + height + ",P2值:" + position + ",保存成功");
MessageBox.Show("保存成功!"); MessageBox.Show("保存成功!");
......
...@@ -52,9 +52,9 @@ ...@@ -52,9 +52,9 @@
this.groupBox2.Controls.Add(this.label3); this.groupBox2.Controls.Add(this.label3);
this.groupBox2.Controls.Add(this.label4); this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.comboBox2); this.groupBox2.Controls.Add(this.comboBox2);
this.groupBox2.Location = new System.Drawing.Point(589, 4); this.groupBox2.Location = new System.Drawing.Point(617, 4);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(657, 564); this.groupBox2.Size = new System.Drawing.Size(684, 564);
this.groupBox2.TabIndex = 291; this.groupBox2.TabIndex = 291;
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
this.groupBox2.Text = "设备IO列表对比"; this.groupBox2.Text = "设备IO列表对比";
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
// //
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(282, 48); this.label3.Location = new System.Drawing.Point(313, 47);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(31, 17); this.label3.Size = new System.Drawing.Size(31, 17);
this.label3.TabIndex = 293; this.label3.TabIndex = 293;
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
// //
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.Location = new System.Drawing.Point(23, 48); this.label4.Location = new System.Drawing.Point(23, 47);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(31, 17); this.label4.Size = new System.Drawing.Size(31, 17);
this.label4.TabIndex = 292; this.label4.TabIndex = 292;
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
this.groupBox1.Controls.Add(this.comboBox1); this.groupBox1.Controls.Add(this.comboBox1);
this.groupBox1.Location = new System.Drawing.Point(4, 4); this.groupBox1.Location = new System.Drawing.Point(4, 4);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(579, 564); this.groupBox1.Size = new System.Drawing.Size(606, 564);
this.groupBox1.TabIndex = 290; this.groupBox1.TabIndex = 290;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "设备IO列表"; this.groupBox1.Text = "设备IO列表";
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(282, 47); this.label2.Location = new System.Drawing.Point(313, 47);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(31, 17); this.label2.Size = new System.Drawing.Size(31, 17);
this.label2.TabIndex = 291; this.label2.TabIndex = 291;
......
...@@ -40,13 +40,13 @@ namespace OnlineStore.AssemblyLine ...@@ -40,13 +40,13 @@ namespace OnlineStore.AssemblyLine
label2.Text = ""; label2.Text = "";
foreach (ConfigIO ioValue in DIList) foreach (ConfigIO ioValue in DIList)
{ {
label1.Text+= ioValue.ElectricalDefinition + "_" + ioValue.Explain +"\r\n"; label1.Text+= ioValue.ElectricalDefinition + "_" + ioValue.Explain +"_"+ioValue.ProName+"\r\n";
} }
foreach (ConfigIO ioValue in DOList) foreach (ConfigIO ioValue in DOList)
{ {
label2.Text += ioValue.ElectricalDefinition + "_" + ioValue.Explain + "\r\n"; label2.Text += ioValue.ElectricalDefinition + "_" + ioValue.Explain + "_" + ioValue.ProName + "\r\n";
} }
this.SuspendLayout(); //此处为不闪屏,一定要有的! this.SuspendLayout(); //此处为不闪屏,一定要有的!
} }
...@@ -62,13 +62,13 @@ namespace OnlineStore.AssemblyLine ...@@ -62,13 +62,13 @@ namespace OnlineStore.AssemblyLine
label4.Text = ""; label4.Text = "";
foreach (ConfigIO ioValue in DIList) foreach (ConfigIO ioValue in DIList)
{ {
label4.Text += ioValue.ElectricalDefinition + "_" + ioValue.Explain + "\r\n"; label4.Text += ioValue.ElectricalDefinition + "_" + ioValue.Explain + "_" + ioValue.ProName + "\r\n";
} }
foreach (ConfigIO ioValue in DOList) foreach (ConfigIO ioValue in DOList)
{ {
label3.Text += ioValue.ElectricalDefinition + "_" + ioValue.Explain + "\r\n"; label3.Text += ioValue.ElectricalDefinition + "_" + ioValue.Explain + "_" + ioValue.ProName + "\r\n";
} }
this.SuspendLayout(); //此处为不闪屏,一定要有的! this.SuspendLayout(); //此处为不闪屏,一定要有的!
} }
......
...@@ -57,6 +57,7 @@ namespace OnlineStore.AssemblyLine ...@@ -57,6 +57,7 @@ namespace OnlineStore.AssemblyLine
lblThisSta.Text = equipBean.WarnMsg; lblThisSta.Text = equipBean.WarnMsg;
txtP1.Text = equipBean.Config.UpDownAxisP1.ToString(); txtP1.Text = equipBean.Config.UpDownAxisP1.ToString();
lblName.Text = equipBean.Name; lblName.Text = equipBean.Name;
this.Text = equipBean.Name;
LoadDP2(); LoadDP2();
IsLoad = true; IsLoad = true;
} }
...@@ -372,11 +373,11 @@ namespace OnlineStore.AssemblyLine ...@@ -372,11 +373,11 @@ namespace OnlineStore.AssemblyLine
private void btnStop1Up_Click(object sender, EventArgs e) private void btnStop1Up_Click(object sender, EventArgs e)
{ {
BtnMove(btnStop1Up, "阻挡1下降", "阻挡1上升", IO_Type.StopCylinder_Down1); BtnMove(btnStop1Up, "阻挡1下降", "阻挡1上升", IO_Type.StopDown1);
} }
private void btnStop2Up_Click(object sender, EventArgs e) private void btnStop2Up_Click(object sender, EventArgs e)
{ {
BtnMove(btnStop2Up, "阻挡2下降", "阻挡2上升", IO_Type.StopCylinder_Down2); BtnMove(btnStop2Up, "阻挡2下降", "阻挡2上升", IO_Type.StopDown2);
} }
private void btnTopUp_Click(object sender, EventArgs e) private void btnTopUp_Click(object sender, EventArgs e)
...@@ -402,7 +403,7 @@ namespace OnlineStore.AssemblyLine ...@@ -402,7 +403,7 @@ namespace OnlineStore.AssemblyLine
} }
private void btnClampSlack_Click(object sender, EventArgs e) private void btnClampSlack_Click(object sender, EventArgs e)
{ {
BtnMove(btnClampSlack, "夹料夹紧", "夹料放松", IO_Type.ClampCylinder_Tighten, IO_Type.ClampCylinder_Slack); 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)
...@@ -591,6 +592,11 @@ namespace OnlineStore.AssemblyLine ...@@ -591,6 +592,11 @@ namespace OnlineStore.AssemblyLine
} }
} }
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
} }
} }
......
...@@ -29,7 +29,6 @@ namespace OnlineStore.AssemblyLine ...@@ -29,7 +29,6 @@ namespace OnlineStore.AssemblyLine
comboxType.Items.Clear(); comboxType.Items.Clear();
foreach (EquipBase b in LineManager.Line.AllEquipMap.Values) foreach (EquipBase b in LineManager.Line.AllEquipMap.Values)
{ {
if (b.baseConfig.DType.Equals(DeviceType.DischargeLine)) { continue; }
string key = b.Name + "-托盘RF"; string key = b.Name + "-托盘RF";
string value = RFIDManager.GetRFIP(b.DeviceID); string value = RFIDManager.GetRFIP(b.DeviceID);
rfMap.Add(key, value); rfMap.Add(key, value);
......
namespace OnlineStore.AssemblyLine
{
partial class EquipControl
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.lblTrayNum = new System.Windows.Forms.Label();
this.lblName = new System.Windows.Forms.Label();
this.lblStatus = new System.Windows.Forms.Label();
this.lblMoveInfo = new System.Windows.Forms.Label();
this.lblDebug = new System.Windows.Forms.Label();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.lblBox = new System.Windows.Forms.Label();
this.panName = new System.Windows.Forms.Panel();
this.panName.SuspendLayout();
this.SuspendLayout();
//
// lblTrayNum
//
this.lblTrayNum.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblTrayNum.AutoSize = true;
this.lblTrayNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblTrayNum.ForeColor = System.Drawing.Color.Black;
this.lblTrayNum.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblTrayNum.Location = new System.Drawing.Point(185, 35);
this.lblTrayNum.Name = "lblTrayNum";
this.lblTrayNum.Size = new System.Drawing.Size(56, 17);
this.lblTrayNum.TabIndex = 0;
this.lblTrayNum.Text = "托盘号:";
this.lblTrayNum.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblName
//
this.lblName.BackColor = System.Drawing.Color.Transparent;
this.lblName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblName.ForeColor = System.Drawing.Color.Black;
this.lblName.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblName.Location = new System.Drawing.Point(3, 2);
this.lblName.Name = "lblName";
this.lblName.Size = new System.Drawing.Size(182, 22);
this.lblName.TabIndex = 1;
this.lblName.Text = "移栽D1-1_1";
this.lblName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblStatus
//
this.lblStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblStatus.AutoSize = true;
this.lblStatus.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblStatus.ForeColor = System.Drawing.Color.Black;
this.lblStatus.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblStatus.Location = new System.Drawing.Point(3, 29);
this.lblStatus.Name = "lblStatus";
this.lblStatus.Size = new System.Drawing.Size(56, 17);
this.lblStatus.TabIndex = 2;
this.lblStatus.Text = "暂未启动";
this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblMoveInfo
//
this.lblMoveInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblMoveInfo.AutoSize = true;
this.lblMoveInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMoveInfo.ForeColor = System.Drawing.Color.Black;
this.lblMoveInfo.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblMoveInfo.Location = new System.Drawing.Point(3, 50);
this.lblMoveInfo.Name = "lblMoveInfo";
this.lblMoveInfo.Size = new System.Drawing.Size(68, 17);
this.lblMoveInfo.TabIndex = 3;
this.lblMoveInfo.Text = "暂无出入库";
this.lblMoveInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblDebug
//
this.lblDebug.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblDebug.AutoSize = true;
this.lblDebug.BackColor = System.Drawing.Color.Transparent;
this.lblDebug.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblDebug.Location = new System.Drawing.Point(183, 4);
this.lblDebug.Name = "lblDebug";
this.lblDebug.Size = new System.Drawing.Size(51, 20);
this.lblDebug.TabIndex = 5;
this.lblDebug.Text = "启用:";
//
// lblBox
//
this.lblBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblBox.BackColor = System.Drawing.Color.LightGray;
this.lblBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblBox.ForeColor = System.Drawing.Color.Black;
this.lblBox.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblBox.Location = new System.Drawing.Point(2, 75);
this.lblBox.Name = "lblBox";
this.lblBox.Size = new System.Drawing.Size(247, 24);
this.lblBox.TabIndex = 6;
this.lblBox.Text = "BOX状态:";
this.lblBox.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// panName
//
this.panName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panName.BackColor = System.Drawing.Color.Lime;
this.panName.Controls.Add(this.lblDebug);
this.panName.Controls.Add(this.lblName);
this.panName.Location = new System.Drawing.Point(1, 1);
this.panName.Name = "panName";
this.panName.Size = new System.Drawing.Size(248, 28);
this.panName.TabIndex = 7;
//
// EquipControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = System.Drawing.Color.LightGreen;
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Controls.Add(this.panName);
this.Controls.Add(this.lblBox);
this.Controls.Add(this.lblMoveInfo);
this.Controls.Add(this.lblStatus);
this.Controls.Add(this.lblTrayNum);
this.Name = "EquipControl";
this.Size = new System.Drawing.Size(250, 100);
this.Load += new System.EventHandler(this.EquipControl_Load);
this.panName.ResumeLayout(false);
this.panName.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label lblTrayNum;
private System.Windows.Forms.Label lblName;
private System.Windows.Forms.Label lblStatus;
private System.Windows.Forms.Label lblMoveInfo;
private System.Windows.Forms.Label lblDebug;
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.Label lblBox;
private System.Windows.Forms.Panel panName;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OnlineStore.DeviceLibrary;
namespace OnlineStore.AssemblyLine
{
public partial class EquipControl : UserControl
{
public string TrayNum
{
get { return lblTrayNum.Text; }
set { lblTrayNum.Text = value; }
}
public string EquipName
{
get { return lblName.Text; }
set { lblName.Text = value; }
}
public string WorkStatus
{
get { return lblStatus.Text; }
set { lblStatus.Text = value; }
}
public string MoveInfo
{
get { return lblMoveInfo.Text; }
set { lblMoveInfo.Text = value; }
}
public Color ColorStatus
{
get { return this.BackColor; }
set
{
this.BackColor = value;
}
}
public void InitData(EquipBase equip)
{
if (equip is MoveEquip)
{
panName.BackColor = Color.DeepSkyBlue;
lblBox.Visible = true;
lblBox.Text = "";
}
else if (equip is FeedingEquip)
{
panName.BackColor = Color.Lime;
lblBox.Visible = false ;
lblBox.Text = "";
}
else
{
panName.BackColor = Color.Aqua;
lblBox.Visible = false ;
lblBox.Text = "";
}
DeviceId = equip.DeviceID;
lblName.Text = equip.Name;
}
public int DeviceId = 0;
public void ShowData(EquipBase equip)
{
lblTrayNum.Text ="托盘:"+equip.currTrayNum;
lblStatus.Text = equip.GetRunStr();
toolTip1.ToolTipTitle = ""+equip.Name+":双击进入";
lblDebug.Text = "启用:" + (equip.IsDebug ? "✘" : "✔");
if (equip.DeviceID < 200)
{
if (equip.MoveInfo.MoveType.Equals(LineMoveType.InStore))
{
lblMoveInfo.Text = "入库中:" + equip.MoveInfo.MoveParam.PosId + "_" + equip.MoveInfo.MoveParam.WareCode;
}
else if (equip.MoveInfo.MoveType.Equals(LineMoveType.OutStore))
{
lblMoveInfo.Text = "出库中:" + equip.MoveInfo.MoveParam.PosId + "_" + equip.MoveInfo.MoveParam.WareCode;
}
else
{
lblMoveInfo.Text = "暂无出入库";
}
if (equip.DeviceID < 100)
{
BoxInfo box = LineServer.GetBoxInfo(equip.DeviceID);
string online = "✘";
if (box != null)
{
//lvi.SubItems.Add(box.CId.ToString());
//lvi.SubItems.Add(online);
//lvi.SubItems.Add(box.SAlarmType.ToString());
//lvi.SubItems.Add(box.ToShowStr());
if ((DateTime.Now - box.LastMsgTime).TotalSeconds < LineServer.ClientKeepSecond)
{
online = "✔";
}
if (box.SAlarmType.Equals(LineAlarm.None))
{
lblBox.Text = "BOX[" + box.CId.ToString() + "]:" + online +" "+ box.ToShowStr();
lblBox.BackColor = Color.Green;
}
else
{
lblBox.Text = "BOX[" + box.CId.ToString() + "]:" + online + " " + box.ToShowStr();
lblBox.BackColor = Color.Red;
}
}
else
{
lblBox.Text = "BOX状态:" + online;
lblBox.BackColor = Color.Gray;
}
}
}
else
{
lblMoveInfo.Text = "暂无托盘横移";
}
SetItemColor(equip.runStatus, equip.alarmType);
}
public EquipControl()
{
InitializeComponent();
}
private void SetItemColor( LineRunStatus runStatus, LineAlarmType alarmType)
{
if (runStatus.Equals(LineRunStatus.Wait))
{
this.BackColor= Color.White ;
}
else if (alarmType.Equals(LineAlarmType.IoSingleTimeOut))
{
this.BackColor = Color.LightCoral;
}
else if (alarmType.Equals(LineAlarmType.None).Equals(false))
{
this.BackColor = Color.Red;
}
else if (runStatus.Equals(LineRunStatus.HomeMoving) || runStatus.Equals(LineRunStatus.Reset))
{
this.BackColor = Color.Orange;
}
else if (runStatus.Equals(LineRunStatus.Busy))
{
this.BackColor = Color.LimeGreen;
}
else if (runStatus.Equals(LineRunStatus.Runing))
{
this.BackColor = Color.LightBlue;
}
}
private void EquipControl_Load(object sender, EventArgs e)
{
//lblName.Text = "";
//lblTrayNum.Text = "";
//lblStatus.Text = "";
//lblMoveInfo.Text = "";
}
public static EquipControl NewControl(EquipBase equip)
{
EquipControl control = new EquipControl();
control.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)));
control.BackColor = System.Drawing.SystemColors.Control;
control.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
control.ColorStatus = System.Drawing.SystemColors.Control;
control.EquipName = "";
control.Location = new System.Drawing.Point(3, 3);
control.MoveInfo = "";
control.Name = "EquipControl" + equip.DeviceID;
control.Size = new System.Drawing.Size(270, 91);
control.TabIndex = 0;
control.TrayNum = "";
control.WorkStatus = "";
control.EquipName = equip.Name;
control.DeviceId = equip.DeviceID;
control.InitData(equip);
control.ShowData(equip);
return control;
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
\ No newline at end of file \ No newline at end of file
...@@ -28,14 +28,14 @@ namespace OnlineStore.Common ...@@ -28,14 +28,14 @@ namespace OnlineStore.Common
public static string Line_moveEquip_count = "Line_moveEquip_count"; public static string Line_moveEquip_count = "Line_moveEquip_count";
public static string Line_feedingEquip_count = "Line_feedingEquip_count"; public static string Line_feedingEquip_count = "Line_feedingEquip_count";
public static string Line_providingEquip_count = "Line_providingEquip_count"; public static string Line_HYEquip_count = "Line_HYEquip_count";
public static string Line_Type = "Line_Type"; public static string Line_Type = "Line_Type";
public static string ConfigPath_Line = "ConfigPath_Line"; public static string ConfigPath_Line = "ConfigPath_Line";
public static string ConfigPath_MoveEquip = "ConfigPath_MoveEquip"; public static string ConfigPath_MoveEquip = "ConfigPath_MoveEquip";
public static string ConfigPath_FeedingEquip = "ConfigPath_FeedingEquip"; public static string ConfigPath_FeedingEquip = "ConfigPath_FeedingEquip";
public static string ConfigPath_ProvidingEquip = "ConfigPath_ProvidingEquip"; public static string ConfigPath_HYEquip = "ConfigPath_HYEquip";
/// <summary> /// <summary>
/// 摄像机名称,多个中间使用#分割 /// 摄像机名称,多个中间使用#分割
/// </summary> /// </summary>
......
...@@ -66,15 +66,13 @@ ...@@ -66,15 +66,13 @@
<ItemGroup> <ItemGroup>
<Compile Include="agvClient\AgvClient.cs" /> <Compile Include="agvClient\AgvClient.cs" />
<Compile Include="assemblyLine\FeedingEquip_OutStore.cs" /> <Compile Include="assemblyLine\FeedingEquip_OutStore.cs" />
<Compile Include="assemblyLine\HY\HYEquipBase.cs" />
<Compile Include="assemblyLine\HY\HY_OutLine.cs" />
<Compile Include="assemblyLine\HY\HY_C1Line.cs" />
<Compile Include="assemblyLine\LineBean_Shunt2.cs" /> <Compile Include="assemblyLine\LineBean_Shunt2.cs" />
<Compile Include="assemblyLine\LineBean_Shunt.cs" /> <Compile Include="assemblyLine\LineBean_Shunt.cs" />
<Compile Include="assemblyLine\OutTrayLineBean.cs" />
<Compile Include="assemblymanager\ALineManager.cs" /> <Compile Include="assemblymanager\ALineManager.cs" />
<Compile Include="assemblyLine\DischargeLine.cs" />
<Compile Include="assemblyLine\DischargeLine_Partial.cs" />
<Compile Include="assemblyLine\ProvidingEquip_Partial.cs" />
<Compile Include="assemblyLine\FeedingEquip_InStore.cs" /> <Compile Include="assemblyLine\FeedingEquip_InStore.cs" />
<Compile Include="assemblyLine\ProvidingEquip.cs" />
<Compile Include="assemblyLine\FeedingEquip.cs" /> <Compile Include="assemblyLine\FeedingEquip.cs" />
<Compile Include="assemblymanager\RFIDManagercs.cs" /> <Compile Include="assemblymanager\RFIDManagercs.cs" />
<Compile Include="assemblymanager\SServerManager.cs" /> <Compile Include="assemblymanager\SServerManager.cs" />
...@@ -98,6 +96,7 @@ ...@@ -98,6 +96,7 @@
<Compile Include="deviceLibrary\AXIS\PanasonicServo\ACServerManager.cs" /> <Compile Include="deviceLibrary\AXIS\PanasonicServo\ACServerManager.cs" />
<Compile Include="deviceLibrary\AXIS\PanasonicServo\ACServerManager_Partial.cs" /> <Compile Include="deviceLibrary\AXIS\PanasonicServo\ACServerManager_Partial.cs" />
<Compile Include="assemblyLine\EquipBase.cs" /> <Compile Include="assemblyLine\EquipBase.cs" />
<Compile Include="assemblyLine\HY\HY_Coveryor.cs" />
<Compile Include="model\LineAlarm.cs"> <Compile Include="model\LineAlarm.cs">
<SubType>Code</SubType> <SubType>Code</SubType>
</Compile> </Compile>
...@@ -161,19 +160,70 @@ ...@@ -161,19 +160,70 @@
<None Include="LineConfig\Config_DischargeLine_1.csv"> <None Include="LineConfig\Config_DischargeLine_1.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Include="LineConfig\Config_ProvidingEquip_1.csv"> <None Include="LineConfig\HY\Config_HYEquip_01.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Include="LineConfig\Config_DischargeLine_2.csv"> <None Include="LineConfig\Config_DischargeLine_2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Include="LineConfig\Config_ProvidingEquip_2.csv"> <None Include="LineConfig\HY\Config_HYEquip_02.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Include="LineConfig\Config_ProvidingEquip_3.csv"> <None Include="LineConfig\HY\Config_HYEquip_03.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Include="LineConfig\Config_ProvidingEquip_4.csv"> <None Include="LineConfig\HY\Config_HYEquip_05.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_06.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_07.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_08.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_09.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_10.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_11.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_12.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_13.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_14.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_15.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_16.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_17.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_18.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_19.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_20.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_21.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="LineConfig\HY\Config_HYEquip_04.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Include="LineConfig\MoveEquip\Config_MoveEquip_01.csv"> <None Include="LineConfig\MoveEquip\Config_MoveEquip_01.csv">
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,对应的横移模块,SidesWayNum,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,
AXIS,0,移栽上下轴,UpDown_Axis,15,COM3,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownP2List,0=120000;8=203600;12=155000;16=153000;24=153000;32=129000;44=107000;56=95000,,
PRO,0,移栽上下轴在出料线下降的位置,UpDownP3List,0=150000;8=150000;12=150000;16=150000;24=150000;32=140000;44=120000;56=100000,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,2000,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,1600,,
PRO,0,移栽上下轴加速度,UpdownAxis_AddSpeed,400,,
PRO,0,移栽上下轴减速度,UpdownAxis_DelSpeed,400,,
PRO,0,移栽上下轴原点低速度,UpdownAxis_HomeLowSpeed,100,,
PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,
PRO,0,移栽上下轴走到待机点P1速度,UpdownAxis_P1Speed,1500,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,1501,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,1200,,
PRO,0,移栽上下轴流水线取放料详细位置P2,UpDownP2DetialList,7X8=180000;7X16=175000;7X24=165000,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,对应的横移模块,SidesWayNum,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,2,,
,,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,
AXIS,0,移栽上下轴,UpDown_Axis,16,COM3,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownP2List,0=120000;8=189200;12=172000;16=168000;24=155000;32=133000;44=115000;56=90000,,
PRO,0,移栽上下轴在出料线下降的位置,UpDownP3List,0=150000;8=150000;12=150000;16=150000;24=150000;32=140000;44=115000;56=80000,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,2000,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,1600,,
PRO,0,移栽上下轴加速度,UpdownAxis_AddSpeed,400,,
PRO,0,移栽上下轴减速度,UpdownAxis_DelSpeed,400,,
PRO,0,移栽上下轴原点低速度,UpdownAxis_HomeLowSpeed,100,,
PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,
PRO,0,移栽上下轴走到待机点P1速度,UpdownAxis_P1Speed,1500,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,1501,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,1200,,
PRO,0,移栽上下轴流水线取放料详细位置P2,UpDownP2DetialList,0X0=8000;,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,对应的横移模块,SidesWayNum,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,2,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,
AXIS,0,移栽上下轴,UpDown_Axis,9,COM3,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownP2List,0=120000;8=185000;12=185000;16=185000;24=176000;32=154000;44=134000;56=112000,,
PRO,0,移栽上下轴在出料线下降的位置,UpDownP3List,0=150000;8=150000;12=150000;16=150000;24=150000;32=150000;44=115000;56=78000,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,2000,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,1600,,
PRO,0,移栽上下轴加速度,UpdownAxis_AddSpeed,400,,
PRO,0,移栽上下轴减速度,UpdownAxis_DelSpeed,400,,
PRO,0,移栽上下轴原点低速度,UpdownAxis_HomeLowSpeed,100,,
PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,
PRO,0,移栽上下轴走到待机点P1速度,UpdownAxis_P1Speed,1500,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,1501,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,1200,,
PRO,0,移栽上下轴流水线取放料详细位置P2,UpDownP2DetialList,13X16=184000;15X16=183000;11X16=184500;7X16=185000,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,对应的横移模块,SidesWayNum,4,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,2,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,2,,
,,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,
AXIS,0,移栽上下轴,UpDown_Axis,10,COM3,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownP2List,0=80000;8=228000;12=228000;16=224000;24=206000;32=185000;44=160000;56=140000,,
PRO,0,移栽上下轴在出料线下降的位置,UpDownP3List,0=90000;8=160000;12=160000;16=160000;24=160000;32=160000;44=140000;56=110000,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,2000,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,1600,,
PRO,0,移栽上下轴加速度,UpdownAxis_AddSpeed,400,,
PRO,0,移栽上下轴减速度,UpdownAxis_DelSpeed,400,,
PRO,0,移栽上下轴原点低速度,UpdownAxis_HomeLowSpeed,100,,
PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,
PRO,0,移栽上下轴走到待机点P1速度,UpdownAxis_P1Speed,1500,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,1501,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,1200,,
PRO,0,移栽上下轴流水线取放料详细位置P2,UpDownP2DetialList,7X8=228000;7X12=228000;7X16=224000;15X8=200000;15X12=200000;15X16=200000;15X24=170000;15X32=150000;15X44=140000;15X56=120000;13X12=220000;13X16=210000;13X24=200000;13X32=180000;13X44=150000;13X56=130000,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,1,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,1,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,1,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
PRO,0,移栽上下轴托盘取料位置P2,UpDownP2List,0=80000;12=141200;16=130000;24=110000;32=98000;44=76000;48=73700;56=61000;8=150000,,
PRO,0,移栽上下轴接驳台放料位置P3,UpDownP3List,0=90000;12=157500;16=150800;24=138200;32=116800;44=92500;48=90000;56=95000;8=160000,,
PRO,0,移栽上下轴托盘取料详细位置P2,UpDownP2DetialList,0X0=8000;,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,400,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,300,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,300,,
...@@ -30,7 +30,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -30,7 +30,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 当前正在通过的托盘号 /// 当前正在通过的托盘号
/// </summary> /// </summary>
internal int currTrayNum = 0; public int currTrayNum = 0;
/// <summary> /// <summary>
/// 升降轴 /// 升降轴
/// </summary> /// </summary>
...@@ -210,23 +210,23 @@ namespace OnlineStore.DeviceLibrary ...@@ -210,23 +210,23 @@ namespace OnlineStore.DeviceLibrary
} }
public void ChangeDebug(bool isDebug) public void ChangeDebug(bool isDebug)
{ {
if (baseConfig.DType.Equals(DeviceType.MoveEquip) || baseConfig.DType.Equals(DeviceType.ProvidingEquip)) if (baseConfig.DType.Equals(DeviceType.MoveEquip) || baseConfig.DType.Equals(DeviceType.HYEquip))
{ {
if (isDebug) if (isDebug)
{ {
IsDebug = true; IsDebug = true;
//两个阻挡气缸下降 //两个阻挡气缸下降
lineStatus = LineStatus.Debugging; lineStatus = LineStatus.Debugging;
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH); IOMove(IO_Type.StopDown1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH); IOMove(IO_Type.StopDown2, IO_VALUE.HIGH);
LogInfo("从正常状态切换到调试状态!"); LogInfo("从正常状态切换到调试状态!");
} }
else if (lineStatus.Equals(LineStatus.Debugging)) else if (lineStatus.Equals(LineStatus.Debugging))
{ {
IsDebug = false; IsDebug = false;
lineStatus = LineStatus.StoreOnline; lineStatus = LineStatus.StoreOnline;
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH); IOMove(IO_Type.StopDown1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW); IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
LogInfo("从调试状态切换到正常状态!"); LogInfo("从调试状态切换到正常状态!");
} }
} }
...@@ -238,11 +238,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -238,11 +238,11 @@ namespace OnlineStore.DeviceLibrary
internal virtual void OpenStopCylinder() internal virtual void OpenStopCylinder()
{ {
preRWTime = DateTime.Now; preRWTime = DateTime.Now;
if (baseConfig.DType.Equals(DeviceType.MoveEquip) || baseConfig.DType.Equals(DeviceType.ProvidingEquip)) if (baseConfig.DType.Equals(DeviceType.MoveEquip) || baseConfig.DType.Equals(DeviceType.HYEquip))
{ {
LogInfo("OpenStopCylinder: 下降阻挡气缸,上下气缸上升,顶升气缸下降"); LogInfo("OpenStopCylinder: 下降阻挡气缸,上下气缸上升,顶升气缸下降");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH); IOMove(IO_Type.StopDown1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH); IOMove(IO_Type.StopDown2, IO_VALUE.HIGH);
//上下气缸上升 //上下气缸上升
if (!UseAxis) if (!UseAxis)
{ {
...@@ -256,24 +256,21 @@ namespace OnlineStore.DeviceLibrary ...@@ -256,24 +256,21 @@ namespace OnlineStore.DeviceLibrary
internal virtual bool OpenStopCylinderOk(TimeSpan span) internal virtual bool OpenStopCylinderOk(TimeSpan span)
{ {
TimeSpan rwSpan = DateTime.Now - preRWTime; TimeSpan rwSpan = DateTime.Now - preRWTime;
if (baseConfig.DType.Equals(DeviceType.MoveEquip) || baseConfig.DType.Equals(DeviceType.ProvidingEquip)) if (baseConfig.DType.Equals(DeviceType.MoveEquip) || baseConfig.DType.Equals(DeviceType.HYEquip))
{ {
if (IOValue(IO_Type.StopCylinder_Down1).Equals(IO_VALUE.HIGH) && if (IOValue(IO_Type.StopDown1).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.StopCylinder_Down2).Equals(IO_VALUE.HIGH)) IOValue(IO_Type.StopDown2).Equals(IO_VALUE.HIGH))
{ {
return true; return true;
} }
else if (rwSpan.TotalSeconds > 5 && span.TotalSeconds > 6 && span.TotalSeconds < LineManager.Config.IOSingle_TimerOut * 2) else if (rwSpan.TotalSeconds > 5 && span.TotalSeconds > 6 && span.TotalSeconds < LineManager.Config.IOSingle_TimerOut * 2)
{ {
preRWTime = DateTime.Now; preRWTime = DateTime.Now;
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH); IOMove(IO_Type.StopDown1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH); IOMove(IO_Type.StopDown2, IO_VALUE.HIGH);
} }
} }
else if (baseConfig.DType.Equals(DeviceType.DischargeLine))
{
return true;
}
else if (baseConfig.DType.Equals(DeviceType.FeedingEquip)) else if (baseConfig.DType.Equals(DeviceType.FeedingEquip))
{ {
if (DeviceID.Equals(102)) if (DeviceID.Equals(102))
...@@ -298,12 +295,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -298,12 +295,12 @@ namespace OnlineStore.DeviceLibrary
} }
internal virtual void CloseCylinderStop() internal virtual void CloseCylinderStop()
{ {
if (baseConfig.DType.Equals(DeviceType.MoveEquip) || baseConfig.DType.Equals(DeviceType.ProvidingEquip)) if (baseConfig.DType.Equals(DeviceType.MoveEquip) || baseConfig.DType.Equals(DeviceType.HYEquip))
{ {
LogInfo("CloseCylinderStop: 上升阻挡气缸,关闭上下气缸,顶升气缸IO"); LogInfo("CloseCylinderStop: 上升阻挡气缸,关闭上下气缸,顶升气缸IO");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.StopDown1, IO_VALUE.LOW);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW); IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
//上下气缸上升 //上下气缸上升
if (!UseAxis) if (!UseAxis)
{ {
...@@ -612,7 +609,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -612,7 +609,7 @@ namespace OnlineStore.DeviceLibrary
protected void OutLog(string msg) protected void OutLog(string msg)
{ {
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : ""; string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
if (baseConfig.DType.Equals(DeviceType.ProvidingEquip) || baseConfig.DType.Equals(DeviceType.MoveEquip)) if (baseConfig.DType.Equals(DeviceType.HYEquip) || baseConfig.DType.Equals(DeviceType.MoveEquip))
{ {
if (String.IsNullOrEmpty(posId)) if (String.IsNullOrEmpty(posId))
{ {
......
...@@ -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 = (" " + "_入料_" + DeviceID % 100 + " ").ToUpper(); Name = (" " + "_入料_T" + DeviceID % 100 + " ").ToUpper();
Init(); Init();
UseAxis = true; UseAxis = true;
......
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OnlineStore.DeviceLibrary
{
public class HYEquipBase : EquipBase
{
public HYEquip_Config Config;
public static HYEquipBase GetHY(string cid, HYEquip_Config config)
{
int hynum = (config.Id % 100);
List<int> jNumList = new List<int>() { 10,12,17};
List<int> oNumList = new List<int>() { 5, 7, 14 };
//List<int> cNumList = new List<int>() { 10, 12, 17 };
if (jNumList.Contains(hynum))
{
return new HY_Coveryor(cid, config);
}else if (oNumList.Contains(hynum))
{
return new HY_OutLine(cid, config);
}
else
{
return new HY_C1Line(cid, config);
}
}
public HYEquipBase(string cid, HYEquip_Config config)
{
this.DeviceID = config.Id;
this.Config = config;
baseConfig = config;
IsDebug = config.IsDebug.Equals(1);
Name = ( "_HY" + (DeviceID%100).ToString().PadLeft(2, '0') + "_").ToUpper();
Init();
MoveInfo = new LineMoveInfo(DeviceID, "[" + Name.Trim() + "-Move]");
SecondMoveInfo = new LineMoveInfo(DeviceID, "[" + Name.Trim() + "-SMove]");
UseAxis = config.UpDownUseAxis.Equals(1);
if (UseAxis)
{
Config.UpDown_Axis.ServerOnDO = IO_Type.UpDownAxis_ServoOn;
Config.UpDown_Axis.BreakOnDO = IO_Type.UpDownAxis_BreakOn;
}
UpdownAxis = new AxisBean(config.UpDown_Axis, Name);
}
public override bool Reset()
{
return false;
}
public override bool StartInStoreMove(InOutParam param)
{
return false;
}
public override bool StartOutStoreMove(InOutParam param)
{
return false;
}
public override bool StartRun(bool isDebug = false)
{
return false;
}
public override void StopRun()
{
}
protected override void BaseTimerProcess()
{
}
protected override void CheckFixtureProcess()
{
}
protected override void InStoreProcess()
{
}
protected override void OutStoreProcess()
{
}
protected override void ResetProcess()
{
}
internal override void StopMove()
{
}
}
}
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OnlineStore.DeviceLibrary
{
public class HY_C1Line:HYEquipBase
{
public HY_C1Line(string cid, HYEquip_Config config) : base(cid, config)
{
Name = ("_C1线HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper();
}
}
}
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OnlineStore.DeviceLibrary
{
public class HY_Coveryor:HYEquipBase
{
public HY_Coveryor(string cid, HYEquip_Config config) : base(cid, config)
{
Name = ("_接驳台HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper();
}
}
}
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OnlineStore.DeviceLibrary
{
public class HY_OutLine : HYEquipBase
{
public HY_OutLine(string cid, HYEquip_Config config) : base(cid, config)
{
Name = ("_出料线HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper();
}
}
}
...@@ -38,8 +38,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -38,8 +38,8 @@ namespace OnlineStore.DeviceLibrary
public Dictionary<int, MoveEquip> MoveEquipMap { get; set; } public Dictionary<int, MoveEquip> MoveEquipMap { get; set; }
public Dictionary<int, FeedingEquip> FeedingEquipMap { get; set; } public Dictionary<int, FeedingEquip> FeedingEquipMap { get; set; }
public Dictionary<int, ProvidingEquip> ProvidingEquipMap { get; set; } public Dictionary<int, HYEquipBase> HYEquipMap { get; set; }
public Dictionary<int, DischargeLine> DisLineMap { get; set; } //public Dictionary<int, DischargeLine> DisLineMap { get; set; }
public Dictionary<int, EquipBase> AllEquipMap { get; set; } public Dictionary<int, EquipBase> AllEquipMap { get; set; }
/// <summary> /// <summary>
...@@ -53,7 +53,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -53,7 +53,7 @@ namespace OnlineStore.DeviceLibrary
private bool canStart = false; private bool canStart = false;
public LineBean(Line_Config lineConfig, Dictionary<int, MoveEquip_Config> configList, Dictionary<int, FeedingEquip_Config> feedMap, public LineBean(Line_Config lineConfig, Dictionary<int, MoveEquip_Config> configList, Dictionary<int, FeedingEquip_Config> feedMap,
Dictionary<int, ProvidingEquip_Config> providMap, Dictionary<int, DischargeLine_Config> disLineMap) Dictionary<int, HYEquip_Config> hyConfigMap)
{ {
if (lineConfig.IOSingle_TimerOut <= 0) if (lineConfig.IOSingle_TimerOut <= 0)
{ {
...@@ -76,8 +76,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -76,8 +76,7 @@ namespace OnlineStore.DeviceLibrary
AllEquipMap = new Dictionary<int, EquipBase>(); AllEquipMap = new Dictionary<int, EquipBase>();
MoveEquipMap = new Dictionary<int, MoveEquip>(); MoveEquipMap = new Dictionary<int, MoveEquip>();
FeedingEquipMap = new Dictionary<int, FeedingEquip>(); FeedingEquipMap = new Dictionary<int, FeedingEquip>();
ProvidingEquipMap = new Dictionary<int, ProvidingEquip>(); HYEquipMap = new Dictionary<int, HYEquipBase>();
DisLineMap = new Dictionary<int, DischargeLine>();
List<string> ioList = new List<string>(); List<string> ioList = new List<string>();
ioList = new List<string>(DeviceConfig.ProIOIpMap.Values); ioList = new List<string>(DeviceConfig.ProIOIpMap.Values);
AddDeviceName(ioList, Config.IOIPList); AddDeviceName(ioList, Config.IOIPList);
...@@ -102,23 +101,23 @@ namespace OnlineStore.DeviceLibrary ...@@ -102,23 +101,23 @@ namespace OnlineStore.DeviceLibrary
MoveEquipMap.Add(config.Id, equip); MoveEquipMap.Add(config.Id, equip);
AllEquipMap.Add(config.Id, equip); AllEquipMap.Add(config.Id, equip);
} }
foreach (ProvidingEquip_Config config in providMap.Values) foreach (HYEquip_Config config in hyConfigMap.Values)
{ {
ProvidingEquip equip = new ProvidingEquip(lineConfig.CID, config); HYEquipBase equip =HYEquipBase.GetHY( lineConfig.CID, config);
AddDeviceName(ioList, config.IOIPList); AddDeviceName(ioList, config.IOIPList);
ProvidingEquipMap.Add(config.Id, equip); HYEquipMap.Add(config.Id, equip);
AllEquipMap.Add(config.Id, equip); AllEquipMap.Add(config.Id, equip);
equip.TrayPEndEvent += Equip_TrayPEndEvent; //equip.TrayPEndEvent += Equip_TrayPEndEvent;
} }
foreach (DischargeLine_Config config in disLineMap.Values) //foreach (DischargeLine_Config config in disLineMap.Values)
{ //{
DischargeLine equip = new DischargeLine(lineConfig.CID, config); // DischargeLine equip = new DischargeLine(lineConfig.CID, config);
AddDeviceName(ioList, config.IOIPList); // AddDeviceName(ioList, config.IOIPList);
DisLineMap.Add(config.Id, equip); // DisLineMap.Add(config.Id, equip);
AllEquipMap.Add(config.Id, equip); // AllEquipMap.Add(config.Id, equip);
} //}
//先初始化设备 //先初始化设备
IOManager.Init(); IOManager.Init();
AxisManager.Init(); AxisManager.Init();
...@@ -144,16 +143,16 @@ namespace OnlineStore.DeviceLibrary ...@@ -144,16 +143,16 @@ namespace OnlineStore.DeviceLibrary
FeedingEquip feed = FeedingEquipMap[id]; FeedingEquip feed = FeedingEquipMap[id];
cioList.AddRange(feed.Config.IOIPList); cioList.AddRange(feed.Config.IOIPList);
} }
else if (ProvidingEquipMap.ContainsKey(id)) else if (HYEquipMap.ContainsKey(id))
{ {
ProvidingEquip feed = ProvidingEquipMap[id]; HYEquipBase feed = HYEquipMap[id];
cioList.AddRange(feed.Config.IOIPList);
}
else if (DisLineMap.ContainsKey(id))
{
DischargeLine feed = DisLineMap[id];
cioList.AddRange(feed.Config.IOIPList); cioList.AddRange(feed.Config.IOIPList);
} }
//else if (DisLineMap.ContainsKey(id))
//{
// DischargeLine feed = DisLineMap[id];
// cioList.AddRange(feed.Config.IOIPList);
//}
else if (MoveEquipMap.ContainsKey(id)) else if (MoveEquipMap.ContainsKey(id))
{ {
MoveEquip equip = MoveEquipMap[id]; MoveEquip equip = MoveEquipMap[id];
......
...@@ -459,7 +459,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -459,7 +459,7 @@ namespace OnlineStore.DeviceLibrary
Equip_TrayPEndEvent(4, SW41WaitTrayNum); Equip_TrayPEndEvent(4, SW41WaitTrayNum);
} }
if (SW41_MoveInfo.MoveType.Equals(LineMoveType.None) && ProvidingEquipMap[204].runStatus <= LineRunStatus.Wait) if (SW41_MoveInfo.MoveType.Equals(LineMoveType.None) && HYEquipMap[204].runStatus <= LineRunStatus.Wait)
{ {
if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) && if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) &&
...@@ -556,9 +556,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -556,9 +556,9 @@ namespace OnlineStore.DeviceLibrary
private void UpateSw41TrayNum() private void UpateSw41TrayNum()
{ {
Sw41TrayNum = 0; Sw41TrayNum = 0;
if (ProvidingEquipMap.ContainsKey(204)) if (HYEquipMap.ContainsKey(204))
{ {
ProvidingEquip eq = ProvidingEquipMap[204]; HYEquipBase eq = HYEquipMap[204];
if (eq.runStatus >= LineRunStatus.HomeMoving) if (eq.runStatus >= LineRunStatus.HomeMoving)
{ {
Sw41TrayNum = eq.currTrayNum; Sw41TrayNum = eq.currTrayNum;
...@@ -1216,9 +1216,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -1216,9 +1216,9 @@ namespace OnlineStore.DeviceLibrary
foreach (int lineNum in lineList) foreach (int lineNum in lineList)
{ {
int deviceN = 200 + lineNum; int deviceN = 200 + lineNum;
if (ProvidingEquipMap.ContainsKey(deviceN)) if (HYEquipMap.ContainsKey(deviceN))
{ {
ProvidingEquip pro = ProvidingEquipMap[deviceN]; HYEquipBase pro = HYEquipMap[deviceN];
if (pro.runStatus >= LineRunStatus.HomeMoving && pro.isInSuddenDown.Equals(false) && pro.isNoAirCheck.Equals(false)) if (pro.runStatus >= LineRunStatus.HomeMoving && pro.isInSuddenDown.Equals(false) && pro.isNoAirCheck.Equals(false))
{ {
return true; return true;
...@@ -1233,16 +1233,16 @@ namespace OnlineStore.DeviceLibrary ...@@ -1233,16 +1233,16 @@ namespace OnlineStore.DeviceLibrary
/// </summary> /// </summary>
internal bool DLineStartOut(int dlineId, int LineNum) internal bool DLineStartOut(int dlineId, int LineNum)
{ {
foreach (DischargeLine line in DisLineMap.Values) //foreach (DischargeLine line in DisLineMap.Values)
{ //{
if ((line.DeviceID % 100).Equals(dlineId)) // if ((line.DeviceID % 100).Equals(dlineId))
{ // {
if (line.CanStartOut(LineNum)) // if (line.CanStartOut(LineNum))
{ // {
return true; // return true;
} // }
} // }
} //}
return false; return false;
} }
#endregion #endregion
......
...@@ -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 = (" " + "_进仓_" + DeviceID.ToString().PadLeft(2, '0') + " ").ToUpper(); Name = (" " + "_"+ GetNByID() + "_进仓" + DeviceID.ToString().PadLeft(2, '0') + "_" ).ToUpper();
Init(); Init();
...@@ -40,7 +40,30 @@ namespace OnlineStore.DeviceLibrary ...@@ -40,7 +40,30 @@ namespace OnlineStore.DeviceLibrary
} }
UpdownAxis = new AxisBean(config.UpDown_Axis, Name); UpdownAxis = new AxisBean(config.UpDown_Axis, Name);
} }
private string GetNByID()
{
string name = "";
int index = DeviceID;
if (index >= 0)
{
int num =( index+1) / 2;
int subNum = index % 2;
if (subNum.Equals(0))
{
subNum = 2;
}
if (num <= 6)
{
}
else
{
subNum = 3 - subNum;
}
name = "D" + num + "-" + subNum;
}
return name;
}
public override bool StartRun(bool isDebug = false) public override bool StartRun(bool isDebug = false)
{ {
if (CanStartRun().Equals(false)) if (CanStartRun().Equals(false))
...@@ -93,13 +116,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -93,13 +116,13 @@ namespace OnlineStore.DeviceLibrary
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up); // CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
if (IsDebug) if (IsDebug)
{ {
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH); IOMove(IO_Type.StopDown1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH); IOMove(IO_Type.StopDown2, IO_VALUE.HIGH);
} }
else else
{ {
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.StopDown1, IO_VALUE.LOW);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW); IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
} }
isInPro = false; isInPro = false;
} }
...@@ -135,7 +158,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -135,7 +158,7 @@ namespace OnlineStore.DeviceLibrary
DebugInfo(MoveInfo.MoveType + " : 上升气缸到位,顶升气缸下降,前后气缸后退,夹紧气缸放松"); DebugInfo(MoveInfo.MoveType + " : 上升气缸到位,顶升气缸下降,前后气缸后退,夹紧气缸放松");
CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down); CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After); CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
break; break;
case LineMoveStep.MH_OtherCylinderBack: case LineMoveStep.MH_OtherCylinderBack:
...@@ -180,8 +203,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -180,8 +203,8 @@ namespace OnlineStore.DeviceLibrary
UpdownUpMove(); UpdownUpMove();
CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down); CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.StopDown1, IO_VALUE.LOW);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW); IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
} }
...@@ -193,8 +216,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -193,8 +216,8 @@ namespace OnlineStore.DeviceLibrary
} }
StopMove(); StopMove();
//停止运行时,把所有IO 置零 //停止运行时,把所有IO 置零
CheckAndMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); CheckAndMove(IO_Type.StopDown1, IO_VALUE.LOW);
CheckAndMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW); CheckAndMove(IO_Type.StopDown2, IO_VALUE.LOW);
CheckAndMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW); CheckAndMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW);
CheckAndMove(IO_Type.TopCylinder_Down, IO_VALUE.LOW); CheckAndMove(IO_Type.TopCylinder_Down, IO_VALUE.LOW);
CheckAndMove(IO_Type.BeforeAfterCylinder_Before, IO_VALUE.LOW); CheckAndMove(IO_Type.BeforeAfterCylinder_Before, IO_VALUE.LOW);
...@@ -204,8 +227,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -204,8 +227,8 @@ namespace OnlineStore.DeviceLibrary
CheckAndMove(IO_Type.UpDownCylinder_Up, IO_VALUE.LOW); CheckAndMove(IO_Type.UpDownCylinder_Up, IO_VALUE.LOW);
CheckAndMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW); CheckAndMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
} }
CheckAndMove(IO_Type.ClampCylinder_Slack, IO_VALUE.LOW); CheckAndMove(IO_Type.ClampCylinder_Work, IO_VALUE.LOW);
CheckAndMove(IO_Type.ClampCylinder_Tighten, IO_VALUE.LOW); CheckAndMove(IO_Type.ClampCylinder_Relax, IO_VALUE.LOW);
runStatus = LineRunStatus.Wait; runStatus = LineRunStatus.Wait;
} }
......
...@@ -101,7 +101,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -101,7 +101,7 @@ namespace OnlineStore.DeviceLibrary
{ {
MoveInfo.NextMoveStep(LineMoveStep.MO_54_CylinderOpen); MoveInfo.NextMoveStep(LineMoveStep.MO_54_CylinderOpen);
OutLog("出库 " + MoveInfo.SLog + ": 夹料气缸夹紧,更新料盘位置【" + MoveInfo.MoveParam.WareCode + "】【MOVING】【" + DeviceID + "】"); OutLog("出库 " + MoveInfo.SLog + ": 夹料气缸夹紧,更新料盘位置【" + MoveInfo.MoveParam.WareCode + "】【MOVING】【" + DeviceID + "】");
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Tighten, IO_Type.ClampCylinder_Slack); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Relax, IO_Type.ClampCylinder_Work);
//更新料盘位置 //更新料盘位置
SServerManager.UpdateTrayLoc(Name, MoveInfo.MoveParam.WareCode, LocStatus.MOVING, DeviceID.ToString()); SServerManager.UpdateTrayLoc(Name, MoveInfo.MoveParam.WareCode, LocStatus.MOVING, DeviceID.ToString());
...@@ -190,7 +190,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -190,7 +190,7 @@ namespace OnlineStore.DeviceLibrary
//出库全部完成 //出库全部完成
lineStatus = LineStatus.StoreOnline; lineStatus = LineStatus.StoreOnline;
MoveInfo.NextMoveStep(LineMoveStep.MO_59_CylinderRelax); MoveInfo.NextMoveStep(LineMoveStep.MO_59_CylinderRelax);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_59_CylinderRelax)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_59_CylinderRelax))
{ {
...@@ -299,7 +299,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -299,7 +299,7 @@ namespace OnlineStore.DeviceLibrary
{ {
MoveInfo.NextMoveStep(LineMoveStep.MI_08_CylinderOpen); MoveInfo.NextMoveStep(LineMoveStep.MI_08_CylinderOpen);
InLog("入库 " + MoveInfo.SLog + ": 夹料气缸夹紧"); InLog("入库 " + MoveInfo.SLog + ": 夹料气缸夹紧");
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Tighten, IO_Type.ClampCylinder_Slack); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Relax, IO_Type.ClampCylinder_Work);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_08_CylinderOpen)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_08_CylinderOpen))
{ {
...@@ -354,7 +354,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -354,7 +354,7 @@ namespace OnlineStore.DeviceLibrary
{ {
MoveInfo.NextMoveStep(LineMoveStep.MI_12_CylinderRelax); MoveInfo.NextMoveStep(LineMoveStep.MI_12_CylinderRelax);
InLog("入库 " + MoveInfo.SLog + ",夹料气缸放松"); InLog("入库 " + MoveInfo.SLog + ",夹料气缸放松");
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_12_CylinderRelax)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_12_CylinderRelax))
{ {
...@@ -580,7 +580,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -580,7 +580,7 @@ namespace OnlineStore.DeviceLibrary
{ {
if (SecondMoveInfo.MoveType.Equals(LineMoveType.None).Equals(false)) if (SecondMoveInfo.MoveType.Equals(LineMoveType.None).Equals(false))
{ {
if (IOValue(IO_Type.StopCylinder_Check2).Equals(IO_VALUE.HIGH)) if (IOValue(IO_Type.StopCheck2).Equals(IO_VALUE.HIGH))
{ {
trayCheck2LowWait.Stop(); trayCheck2LowWait.Stop();
} }
...@@ -594,7 +594,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -594,7 +594,7 @@ namespace OnlineStore.DeviceLibrary
if (SecondMoveInfo.MoveType.Equals(LineMoveType.None)) if (SecondMoveInfo.MoveType.Equals(LineMoveType.None))
{ {
bool canpro = LineManager.Line.Move5CanProcessTray(DeviceID); bool canpro = LineManager.Line.Move5CanProcessTray(DeviceID);
if (IOValue(IO_Type.StopCylinder_Check2).Equals(IO_VALUE.HIGH)) if (IOValue(IO_Type.StopCheck2).Equals(IO_VALUE.HIGH))
{ {
trayCheck2LowWait.Stop(); trayCheck2LowWait.Stop();
if (canpro && TrayManager.checkWatch(trayCheckWait, TrayManager.SwTrayWaitTime, true)) if (canpro && TrayManager.checkWatch(trayCheckWait, TrayManager.SwTrayWaitTime, true))
...@@ -603,14 +603,14 @@ namespace OnlineStore.DeviceLibrary ...@@ -603,14 +603,14 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 阻挡气缸1-1上升)"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 阻挡气缸1-1上升)");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.StopDown1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopDown1, IO_VALUE.LOW));
} }
} }
else else
{ {
bool check2IsOk = TrayManager.checkWatch(trayCheck2LowWait, TrayManager.SwTrayWaitTime, false); bool check2IsOk = TrayManager.checkWatch(trayCheck2LowWait, TrayManager.SwTrayWaitTime, false);
if (IOValue(IO_Type.StopCylinder_Check1).Equals(IO_VALUE.HIGH)) if (IOValue(IO_Type.StopCheck1).Equals(IO_VALUE.HIGH))
{ {
if (TrayManager.checkWatch(trayCheckWait, TrayManager.SwTrayWaitTime, false) && check2IsOk && canpro) if (TrayManager.checkWatch(trayCheckWait, TrayManager.SwTrayWaitTime, false) && check2IsOk && canpro)
{ {
...@@ -621,10 +621,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -621,10 +621,10 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_Stop1Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_Stop1Down);
CheckLog(" 托盘检测:料盘检测StopCylinder_Check1 " + SecondMoveInfo.SLog + "阻挡气缸1-1下降 , 等待 StopCylinder_Check1=0,清理托盘RFID"); CheckLog(" 托盘检测:料盘检测StopCylinder_Check1 " + SecondMoveInfo.SLog + "阻挡气缸1-1下降 , 等待 StopCylinder_Check1=0,清理托盘RFID");
ClearTrayRFID(); ClearTrayRFID();
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH, 1200); IOMove(IO_Type.StopDown1, IO_VALUE.HIGH, 1200);
SecondMoveInfo.OneWaitCanEndStep = true; SecondMoveInfo.OneWaitCanEndStep = true;
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check1, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCheck1, IO_VALUE.LOW));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCheck2, IO_VALUE.HIGH));
} }
} }
else else
...@@ -673,22 +673,22 @@ namespace OnlineStore.DeviceLibrary ...@@ -673,22 +673,22 @@ namespace OnlineStore.DeviceLibrary
{ {
SecondMoveInfo.TimeOutSeconds = 20; SecondMoveInfo.TimeOutSeconds = 20;
} }
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCheck2, IO_VALUE.HIGH));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_01_FixtureCheck)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_01_FixtureCheck))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 再次等待托盘信号"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 再次等待托盘信号");
// IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); // IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCheck2, IO_VALUE.HIGH));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_03_Stop2Down)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_03_Stop2Down))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_04_Wait); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_04_Wait);
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " ,等待编码信号稳定StopCylinder_Check2=1"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " ,等待编码信号稳定StopCylinder_Check2=1");
CheckAndMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); CheckAndMove(IO_Type.StopDown1, IO_VALUE.LOW);
//SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(500)); //SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCheck2, IO_VALUE.HIGH));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_04_Wait)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_04_Wait))
{ {
...@@ -835,7 +835,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -835,7 +835,7 @@ namespace OnlineStore.DeviceLibrary
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_17_Stop2Check); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_17_Stop2Check);
CheckLog("托盘放行" + SecondMoveInfo.SLog + " , 等待StopCylinder_Check2=0"); CheckLog("托盘放行" + SecondMoveInfo.SLog + " , 等待StopCylinder_Check2=0");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCheck2, IO_VALUE.LOW));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_17_Stop2Check)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_17_Stop2Check))
{ {
...@@ -847,9 +847,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -847,9 +847,9 @@ namespace OnlineStore.DeviceLibrary
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_19_StopCylinder_Back); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_19_StopCylinder_Back);
CheckLog("托盘放行" + SecondMoveInfo.SLog + " , 阻挡气缸1-2上升 )"); CheckLog("托盘放行" + SecondMoveInfo.SLog + " , 阻挡气缸1-2上升 )");
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW); IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopDown2, IO_VALUE.LOW));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_19_StopCylinder_Back)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_19_StopCylinder_Back))
{ {
...@@ -865,8 +865,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -865,8 +865,8 @@ namespace OnlineStore.DeviceLibrary
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down);
CheckLog("托盘放行" + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降 "); CheckLog("托盘放行" + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降 ");
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH); IOMove(IO_Type.StopDown2, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopDown2, IO_VALUE.HIGH));
} }
else if (SecondMoveInfo.IsTimeOut(120)) else if (SecondMoveInfo.IsTimeOut(120))
......
...@@ -94,13 +94,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -94,13 +94,13 @@ namespace OnlineStore.DeviceLibrary
UpdownHomeMove(); UpdownHomeMove();
if (IsDebug) if (IsDebug)
{ {
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH); IOMove(IO_Type.StopDown1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH); IOMove(IO_Type.StopDown2, IO_VALUE.HIGH);
} }
else else
{ {
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.StopDown1, IO_VALUE.LOW);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW); IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
} }
isInPro = false; isInPro = false;
} }
...@@ -130,7 +130,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -130,7 +130,7 @@ namespace OnlineStore.DeviceLibrary
LogInfo(MoveInfo.MoveType + " :上升气缸到位,顶升气缸下降,前后气缸后退,夹紧气缸放松 "); LogInfo(MoveInfo.MoveType + " :上升气缸到位,顶升气缸下降,前后气缸后退,夹紧气缸放松 ");
CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down); CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After); CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
break; break;
case LineMoveStep.MH_OtherCylinderBack: case LineMoveStep.MH_OtherCylinderBack:
MoveInfo.EndMove(); MoveInfo.EndMove();
...@@ -167,8 +167,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -167,8 +167,8 @@ namespace OnlineStore.DeviceLibrary
UpdownAxis.SuddenStop(); UpdownAxis.SuddenStop();
} }
CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down); CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.StopDown1, IO_VALUE.LOW);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW); IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
} }
public override void StopRun() public override void StopRun()
{ {
...@@ -179,8 +179,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -179,8 +179,8 @@ namespace OnlineStore.DeviceLibrary
StopMove(); StopMove();
CloseAxis(UpdownAxis); CloseAxis(UpdownAxis);
//停止运行时,把所有IO 置零 //停止运行时,把所有IO 置零
CheckAndMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); CheckAndMove(IO_Type.StopDown1, IO_VALUE.LOW);
CheckAndMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW); CheckAndMove(IO_Type.StopDown2, IO_VALUE.LOW);
CheckAndMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW); CheckAndMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW);
CheckAndMove(IO_Type.TopCylinder_Down, IO_VALUE.LOW); CheckAndMove(IO_Type.TopCylinder_Down, IO_VALUE.LOW);
CheckAndMove(IO_Type.BeforeAfterCylinder_Before, IO_VALUE.LOW); CheckAndMove(IO_Type.BeforeAfterCylinder_Before, IO_VALUE.LOW);
...@@ -190,8 +190,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -190,8 +190,8 @@ namespace OnlineStore.DeviceLibrary
CheckAndMove(IO_Type.UpDownCylinder_Up, IO_VALUE.LOW); CheckAndMove(IO_Type.UpDownCylinder_Up, IO_VALUE.LOW);
CheckAndMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW); CheckAndMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
} }
CheckAndMove(IO_Type.ClampCylinder_Slack, IO_VALUE.LOW); CheckAndMove(IO_Type.ClampCylinder_Work, IO_VALUE.LOW);
CheckAndMove(IO_Type.ClampCylinder_Tighten, IO_VALUE.LOW); CheckAndMove(IO_Type.ClampCylinder_Relax, IO_VALUE.LOW);
runStatus = LineRunStatus.Wait; runStatus = LineRunStatus.Wait;
} }
......
...@@ -47,7 +47,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -47,7 +47,7 @@ namespace OnlineStore.DeviceLibrary
return; return;
} }
//int num = TrayManager.GetTrayNum(DeviceID); //int num = TrayManager.GetTrayNum(DeviceID);
if (IOValue(IO_Type.StopCylinder_Check2).Equals(IO_VALUE.HIGH)) if (IOValue(IO_Type.StopCheck2).Equals(IO_VALUE.HIGH))
{ {
bool canProcess = (LineManager.Line.SwNoProcess(Config.SidesWayNum)); bool canProcess = (LineManager.Line.SwNoProcess(Config.SidesWayNum));
trayCheck2LowWait.Stop(); trayCheck2LowWait.Stop();
...@@ -57,14 +57,14 @@ namespace OnlineStore.DeviceLibrary ...@@ -57,14 +57,14 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo.NewMove(LineMoveType.CheckFixture); SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
LogUtil.info(Name + " [" + trayCount + "] 托盘阻挡" + SecondMoveInfo.SLog + "阻挡气缸1-1上升)"); LogUtil.info(Name + " [" + trayCount + "] 托盘阻挡" + SecondMoveInfo.SLog + "阻挡气缸1-1上升)");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.StopDown1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopDown1, IO_VALUE.LOW));
} }
} }
else else
{ {
bool check2Ok = TrayManager.checkWatch(trayCheck2LowWait, TrayManager.SwTrayWaitTime, false); bool check2Ok = TrayManager.checkWatch(trayCheck2LowWait, TrayManager.SwTrayWaitTime, false);
if (IOValue(IO_Type.StopCylinder_Check1).Equals(IO_VALUE.HIGH) ) if (IOValue(IO_Type.StopCheck1).Equals(IO_VALUE.HIGH) )
{ {
bool canProcess = (LineManager.Line.SwNoProcess(Config.SidesWayNum)); bool canProcess = (LineManager.Line.SwNoProcess(Config.SidesWayNum));
if (TrayManager.checkWatch(trayCheckWait, TrayManager.SwTrayWaitTime, false) && (DateTime.Now - lastStopDown).TotalSeconds > 3 && check2Ok && canProcess) if (TrayManager.checkWatch(trayCheckWait, TrayManager.SwTrayWaitTime, false) && (DateTime.Now - lastStopDown).TotalSeconds > 3 && check2Ok && canProcess)
...@@ -77,10 +77,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -77,10 +77,10 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_Stop1Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_Stop1Down);
LogUtil.debug(Name + " [" + trayCount + "] 托盘检测:" + SecondMoveInfo.SLog + "阻挡气缸1-1下降 ,等待 StopCylinder_Check1=0,清理托盘RFID"); LogUtil.debug(Name + " [" + trayCount + "] 托盘检测:" + SecondMoveInfo.SLog + "阻挡气缸1-1下降 ,等待 StopCylinder_Check1=0,清理托盘RFID");
ClearTrayRFID(); ClearTrayRFID();
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH, 1200); IOMove(IO_Type.StopDown1, IO_VALUE.HIGH, 1200);
SecondMoveInfo.OneWaitCanEndStep = true; SecondMoveInfo.OneWaitCanEndStep = true;
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check1, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCheck1, IO_VALUE.LOW));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCheck2, IO_VALUE.HIGH));
} }
} }
else else
...@@ -118,8 +118,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -118,8 +118,8 @@ namespace OnlineStore.DeviceLibrary
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡2下降"); CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡2下降");
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH); IOMove(IO_Type.StopDown2, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopDown2, IO_VALUE.HIGH));
} }
} }
else else
...@@ -302,7 +302,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -302,7 +302,7 @@ namespace OnlineStore.DeviceLibrary
TimeSpan span = DateTime.Now - SecondMoveInfo.LastSetpTime; TimeSpan span = DateTime.Now - SecondMoveInfo.LastSetpTime;
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_04_Wait); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_04_Wait);
LogUtil.debug(Name + "托盘阻挡" + SecondMoveInfo.SLog + " 阻挡气缸上升,下降耗时(" + FormUtil.GetSpanStr(span) + "),等待 阻挡2托盘检测=1)"); LogUtil.debug(Name + "托盘阻挡" + SecondMoveInfo.SLog + " 阻挡气缸上升,下降耗时(" + FormUtil.GetSpanStr(span) + "),等待 阻挡2托盘检测=1)");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCheck2, IO_VALUE.HIGH));
} }
// else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_01_FixtureCheck)) // else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_01_FixtureCheck))
// { // {
...@@ -320,7 +320,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -320,7 +320,7 @@ namespace OnlineStore.DeviceLibrary
{ {
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " ,等待编码信号稳定StopCylinder_Check2=1"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " ,等待编码信号稳定StopCylinder_Check2=1");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_04_Wait); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_04_Wait);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCheck2, IO_VALUE.HIGH));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_04_Wait)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_04_Wait))
{ {
...@@ -438,8 +438,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -438,8 +438,8 @@ namespace OnlineStore.DeviceLibrary
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.NextStopCheck, IO_VALUE.LOW)); // SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.NextStopCheck, IO_VALUE.LOW));
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡2下降"); CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡2下降");
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH); IOMove(IO_Type.StopDown2, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopDown2, IO_VALUE.HIGH));
} }
} }
...@@ -447,21 +447,21 @@ namespace OnlineStore.DeviceLibrary ...@@ -447,21 +447,21 @@ namespace OnlineStore.DeviceLibrary
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡2下降"); CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡2下降");
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH); IOMove(IO_Type.StopDown2, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopDown2, IO_VALUE.HIGH));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_16_Stop2Down)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_16_Stop2Down))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_17_Stop2Check); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_17_Stop2Check);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " , 阻挡2托盘检测=0"); CheckLog("托盘放行 " + SecondMoveInfo.SLog + " , 阻挡2托盘检测=0");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCheck2, IO_VALUE.LOW));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_17_Stop2Check)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_17_Stop2Check))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_18_WaitTime); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_18_WaitTime);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " , 等待200ms后阻挡2上升"); CheckLog("托盘放行 " + SecondMoveInfo.SLog + " , 等待200ms后阻挡2上升");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(200)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(200));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCheck2, IO_VALUE.LOW));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_18_WaitTime)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_18_WaitTime))
{ {
...@@ -469,8 +469,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -469,8 +469,8 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_19_StopCylinder_Back); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_19_StopCylinder_Back);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " , 阻挡气缸2上升 "); CheckLog("托盘放行 " + SecondMoveInfo.SLog + " , 阻挡气缸2上升 ");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW); IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopDown2, IO_VALUE.LOW));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_19_StopCylinder_Back)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_19_StopCylinder_Back))
{ {
...@@ -557,7 +557,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -557,7 +557,7 @@ namespace OnlineStore.DeviceLibrary
//{ //{
int lineId = DeviceID % 100; int lineId = DeviceID % 100;
MoveInfo.NextMoveStep(LineMoveStep.PO_03_CylinderOpen); MoveInfo.NextMoveStep(LineMoveStep.PO_03_CylinderOpen);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Tighten, IO_Type.ClampCylinder_Slack); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Relax, IO_Type.ClampCylinder_Work);
if (MoveInfo.MoveParam.InStoreNg) if (MoveInfo.MoveParam.InStoreNg)
{ {
LogInfo("出料 【" + posId + "】" + MoveInfo.SLog + " : 夹料气缸夹紧,入料NG料,不更新料盘位置"); LogInfo("出料 【" + posId + "】" + MoveInfo.SLog + " : 夹料气缸夹紧,入料NG料,不更新料盘位置");
...@@ -615,7 +615,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -615,7 +615,7 @@ namespace OnlineStore.DeviceLibrary
//UpdownDownP3Move(MoveInfo.MoveParam.PlateH); //UpdownDownP3Move(MoveInfo.MoveParam.PlateH);
MoveInfo.NextMoveStep(LineMoveStep.PO_08_CylinderRelax); MoveInfo.NextMoveStep(LineMoveStep.PO_08_CylinderRelax);
OutLog("出料:" + MoveInfo.SLog + ",夹料气缸放松)"); OutLog("出料:" + MoveInfo.SLog + ",夹料气缸放松)");
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
if (MoveInfo.MoveParam.urgentReel && this.Config.SidesWayNum.Equals(4)) if (MoveInfo.MoveParam.urgentReel && this.Config.SidesWayNum.Equals(4))
{ {
......
...@@ -50,8 +50,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -50,8 +50,8 @@ namespace OnlineStore.DeviceLibrary
{ {
Dictionary<int, MoveEquip_Config> moveECMap = null; Dictionary<int, MoveEquip_Config> moveECMap = null;
Dictionary<int, FeedingEquip_Config> feedingECMap = null; Dictionary<int, FeedingEquip_Config> feedingECMap = null;
Dictionary<int, ProvidingEquip_Config> providingECMap = null; Dictionary<int, HYEquip_Config> HYECMap = null;
Dictionary<int, DischargeLine_Config> disChargeLineMap = null; //Dictionary<int, DischargeLine_Config> disChargeLineMap = null;
DeviceConfig.SubDIList = new Dictionary<int, Dictionary<string, ConfigIO>>(); DeviceConfig.SubDIList = new Dictionary<int, Dictionary<string, ConfigIO>>();
DeviceConfig.SubDOList = new Dictionary<int, Dictionary<string, ConfigIO>>(); DeviceConfig.SubDOList = new Dictionary<int, Dictionary<string, ConfigIO>>();
...@@ -60,8 +60,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -60,8 +60,8 @@ namespace OnlineStore.DeviceLibrary
moveECMap = new Dictionary<int, MoveEquip_Config>(); moveECMap = new Dictionary<int, MoveEquip_Config>();
feedingECMap = new Dictionary<int, FeedingEquip_Config>(); feedingECMap = new Dictionary<int, FeedingEquip_Config>();
providingECMap = new Dictionary<int, ProvidingEquip_Config>(); HYECMap = new Dictionary<int, HYEquip_Config>();
disChargeLineMap = new Dictionary<int, DischargeLine_Config>(); //disChargeLineMap = new Dictionary<int, DischargeLine_Config>();
allConfigMap = new Dictionary<int, DeviceConfig>(); allConfigMap = new Dictionary<int, DeviceConfig>();
string server = ConfigAppSettings.GetValue(Setting_Init.http_server); string server = ConfigAppSettings.GetValue(Setting_Init.http_server);
if (server.Equals("")) if (server.Equals(""))
...@@ -117,31 +117,32 @@ namespace OnlineStore.DeviceLibrary ...@@ -117,31 +117,32 @@ namespace OnlineStore.DeviceLibrary
allConfigMap.Add(subType, moveConfig); allConfigMap.Add(subType, moveConfig);
} }
int providingEquipCount = ConfigAppSettings.GetIntValue(Setting_Init.Line_providingEquip_count); int hyEquipCount = ConfigAppSettings.GetIntValue(Setting_Init.Line_HYEquip_count);
string providingEquipConfig = ConfigAppSettings.GetValue(Setting_Init.ConfigPath_ProvidingEquip); string hyEquipConfig = ConfigAppSettings.GetValue(Setting_Init.ConfigPath_HYEquip);
for (int i = 1; i <= providingEquipCount; i++) for (int i = 1; i <= hyEquipCount; i++)
{ {
int subType = 200 + i; int subType = 200 + i;
string config = appPath + providingEquipConfig.Replace(".csv", "_" + i + ".csv"); string nameStr = i.ToString().PadLeft(2, '0');
ProvidingEquip_Config moveConfig = CSVConfigReader.LoadProvidingConfig(subType,DeviceType.ProvidingEquip, config); string config = appPath + hyEquipConfig.Replace(".csv", "_" +nameStr + ".csv");
HYEquip_Config moveConfig = CSVConfigReader.LoadHYConfig(subType,DeviceType.HYEquip, config);
moveConfig.SetIO(subType); moveConfig.SetIO(subType);
providingECMap.Add(subType, moveConfig); HYECMap.Add(subType, moveConfig);
allConfigMap.Add(subType, moveConfig); allConfigMap.Add(subType, moveConfig);
} }
int dislineCount = ConfigAppSettings.GetIntValue(Setting_Init.Line_dischargeLine_count); //int dislineCount = ConfigAppSettings.GetIntValue(Setting_Init.Line_dischargeLine_count);
string dischargeLineConfig = ConfigAppSettings.GetValue(Setting_Init.ConfigPath_DischargeLine); //string dischargeLineConfig = ConfigAppSettings.GetValue(Setting_Init.ConfigPath_DischargeLine);
for (int i = 1; i <= dislineCount; i++) //for (int i = 1; i <= dislineCount; i++)
{ //{
int subType = 300 + i; // int subType = 300 + i;
string config = appPath + dischargeLineConfig.Replace(".csv", "_" + i + ".csv"); // string config = appPath + dischargeLineConfig.Replace(".csv", "_" + i + ".csv");
DischargeLine_Config moveConfig = CSVConfigReader.LoadDischargeLineConfig(subType,DeviceType.DischargeLine, config); // DischargeLine_Config moveConfig = CSVConfigReader.LoadDischargeLineConfig(subType,DeviceType.DischargeLine, config);
moveConfig.SetIO(subType); // moveConfig.SetIO(subType);
disChargeLineMap.Add(subType, moveConfig); // disChargeLineMap.Add(subType, moveConfig);
allConfigMap.Add(subType, moveConfig); // allConfigMap.Add(subType, moveConfig);
} //}
Config.SetIO(1000); Config.SetIO(1000);
Line = new LineBean(Config, moveECMap, feedingECMap, providingECMap, disChargeLineMap); Line = new LineBean(Config, moveECMap, feedingECMap, HYECMap);
LogUtil.info( "加载 完成!"); LogUtil.info( "加载 完成!");
return true; return true;
} }
...@@ -203,17 +204,17 @@ namespace OnlineStore.DeviceLibrary ...@@ -203,17 +204,17 @@ namespace OnlineStore.DeviceLibrary
LogUtil.error("出错:",ex); LogUtil.error("出错:",ex);
} }
} }
public static void SaveProvidingEquipConfig(ProvidingEquip_Config config) public static void SaveHYEquipConfig(HYEquip_Config config)
{ {
try try
{ {
//位置配置到文件中 //位置配置到文件中
string appPath = Application.StartupPath; string appPath = Application.StartupPath;
string moveEquipConfig = ConfigAppSettings.GetValue(Setting_Init.ConfigPath_ProvidingEquip); string moveEquipConfig = ConfigAppSettings.GetValue(Setting_Init.ConfigPath_HYEquip);
int id = config.Id - 200; int id = config.Id - 200;
string configStr = appPath + moveEquipConfig.Replace(".csv", "_" + id + ".csv"); string configStr = appPath + moveEquipConfig.Replace(".csv", "_" + id + ".csv");
allConfigMap[config.Id] = config; allConfigMap[config.Id] = config;
bool result = CSVConfigReader.SaveConfig(configStr, config,typeof(ProvidingEquip_Config)); bool result = CSVConfigReader.SaveConfig(configStr, config,typeof(HYEquip_Config));
if (!result) if (!result)
{ {
LogUtil.error("保存配置文件失败:" + configStr); LogUtil.error("保存配置文件失败:" + configStr);
...@@ -225,28 +226,28 @@ namespace OnlineStore.DeviceLibrary ...@@ -225,28 +226,28 @@ namespace OnlineStore.DeviceLibrary
} }
} }
public static void SaveDischargeLineConfig(DischargeLine_Config config) //public static void SaveDischargeLineConfig(DischargeLine_Config config)
{ //{
try // try
{ // {
//位置配置到文件中 // //位置配置到文件中
string appPath = Application.StartupPath; // string appPath = Application.StartupPath;
string moveEquipConfig = ConfigAppSettings.GetValue(Setting_Init.ConfigPath_DischargeLine); // string moveEquipConfig = ConfigAppSettings.GetValue(Setting_Init.ConfigPath_DischargeLine);
int id = config.Id - 300; // int id = config.Id - 300;
string configStr = appPath + moveEquipConfig.Replace(".csv", "_" + id + ".csv"); // string configStr = appPath + moveEquipConfig.Replace(".csv", "_" + id + ".csv");
// disChargeLineMap[config.Id] = config; // // disChargeLineMap[config.Id] = config;
allConfigMap[config.Id] = config; // allConfigMap[config.Id] = config;
bool result = CSVConfigReader.SaveConfig(configStr, config, typeof(DischargeLine_Config)); // bool result = CSVConfigReader.SaveConfig(configStr, config, typeof(DischargeLine_Config));
if (!result) // if (!result)
{ // {
LogUtil.error("保存配置文件失败:" + configStr); // LogUtil.error("保存配置文件失败:" + configStr);
} // }
} // }
catch (Exception ex) // catch (Exception ex)
{ // {
LogUtil.error("出错:",ex); // LogUtil.error("出错:",ex);
} // }
} //}
private static List<int> trayHeightList = new List<int>() { 8, 12, 16, 24, 32, 44, 56 }; private static List<int> trayHeightList = new List<int>() { 8, 12, 16, 24, 32, 44, 56 };
public static List<int> GetTrayList() public static List<int> GetTrayList()
......
...@@ -195,7 +195,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -195,7 +195,7 @@ namespace OnlineStore.DeviceLibrary
break; break;
} }
} }
foreach (ProvidingEquip equip in LineManager.Line.ProvidingEquipMap.Values) foreach (HYEquipBase equip in LineManager.Line.HYEquipMap.Values)
{ {
if (equip.Config.SidesWayNum.Equals(swNum)) if (equip.Config.SidesWayNum.Equals(swNum))
{ {
......
...@@ -481,23 +481,20 @@ namespace OnlineStore.DeviceLibrary ...@@ -481,23 +481,20 @@ namespace OnlineStore.DeviceLibrary
{ {
if (IoHighType.Equals(IO_Type.ClampCylinder_Slack) || IoHighType.Equals(IO_Type.ClampCylinder_Tighten) || if (IoHighType.Equals(IO_Type.ClampCylinder_Work) || IoHighType.Equals(IO_Type.ClampCylinder_Relax) ||
IoHighType.Equals(IO_Type.UpDownCylinder_Down) || IoHighType.Equals(IO_Type.UpDownCylinder_Up) IoHighType.Equals(IO_Type.UpDownCylinder_Down) || IoHighType.Equals(IO_Type.UpDownCylinder_Up)||
IoHighType.Equals(IO_Type.BeforeAfterCylinder_After) || IoHighType.Equals(IO_Type.BeforeAfterCylinder_Before)
) )
{ {
moveInfo.WaitList.Add(WaitResultInfo.WaitTime(300)); moveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
} }
else if (IoHighType.Equals(IO_Type.BeforeAfterCylinder_After) || IoHighType.Equals(IO_Type.BeforeAfterCylinder_Before))
{
moveInfo.WaitList.Add(WaitResultInfo.WaitTime(800));
}
//如果是进仓门口 夹紧 //如果是进仓门口 夹紧
if (baseConfig.DType.Equals(DeviceType.MoveEquip) && (IoHighType.Equals(IO_Type.ClampCylinder_Slack))) if (baseConfig.DType.Equals(DeviceType.MoveEquip) && (IoHighType.Equals(IO_Type.ClampCylinder_Work)))
{ {
moveInfo.WaitList.Add(WaitResultInfo.WaitTime(500)); moveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoLowType, IO_VALUE.LOW)); moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoLowType, IO_VALUE.LOW));
} }
else if (baseConfig.DType.Equals(DeviceType.MoveEquip) && (IoHighType.Equals(IO_Type.ClampCylinder_Tighten))) else if (baseConfig.DType.Equals(DeviceType.MoveEquip) && (IoHighType.Equals(IO_Type.ClampCylinder_Relax)))
{ {
//进仓门口放松 //进仓门口放松
moveInfo.WaitList.Add(WaitResultInfo.WaitTime(500)); moveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
...@@ -547,7 +544,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -547,7 +544,7 @@ namespace OnlineStore.DeviceLibrary
IO_VALUE tValue = value.Equals(IO_VALUE.HIGH) ? IO_VALUE.LOW : IO_VALUE.HIGH; IO_VALUE tValue = value.Equals(IO_VALUE.HIGH) ? IO_VALUE.LOW : IO_VALUE.HIGH;
if (IOValue(IoType).Equals(tValue).Equals(false)) if (IOValue(IoType).Equals(tValue).Equals(false))
{ {
if (IoType.Equals(IO_Type.StopCylinder_Down1).Equals(false)&&IoType.Equals(IO_Type.SW_StopDown).Equals(false)) if (IoType.Equals(IO_Type.StopDown1).Equals(false)&&IoType.Equals(IO_Type.SW_StopDown).Equals(false))
{ {
LogUtil.info(Name + "定时回写IO: [" + IoType + "]=[" + value + "],[" + baseConfig.Id + "],msTime=" + msTime); LogUtil.info(Name + "定时回写IO: [" + IoType + "]=[" + value + "],[" + baseConfig.Id + "],msTime=" + msTime);
} }
......
...@@ -51,8 +51,7 @@ ...@@ -51,8 +51,7 @@
<Compile Include="storeConfig\ConfigProAttribute.cs" /> <Compile Include="storeConfig\ConfigProAttribute.cs" />
<Compile Include="storeConfig\config\Line_Config.cs" /> <Compile Include="storeConfig\config\Line_Config.cs" />
<Compile Include="storeConfig\config\FeedingEquip_Config.cs" /> <Compile Include="storeConfig\config\FeedingEquip_Config.cs" />
<Compile Include="storeConfig\config\DischargeLine_Config.cs" /> <Compile Include="storeConfig\config\HYEquip_Config.cs" />
<Compile Include="storeConfig\config\ProvidingEquip_Config.cs" />
<Compile Include="storeConfig\config\MoveEquip_Config.cs" /> <Compile Include="storeConfig\config\MoveEquip_Config.cs" />
<Compile Include="storeConfig\config\IO_Type.cs" /> <Compile Include="storeConfig\config\IO_Type.cs" />
<Compile Include="CSVAttribute.cs" /> <Compile Include="CSVAttribute.cs" />
......
...@@ -141,11 +141,11 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -141,11 +141,11 @@ namespace OnlineStore.LoadCSVLibrary
return (Line_Config)LoadConfig(config); return (Line_Config)LoadConfig(config);
} }
public static DischargeLine_Config LoadDischargeLineConfig(int storeId, string type, string filePath) //public static DischargeLine_Config LoadDischargeLineConfig(int storeId, string type, string filePath)
{ //{
DischargeLine_Config config = new DischargeLine_Config(storeId, storeId + "_"+ type, type, filePath); // DischargeLine_Config config = new DischargeLine_Config(storeId, storeId + "_"+ type, type, filePath);
return (DischargeLine_Config)LoadConfig(config); // return (DischargeLine_Config)LoadConfig(config);
} //}
public static MoveEquip_Config LoadMoveConfig(int storeId, string type, string filePath) public static MoveEquip_Config LoadMoveConfig(int storeId, string type, string filePath)
{ {
MoveEquip_Config config = new MoveEquip_Config(storeId, storeId + "_" + type, type, filePath); MoveEquip_Config config = new MoveEquip_Config(storeId, storeId + "_" + type, type, filePath);
...@@ -156,10 +156,10 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -156,10 +156,10 @@ namespace OnlineStore.LoadCSVLibrary
FeedingEquip_Config config = new FeedingEquip_Config(storeId, storeId + "_" + type, type, filePath); FeedingEquip_Config config = new FeedingEquip_Config(storeId, storeId + "_" + type, type, filePath);
return (FeedingEquip_Config)LoadConfig(config); return (FeedingEquip_Config)LoadConfig(config);
} }
public static ProvidingEquip_Config LoadProvidingConfig(int storeId, string type, string filePath) public static HYEquip_Config LoadHYConfig(int storeId, string type, string filePath)
{ {
ProvidingEquip_Config config = new ProvidingEquip_Config(storeId, storeId + "_" + type, type, filePath); HYEquip_Config config = new HYEquip_Config(storeId, storeId + "_" + type, type, filePath);
return (ProvidingEquip_Config)LoadConfig(config); return (HYEquip_Config)LoadConfig(config);
} }
public static DeviceConfig LoadConfig(DeviceConfig config) public static DeviceConfig LoadConfig(DeviceConfig config)
{ {
......
...@@ -45,10 +45,6 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -45,10 +45,6 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary> /// </summary>
public Dictionary<String, ConfigIO> DOList { get; set; } public Dictionary<String, ConfigIO> DOList { get; set; }
/// <summary> /// <summary>
/// 料仓所有用到的IO卡名称 /// 料仓所有用到的IO卡名称
/// </summary> /// </summary>
...@@ -380,11 +376,11 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -380,11 +376,11 @@ namespace OnlineStore.LoadCSVLibrary
/// <summary> /// <summary>
/// 出料模块 /// 出料模块
/// </summary> /// </summary>
public static string ProvidingEquip = "ProvidingEquip"; public static string HYEquip = "HYEquip";
/// <summary> ///// <summary>
/// 出料流水线 ///// 出料流水线
/// </summary> ///// </summary>
public static string DischargeLine = "DischargeLine"; //public static string DischargeLine = "DischargeLine";
} }
......
...@@ -9,17 +9,18 @@ using System.Threading.Tasks; ...@@ -9,17 +9,18 @@ using System.Threading.Tasks;
namespace OnlineStore.LoadCSVLibrary namespace OnlineStore.LoadCSVLibrary
{ {
public class ProvidingEquip_Config : DeviceConfig public class HYEquip_Config : DeviceConfig
{ {
public ProvidingEquip_Config() public HYEquip_Config()
: base() : base()
{ {
} }
public ProvidingEquip_Config(int id, string cid, string type, string filepath) public HYEquip_Config(int id, string cid, string type, string filepath)
: base(id, cid, LoadCSVLibrary.DeviceType.ProvidingEquip, filepath) : base(id, cid, LoadCSVLibrary.DeviceType.HYEquip, filepath)
{ {
} }
public int SidesWayNum = 0;
/// <summary> /// <summary>
/// 设备是否处于调试状态(1=调试,0=正常) /// 设备是否处于调试状态(1=调试,0=正常)
...@@ -28,12 +29,6 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -28,12 +29,6 @@ namespace OnlineStore.LoadCSVLibrary
public int IsDebug { get; set; } public int IsDebug { get; set; }
/// <summary> /// <summary>
/// PRO,0,对应的横移模块,SidesWayNum,3,,,,,
/// </summary>
[ConfigProAttribute("SidesWayNum", false)]
public int SidesWayNum { get; set; }
/// <summary>
/// PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,,,, /// PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,,,,
/// </summary> /// </summary>
[ConfigProAttribute("DLineEquipNum", false)] [ConfigProAttribute("DLineEquipNum", false)]
...@@ -70,38 +65,6 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -70,38 +65,6 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary> /// </summary>
[ConfigProAttribute("UpDownAxisP1", false)] [ConfigProAttribute("UpDownAxisP1", false)]
public int UpDownAxisP1 { get; set; } public int UpDownAxisP1 { get; set; }
/// <summary>
/// PRO 0 移栽上下轴目标速度 UpdownAxis_TargetSpeed 150
/// </summary>
[ConfigProAttribute("UpdownAxis_TargetSpeed", false)]
public int UpdownAxis_TargetSpeed { get; set; }
/// <summary>
/// PRO 0 移栽上下轴加速度 UpdownAxis_AddSpeed 400
/// </summary>
[ConfigProAttribute("UpdownAxis_AddSpeed", false)]
public short UpdownAxis_AddSpeed { get; set; }
/// <summary>
/// PRO 0 移栽上下轴减速度 UpdownAxis_DelSpeed 400
/// </summary>
[ConfigProAttribute("UpdownAxis_DelSpeed", false)]
public short UpdownAxis_DelSpeed { get; set; }
/// <summary>
/// PRO 0 移栽上下轴原点低速度 UpdownAxis_HomeLowSpeed 100
/// </summary>
[ConfigProAttribute("UpdownAxis_HomeLowSpeed", false)]
public int UpdownAxis_HomeLowSpeed { get; set; }
/// <summary>
/// PRO 0 移栽上下轴原点高速 UpdownAxis_HomeHighSpeed 200
/// </summary>
[ConfigProAttribute("UpdownAxis_HomeHighSpeed", false)]
public int UpdownAxis_HomeHighSpeed { get; set; }
/// <summary>
/// PRO 0 移栽上下轴原点加速度 UpdownAxis_HomeAddSpeed 200
/// </summary>
[ConfigProAttribute("UpdownAxis_HomeAddSpeed", false)]
public int UpdownAxis_HomeAddSpeed { get; set; }
/// <summary> /// <summary>
/// PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,, /// PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,,
......
...@@ -70,13 +70,13 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -70,13 +70,13 @@ namespace OnlineStore.LoadCSVLibrary
/// <summary> /// <summary>
/// DO 0 阻挡气缸0-1下降SOL StopCylinder_Down1 16 阻挡气缸0-1下降SOL Y11 DO-11 /// DO 0 阻挡气缸0-1下降SOL StopDown1 16 阻挡气缸0-1下降SOL Y11 DO-11
/// </summary> /// </summary>
public static string StopCylinder_Down1 = "StopCylinder_Down1"; public static string StopDown1 = "StopDown1";
/// <summary> /// <summary>
/// DO 0 阻挡气缸0-2下降SOL StopCylinder_Down2 17 阻挡气缸0-2下降SOL Y12 DO-12 /// DO 0 阻挡气缸0-2下降SOL StopDown2 17 阻挡气缸0-2下降SOL Y12 DO-12
/// </summary> /// </summary>
public static string StopCylinder_Down2 = "StopCylinder_Down2"; public static string StopDown2 = "StopDown2";
...@@ -112,14 +112,16 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -112,14 +112,16 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary> /// </summary>
public static string UpDownCylinder_Down = "UpDownCylinder_Down"; public static string UpDownCylinder_Down = "UpDownCylinder_Down";
/// <summary> /// <summary>
/// 移栽DI/DO 移载夹料气缸夹紧端 ClampCylinder_Slack 11 /// 移栽DI/DO 移载夹料气缸夹紧端 ClampCylinder_Work 11
/// </summary> /// </summary>
public static string ClampCylinder_Slack = "ClampCylinder_Slack"; public static string ClampCylinder_Work = "ClampCylinder_Work";
/// <summary> /// <summary>
/// 移栽DI/DO 移载夹料气缸放松端 ClampCylinder_Tighten 12 /// 移栽DI/DO 移载夹料气缸放松端 ClampCylinder_Relax 12
/// </summary> /// </summary>
public static string ClampCylinder_Tighten = "ClampCylinder_Tighten"; public static string ClampCylinder_Relax = "ClampCylinder_Relax";
...@@ -138,13 +140,13 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -138,13 +140,13 @@ namespace OnlineStore.LoadCSVLibrary
#region 流水线新增IO #region 流水线新增IO
/// <summary> /// <summary>
/// DI 进仓01阻挡1托盘检测,StopCylinder_Check1, X261 /// DI 进仓01阻挡1托盘检测,StopCheck1, X261
/// </summary> /// </summary>
public static string StopCylinder_Check1 = "StopCylinder_Check1"; public static string StopCheck1 = "StopCheck1";
/// <summary> /// <summary>
/// DI 进仓01阻挡2托盘检测, StopCylinder_Check2, X262 /// DI 进仓01阻挡2托盘检测, StopCheck2, X262
/// </summary> /// </summary>
public static string StopCylinder_Check2 = "StopCylinder_Check2"; public static string StopCheck2 = "StopCheck2";
/// <summary> /// <summary>
///DI NG料盘推出气缸前进端,NGCylinder_Before, X005 ///DI NG料盘推出气缸前进端,NGCylinder_Before, X005
/// </summary> /// </summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!