Commit 13ad6d98 LN

夹爪修改

1 个父辈 3cce09bf
正在显示 48 个修改的文件 包含 1323 行增加894 行删除
此文件类型无法预览
此文件类型无法预览
<?xml version="1.0"?>
<doc>
<assembly>
<name>Neotel.Rmaxis</name>
</assembly>
<members>
<member name="T:Neotel.Rmaxis">
<summary>
增广智能电动夹爪(RM-C控制器)
</summary>
</member>
<member name="M:Neotel.Rmaxis.#ctor(System.String)">
<summary>
增广智能电动夹爪(RM-C控制器)
</summary>
<param name="logName">日志名</param>
</member>
<member name="P:Neotel.Rmaxis.IsPortOpen">
<summary>
串口是否连接
</summary>
</member>
<member name="P:Neotel.Rmaxis.IsMoving">
<summary>
轴是否在运动
</summary>
</member>
<member name="P:Neotel.Rmaxis.IsReached">
<summary>
轴是否到达运动目标
</summary>
</member>
<member name="P:Neotel.Rmaxis.IsPushEmpty">
<summary>
轴是否推空(可以在Push完成后检测是否推压/夹持为空)
</summary>
</member>
<member name="P:Neotel.Rmaxis.ErrorCode">
<summary>
错误代码
</summary>
</member>
<member name="M:Neotel.Rmaxis.OpenPort(System.String,System.UInt16)">
<summary>
打开串口
</summary>
<param name="portName">串口名</param>
<param name="axisNo">轴号</param>
<returns></returns>
</member>
<member name="M:Neotel.Rmaxis.ClosePort">
<summary>
关闭串口
</summary>
</member>
<member name="M:Neotel.Rmaxis.ResetError">
<summary>
重置控制器错误
</summary>
</member>
<member name="M:Neotel.Rmaxis.StopAxis">
<summary>
停止轴运动
</summary>
</member>
<member name="M:Neotel.Rmaxis.GetVersion">
<summary>
控制器版本号
</summary>
<returns></returns>
</member>
<member name="M:Neotel.Rmaxis.GetTorque">
<summary>
获取当前设置的出力值
</summary>
<returns>出力,%</returns>
</member>
<member name="M:Neotel.Rmaxis.GetVelocity">
<summary>
获取当前电机速度
</summary>
<returns>速度,mm/s</returns>
</member>
<member name="M:Neotel.Rmaxis.GetPosition">
<summary>
获取当前位置
</summary>
<returns>位置,mm</returns>
</member>
<member name="M:Neotel.Rmaxis.GoHome">
<summary>
回原点
</summary>
</member>
<member name="M:Neotel.Rmaxis.Push(System.Single,System.Single,System.Single)">
<summary>
推压运动
</summary>
<param name="force">出力,%</param>
<param name="distance">距离,mm</param>
<param name="velocity">速度,mm/s</param>
</member>
<member name="M:Neotel.Rmaxis.MoveAbsolute(System.Single,System.Single,System.Single,System.Single,System.Single)">
<summary>
绝对运动
</summary>
<param name="position">位置,mm</param>
<param name="velocity">速度,mm/s</param>
<param name="acceleration">加速度,mm/s^2</param>
<param name="deacceleration">减速度,mm/s^2</param>
<param name="band">定位范围,mm</param>
</member>
<member name="M:Neotel.Rmaxis.MoveTo(System.Single)">
<summary>
直接运动到指定位置
</summary>
<param name="position">位置,mm</param>
</member>
<member name="M:Neotel.Rmaxis.MoveConfig(System.Single,System.Single,System.Single)">
<summary>
直接运动的参数
</summary>
<param name="velocity">速度,mm/s</param>
<param name="acceleration">加速度,mm/s^2</param>
<param name="deacceleration">减速度,mm/s^2</param>
</member>
<member name="M:Neotel.Rmaxis.GoHomeWait(System.Int32)">
<summary>
回原点,并等到到位
</summary>
<param name="timeout">超时时间,ms</param>
<returns></returns>
</member>
<member name="M:Neotel.Rmaxis.PushWait(System.Single,System.Single,System.Single,System.Int32)">
<summary>
推压运动,并等到到位
</summary>
<param name="force">出力,%</param>
<param name="distance">距离,mm</param>
<param name="velocity">速度,mm/s</param>
<param name="timeout">超时时间,ms</param>
<returns></returns>
</member>
<member name="M:Neotel.Rmaxis.MoveAbsoluteWait(System.Single,System.Single,System.Single,System.Single,System.Single,System.Int32)">
<summary>
绝对运动,并等到到位
</summary>
<param name="position">位置,mm</param>
<param name="velocity">速度,mm/s</param>
<param name="acceleration">加速度,mm/s^2</param>
<param name="deacceleration">减速度,mm/s^2</param>
<param name="band">定位范围,mm</param>
<param name="timeout">超时时间,ms</param>
<returns></returns>
</member>
<member name="M:Neotel.Rmaxis.MoveToWait(System.Single,System.Int32)">
<summary>
直接运动到指定位置,并等到到位
</summary>
<param name="position">位置,mm</param>
<param name="timeout">超时时间,ms</param>
<returns></returns>
</member>
</members>
</doc>
此文件类型无法预览
此文件类型无法预览
此文件类型无法预览
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
......@@ -20,7 +20,7 @@
<add key="ConfigPath_MoveEquip" value="\LineConfig\MoveEquip\Config_MoveEquip.csv" />
<add key="ConfigPath_FeedingEquip" value="\LineConfig\Config_FeedingEquip.csv" />
<add key="ConfigPath_HYEquip" value="\LineConfig\HY\Config_HYEquip.csv" />
<add key ="ConfigPath_TrayList" value ="\LineConfig\TrayList.data"/>
<add key="ConfigPath_TrayList" value="\LineConfig\TrayList.data" />
<add key="Line_Type" value="Line" />
<add key="Line_CID" value="so827" />
<!--end one store config-->
......@@ -59,10 +59,10 @@
<add key="Feed_LastShelfID_102" value="B23" />
<add key="Feed_LastShelfID_103" value="B25" />
<add key="Feed_LastShelfID_104" value="B7" />
<add key ="SaveErrorImageToFile" value ="1"/>
<add key ="UseHCBoard" value ="1"/>
<add key ="ShowIOForm" value ="1"/>
<add key ="RfidServer_Port" value ="12001"/>
<add key="SaveErrorImageToFile" value="1" />
<add key="UseHCBoard" value="1" />
<add key="ShowIOForm" value="1" />
<add key="RfidServer_Port" value="12001" />
</appSettings>
<log4net>
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
......@@ -115,4 +115,12 @@
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.12.0" newVersion="2.0.12.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
......@@ -64,13 +64,14 @@
<Reference Include="halcondotnet">
<HintPath>..\..\dll\halcondotnet.dll</HintPath>
</Reference>
<Reference Include="log4net">
<HintPath>..\..\dll\log4net.dll</HintPath>
<Reference Include="log4net, Version=2.0.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\..\packages\log4net.2.0.12\lib\net45\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
......@@ -159,6 +160,12 @@
<Compile Include="ManagerUtil.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="useControl\ClampJawControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="useControl\ClampJawControl.Designer.cs">
<DependentUpon>ClampJawControl.cs</DependentUpon>
</Compile>
<Compile Include="useControl\EquipControl.cs">
<SubType>UserControl</SubType>
</Compile>
......@@ -211,9 +218,13 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="useControl\ClampJawControl.resx">
<DependentUpon>ClampJawControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="useControl\EquipControl.resx">
<DependentUpon>EquipControl.cs</DependentUpon>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
......
......@@ -36,27 +36,21 @@
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupDO = new System.Windows.Forms.GroupBox();
this.SL_TrayLocation_After = new System.Windows.Forms.Button();
this.SL_OutTopCylinder_Down = new System.Windows.Forms.Button();
this.SL_ClampCylinder_Work = new System.Windows.Forms.Button();
this.SL_MoveCylinder_Give = new System.Windows.Forms.Button();
this.SL_LocationCylinder_Down = new System.Windows.Forms.Button();
this.SL_FixedCylinder_Down = new System.Windows.Forms.Button();
this.SL_TopCylinder_Down = new System.Windows.Forms.Button();
this.SL_RollerLine_Run = new System.Windows.Forms.Button();
this.SL_TopCylinder_Up = new System.Windows.Forms.Button();
this.SL_FixedCylinder_Up = new System.Windows.Forms.Button();
this.SL_Out_StopDown = new System.Windows.Forms.Button();
this.SL_TrayLocation_Before = new System.Windows.Forms.Button();
this.SL_OutLine_Run = new System.Windows.Forms.Button();
this.SL_OutSideWay_Run = new System.Windows.Forms.Button();
this.SL_LocationSideWay_Run = new System.Windows.Forms.Button();
this.SL_Buffer_StopDown = new System.Windows.Forms.Button();
this.SL_Line_Run = new System.Windows.Forms.Button();
this.SL_OutTopCylinder_Up = new System.Windows.Forms.Button();
this.SL_Entry_StopDown = new System.Windows.Forms.Button();
this.SL_LocationCylinder_Up = new System.Windows.Forms.Button();
this.SL_MoveCylinder_Take = new System.Windows.Forms.Button();
this.SL_ClampCylinder_Relax = new System.Windows.Forms.Button();
this.lblThisSta = new System.Windows.Forms.Label();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage3 = new System.Windows.Forms.TabPage();
......@@ -68,9 +62,7 @@
this.lblAgvInfo = new System.Windows.Forms.Label();
this.lblInstoreList = new System.Windows.Forms.Label();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.groupClamp = new System.Windows.Forms.GroupBox();
this.btnClampWork = new System.Windows.Forms.Button();
this.btnClampRelax = new System.Windows.Forms.Button();
this.clampJawControl1 = new OnlineStore.AssemblyLine.useControl.ClampJawControl();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.tabPage2 = new System.Windows.Forms.TabPage();
......@@ -119,7 +111,6 @@
this.tabPage3.SuspendLayout();
this.groupBox6.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupClamp.SuspendLayout();
this.groupBox7.SuspendLayout();
this.tabPage2.SuspendLayout();
this.groupBox5.SuspendLayout();
......@@ -198,7 +189,7 @@
this.groupBox1.Controls.Add(this.txtWriteTime);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(685, 378);
this.groupBox1.Location = new System.Drawing.Point(685, 6);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(521, 107);
this.groupBox1.TabIndex = 105;
......@@ -331,7 +322,7 @@
this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(347, 322);
this.btnCloseAll.Location = new System.Drawing.Point(347, 242);
this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(140, 34);
this.btnCloseAll.TabIndex = 259;
......@@ -344,9 +335,9 @@
this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox4.Controls.Add(this.tableLayoutPanel2);
this.groupBox4.Location = new System.Drawing.Point(457, 1);
this.groupBox4.Location = new System.Drawing.Point(457, 6);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(220, 604);
this.groupBox4.Size = new System.Drawing.Size(220, 599);
this.groupBox4.TabIndex = 104;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "DO列表";
......@@ -364,7 +355,7 @@
this.tableLayoutPanel2.RowCount = 2;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(209, 584);
this.tableLayoutPanel2.Size = new System.Drawing.Size(209, 579);
this.tableLayoutPanel2.TabIndex = 103;
//
// groupBox3
......@@ -372,9 +363,9 @@
this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox3.Controls.Add(this.tableLayoutPanel1);
this.groupBox3.Location = new System.Drawing.Point(6, 1);
this.groupBox3.Location = new System.Drawing.Point(6, 6);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(220, 604);
this.groupBox3.Size = new System.Drawing.Size(220, 599);
this.groupBox3.TabIndex = 103;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "DI列表";
......@@ -392,7 +383,7 @@
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(209, 584);
this.tableLayoutPanel1.Size = new System.Drawing.Size(209, 579);
this.tableLayoutPanel1.TabIndex = 102;
//
// groupDO
......@@ -401,31 +392,25 @@
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupDO.Controls.Add(this.SL_TrayLocation_After);
this.groupDO.Controls.Add(this.SL_OutTopCylinder_Down);
this.groupDO.Controls.Add(this.SL_ClampCylinder_Work);
this.groupDO.Controls.Add(this.SL_MoveCylinder_Give);
this.groupDO.Controls.Add(this.SL_LocationCylinder_Down);
this.groupDO.Controls.Add(this.SL_FixedCylinder_Down);
this.groupDO.Controls.Add(this.SL_TopCylinder_Down);
this.groupDO.Controls.Add(this.SL_RollerLine_Run);
this.groupDO.Controls.Add(this.SL_TopCylinder_Up);
this.groupDO.Controls.Add(this.SL_FixedCylinder_Up);
this.groupDO.Controls.Add(this.SL_Out_StopDown);
this.groupDO.Controls.Add(this.SL_TrayLocation_Before);
this.groupDO.Controls.Add(this.SL_OutLine_Run);
this.groupDO.Controls.Add(this.SL_OutSideWay_Run);
this.groupDO.Controls.Add(this.SL_LocationSideWay_Run);
this.groupDO.Controls.Add(this.SL_Buffer_StopDown);
this.groupDO.Controls.Add(this.btnCloseAll);
this.groupDO.Controls.Add(this.SL_Line_Run);
this.groupDO.Controls.Add(this.SL_OutTopCylinder_Up);
this.groupDO.Controls.Add(this.SL_Entry_StopDown);
this.groupDO.Controls.Add(this.SL_LocationCylinder_Up);
this.groupDO.Controls.Add(this.SL_MoveCylinder_Take);
this.groupDO.Controls.Add(this.SL_ClampCylinder_Relax);
this.groupDO.Location = new System.Drawing.Point(685, 4);
this.groupDO.Location = new System.Drawing.Point(685, 119);
this.groupDO.Name = "groupDO";
this.groupDO.Size = new System.Drawing.Size(521, 371);
this.groupDO.Size = new System.Drawing.Size(521, 300);
this.groupDO.TabIndex = 255;
this.groupDO.TabStop = false;
this.groupDO.Text = "IO操作测试";
......@@ -435,7 +420,7 @@
this.SL_TrayLocation_After.BackColor = System.Drawing.Color.White;
this.SL_TrayLocation_After.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_TrayLocation_After.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_TrayLocation_After.Location = new System.Drawing.Point(183, 322);
this.SL_TrayLocation_After.Location = new System.Drawing.Point(347, 85);
this.SL_TrayLocation_After.Name = "SL_TrayLocation_After";
this.SL_TrayLocation_After.Size = new System.Drawing.Size(153, 34);
this.SL_TrayLocation_After.TabIndex = 282;
......@@ -443,38 +428,12 @@
this.SL_TrayLocation_After.UseVisualStyleBackColor = false;
this.SL_TrayLocation_After.Click += new System.EventHandler(this.SL_TrayLocation_After_Click);
//
// SL_OutTopCylinder_Down
//
this.SL_OutTopCylinder_Down.BackColor = System.Drawing.Color.White;
this.SL_OutTopCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_OutTopCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_OutTopCylinder_Down.Location = new System.Drawing.Point(347, 273);
this.SL_OutTopCylinder_Down.Name = "SL_OutTopCylinder_Down";
this.SL_OutTopCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.SL_OutTopCylinder_Down.TabIndex = 281;
this.SL_OutTopCylinder_Down.Text = "出口顶升下降 ↓";
this.SL_OutTopCylinder_Down.UseVisualStyleBackColor = false;
this.SL_OutTopCylinder_Down.Click += new System.EventHandler(this.SL_OutTopCylinder_Down_Click);
//
// SL_ClampCylinder_Work
//
this.SL_ClampCylinder_Work.BackColor = System.Drawing.Color.White;
this.SL_ClampCylinder_Work.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_ClampCylinder_Work.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_ClampCylinder_Work.Location = new System.Drawing.Point(183, 273);
this.SL_ClampCylinder_Work.Name = "SL_ClampCylinder_Work";
this.SL_ClampCylinder_Work.Size = new System.Drawing.Size(140, 34);
this.SL_ClampCylinder_Work.TabIndex = 280;
this.SL_ClampCylinder_Work.Text = "夹料气缸夹紧";
this.SL_ClampCylinder_Work.UseVisualStyleBackColor = false;
this.SL_ClampCylinder_Work.Click += new System.EventHandler(this.SL_ClampCylinder_Work_Click);
//
// SL_MoveCylinder_Give
//
this.SL_MoveCylinder_Give.BackColor = System.Drawing.Color.White;
this.SL_MoveCylinder_Give.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_MoveCylinder_Give.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_MoveCylinder_Give.Location = new System.Drawing.Point(20, 273);
this.SL_MoveCylinder_Give.Location = new System.Drawing.Point(183, 242);
this.SL_MoveCylinder_Give.Name = "SL_MoveCylinder_Give";
this.SL_MoveCylinder_Give.Size = new System.Drawing.Size(140, 34);
this.SL_MoveCylinder_Give.TabIndex = 279;
......@@ -487,7 +446,7 @@
this.SL_LocationCylinder_Down.BackColor = System.Drawing.Color.White;
this.SL_LocationCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_LocationCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_LocationCylinder_Down.Location = new System.Drawing.Point(347, 187);
this.SL_LocationCylinder_Down.Location = new System.Drawing.Point(347, 190);
this.SL_LocationCylinder_Down.Name = "SL_LocationCylinder_Down";
this.SL_LocationCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.SL_LocationCylinder_Down.TabIndex = 278;
......@@ -500,7 +459,7 @@
this.SL_FixedCylinder_Down.BackColor = System.Drawing.Color.White;
this.SL_FixedCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_FixedCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_FixedCylinder_Down.Location = new System.Drawing.Point(183, 187);
this.SL_FixedCylinder_Down.Location = new System.Drawing.Point(183, 190);
this.SL_FixedCylinder_Down.Name = "SL_FixedCylinder_Down";
this.SL_FixedCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.SL_FixedCylinder_Down.TabIndex = 277;
......@@ -513,7 +472,7 @@
this.SL_TopCylinder_Down.BackColor = System.Drawing.Color.White;
this.SL_TopCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_TopCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_TopCylinder_Down.Location = new System.Drawing.Point(20, 187);
this.SL_TopCylinder_Down.Location = new System.Drawing.Point(20, 190);
this.SL_TopCylinder_Down.Name = "SL_TopCylinder_Down";
this.SL_TopCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.SL_TopCylinder_Down.TabIndex = 276;
......@@ -521,25 +480,12 @@
this.SL_TopCylinder_Down.UseVisualStyleBackColor = false;
this.SL_TopCylinder_Down.Click += new System.EventHandler(this.SL_TopCylinder_Down_Click);
//
// SL_RollerLine_Run
//
this.SL_RollerLine_Run.BackColor = System.Drawing.Color.White;
this.SL_RollerLine_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_RollerLine_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_RollerLine_Run.Location = new System.Drawing.Point(347, 62);
this.SL_RollerLine_Run.Name = "SL_RollerLine_Run";
this.SL_RollerLine_Run.Size = new System.Drawing.Size(140, 34);
this.SL_RollerLine_Run.TabIndex = 275;
this.SL_RollerLine_Run.Text = "过渡滚筒运转->>";
this.SL_RollerLine_Run.UseVisualStyleBackColor = false;
this.SL_RollerLine_Run.Click += new System.EventHandler(this.btnRollerRun_Click);
//
// SL_TopCylinder_Up
//
this.SL_TopCylinder_Up.BackColor = System.Drawing.Color.White;
this.SL_TopCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_TopCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_TopCylinder_Up.Location = new System.Drawing.Point(20, 147);
this.SL_TopCylinder_Up.Location = new System.Drawing.Point(20, 150);
this.SL_TopCylinder_Up.Name = "SL_TopCylinder_Up";
this.SL_TopCylinder_Up.Size = new System.Drawing.Size(140, 34);
this.SL_TopCylinder_Up.TabIndex = 274;
......@@ -552,7 +498,7 @@
this.SL_FixedCylinder_Up.BackColor = System.Drawing.Color.White;
this.SL_FixedCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_FixedCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_FixedCylinder_Up.Location = new System.Drawing.Point(183, 147);
this.SL_FixedCylinder_Up.Location = new System.Drawing.Point(183, 150);
this.SL_FixedCylinder_Up.Name = "SL_FixedCylinder_Up";
this.SL_FixedCylinder_Up.Size = new System.Drawing.Size(140, 34);
this.SL_FixedCylinder_Up.TabIndex = 273;
......@@ -578,7 +524,7 @@
this.SL_TrayLocation_Before.BackColor = System.Drawing.Color.White;
this.SL_TrayLocation_Before.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_TrayLocation_Before.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_TrayLocation_Before.Location = new System.Drawing.Point(20, 322);
this.SL_TrayLocation_Before.Location = new System.Drawing.Point(347, 45);
this.SL_TrayLocation_Before.Name = "SL_TrayLocation_Before";
this.SL_TrayLocation_Before.Size = new System.Drawing.Size(153, 34);
this.SL_TrayLocation_Before.TabIndex = 255;
......@@ -586,19 +532,6 @@
this.SL_TrayLocation_Before.UseVisualStyleBackColor = false;
this.SL_TrayLocation_Before.Click += new System.EventHandler(this.btnTrayLocationCylinder_Click);
//
// SL_OutLine_Run
//
this.SL_OutLine_Run.BackColor = System.Drawing.Color.White;
this.SL_OutLine_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_OutLine_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_OutLine_Run.Location = new System.Drawing.Point(347, 22);
this.SL_OutLine_Run.Name = "SL_OutLine_Run";
this.SL_OutLine_Run.Size = new System.Drawing.Size(140, 34);
this.SL_OutLine_Run.TabIndex = 268;
this.SL_OutLine_Run.Text = "出料线体运转->>";
this.SL_OutLine_Run.UseVisualStyleBackColor = false;
this.SL_OutLine_Run.Click += new System.EventHandler(this.btnOLine_Click);
//
// SL_OutSideWay_Run
//
this.SL_OutSideWay_Run.BackColor = System.Drawing.Color.White;
......@@ -651,19 +584,6 @@
this.SL_Line_Run.UseVisualStyleBackColor = false;
this.SL_Line_Run.Click += new System.EventHandler(this.btnLineRun_Click);
//
// SL_OutTopCylinder_Up
//
this.SL_OutTopCylinder_Up.BackColor = System.Drawing.Color.White;
this.SL_OutTopCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_OutTopCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_OutTopCylinder_Up.Location = new System.Drawing.Point(347, 233);
this.SL_OutTopCylinder_Up.Name = "SL_OutTopCylinder_Up";
this.SL_OutTopCylinder_Up.Size = new System.Drawing.Size(140, 34);
this.SL_OutTopCylinder_Up.TabIndex = 258;
this.SL_OutTopCylinder_Up.Text = "出口顶升上升 ↑";
this.SL_OutTopCylinder_Up.UseVisualStyleBackColor = false;
this.SL_OutTopCylinder_Up.Click += new System.EventHandler(this.btnOutTopCylinder_Click);
//
// SL_Entry_StopDown
//
this.SL_Entry_StopDown.BackColor = System.Drawing.Color.White;
......@@ -682,7 +602,7 @@
this.SL_LocationCylinder_Up.BackColor = System.Drawing.Color.White;
this.SL_LocationCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_LocationCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_LocationCylinder_Up.Location = new System.Drawing.Point(347, 147);
this.SL_LocationCylinder_Up.Location = new System.Drawing.Point(347, 150);
this.SL_LocationCylinder_Up.Name = "SL_LocationCylinder_Up";
this.SL_LocationCylinder_Up.Size = new System.Drawing.Size(140, 34);
this.SL_LocationCylinder_Up.TabIndex = 256;
......@@ -695,7 +615,7 @@
this.SL_MoveCylinder_Take.BackColor = System.Drawing.Color.White;
this.SL_MoveCylinder_Take.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_MoveCylinder_Take.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_MoveCylinder_Take.Location = new System.Drawing.Point(20, 233);
this.SL_MoveCylinder_Take.Location = new System.Drawing.Point(20, 242);
this.SL_MoveCylinder_Take.Name = "SL_MoveCylinder_Take";
this.SL_MoveCylinder_Take.Size = new System.Drawing.Size(140, 34);
this.SL_MoveCylinder_Take.TabIndex = 252;
......@@ -703,19 +623,6 @@
this.SL_MoveCylinder_Take.UseVisualStyleBackColor = false;
this.SL_MoveCylinder_Take.Click += new System.EventHandler(this.btnFeedSideWayCylinder_Click);
//
// SL_ClampCylinder_Relax
//
this.SL_ClampCylinder_Relax.BackColor = System.Drawing.Color.White;
this.SL_ClampCylinder_Relax.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SL_ClampCylinder_Relax.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.SL_ClampCylinder_Relax.Location = new System.Drawing.Point(183, 233);
this.SL_ClampCylinder_Relax.Name = "SL_ClampCylinder_Relax";
this.SL_ClampCylinder_Relax.Size = new System.Drawing.Size(140, 34);
this.SL_ClampCylinder_Relax.TabIndex = 249;
this.SL_ClampCylinder_Relax.Text = "夹料气缸放松";
this.SL_ClampCylinder_Relax.UseVisualStyleBackColor = false;
this.SL_ClampCylinder_Relax.Click += new System.EventHandler(this.SL_ClampCylinder_Relax_Click);
//
// lblThisSta
//
this.lblThisSta.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
......@@ -842,9 +749,9 @@
//
// tabPage1
//
this.tabPage1.Controls.Add(this.groupClamp);
this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Controls.Add(this.groupDO);
this.tabPage1.Controls.Add(this.clampJawControl1);
this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Controls.Add(this.groupBox7);
this.tabPage1.Controls.Add(this.groupBox3);
this.tabPage1.Controls.Add(this.groupBox4);
......@@ -856,49 +763,21 @@
this.tabPage1.Text = " IO列表 ";
this.tabPage1.UseVisualStyleBackColor = true;
//
// groupClamp
//
this.groupClamp.Controls.Add(this.btnClampWork);
this.groupClamp.Controls.Add(this.btnClampRelax);
this.groupClamp.Location = new System.Drawing.Point(685, 490);
this.groupClamp.Name = "groupClamp";
this.groupClamp.Size = new System.Drawing.Size(521, 81);
this.groupClamp.TabIndex = 281;
this.groupClamp.TabStop = false;
this.groupClamp.Text = "夹爪操作";
//
// btnClampWork
//
this.btnClampWork.BackColor = System.Drawing.Color.White;
this.btnClampWork.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClampWork.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClampWork.Location = new System.Drawing.Point(183, 28);
this.btnClampWork.Name = "btnClampWork";
this.btnClampWork.Size = new System.Drawing.Size(140, 34);
this.btnClampWork.TabIndex = 282;
this.btnClampWork.Text = "夹料气缸夹紧";
this.btnClampWork.UseVisualStyleBackColor = false;
//
// btnClampRelax
//
this.btnClampRelax.BackColor = System.Drawing.Color.White;
this.btnClampRelax.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClampRelax.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClampRelax.Location = new System.Drawing.Point(17, 28);
this.btnClampRelax.Name = "btnClampRelax";
this.btnClampRelax.Size = new System.Drawing.Size(140, 34);
this.btnClampRelax.TabIndex = 281;
this.btnClampRelax.Text = "夹料气缸放松";
this.btnClampRelax.UseVisualStyleBackColor = false;
// clampJawControl1
//
this.clampJawControl1.Location = new System.Drawing.Point(680, 425);
this.clampJawControl1.Name = "clampJawControl1";
this.clampJawControl1.Size = new System.Drawing.Size(230, 167);
this.clampJawControl1.TabIndex = 280;
//
// groupBox7
//
this.groupBox7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox7.Controls.Add(this.tableLayoutPanel3);
this.groupBox7.Location = new System.Drawing.Point(232, 1);
this.groupBox7.Location = new System.Drawing.Point(232, 6);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(220, 604);
this.groupBox7.Size = new System.Drawing.Size(220, 599);
this.groupBox7.TabIndex = 279;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "DI列表";
......@@ -916,7 +795,7 @@
this.tableLayoutPanel3.RowCount = 2;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(209, 584);
this.tableLayoutPanel3.Size = new System.Drawing.Size(209, 579);
this.tableLayoutPanel3.TabIndex = 102;
//
// tabPage2
......@@ -1125,7 +1004,7 @@
this.groupBox9.Controls.Add(this.btnBP1);
this.groupBox9.Controls.Add(this.btnBP2);
this.groupBox9.Controls.Add(this.txtBP2);
this.groupBox9.Location = new System.Drawing.Point(587, 6);
this.groupBox9.Location = new System.Drawing.Point(587, 8);
this.groupBox9.Name = "groupBox9";
this.groupBox9.Size = new System.Drawing.Size(603, 114);
this.groupBox9.TabIndex = 220;
......@@ -1254,7 +1133,7 @@
this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.btnMoveto);
this.groupBox2.Controls.Add(this.txtSizePosition);
this.groupBox2.Location = new System.Drawing.Point(587, 123);
this.groupBox2.Location = new System.Drawing.Point(587, 125);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(603, 188);
this.groupBox2.TabIndex = 218;
......@@ -1451,7 +1330,6 @@
this.groupBox6.ResumeLayout(false);
this.groupBox6.PerformLayout();
this.tabPage1.ResumeLayout(false);
this.groupClamp.ResumeLayout(false);
this.groupBox7.ResumeLayout(false);
this.tabPage2.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
......@@ -1482,9 +1360,7 @@
private System.Windows.Forms.GroupBox groupDO;
private System.Windows.Forms.Button SL_TrayLocation_Before;
private System.Windows.Forms.Button SL_MoveCylinder_Take;
private System.Windows.Forms.Button SL_ClampCylinder_Relax;
private System.Windows.Forms.Label lblThisSta;
private System.Windows.Forms.Button SL_OutTopCylinder_Up;
private System.Windows.Forms.Button SL_LocationCylinder_Up;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
......@@ -1526,7 +1402,6 @@
private System.Windows.Forms.Label lblMoveInfo;
internal System.Windows.Forms.TextBox txtUpdownP3;
internal System.Windows.Forms.Button btnUpdownP3;
private System.Windows.Forms.Button SL_OutLine_Run;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.Label lblwidth;
private System.Windows.Forms.CheckBox chbBoxSendShelf;
......@@ -1544,13 +1419,10 @@
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button SL_FixedCylinder_Up;
private System.Windows.Forms.Button SL_TopCylinder_Up;
private System.Windows.Forms.Button SL_RollerLine_Run;
private System.Windows.Forms.Button SL_LocationCylinder_Down;
private System.Windows.Forms.Button SL_FixedCylinder_Down;
private System.Windows.Forms.Button SL_TopCylinder_Down;
private System.Windows.Forms.Button SL_MoveCylinder_Give;
private System.Windows.Forms.Button SL_ClampCylinder_Work;
private System.Windows.Forms.Button SL_OutTopCylinder_Down;
private System.Windows.Forms.Button SL_TrayLocation_After;
private System.Windows.Forms.GroupBox groupBox5;
internal System.Windows.Forms.Button btnTestStop;
......@@ -1558,9 +1430,7 @@
internal System.Windows.Forms.Button btnStartTest;
private System.Windows.Forms.Label lblTestMsg;
private System.Windows.Forms.Label lblP2List;
private System.Windows.Forms.GroupBox groupClamp;
private System.Windows.Forms.Button btnClampWork;
private System.Windows.Forms.Button btnClampRelax;
private useControl.ClampJawControl clampJawControl1;
}
}
......@@ -69,16 +69,10 @@ namespace OnlineStore.AssemblyLine
{
IOTextControl control = new IOTextControl(ioValue.ElectricalDefinition + "_" + ioValue.Explain, ioValue.ProName);
control.Click += Control_Click;
//if (i >= maxCount)
//{
// this.tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 28));
// this.tableLayoutPanel4.Controls.Add(control, 0, roleindex - maxCount);
//}
//else
{
this.tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 28));
this.tableLayoutPanel2.Controls.Add(control, 0, roleindex);
}
roleindex++;
i++;
DOControlList.Add(ioValue.ProName, control);
......@@ -238,7 +232,8 @@ namespace OnlineStore.AssemblyLine
private void FrmStoreIOStatus_Load(object sender, EventArgs e)
{
chbDebug.Checked = equipBean.IsDebug;
clampJawControl1.clampJaw = equipBean.ClampJwa;
clampJawControl1.ShowData();
chbMoveStop.Checked = equipBean.MoveStop;
axisMoveControl1.LoadData(equipBean, new AxisBean[] { equipBean.UpdownAxis, equipBean.BatchAxis });
......@@ -253,16 +248,7 @@ namespace OnlineStore.AssemblyLine
lblThisSta.Text = equipBean.WarnMsg;
txtP1.Text = equipBean.Config.UpDownAxisP1.ToString();
txtUpdownP3.Text = equipBean.Config.UpDownAxisP3.ToString();
if (equipBean.HasOutLine)
{
SL_RollerLine_Run.Visible = true;
SL_OutLine_Run.Visible = true;
}
else
{
SL_RollerLine_Run.Visible = false;
SL_OutLine_Run.Visible = false ;
}
LoadDP2();
LoadDOBtn(groupDO);
txtBp1.Text = equipBean.Config.BatchAxisP1.ToString();
......@@ -383,11 +369,6 @@ namespace OnlineStore.AssemblyLine
LogUtil.info(equipBase.Name + "界面点击:" + SL_LocationCylinder_Up.Text);
equipBean.CylinderMove(null, IO_Type.SL_LocationCylinder_Down, IO_Type.SL_LocationCylinder_Up);
}
private void btnOutTopCylinder_Click(object sender, EventArgs e)
{
//LogUtil.info(equipBase.Name + "界面点击:" + SL_OutTopCylinder_Up.Text);
//equipBean.CylinderMove(null, IO_Type.SL_OutTopCylinder_Down, IO_Type.SL_OutTopCylinder_Up);
}
private void btnFeedSideWayCylinder_Click(object sender, EventArgs e)
{
......@@ -559,15 +540,6 @@ namespace OnlineStore.AssemblyLine
string msg = CodeManager.ProcessCode(LastCodeList);
//if (LastCodeList.Count > 0)
//{
// foreach (string str in LastCodeList)
// {
// msg = str + "\r\n";
// }
//}
LogUtil.info(equipBean.Name + "[" + cameraStr + "]扫码测试结果:\r\n" + msg);
MessageBox.Show(equipBean.Name + "[" + cameraStr + "]扫码测试结果:" + msg);
}
......@@ -595,9 +567,6 @@ namespace OnlineStore.AssemblyLine
{
DoBtnClick(sender);
}
private void chbBoxSendShelf_CheckedChanged(object sender, EventArgs e)
{
IsInCheck = true;
......@@ -605,8 +574,6 @@ namespace OnlineStore.AssemblyLine
equipBean.OutEndSendShelfOut = chbBoxSendShelf.Checked;
IsInCheck = false;
}
private void btnOutStopDown_Click(object sender, EventArgs e)
{
DoBtnClick(sender);
......@@ -748,12 +715,6 @@ namespace OnlineStore.AssemblyLine
DoBtnClick(sender);
}
private void SL_ClampCylinder_Relax_Click(object sender, EventArgs e)
{
LogUtil.info(equipBase.Name + "界面点击:" + SL_ClampCylinder_Work.Text);
equipBean.CylinderMove(null, IO_Type.SL_ClampCylinder_Work, IO_Type.SL_ClampCylinder_Relax);
}
private void SL_TopCylinder_Down_Click(object sender, EventArgs e)
{
LogUtil.info(equipBase.Name + "界面点击:" + SL_TopCylinder_Down.Text);
......@@ -784,17 +745,6 @@ namespace OnlineStore.AssemblyLine
}
}
private void SL_ClampCylinder_Work_Click(object sender, EventArgs e)
{
LogUtil.info(equipBase.Name + "界面点击:" + SL_ClampCylinder_Relax.Text);
equipBean.CylinderMove(null, IO_Type.SL_ClampCylinder_Relax, IO_Type.SL_ClampCylinder_Work);
}
private void SL_OutTopCylinder_Down_Click(object sender, EventArgs e)
{
//LogUtil.info(equipBase.Name + "界面点击:" + SL_OutTopCylinder_Down.Text);
//equipBean.CylinderMove(null, IO_Type.SL_OutTopCylinder_Up, IO_Type.SL_OutTopCylinder_Down);
}
private void SL_TrayLocation_After_Click(object sender, EventArgs e)
{
......@@ -920,6 +870,7 @@ namespace OnlineStore.AssemblyLine
btnTestStop.Enabled = false;
}
}
}
}
......
......@@ -59,14 +59,8 @@ namespace OnlineStore.AssemblyLine
txtP1.Text = equipBean.Config.UpDownAxisP1.ToString();
lblHyInfo.Text = equipBean.GetHYDesc();
LoadDOBtn(groupDo);
if(equipBean is HY_Coveryor)
{
btnOutStore.Visible = true;
}
else
{
btnOutStore.Visible = false;
}
IsLoad = true;
}
......
......@@ -36,7 +36,6 @@
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.btnLineStop = new System.Windows.Forms.Button();
this.btnDriveMotor_Run = new System.Windows.Forms.Button();
this.lblTrayNum = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.numTrayNum = new System.Windows.Forms.NumericUpDown();
......@@ -92,9 +91,9 @@
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.cmbWriteIO);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(573, 5);
this.groupBox1.Location = new System.Drawing.Point(492, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(475, 125);
this.groupBox1.Size = new System.Drawing.Size(382, 130);
this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入";
......@@ -223,9 +222,9 @@
this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox4.Controls.Add(this.tableLayoutPanel2);
this.groupBox4.Location = new System.Drawing.Point(289, 5);
this.groupBox4.Location = new System.Drawing.Point(777, 135);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(276, 364);
this.groupBox4.Size = new System.Drawing.Size(270, 449);
this.groupBox4.TabIndex = 104;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "DO列表";
......@@ -243,7 +242,7 @@
this.tableLayoutPanel2.RowCount = 2;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(265, 344);
this.tableLayoutPanel2.Size = new System.Drawing.Size(259, 429);
this.tableLayoutPanel2.TabIndex = 103;
//
// groupBox3
......@@ -251,9 +250,9 @@
this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox3.Controls.Add(this.tableLayoutPanel1);
this.groupBox3.Location = new System.Drawing.Point(6, 5);
this.groupBox3.Location = new System.Drawing.Point(494, 135);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(276, 364);
this.groupBox3.Size = new System.Drawing.Size(276, 449);
this.groupBox3.TabIndex = 103;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "DI列表";
......@@ -271,16 +270,16 @@
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(265, 344);
this.tableLayoutPanel1.Size = new System.Drawing.Size(265, 429);
this.tableLayoutPanel1.TabIndex = 102;
//
// groupBox5
//
this.groupBox5.Controls.Add(this.btnLineStop);
this.groupBox5.Controls.Add(this.btnDriveMotor_Run);
this.groupBox5.Location = new System.Drawing.Point(573, 137);
this.groupBox5.Location = new System.Drawing.Point(879, 3);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(475, 83);
this.groupBox5.Size = new System.Drawing.Size(168, 130);
this.groupBox5.TabIndex = 246;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "IO操作测试";
......@@ -289,7 +288,7 @@
//
this.btnLineStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLineStop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnLineStop.Location = new System.Drawing.Point(171, 25);
this.btnLineStop.Location = new System.Drawing.Point(13, 68);
this.btnLineStop.Name = "btnLineStop";
this.btnLineStop.Size = new System.Drawing.Size(140, 37);
this.btnLineStop.TabIndex = 278;
......@@ -309,26 +308,12 @@
this.btnDriveMotor_Run.UseVisualStyleBackColor = false;
this.btnDriveMotor_Run.Click += new System.EventHandler(this.btnDriveMotor_Run_Click);
//
// lblTrayNum
//
this.lblTrayNum.AutoSize = true;
this.lblTrayNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblTrayNum.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblTrayNum.Location = new System.Drawing.Point(215, 546);
this.lblTrayNum.Name = "lblTrayNum";
this.lblTrayNum.Size = new System.Drawing.Size(68, 17);
this.lblTrayNum.TabIndex = 275;
this.lblTrayNum.Text = "托盘编码:";
this.lblTrayNum.TextAlign = System.Drawing.ContentAlignment.BottomRight;
this.lblTrayNum.Visible = false;
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.groupBox2);
this.panel1.Controls.Add(this.lblMsg);
this.panel1.Controls.Add(this.lblMoveInfo);
this.panel1.Controls.Add(this.lblTrayNum);
this.panel1.Controls.Add(this.groupBox4);
this.panel1.Controls.Add(this.groupBox3);
this.panel1.Controls.Add(this.groupBox5);
......@@ -347,9 +332,9 @@
this.groupBox2.Controls.Add(this.btnClear);
this.groupBox2.Controls.Add(this.label6);
this.groupBox2.Controls.Add(this.lblSelTrayNum);
this.groupBox2.Location = new System.Drawing.Point(571, 227);
this.groupBox2.Location = new System.Drawing.Point(10, 3);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(475, 327);
this.groupBox2.Size = new System.Drawing.Size(475, 337);
this.groupBox2.TabIndex = 283;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "托盘信息编辑";
......@@ -612,21 +597,19 @@
//
this.lblMsg.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMsg.ForeColor = System.Drawing.Color.Red;
this.lblMsg.Location = new System.Drawing.Point(3, 375);
this.lblMsg.Location = new System.Drawing.Point(10, 387);
this.lblMsg.Name = "lblMsg";
this.lblMsg.Size = new System.Drawing.Size(562, 131);
this.lblMsg.Size = new System.Drawing.Size(475, 196);
this.lblMsg.TabIndex = 279;
this.lblMsg.Text = "CID";
//
// lblMoveInfo
//
this.lblMoveInfo.AutoSize = true;
this.lblMoveInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMoveInfo.Location = new System.Drawing.Point(17, 546);
this.lblMoveInfo.Location = new System.Drawing.Point(16, 353);
this.lblMoveInfo.Name = "lblMoveInfo";
this.lblMoveInfo.Size = new System.Drawing.Size(29, 17);
this.lblMoveInfo.Size = new System.Drawing.Size(0, 17);
this.lblMoveInfo.TabIndex = 276;
this.lblMoveInfo.Text = "CID";
//
// FrmLineIO
//
......@@ -678,7 +661,6 @@
private System.Windows.Forms.Button btnDriveMotor_Run;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btnCloseAll;
private System.Windows.Forms.Label lblTrayNum;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button btnLineStop;
private System.Windows.Forms.Label lblMoveInfo;
......
......@@ -36,15 +36,6 @@ namespace OnlineStore.AssemblyLine
int roleindex = 0;
this.tableLayoutPanel1.RowStyles.Clear();
this.tableLayoutPanel1.RowCount = count;
//this.tableLayoutPanel3.RowStyles.Clear();
//if (LineManager.Config.DIList.Count > count)
//{
// this.tableLayoutPanel3.RowCount = LineManager.Config.DIList.Count - count;
//}
//else
//{
// this.tableLayoutPanel3.RowCount = 0;
//}
foreach (ConfigIO ioValue in LineManager.Config.DIList.Values)
{
IOTextControl control = new IOTextControl(ioValue.ElectricalDefinition + "_" + ioValue.Explain, ioValue.ProName);
......@@ -65,8 +56,6 @@ namespace OnlineStore.AssemblyLine
count = 19;
tableLayoutPanel2.RowStyles.Clear();
this.tableLayoutPanel2.RowCount = count;
//this.tableLayoutPanel4.RowStyles.Clear();
//this.tableLayoutPanel4.RowCount = count;
roleindex = 0;
foreach (ConfigIO ioValue in LineManager.Config.DOList.Values)
{
......@@ -111,30 +100,11 @@ namespace OnlineStore.AssemblyLine
lblMsg.Text = LineManager.Line.WarnMsg;
ReadIOList();
lblMoveInfo.Text = LineManager.Line.GetMoveStr();
//lblTrayNum.Text = "T3-C1托盘号:" + LineManager.Line.T3C1_TrayNum.ToString();
//if (cmbTray.SelectedIndex >= 0)
//{
int trayNum =(int) numTrayNum.Value + 101;
int trayNum = (int)numTrayNum.Value + 101;
TrayInfo tray = TrayManager.GetTrayInfo(trayNum);
lblSelTrayNum.Text = tray.ToStr();
//}
//if (LineManager.Line.IOValue(IO_Type.HY_TopCylinder_Up).Equals(IO_VALUE.HIGH))
//{
// HY_TopCylinder_Up.BackColor = Color.LawnGreen;
//}
//else
//{
// HY_TopCylinder_Up.BackColor = Color.White ;
//}
//if (LineManager.Line.IOValue(IO_Type.HY_TopCylinder_Down).Equals(IO_VALUE.HIGH))
//{
// HY_TopCylinder_Down.BackColor = Color.LawnGreen;
//}
//else
//{
// HY_TopCylinder_Down.BackColor = Color.White;
//}
}
}
......@@ -211,19 +181,11 @@ namespace OnlineStore.AssemblyLine
}
private void FrmStoreIOStatus_Load(object sender, EventArgs e)
{
// KNDAIManager.NeedShow = true;
//tabControl1.TabPages.RemoveAt(1);
LoadTray();
}
private void LoadTray()
{
//cmbTray.Items.Clear();
//for (int i = 101; i <= 150; i++)
//{
// cmbTray.Items.Add(i.ToString());
//}
cmbWidth.Items.Clear();
cmbHeight.Items.Clear();
......@@ -363,36 +325,11 @@ namespace OnlineStore.AssemblyLine
LineManager.Line.WriteDrivetMotorRun(IO_VALUE.HIGH);
}
//private void HY_TopCylinder_Up_Click(object sender, EventArgs e)
//{
// LogUtil.info("界面点击:" + HY_TopCylinder_Up.Text);
// LineManager.Line.CylinderMove(null, IO_Type.HY_TopCylinder_Down, IO_Type.HY_TopCylinder_Up);
//}
private void btnCloseAll_Click(object sender, EventArgs e)
{
IOManager.instance.CloseAllDO();
}
//private void btnSw4Location_Click(object sender, EventArgs e)
//{
// LogUtil.info("界面点击:" + btnFrontStopDown.Text);
// BtnMove(btnFrontStopDown, "▉ T3-C1前阻挡下降", "▉ T3-C1前阻挡上升", IO_Type.HY_FrontStopDown);
//}
//private void btn34Top_Click(object sender, EventArgs e)
//{
// LogUtil.info("界面点击:" + btnStopDown.Text);
// BtnMove(btnStopDown, "▉ T3-C1阻挡下降", "▉ T3-C1阻挡上升", IO_Type.HY_StopDown);
//}
//private void HY_TopCylinder_Down_Click(object sender, EventArgs e)
//{
// LogUtil.info("界面点击:" + HY_TopCylinder_Down.Text);
// LineManager.Line.CylinderMove(null, IO_Type.HY_TopCylinder_Up, IO_Type.HY_TopCylinder_Down);
//}
private void btnLineStop_Click(object sender, EventArgs e)
{
LogUtil.info("界面点击:" + btnLineStop.Text);
......
......@@ -215,6 +215,16 @@ namespace OnlineStore.AssemblyLine
LogUtil.info("即将退出程序,停止" + equip.Name + "运行 ");
equip.StopRun();
}
if(equip is MoveEquip)
{
MoveEquip moveEquip = (MoveEquip)equip;
moveEquip.ClampJwa.ClosePort();
}
if (equip is FeedingEquip)
{
FeedingEquip moveEquip = (FeedingEquip)equip;
moveEquip.ClampJwa.ClosePort();
}
}
IOManager.instance.CloseAllDO();
IOManager.instance.CloseAllConnection();
......
......@@ -40,14 +40,15 @@
this.UpDownCylinder_Down = new System.Windows.Forms.Button();
this.TopCylinder_Down = new System.Windows.Forms.Button();
this.StopDown2 = new System.Windows.Forms.Button();
this.StopDown1 = new System.Windows.Forms.Button();
this.ClampCylinder_Relax = new System.Windows.Forms.Button();
this.StopDown1 = new System.Windows.Forms.Button();
this.BeforeAfterCylinder_Before = new System.Windows.Forms.Button();
this.TopCylinder_Up = new System.Windows.Forms.Button();
this.UpDownCylinder_Up = new System.Windows.Forms.Button();
this.lblThisSta = new System.Windows.Forms.Label();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.clampJawControl1 = new OnlineStore.AssemblyLine.useControl.ClampJawControl();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.lblInoutInfo = new System.Windows.Forms.Label();
this.lblMoveInfo = new System.Windows.Forms.Label();
......@@ -75,9 +76,6 @@
this.label4 = new System.Windows.Forms.Label();
this.btnP2 = new System.Windows.Forms.Button();
this.txtP2 = new System.Windows.Forms.TextBox();
this.groupClamp = new System.Windows.Forms.GroupBox();
this.btnClampWork = new System.Windows.Forms.Button();
this.btnClampRelax = new System.Windows.Forms.Button();
this.panBase.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout();
......@@ -89,7 +87,6 @@
this.tabPage2.SuspendLayout();
this.groupDetial.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupClamp.SuspendLayout();
this.SuspendLayout();
//
// panBase
......@@ -145,9 +142,9 @@
this.groupBox1.Controls.Add(this.txtSlaveId);
this.groupBox1.Controls.Add(this.cmbWriteIO);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(496, 356);
this.groupBox1.Location = new System.Drawing.Point(496, 175);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(373, 159);
this.groupBox1.Size = new System.Drawing.Size(373, 151);
this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入";
......@@ -291,9 +288,9 @@
this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox4.Controls.Add(this.tableLayoutPanel2);
this.groupBox4.Location = new System.Drawing.Point(251, 6);
this.groupBox4.Location = new System.Drawing.Point(251, 175);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(240, 509);
this.groupBox4.Size = new System.Drawing.Size(240, 337);
this.groupBox4.TabIndex = 104;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "DO列表";
......@@ -311,7 +308,7 @@
this.tableLayoutPanel2.RowCount = 2;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(229, 489);
this.tableLayoutPanel2.Size = new System.Drawing.Size(229, 317);
this.tableLayoutPanel2.TabIndex = 103;
//
// groupBox3
......@@ -319,9 +316,9 @@
this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox3.Controls.Add(this.tableLayoutPanel1);
this.groupBox3.Location = new System.Drawing.Point(6, 6);
this.groupBox3.Location = new System.Drawing.Point(6, 175);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(240, 509);
this.groupBox3.Size = new System.Drawing.Size(240, 337);
this.groupBox3.TabIndex = 103;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "DI列表";
......@@ -339,7 +336,7 @@
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(229, 489);
this.tableLayoutPanel1.Size = new System.Drawing.Size(229, 317);
this.tableLayoutPanel1.TabIndex = 102;
//
// groupDO
......@@ -356,9 +353,9 @@
this.groupDO.Controls.Add(this.BeforeAfterCylinder_Before);
this.groupDO.Controls.Add(this.TopCylinder_Up);
this.groupDO.Controls.Add(this.UpDownCylinder_Up);
this.groupDO.Location = new System.Drawing.Point(496, 238);
this.groupDO.Location = new System.Drawing.Point(496, 332);
this.groupDO.Name = "groupDO";
this.groupDO.Size = new System.Drawing.Size(661, 115);
this.groupDO.Size = new System.Drawing.Size(661, 117);
this.groupDO.TabIndex = 255;
this.groupDO.TabStop = false;
this.groupDO.Text = "IO操作测试";
......@@ -428,19 +425,6 @@
this.StopDown2.UseVisualStyleBackColor = false;
this.StopDown2.Click += new System.EventHandler(this.StopCheck2_Click);
//
// StopDown1
//
this.StopDown1.BackColor = System.Drawing.Color.White;
this.StopDown1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.StopDown1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.StopDown1.Location = new System.Drawing.Point(15, 26);
this.StopDown1.Name = "StopDown1";
this.StopDown1.Size = new System.Drawing.Size(120, 34);
this.StopDown1.TabIndex = 256;
this.StopDown1.Text = "▉ 阻挡1下降";
this.StopDown1.UseVisualStyleBackColor = false;
this.StopDown1.Click += new System.EventHandler(this.StopCheck1_Click);
//
// ClampCylinder_Relax
//
this.ClampCylinder_Relax.BackColor = System.Drawing.Color.White;
......@@ -454,6 +438,19 @@
this.ClampCylinder_Relax.UseVisualStyleBackColor = false;
this.ClampCylinder_Relax.Click += new System.EventHandler(this.ClampCylinder_Relax_Click);
//
// StopDown1
//
this.StopDown1.BackColor = System.Drawing.Color.White;
this.StopDown1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.StopDown1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.StopDown1.Location = new System.Drawing.Point(15, 26);
this.StopDown1.Name = "StopDown1";
this.StopDown1.Size = new System.Drawing.Size(120, 34);
this.StopDown1.TabIndex = 256;
this.StopDown1.Text = "▉ 阻挡1下降";
this.StopDown1.UseVisualStyleBackColor = false;
this.StopDown1.Click += new System.EventHandler(this.StopCheck1_Click);
//
// BeforeAfterCylinder_Before
//
this.BeforeAfterCylinder_Before.BackColor = System.Drawing.Color.White;
......@@ -500,9 +497,9 @@
this.lblThisSta.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblThisSta.ForeColor = System.Drawing.Color.Red;
this.lblThisSta.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblThisSta.Location = new System.Drawing.Point(2, 169);
this.lblThisSta.Location = new System.Drawing.Point(199, 127);
this.lblThisSta.Name = "lblThisSta";
this.lblThisSta.Size = new System.Drawing.Size(655, 51);
this.lblThisSta.Size = new System.Drawing.Size(947, 28);
this.lblThisSta.TabIndex = 246;
this.lblThisSta.Text = "等待启动";
this.lblThisSta.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -522,8 +519,8 @@
//
// tabPage1
//
this.tabPage1.Controls.Add(this.groupClamp);
this.tabPage1.Controls.Add(this.groupDO);
this.tabPage1.Controls.Add(this.clampJawControl1);
this.tabPage1.Controls.Add(this.groupBox6);
this.tabPage1.Controls.Add(this.groupBox3);
this.tabPage1.Controls.Add(this.groupBox4);
......@@ -536,6 +533,13 @@
this.tabPage1.Text = " IO列表 ";
this.tabPage1.UseVisualStyleBackColor = true;
//
// clampJawControl1
//
this.clampJawControl1.Location = new System.Drawing.Point(874, 173);
this.clampJawControl1.Name = "clampJawControl1";
this.clampJawControl1.Size = new System.Drawing.Size(286, 159);
this.clampJawControl1.TabIndex = 279;
//
// groupBox6
//
this.groupBox6.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
......@@ -545,21 +549,21 @@
this.groupBox6.Controls.Add(this.lblMoveInfo);
this.groupBox6.Controls.Add(this.lblInstoreList);
this.groupBox6.Controls.Add(this.lblThisSta);
this.groupBox6.Location = new System.Drawing.Point(496, 6);
this.groupBox6.Location = new System.Drawing.Point(6, 6);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(661, 229);
this.groupBox6.Size = new System.Drawing.Size(1151, 166);
this.groupBox6.TabIndex = 278;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "消息";
this.groupBox6.Text = "当前状态";
//
// lblInoutInfo
//
this.lblInoutInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblInoutInfo.ForeColor = System.Drawing.Color.Green;
this.lblInoutInfo.Location = new System.Drawing.Point(2, 19);
this.lblInoutInfo.Location = new System.Drawing.Point(2, 17);
this.lblInoutInfo.Name = "lblInoutInfo";
this.lblInoutInfo.Size = new System.Drawing.Size(655, 40);
this.lblInoutInfo.Size = new System.Drawing.Size(1143, 23);
this.lblInoutInfo.TabIndex = 281;
this.lblInoutInfo.Text = "当前出入库:";
//
......@@ -568,7 +572,7 @@
this.lblMoveInfo.AutoSize = true;
this.lblMoveInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMoveInfo.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblMoveInfo.Location = new System.Drawing.Point(14, 63);
this.lblMoveInfo.Location = new System.Drawing.Point(14, 47);
this.lblMoveInfo.Name = "lblMoveInfo";
this.lblMoveInfo.Size = new System.Drawing.Size(68, 17);
this.lblMoveInfo.TabIndex = 280;
......@@ -581,9 +585,9 @@
this.lblInstoreList.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblInstoreList.ForeColor = System.Drawing.Color.Green;
this.lblInstoreList.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblInstoreList.Location = new System.Drawing.Point(247, 66);
this.lblInstoreList.Location = new System.Drawing.Point(199, 45);
this.lblInstoreList.Name = "lblInstoreList";
this.lblInstoreList.Size = new System.Drawing.Size(410, 96);
this.lblInstoreList.Size = new System.Drawing.Size(947, 77);
this.lblInstoreList.TabIndex = 277;
//
// tabPage2
......@@ -885,41 +889,6 @@
this.txtP2.TabIndex = 305;
this.txtP2.Text = "-1";
//
// groupClamp
//
this.groupClamp.Controls.Add(this.btnClampWork);
this.groupClamp.Controls.Add(this.btnClampRelax);
this.groupClamp.Location = new System.Drawing.Point(875, 356);
this.groupClamp.Name = "groupClamp";
this.groupClamp.Size = new System.Drawing.Size(282, 159);
this.groupClamp.TabIndex = 282;
this.groupClamp.TabStop = false;
this.groupClamp.Text = "夹爪操作";
//
// btnClampWork
//
this.btnClampWork.BackColor = System.Drawing.Color.White;
this.btnClampWork.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClampWork.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClampWork.Location = new System.Drawing.Point(39, 76);
this.btnClampWork.Name = "btnClampWork";
this.btnClampWork.Size = new System.Drawing.Size(140, 34);
this.btnClampWork.TabIndex = 282;
this.btnClampWork.Text = "夹料气缸夹紧";
this.btnClampWork.UseVisualStyleBackColor = false;
//
// btnClampRelax
//
this.btnClampRelax.BackColor = System.Drawing.Color.White;
this.btnClampRelax.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClampRelax.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClampRelax.Location = new System.Drawing.Point(39, 34);
this.btnClampRelax.Name = "btnClampRelax";
this.btnClampRelax.Size = new System.Drawing.Size(140, 34);
this.btnClampRelax.TabIndex = 281;
this.btnClampRelax.Text = "夹料气缸放松";
this.btnClampRelax.UseVisualStyleBackColor = false;
//
// FrmMoveEquip
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
......@@ -952,7 +921,6 @@
this.groupDetial.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupClamp.ResumeLayout(false);
this.ResumeLayout(false);
}
......@@ -1017,9 +985,7 @@
private System.Windows.Forms.Button TopCylinder_Down;
private System.Windows.Forms.Label lblP2;
private System.Windows.Forms.Label lblP3List;
private System.Windows.Forms.GroupBox groupClamp;
private System.Windows.Forms.Button btnClampWork;
private System.Windows.Forms.Button btnClampRelax;
private useControl.ClampJawControl clampJawControl1;
}
}
......@@ -35,6 +35,8 @@ namespace OnlineStore.AssemblyLine
}
private void FrmStoreIOStatus_Load(object sender, EventArgs e)
{
clampJawControl1.clampJaw = equipBean.ClampJwa;
clampJawControl1.ShowData();
chbDebug.Checked = equipBean.IsDebug;
if (equipBean.UseAxis)
{
......@@ -48,6 +50,7 @@ namespace OnlineStore.AssemblyLine
}
cmbSizeList.Items.Clear();
cmbSizeList.Items.Add("0=默认位置");
foreach (int heigth in LineManager.GetTrayList())
{
cmbSizeList.Items.Add(heigth);
......@@ -67,6 +70,10 @@ namespace OnlineStore.AssemblyLine
btnInStore.Text = "出库盘移栽";
btnOutStore.Visible = false;
}
else
{
btnOutStore.Visible = true;
}
IsLoad = true;
}
......@@ -157,7 +164,7 @@ namespace OnlineStore.AssemblyLine
{
lblInoutInfo.Text = "";
}
lblMoveInfo.Text = equipBean.GetMoveStr() + "\r\n料仓类型:" + (equipBean.Config.IsBigTray.Equals(1) ? "大料盘" : "小料盘");
lblMoveInfo.Text = equipBean.GetMoveStr() +"料仓类型:" + (equipBean.Config.IsBigTray.Equals(1) ? "大料盘" : "小料盘");
string canOut = LineManager.Line.CanOutStore(equipBean.DeviceID) ? "可出库" : "不可出库";
lblStoreStatus.Text = KTK_Store.GetRunStr(equipBean.runStatus) + "(" + canOut + ")";
lblThisSta.Text = equipBean.WarnMsg;
......@@ -658,13 +665,9 @@ namespace OnlineStore.AssemblyLine
private void ClampCylinder_Check_Click(object sender, EventArgs e)
{
LogUtil.info(equipBase.Name + "界面点击:" + ClampCylinder_Relax.Text);
equipBase.CylinderMove(null, IO_Type.ClampCylinder_Relax, IO_Type.ClampCylinder_Work);
}
private void ClampCylinder_Relax_Click(object sender, EventArgs e)
{
LogUtil.info(equipBase.Name + "界面点击:" + ClampCylinder_Work.Text);
equipBase.CylinderMove(null, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
}
......@@ -678,6 +681,8 @@ namespace OnlineStore.AssemblyLine
equipBean.MoveStop = chbMoveStop.Checked;
LogUtil.info(equipBean.Name + "用户切换是否暂停: " + equipBean.MoveStop);
}
}
}
......
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.12" targetFramework="net461" />
</packages>
\ No newline at end of file

namespace OnlineStore.AssemblyLine.useControl
{
partial class ClampJawControl
{
/// <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.groupClamp = new System.Windows.Forms.GroupBox();
this.btnClampWork = new System.Windows.Forms.Button();
this.btnClampRelax = new System.Windows.Forms.Button();
this.chbPosition = new System.Windows.Forms.CheckBox();
this.chbEmpty = new System.Windows.Forms.CheckBox();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.groupClamp.SuspendLayout();
this.SuspendLayout();
//
// groupClamp
//
this.groupClamp.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupClamp.Controls.Add(this.linkLabel1);
this.groupClamp.Controls.Add(this.chbEmpty);
this.groupClamp.Controls.Add(this.chbPosition);
this.groupClamp.Controls.Add(this.btnClampWork);
this.groupClamp.Controls.Add(this.btnClampRelax);
this.groupClamp.Location = new System.Drawing.Point(7, 4);
this.groupClamp.Name = "groupClamp";
this.groupClamp.Size = new System.Drawing.Size(218, 158);
this.groupClamp.TabIndex = 283;
this.groupClamp.TabStop = false;
this.groupClamp.Text = "夹爪操作";
//
// btnClampWork
//
this.btnClampWork.BackColor = System.Drawing.Color.White;
this.btnClampWork.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClampWork.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClampWork.Location = new System.Drawing.Point(29, 69);
this.btnClampWork.Name = "btnClampWork";
this.btnClampWork.Size = new System.Drawing.Size(140, 34);
this.btnClampWork.TabIndex = 282;
this.btnClampWork.Text = "夹料气缸夹紧";
this.btnClampWork.UseVisualStyleBackColor = false;
this.btnClampWork.Click += new System.EventHandler(this.btnClampWork_Click);
//
// btnClampRelax
//
this.btnClampRelax.BackColor = System.Drawing.Color.White;
this.btnClampRelax.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClampRelax.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClampRelax.Location = new System.Drawing.Point(29, 27);
this.btnClampRelax.Name = "btnClampRelax";
this.btnClampRelax.Size = new System.Drawing.Size(140, 34);
this.btnClampRelax.TabIndex = 281;
this.btnClampRelax.Text = "夹料气缸放松";
this.btnClampRelax.UseVisualStyleBackColor = false;
this.btnClampRelax.Click += new System.EventHandler(this.btnClampRelax_Click);
//
// chbPosition
//
this.chbPosition.AutoSize = true;
this.chbPosition.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbPosition.Location = new System.Drawing.Point(9, 120);
this.chbPosition.Name = "chbPosition";
this.chbPosition.Size = new System.Drawing.Size(84, 24);
this.chbPosition.TabIndex = 283;
this.chbPosition.Text = "运动到位";
this.chbPosition.UseVisualStyleBackColor = true;
//
// chbEmpty
//
this.chbEmpty.AutoSize = true;
this.chbEmpty.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbEmpty.Location = new System.Drawing.Point(102, 120);
this.chbEmpty.Name = "chbEmpty";
this.chbEmpty.Size = new System.Drawing.Size(56, 24);
this.chbEmpty.TabIndex = 284;
this.chbEmpty.Text = "空抓";
this.chbEmpty.UseVisualStyleBackColor = true;
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
this.linkLabel1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.linkLabel1.Location = new System.Drawing.Point(167, 121);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(37, 20);
this.linkLabel1.TabIndex = 285;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "查询";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// ClampJawControl
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.groupClamp);
this.Name = "ClampJawControl";
this.Size = new System.Drawing.Size(231, 167);
this.Load += new System.EventHandler(this.ClampJawControl_Load);
this.groupClamp.ResumeLayout(false);
this.groupClamp.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupClamp;
private System.Windows.Forms.Button btnClampWork;
private System.Windows.Forms.Button btnClampRelax;
private System.Windows.Forms.CheckBox chbEmpty;
private System.Windows.Forms.CheckBox chbPosition;
private System.Windows.Forms.LinkLabel linkLabel1;
}
}
using OnlineStore.Common;
using OnlineStore.DeviceLibrary;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace OnlineStore.AssemblyLine.useControl
{
public partial class ClampJawControl : UserControl
{
public ClampJawControl()
{
InitializeComponent();
}
public ClampJawBean clampJaw = null;
private string JName = "";
private void ClampJawControl_Load(object sender, EventArgs e)
{
ShowData();
}
public void ShowData()
{
if (clampJaw != null)
{
JName = clampJaw.config.Explain + "_" + clampJaw.config.PortName + "_" + clampJaw.config.AxisNo;
groupClamp.Text = JName;
}
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
chbPosition.Checked = clampJaw.IsReached();
chbEmpty.Checked =! clampJaw.HasReel();
}
private void btnClampRelax_Click(object sender, EventArgs e)
{
LogUtil.info(JName + "界面点击:" + btnClampRelax.Text);
clampJaw.Relax();
}
private void btnClampWork_Click(object sender, EventArgs e)
{
LogUtil.info(JName + "界面点击:" + btnClampRelax.Text);
clampJaw.Push();
}
}
}
<?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>
</root>
\ No newline at end of file
......@@ -33,9 +33,8 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\log4net.dll</HintPath>
<Reference Include="log4net, Version=2.0.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\..\packages\log4net.2.0.12\lib\net40\log4net.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\dll\Newtonsoft.Json.dll</HintPath>
......@@ -44,6 +43,7 @@
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
......@@ -72,6 +72,9 @@
<ItemGroup>
<WCFMetadata Include="Service References\" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
......
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.12" targetFramework="net40" />
</packages>
\ No newline at end of file
using log4net;

using System;
using System.Collections.Generic;
using System.IO.Ports;
......
......@@ -52,11 +52,14 @@
<Reference Include="halcondotnet">
<HintPath>..\..\dll\halcondotnet.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\log4net.dll</HintPath>
<Reference Include="log4net, Version=2.0.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\..\packages\log4net.2.0.12\lib\net45\log4net.dll</HintPath>
</Reference>
<Reference Include="Neotel.Rmaxis">
<HintPath>..\..\dll\Rmaxis\Neotel.Rmaxis.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
......@@ -71,8 +74,6 @@
<Compile Include="assemblyLine\FeedingEquip_OutStore.cs" />
<Compile Include="assemblyLine\HY\HYEquipBase.cs" />
<Compile Include="assemblyLine\HY\HY_C1_SLStation.cs" />
<Compile Include="assemblyLine\HY\HY_Coveryor.cs" />
<Compile Include="assemblyLine\HY\HY_Coveryor_Partial.cs" />
<Compile Include="assemblymanager\ALineManager.cs" />
<Compile Include="assemblyLine\FeedingEquip_InStore.cs" />
<Compile Include="assemblyLine\FeedingEquip.cs" />
......@@ -80,6 +81,7 @@
<Compile Include="assemblymanager\SServerManager.cs" />
<Compile Include="assemblymanager\TrayManager.cs" />
<Compile Include="baan\AxisBean.cs" />
<Compile Include="baan\ClampJawBean.cs" />
<Compile Include="baan\WaitUtil.cs" />
<Compile Include="deviceLibrary\AXIS\AxisManager.cs" />
<Compile Include="deviceLibrary\AXIS\HC\HCAxisManager.cs" />
......@@ -181,6 +183,10 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义
PRO,0,当多久没操作时流水线休眠(秒),Sleep_MSeconds,600,,
PRO,0,气压检测信号关闭需要持续的时间,AirCheckSeconds,600,,
PRO,0,IO信号超时时间(秒),IOSingle_TimerOut,15,,
,0,IO模块对应的DI数量,IO_DILength,,,
,0,模块对应的DO数量,IO_DOLength,,,
,,,,,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,3000,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,2000,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,2000,,
,,,,,,
PRO,0,D1移栽1-托盘-RFID-IP,PRO_RFIP_001,192.168.210.138,,
PRO,0,D1移栽2-托盘-RFID-IP,PRO_RFIP_002,192.168.210.139,,
PRO,0,D1移栽3-托盘-RFID-IP,PRO_RFIP_003,192.168.210.140,,
PRO,0,D1移栽4-托盘-RFID-IP,PRO_RFIP_004,192.168.210.141,,
PRO,0,D1移栽5-托盘-RFID-IP,PRO_RFIP_005,192.168.210.142,,
PRO,0,D1移栽6-托盘-RFID-IP,PRO_RFIP_006,192.168.210.143,,
PRO,0,横移-HY1-托盘-RFID-IP,PRO_RFIP_201,192.168.210.144,,
PRO,0,横移-HY2-托盘-RFID-IP,PRO_RFIP_202,192.168.210.145,,
PRO,0,横移-HY3-托盘-RFID-IP,PRO_RFIP_203,192.168.210.146,,
PRO,0,横移-HY4-托盘-RFID-IP,PRO_RFIP_204,192.168.210.147,,
PRO,0,横移-HY5-托盘-RFID-IP,PRO_RFIP_205,192.168.210.148,,
PRO,0,上料模块T1-料架-RFID-IP,PRO_RFIP_101,192.168.210.149,,
,,,,,,
,,,,,,
DI,0,急停,SuddenStop_BTN,0,HC,X00
DI,0,复位,Reset_BTN,1,HC,X01
DI,0,气压检测,Airpressure_Check,2,HC,X02
DI,7,D7阻挡1托盘检测,StopCheck1,3,HC,X03
DI,7,D7阻挡2托盘检测,StopCheck2,4,HC,X04
DI,7,D7顶升上升端,TopCylinder_Up,5,HC,X05
DI,7,D7顶升上升端,TopCylinder_Down,6,HC,X06
DI,7,D7横移前进端,BeforeAfterCylinder_Before,7,HC,X07
DI,7,D7横移后退端,BeforeAfterCylinder_After,8,HC,X08
DI,201,HY1横移前阻挡托盘检测,HY_FrontStopCheck,9,HC,X09
DI,201,HY1横移托盘检测,HY_TrayCheck,10,HC,X10
DI,201,HY1横移顶升上升端,HY_TopCylinder_Up,11,HC,X11
DI,201,HY1横移顶升下降端,HY_TopCylinder_Down,12,HC,X12
DI,202,HY2横移托盘检测,HY_TrayCheck,13,HC,X13
DI,202,HY2横移顶升上升端,HY_TopCylinder_Up,14,HC,X14
DI,202,HY2横移顶升下降端,HY_TopCylinder_Down,15,HC,X15
DI,202,HY2横移定位1上升端,HY_LocationCylinder_Up1,16,HC,X16
DI,202,HY2横移定位1下降端,HY_LocationCylinder_Down1,17,HC,X17
DI,202,HY2横移定位2上升端,HY_LocationCylinder_Up2,18,HC,X18
DI,202,HY2横移定位2下降端,HY_LocationCylinder_Down2,19,HC,X19
DI,1,D1阻挡1托盘检测,StopCheck1,20,HC,X20
DI,1,D1阻挡2托盘检测,StopCheck2,21,HC,X21
DI,1,D1顶升上升端,TopCylinder_Up,22,HC,X22
DI,1,D1顶升下降端,TopCylinder_Down,23,HC,X23
DI,1,D1横移前进端,BeforeAfterCylinder_Before,24,HC,X24
DI,1,D1横移后退端,BeforeAfterCylinder_After,25,HC,X25
DI,1,D1升降上升端,UpDownCylinder_Up,26,HC,X26
DI,1,D1升降下降端,UpDownCylinder_Down,27,HC,X27
DI,2,D2阻挡1托盘检测,StopCheck1,28,HC,X28
DI,2,D2阻挡2托盘检测,StopCheck2,29,HC,X29
DI,2,D2顶升上升端,TopCylinder_Up,30,HC,X30
DI,2,D2顶升下降端,TopCylinder_Down,31,HC,X31
DI,2,D2横移前进端,BeforeAfterCylinder_Before,32,HC,X32
DI,2,D2横移后退端,BeforeAfterCylinder_After,33,HC,X33
DI,2,D2升降上升端,UpDownCylinder_Up,34,HC,X34
DI,2,D2升降下降端,UpDownCylinder_Down,35,HC,X35
DI,3,D3阻挡1托盘检测,StopCheck1,36,HC,X36
DI,3,D3阻挡2托盘检测,StopCheck2,37,HC,X37
DI,3,D3顶升上升端,TopCylinder_Up,38,HC,X38
DI,3,D3顶升下降端,TopCylinder_Down,39,HC,X39
DI,3,D3横移前进端,BeforeAfterCylinder_Before,40,HC,X40
DI,3,D3横移后退端,BeforeAfterCylinder_After,41,HC,X41
DI,4,D4阻挡1托盘检测,StopCheck1,42,HC,X42
DI,4,D4阻挡2托盘检测,StopCheck2,43,HC,X43
DI,4,D4顶升上升端,TopCylinder_Up,44,HC,X44
DI,4,D4顶升下降端,TopCylinder_Down,45,HC,X45
DI,4,D4横移前进端,BeforeAfterCylinder_Before,46,HC,X46
DI,4,D4横移后退端,BeforeAfterCylinder_After,47,HC,X47
DI,203,HY3横移前阻挡托盘检测,HY_FrontStopCheck,48,HC,X48
DI,203,HY3横移托盘检测,HY_TrayCheck,49,HC,X49
DI,203,HY3横移顶升上升端,HY_TopCylinder_Up,50,HC,X50
DI,203,HY3横移顶升下降端,HY_TopCylinder_Down,51,HC,X51
DI,204,HY4横移托盘检测,HY_TrayCheck,52,HC,X52
DI,204,HY4横移顶升上升端,HY_TopCylinder_Up,53,HC,X53
DI,204,HY4横移顶升下降端,HY_TopCylinder_Down,54,HC,X54
DI,5,D5阻挡1托盘检测,StopCheck1,55,HC,X55
DI,5,D5阻挡2托盘检测,StopCheck2,56,HC,X56
DI,5,D5顶升上升端,TopCylinder_Up,57,HC,X57
DI,5,D5顶升下降端,TopCylinder_Down,58,HC,X58
DI,5,D5横移前进端,BeforeAfterCylinder_Before,59,HC,X59
DI,5,D5横移后退端,BeforeAfterCylinder_After,60,HC,X60
DI,6,D6阻挡1托盘检测,StopCheck1,61,HC,X61
DI,6,D6阻挡2托盘检测,StopCheck2,62,HC,X62
DI,6,D6顶升上升端,TopCylinder_Up,63,HC,X63
DI,6,D6顶升下降端,TopCylinder_Down,64,HC,X64
DI,6,D6横移前进端,BeforeAfterCylinder_Before,65,HC,X65
DI,6,D6横移后退端,BeforeAfterCylinder_After,66,HC,X66
,,,,67,HC,X67
,,,,68,HC,X68
,,,,69,HC,X69
,,,,70,HC,X70
,,,,71,HC,X71
,,,,72,HC,X72
,,,,73,HC,X73
,,,,74,HC,X74
,,,,75,HC,X75
,,,,76,HC,X76
,,,,77,HC,X77
,,,,78,HC,X78
,,,,79,HC,X79
DI,101,T1急停,SL_SuddenStop_BTN,80,HC,X80
DI,101,T1复位,SL_Reset_BTN,81,HC,X81
DI,101,T1入口检测,SL_Entry_Check,82,HC,X82
DI,101,T1阻挡检测,SL_Stop_Check,83,HC,X83
DI,101,T1定位工位检测,SL_Location_Check,84,HC,X84
DI,101,T1定位气缸1上升端,SL_LocationCylinder_Up1,85,HC,X85
DI,101,T1定位气缸1下降端,SL_LocationCylinder_Down1,86,HC,X86
DI,101,T1定位气缸2上升端,SL_LocationCylinder_Up2,87,HC,X87
DI,101,T1定位气缸2下降端,SL_LocationCylinder_Down2,88,HC,X88
DI,101,T1固定气缸1上升端,SL_FixedCylinder_Up1,89,HC,X89
DI,101,T1固定气缸2上升端,SL_FixedCylinder_Up2,90,HC,X90
DI,101,T1定位工位顶升上升端,SL_TopCylinder_Up,91,HC,X91
DI,101,T1定位工位顶升下降端,SL_TopCylinder_Down,92,HC,X92
DI,101,T1出口顶升上升端,SL_OutTopCylinder_Up,93,HC,X93
DI,101,T1出口顶升下降端,SL_OutTopCylinder_Down,94,HC,X94
DI,101,T1出口检测,SL_Out_Check,95,HC,X95
DI,101,T1托盘定位气缸1前进端,SL_TrayLocation1_Before,96,HC,X96
DI,101,T1托盘定位气缸1后退端,SL_TrayLocation1_After,97,HC,X97
DI,101,T1托盘定位气缸2前进端,SL_TrayLocation2_Before,98,HC,X98
DI,101,T1托盘定位气缸2后退端,SL_TrayLocation2_After,99,HC,X99
DI,101,T1料盘检测7寸,SL_TrayCheck1,100,HC,X100
DI,101,T1料盘检测11寸,SL_TrayCheck2,101,HC,X101
DI,101,T1料盘检测13寸,SL_TrayCheck3,102,HC,X102
DI,101,T1料盘检测15寸,SL_TrayCheck4,103,HC,X103
DI,101,T1伺服定位料盘检测,SL_AxisLocationCheck,104,HC,X104
DI,101,T1上料横移气缸取料端,SL_MoveCylinder_Take,105,HC,X105
DI,101,T1上料横移气缸放料端,SL_MoveCylinder_Give,106,HC,X106
,,,,107,HC,X107
,,,,108,HC,X108
,,,,109,HC,X109
,,,,110,HC,X110
,,,,111,HC,X111
,,,,,,
DO,0,待机状态(指示灯),AutoRun_HddLed,0,HC,Y00
DO,0,运行状态(指示灯),RunSign_HddLed,1,HC,Y01
DO,0,故障状态(指示灯),Alarm_HddLed,2,HC,Y02
DO,0,故障状态(蜂鸣器),Alarm_Buzzer,3,HC,Y03
DO,201,HY1横移电机正转,HY_LineRun,4,HC,Y04
DO,202,HY2横移电机正转,HY_LineRun,5,HC,Y05
DO,203,HY3横移电机正转,HY_LineRun,6,HC,Y06
DO,204,HY4横移电机正转,HY_LineRun,7,HC,Y07
DO,0,C1线体运转,MotorRun_C1,8,HC,Y08
DO,7,D7阻挡1下降,StopDown1,9,HC,Y09
DO,7,D7阻挡2下降,StopDown2,10,HC,Y10
DO,7,D7顶升上升,TopCylinder_Up,11,HC,Y11
DO,7,D7顶升上升,TopCylinder_Down,12,HC,Y12
DO,7,D7横移前进,BeforeAfterCylinder_Before,13,HC,Y13
DO,7,D7横移后退,BeforeAfterCylinder_After,14,HC,Y14
DO,201,HY1前阻挡下降,HY_FrontStopDown,15,HC,Y15
DO,201,HY1横移顶升上升,HY_TopCylinder_Up,16,HC,Y16
DO,201,HY1横移顶升下降,HY_TopCylinder_Down,17,HC,Y17
DO,202,HY2横移顶升上升,HY_TopCylinder_Up,18,HC,Y18
DO,202,HY2横移顶升下降,HY_TopCylinder_Down,19,HC,Y19
DO,202,HY2横移定位上升,HY_LocationCylinder_Up,20,HC,Y20
DO,202,HY2横移定位下降,HY_LocationCylinder_Down,21,HC,Y21
DO,1,D1阻挡1下降,StopDown1,22,HC,Y22
DO,1,D1阻挡2下降,StopDown2,23,HC,Y23
DO,1,D1顶升上升,TopCylinder_Up,24,HC,Y24
DO,1,D1顶升下降,TopCylinder_Down,25,HC,Y25
DO,1,D1横移前进,BeforeAfterCylinder_Before,26,HC,Y26
DO,1,D1横移后退,BeforeAfterCylinder_After,27,HC,Y27
DO,1,D1升降上升,UpDownCylinder_Up,28,HC,Y28
DO,1,D1升降下降,UpDownCylinder_Down,29,HC,Y29
DO,2,D2阻挡1下降,StopDown1,30,HC,Y30
DO,2,D2阻挡2下降,StopDown2,31,HC,Y31
DO,2,D2顶升上升,TopCylinder_Up,32,HC,Y32
DO,2,D2顶升下降,TopCylinder_Down,33,HC,Y33
DO,2,D2横移前进,BeforeAfterCylinder_Before,34,HC,Y34
DO,2,D2横移后退,BeforeAfterCylinder_After,35,HC,Y35
DO,2,D2升降上升,UpDownCylinder_Up,36,HC,Y36
DO,2,D2升降下降,UpDownCylinder_Down,37,HC,Y37
DO,3,D3阻挡1下降,StopDown1,38,HC,Y38
DO,3,D3阻挡2下降,StopDown2,39,HC,Y39
DO,3,D3顶升上升,TopCylinder_Up,40,HC,Y40
DO,3,D3顶升下降,TopCylinder_Down,41,HC,Y41
DO,3,D3横移前进,BeforeAfterCylinder_Before,42,HC,Y42
DO,3,D3横移后退,BeforeAfterCylinder_After,43,HC,Y43
DO,4,D4阻挡1下降,StopDown1,44,HC,Y44
DO,4,D4阻挡2下降,StopDown2,45,HC,Y45
DO,4,D4顶升上升,TopCylinder_Up,46,HC,Y46
DO,4,D4顶升下降,TopCylinder_Down,47,HC,Y47
DO,4,D4横移前进,BeforeAfterCylinder_Before,48,HC,Y48
DO,4,D4横移后退,BeforeAfterCylinder_After,49,HC,Y49
DO,203,HY3前阻挡下降,HY_FrontStopDown,50,HC,Y50
DO,203,HY3横移顶升上升,HY_TopCylinder_Up,51,HC,Y51
DO,203,HY3横移顶升下降,HY_TopCylinder_Down,52,HC,Y52
DO,204,HY4横移顶升上升,HY_TopCylinder_Up,53,HC,Y53
DO,204,HY4横移顶升下降,HY_TopCylinder_Down,54,HC,Y54
DO,5,D5阻挡1下降,StopDown1,55,HC,Y55
DO,5,D5阻挡2下降,StopDown2,56,HC,Y56
DO,5,D5顶升上升,TopCylinder_Up,57,HC,Y57
DO,5,D5顶升下降,TopCylinder_Down,58,HC,Y58
DO,5,D5横移前进,BeforeAfterCylinder_Before,59,HC,Y59
DO,5,D5横移后退,BeforeAfterCylinder_After,60,HC,Y60
DO,6,D6阻挡1下降,StopDown1,61,HC,Y61
DO,6,D6阻挡2下降,StopDown2,62,HC,Y62
DO,6,D6顶升上升,TopCylinder_Up,63,HC,Y63
DO,6,D6顶升下降,TopCylinder_Down,64,HC,Y64
DO,6,D6横移前进,BeforeAfterCylinder_Before,65,HC,Y65
DO,6,D6横移后退,BeforeAfterCylinder_After,66,HC,Y66
,,,,67,HC,Y67
,,,,68,HC,Y68
,,,,69,HC,Y69
,,,,70,HC,Y70
,,,,71,HC,Y71
,,,,72,HC,Y72
,,,,73,HC,Y73
,,,,74,HC,Y74
,,,,75,HC,Y75
,,,,76,HC,Y76
,,,,77,HC,Y77
,,,,78,HC,Y78
,,,,79,HC,Y79
DO,101,T1运行指示灯,SL_HddLed,80,HC,Y80
DO,101,T1故障指示灯,SL_AlarmLed,81,HC,Y81
DO,101,T1线体定位横移电机运转,SL_LocationSideWay_Run,82,HC,Y82
DO,101,T1线体出口横移电机运转,SL_OutSideWay_Run,83,HC,Y83
DO,101,T1进料线体运转,SL_Line_Run,84,HC,Y84
DO,101,T1进料阻挡下降,SL_Entry_StopDown,85,HC,Y85
DO,101,T1定位工位缓冲阻挡,SL_Buffer_StopDown,86,HC,Y86
DO,101,T1出口阻挡下降,SL_Out_StopDown,87,HC,Y87
DO,101,T1定位气缸上升,SL_LocationCylinder_Up,88,HC,Y88
DO,101,T1定位气缸下降 ,SL_LocationCylinder_Down,89,HC,Y89
DO,101,T1固定气缸上升,SL_FixedCylinder_Up,90,HC,Y90
DO,101,T1固定气缸下降,SL_FixedCylinder_Down,91,HC,Y91
DO,101,T1顶升上升,SL_TopCylinder_Up,92,HC,Y92
DO,101,T1顶升下降,SL_TopCylinder_Down,93,HC,Y93
DO,101,T1上料横移气缸取料,SL_MoveCylinder_Take,94,HC,Y94
DO,101,T1上料横移气缸放料,SL_MoveCylinder_Give,95,HC,Y95
DO,101,T1托盘定位气缸前进,SL_TrayLocation_Before,96,HC,Y96
DO,101,T1托盘定位气缸后退,SL_TrayLocation_After,97,HC,Y97
,,,,98,HC,Y98
,,,,99,HC,Y99
,,,,100,HC,Y100
,,,,101,HC,Y101
,,,,102,HC,Y102
,,,,103,HC,Y103
,,,,104,HC,Y104
,,,,105,HC,Y105
,,,,106,HC,Y106
,,,,107,HC,Y107
,,,,108,HC,Y108
,,,,109,HC,Y109
,,,,110,HC,Y110
,,,,111,HC,Y111
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,出力,距离
CLAW,1,移栽D1_夹爪,CLAW_D1,0,COM1,,500,500,500,30,7
CLAW,2,移栽D2_夹爪,CLAW_D2,1,COM1,,500,500,500,30,7
CLAW,3,移栽D3_夹爪,CLAW_D3,2,COM1,,500,500,500,30,7
CLAW,4,移栽D4_夹爪,CLAW_D4,3,COM1,,500,500,500,30,7
CLAW,5,移栽D5_夹爪,CLAW_D5,0,COM2,,500,500,500,30,7
CLAW,6,移栽D6_夹爪,CLAW_D6,1,COM2,,500,500,500,30,7
CLAW,7,移栽D7_夹爪,CLAW_D7,2,COM2,,500,500,500,30,7
CLAW,101,上料模块T1夹爪,CLAW_T1,3,COM2,,500,500,500,30,7
,,,,,,,,,,,
,,,,,,,,,,,
,,,,,,,,,,,
,,,,,,,,,,,
PRO,0,当多久没操作时流水线休眠(秒),Sleep_MSeconds,600,,,,,,,
PRO,0,气压检测信号关闭需要持续的时间,AirCheckSeconds,600,,,,,,,
PRO,0,IO信号超时时间(秒),IOSingle_TimerOut,15,,,,,,,
,0,IO模块对应的DI数量,IO_DILength,,,,,,,,
,0,模块对应的DO数量,IO_DOLength,,,,,,,,
,,,,,,,,,,,
PRO,0,移栽上下轴P1速度,UpdownAxis_P1Speed,3000,,,,,,,
PRO,0,移栽上下轴P2速度,UpdownAxis_P2Speed,2000,,,,,,,
PRO,0,移栽上下轴P3速度,UpdownAxis_P3Speed,2000,,,,,,,
,,,,,,,,,,,
PRO,0,D1移栽1-托盘-RFID-IP,PRO_RFIP_001,192.168.210.138,,,,,,,
PRO,0,D1移栽2-托盘-RFID-IP,PRO_RFIP_002,192.168.210.139,,,,,,,
PRO,0,D1移栽3-托盘-RFID-IP,PRO_RFIP_003,192.168.210.140,,,,,,,
PRO,0,D1移栽4-托盘-RFID-IP,PRO_RFIP_004,192.168.210.141,,,,,,,
PRO,0,D1移栽5-托盘-RFID-IP,PRO_RFIP_005,192.168.210.142,,,,,,,
PRO,0,D1移栽6-托盘-RFID-IP,PRO_RFIP_006,192.168.210.143,,,,,,,
PRO,0,横移-HY1-托盘-RFID-IP,PRO_RFIP_201,192.168.210.144,,,,,,,
PRO,0,横移-HY2-托盘-RFID-IP,PRO_RFIP_202,192.168.210.145,,,,,,,
PRO,0,横移-HY3-托盘-RFID-IP,PRO_RFIP_203,192.168.210.146,,,,,,,
PRO,0,横移-HY4-托盘-RFID-IP,PRO_RFIP_204,192.168.210.147,,,,,,,
PRO,0,横移-HY5-托盘-RFID-IP,PRO_RFIP_205,192.168.210.148,,,,,,,
PRO,0,上料模块T1-料架-RFID-IP,PRO_RFIP_101,192.168.210.149,,,,,,,
,,,,,,,,,,,
,,,,,,,,,,,
DI,0,急停,SuddenStop_BTN,0,HC,X00,,,,,
DI,0,复位,Reset_BTN,1,HC,X01,,,,,
DI,0,气压检测,Airpressure_Check,2,HC,X02,,,,,
DI,7,D7阻挡1托盘检测,StopCheck1,3,HC,X03,,,,,
DI,7,D7阻挡2托盘检测,StopCheck2,4,HC,X04,,,,,
DI,7,D7顶升上升端,TopCylinder_Up,5,HC,X05,,,,,
DI,7,D7顶升上升端,TopCylinder_Down,6,HC,X06,,,,,
DI,7,D7横移前进端,BeforeAfterCylinder_Before,7,HC,X07,,,,,
DI,7,D7横移后退端,BeforeAfterCylinder_After,8,HC,X08,,,,,
DI,201,HY1横移前阻挡托盘检测,HY_FrontStopCheck,9,HC,X09,,,,,
DI,201,HY1横移托盘检测,HY_TrayCheck,10,HC,X10,,,,,
DI,201,HY1横移顶升上升端,HY_TopCylinder_Up,11,HC,X11,,,,,
DI,201,HY1横移顶升下降端,HY_TopCylinder_Down,12,HC,X12,,,,,
DI,202,HY2横移托盘检测,HY_TrayCheck,13,HC,X13,,,,,
DI,202,HY2横移顶升上升端,HY_TopCylinder_Up,14,HC,X14,,,,,
DI,202,HY2横移顶升下降端,HY_TopCylinder_Down,15,HC,X15,,,,,
DI,202,HY2横移定位1上升端,HY_LocationCylinder_Up1,16,HC,X16,,,,,
DI,202,HY2横移定位1下降端,HY_LocationCylinder_Down1,17,HC,X17,,,,,
DI,202,HY2横移定位2上升端,HY_LocationCylinder_Up2,18,HC,X18,,,,,
DI,202,HY2横移定位2下降端,HY_LocationCylinder_Down2,19,HC,X19,,,,,
DI,1,D1阻挡1托盘检测,StopCheck1,20,HC,X20,,,,,
DI,1,D1阻挡2托盘检测,StopCheck2,21,HC,X21,,,,,
DI,1,D1顶升上升端,TopCylinder_Up,22,HC,X22,,,,,
DI,1,D1顶升下降端,TopCylinder_Down,23,HC,X23,,,,,
DI,1,D1横移前进端,BeforeAfterCylinder_Before,24,HC,X24,,,,,
DI,1,D1横移后退端,BeforeAfterCylinder_After,25,HC,X25,,,,,
DI,1,D1升降上升端,UpDownCylinder_Up,26,HC,X26,,,,,
DI,1,D1升降下降端,UpDownCylinder_Down,27,HC,X27,,,,,
DI,2,D2阻挡1托盘检测,StopCheck1,28,HC,X28,,,,,
DI,2,D2阻挡2托盘检测,StopCheck2,29,HC,X29,,,,,
DI,2,D2顶升上升端,TopCylinder_Up,30,HC,X30,,,,,
DI,2,D2顶升下降端,TopCylinder_Down,31,HC,X31,,,,,
DI,2,D2横移前进端,BeforeAfterCylinder_Before,32,HC,X32,,,,,
DI,2,D2横移后退端,BeforeAfterCylinder_After,33,HC,X33,,,,,
DI,2,D2升降上升端,UpDownCylinder_Up,34,HC,X34,,,,,
DI,2,D2升降下降端,UpDownCylinder_Down,35,HC,X35,,,,,
DI,3,D3阻挡1托盘检测,StopCheck1,36,HC,X36,,,,,
DI,3,D3阻挡2托盘检测,StopCheck2,37,HC,X37,,,,,
DI,3,D3顶升上升端,TopCylinder_Up,38,HC,X38,,,,,
DI,3,D3顶升下降端,TopCylinder_Down,39,HC,X39,,,,,
DI,3,D3横移前进端,BeforeAfterCylinder_Before,40,HC,X40,,,,,
DI,3,D3横移后退端,BeforeAfterCylinder_After,41,HC,X41,,,,,
DI,4,D4阻挡1托盘检测,StopCheck1,42,HC,X42,,,,,
DI,4,D4阻挡2托盘检测,StopCheck2,43,HC,X43,,,,,
DI,4,D4顶升上升端,TopCylinder_Up,44,HC,X44,,,,,
DI,4,D4顶升下降端,TopCylinder_Down,45,HC,X45,,,,,
DI,4,D4横移前进端,BeforeAfterCylinder_Before,46,HC,X46,,,,,
DI,4,D4横移后退端,BeforeAfterCylinder_After,47,HC,X47,,,,,
DI,203,HY3横移前阻挡托盘检测,HY_FrontStopCheck,48,HC,X48,,,,,
DI,203,HY3横移托盘检测,HY_TrayCheck,49,HC,X49,,,,,
DI,203,HY3横移顶升上升端,HY_TopCylinder_Up,50,HC,X50,,,,,
DI,203,HY3横移顶升下降端,HY_TopCylinder_Down,51,HC,X51,,,,,
DI,204,HY4横移托盘检测,HY_TrayCheck,52,HC,X52,,,,,
DI,204,HY4横移顶升上升端,HY_TopCylinder_Up,53,HC,X53,,,,,
DI,204,HY4横移顶升下降端,HY_TopCylinder_Down,54,HC,X54,,,,,
DI,5,D5阻挡1托盘检测,StopCheck1,55,HC,X55,,,,,
DI,5,D5阻挡2托盘检测,StopCheck2,56,HC,X56,,,,,
DI,5,D5顶升上升端,TopCylinder_Up,57,HC,X57,,,,,
DI,5,D5顶升下降端,TopCylinder_Down,58,HC,X58,,,,,
DI,5,D5横移前进端,BeforeAfterCylinder_Before,59,HC,X59,,,,,
DI,5,D5横移后退端,BeforeAfterCylinder_After,60,HC,X60,,,,,
DI,6,D6阻挡1托盘检测,StopCheck1,61,HC,X61,,,,,
DI,6,D6阻挡2托盘检测,StopCheck2,62,HC,X62,,,,,
DI,6,D6顶升上升端,TopCylinder_Up,63,HC,X63,,,,,
DI,6,D6顶升下降端,TopCylinder_Down,64,HC,X64,,,,,
DI,6,D6横移前进端,BeforeAfterCylinder_Before,65,HC,X65,,,,,
DI,6,D6横移后退端,BeforeAfterCylinder_After,66,HC,X66,,,,,
,,,,67,HC,X67,,,,,
,,,,68,HC,X68,,,,,
,,,,69,HC,X69,,,,,
,,,,70,HC,X70,,,,,
,,,,71,HC,X71,,,,,
,,,,72,HC,X72,,,,,
,,,,73,HC,X73,,,,,
,,,,74,HC,X74,,,,,
,,,,75,HC,X75,,,,,
,,,,76,HC,X76,,,,,
,,,,77,HC,X77,,,,,
,,,,78,HC,X78,,,,,
,,,,79,HC,X79,,,,,
DI,101,T1急停,SL_SuddenStop_BTN,80,HC,X80,,,,,
DI,101,T1复位,SL_Reset_BTN,81,HC,X81,,,,,
DI,101,T1入口检测,SL_Entry_Check,82,HC,X82,,,,,
DI,101,T1阻挡检测,SL_Stop_Check,83,HC,X83,,,,,
DI,101,T1定位工位检测,SL_Location_Check,84,HC,X84,,,,,
DI,101,T1定位气缸1上升端,SL_LocationCylinder_Up1,85,HC,X85,,,,,
DI,101,T1定位气缸1下降端,SL_LocationCylinder_Down1,86,HC,X86,,,,,
DI,101,T1定位气缸2上升端,SL_LocationCylinder_Up2,87,HC,X87,,,,,
DI,101,T1定位气缸2下降端,SL_LocationCylinder_Down2,88,HC,X88,,,,,
DI,101,T1固定气缸1上升端,SL_FixedCylinder_Up1,89,HC,X89,,,,,
DI,101,T1固定气缸2上升端,SL_FixedCylinder_Up2,90,HC,X90,,,,,
DI,101,T1定位工位顶升上升端,SL_TopCylinder_Up,91,HC,X91,,,,,
DI,101,T1定位工位顶升下降端,SL_TopCylinder_Down,92,HC,X92,,,,,
DI,101,T1出口顶升上升端,SL_OutTopCylinder_Up,93,HC,X93,,,,,
DI,101,T1出口顶升下降端,SL_OutTopCylinder_Down,94,HC,X94,,,,,
DI,101,T1出口检测,SL_Out_Check,95,HC,X95,,,,,
DI,101,T1托盘定位气缸1前进端,SL_TrayLocation1_Before,96,HC,X96,,,,,
DI,101,T1托盘定位气缸1后退端,SL_TrayLocation1_After,97,HC,X97,,,,,
DI,101,T1托盘定位气缸2前进端,SL_TrayLocation2_Before,98,HC,X98,,,,,
DI,101,T1托盘定位气缸2后退端,SL_TrayLocation2_After,99,HC,X99,,,,,
DI,101,T1料盘检测7寸,SL_TrayCheck1,100,HC,X100,,,,,
DI,101,T1料盘检测11寸,SL_TrayCheck2,101,HC,X101,,,,,
DI,101,T1料盘检测13寸,SL_TrayCheck3,102,HC,X102,,,,,
DI,101,T1料盘检测15寸,SL_TrayCheck4,103,HC,X103,,,,,
DI,101,T1伺服定位料盘检测,SL_AxisLocationCheck,104,HC,X104,,,,,
DI,101,T1上料横移气缸取料端,SL_MoveCylinder_Take,105,HC,X105,,,,,
DI,101,T1上料横移气缸放料端,SL_MoveCylinder_Give,106,HC,X106,,,,,
,,,,107,HC,X107,,,,,
,,,,108,HC,X108,,,,,
,,,,109,HC,X109,,,,,
,,,,110,HC,X110,,,,,
,,,,111,HC,X111,,,,,
,,,,,,,,,,,
DO,0,待机状态(指示灯),AutoRun_HddLed,0,HC,Y00,,,,,
DO,0,运行状态(指示灯),RunSign_HddLed,1,HC,Y01,,,,,
DO,0,故障状态(指示灯),Alarm_HddLed,2,HC,Y02,,,,,
DO,0,故障状态(蜂鸣器),Alarm_Buzzer,3,HC,Y03,,,,,
DO,201,HY1横移电机正转,HY_LineRun,4,HC,Y04,,,,,
DO,202,HY2横移电机正转,HY_LineRun,5,HC,Y05,,,,,
DO,203,HY3横移电机正转,HY_LineRun,6,HC,Y06,,,,,
DO,204,HY4横移电机正转,HY_LineRun,7,HC,Y07,,,,,
DO,0,C1线体运转,MotorRun_C1,8,HC,Y08,,,,,
DO,7,D7阻挡1下降,StopDown1,9,HC,Y09,,,,,
DO,7,D7阻挡2下降,StopDown2,10,HC,Y10,,,,,
DO,7,D7顶升上升,TopCylinder_Up,11,HC,Y11,,,,,
DO,7,D7顶升上升,TopCylinder_Down,12,HC,Y12,,,,,
DO,7,D7横移前进,BeforeAfterCylinder_Before,13,HC,Y13,,,,,
DO,7,D7横移后退,BeforeAfterCylinder_After,14,HC,Y14,,,,,
DO,201,HY1前阻挡下降,HY_FrontStopDown,15,HC,Y15,,,,,
DO,201,HY1横移顶升上升,HY_TopCylinder_Up,16,HC,Y16,,,,,
DO,201,HY1横移顶升下降,HY_TopCylinder_Down,17,HC,Y17,,,,,
DO,202,HY2横移顶升上升,HY_TopCylinder_Up,18,HC,Y18,,,,,
DO,202,HY2横移顶升下降,HY_TopCylinder_Down,19,HC,Y19,,,,,
DO,202,HY2横移定位上升,HY_LocationCylinder_Up,20,HC,Y20,,,,,
DO,202,HY2横移定位下降,HY_LocationCylinder_Down,21,HC,Y21,,,,,
DO,1,D1阻挡1下降,StopDown1,22,HC,Y22,,,,,
DO,1,D1阻挡2下降,StopDown2,23,HC,Y23,,,,,
DO,1,D1顶升上升,TopCylinder_Up,24,HC,Y24,,,,,
DO,1,D1顶升下降,TopCylinder_Down,25,HC,Y25,,,,,
DO,1,D1横移前进,BeforeAfterCylinder_Before,26,HC,Y26,,,,,
DO,1,D1横移后退,BeforeAfterCylinder_After,27,HC,Y27,,,,,
DO,1,D1升降上升,UpDownCylinder_Up,28,HC,Y28,,,,,
DO,1,D1升降下降,UpDownCylinder_Down,29,HC,Y29,,,,,
DO,2,D2阻挡1下降,StopDown1,30,HC,Y30,,,,,
DO,2,D2阻挡2下降,StopDown2,31,HC,Y31,,,,,
DO,2,D2顶升上升,TopCylinder_Up,32,HC,Y32,,,,,
DO,2,D2顶升下降,TopCylinder_Down,33,HC,Y33,,,,,
DO,2,D2横移前进,BeforeAfterCylinder_Before,34,HC,Y34,,,,,
DO,2,D2横移后退,BeforeAfterCylinder_After,35,HC,Y35,,,,,
DO,2,D2升降上升,UpDownCylinder_Up,36,HC,Y36,,,,,
DO,2,D2升降下降,UpDownCylinder_Down,37,HC,Y37,,,,,
DO,3,D3阻挡1下降,StopDown1,38,HC,Y38,,,,,
DO,3,D3阻挡2下降,StopDown2,39,HC,Y39,,,,,
DO,3,D3顶升上升,TopCylinder_Up,40,HC,Y40,,,,,
DO,3,D3顶升下降,TopCylinder_Down,41,HC,Y41,,,,,
DO,3,D3横移前进,BeforeAfterCylinder_Before,42,HC,Y42,,,,,
DO,3,D3横移后退,BeforeAfterCylinder_After,43,HC,Y43,,,,,
DO,4,D4阻挡1下降,StopDown1,44,HC,Y44,,,,,
DO,4,D4阻挡2下降,StopDown2,45,HC,Y45,,,,,
DO,4,D4顶升上升,TopCylinder_Up,46,HC,Y46,,,,,
DO,4,D4顶升下降,TopCylinder_Down,47,HC,Y47,,,,,
DO,4,D4横移前进,BeforeAfterCylinder_Before,48,HC,Y48,,,,,
DO,4,D4横移后退,BeforeAfterCylinder_After,49,HC,Y49,,,,,
DO,203,HY3前阻挡下降,HY_FrontStopDown,50,HC,Y50,,,,,
DO,203,HY3横移顶升上升,HY_TopCylinder_Up,51,HC,Y51,,,,,
DO,203,HY3横移顶升下降,HY_TopCylinder_Down,52,HC,Y52,,,,,
DO,204,HY4横移顶升上升,HY_TopCylinder_Up,53,HC,Y53,,,,,
DO,204,HY4横移顶升下降,HY_TopCylinder_Down,54,HC,Y54,,,,,
DO,5,D5阻挡1下降,StopDown1,55,HC,Y55,,,,,
DO,5,D5阻挡2下降,StopDown2,56,HC,Y56,,,,,
DO,5,D5顶升上升,TopCylinder_Up,57,HC,Y57,,,,,
DO,5,D5顶升下降,TopCylinder_Down,58,HC,Y58,,,,,
DO,5,D5横移前进,BeforeAfterCylinder_Before,59,HC,Y59,,,,,
DO,5,D5横移后退,BeforeAfterCylinder_After,60,HC,Y60,,,,,
DO,6,D6阻挡1下降,StopDown1,61,HC,Y61,,,,,
DO,6,D6阻挡2下降,StopDown2,62,HC,Y62,,,,,
DO,6,D6顶升上升,TopCylinder_Up,63,HC,Y63,,,,,
DO,6,D6顶升下降,TopCylinder_Down,64,HC,Y64,,,,,
DO,6,D6横移前进,BeforeAfterCylinder_Before,65,HC,Y65,,,,,
DO,6,D6横移后退,BeforeAfterCylinder_After,66,HC,Y66,,,,,
,,,,67,HC,Y67,,,,,
,,,,68,HC,Y68,,,,,
,,,,69,HC,Y69,,,,,
,,,,70,HC,Y70,,,,,
,,,,71,HC,Y71,,,,,
,,,,72,HC,Y72,,,,,
,,,,73,HC,Y73,,,,,
,,,,74,HC,Y74,,,,,
,,,,75,HC,Y75,,,,,
,,,,76,HC,Y76,,,,,
,,,,77,HC,Y77,,,,,
,,,,78,HC,Y78,,,,,
,,,,79,HC,Y79,,,,,
DO,101,T1运行指示灯,SL_HddLed,80,HC,Y80,,,,,
DO,101,T1故障指示灯,SL_AlarmLed,81,HC,Y81,,,,,
DO,101,T1线体定位横移电机运转,SL_LocationSideWay_Run,82,HC,Y82,,,,,
DO,101,T1线体出口横移电机运转,SL_OutSideWay_Run,83,HC,Y83,,,,,
DO,101,T1进料线体运转,SL_Line_Run,84,HC,Y84,,,,,
DO,101,T1进料阻挡下降,SL_Entry_StopDown,85,HC,Y85,,,,,
DO,101,T1定位工位缓冲阻挡,SL_Buffer_StopDown,86,HC,Y86,,,,,
DO,101,T1出口阻挡下降,SL_Out_StopDown,87,HC,Y87,,,,,
DO,101,T1定位气缸上升,SL_LocationCylinder_Up,88,HC,Y88,,,,,
DO,101,T1定位气缸下降 ,SL_LocationCylinder_Down,89,HC,Y89,,,,,
DO,101,T1固定气缸上升,SL_FixedCylinder_Up,90,HC,Y90,,,,,
DO,101,T1固定气缸下降,SL_FixedCylinder_Down,91,HC,Y91,,,,,
DO,101,T1顶升上升,SL_TopCylinder_Up,92,HC,Y92,,,,,
DO,101,T1顶升下降,SL_TopCylinder_Down,93,HC,Y93,,,,,
DO,101,T1上料横移气缸取料,SL_MoveCylinder_Take,94,HC,Y94,,,,,
DO,101,T1上料横移气缸放料,SL_MoveCylinder_Give,95,HC,Y95,,,,,
DO,101,T1托盘定位气缸前进,SL_TrayLocation_Before,96,HC,Y96,,,,,
DO,101,T1托盘定位气缸后退,SL_TrayLocation_After,97,HC,Y97,,,,,
,,,,98,HC,Y98,,,,,
,,,,99,HC,Y99,,,,,
,,,,100,HC,Y100,,,,,
,,,,101,HC,Y101,,,,,
,,,,102,HC,Y102,,,,,
,,,,103,HC,Y103,,,,,
,,,,104,HC,Y104,,,,,
,,,,105,HC,Y105,,,,,
,,,,106,HC,Y106,,,,,
,,,,107,HC,Y107,,,,,
,,,,108,HC,Y108,,,,,
,,,,109,HC,Y109,,,,,
,,,,110,HC,Y110,,,,,
,,,,111,HC,Y111,,,,,
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.12.0" newVersion="2.0.12.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
......@@ -21,7 +21,8 @@ namespace OnlineStore.DeviceLibrary
public bool OutEndSendShelfOut = false;
public AxisBean BatchAxis = null;
public bool HasOutLine = false;//是否有出料线体,T3和T4
public FeedingEquip(string cid, FeedingEquip_Config config)
public ClampJawBean ClampJwa = null;
public FeedingEquip(string cid, FeedingEquip_Config config, ConfigClampJaw jawconfig)
{
this.DeviceID = config.Id;
baseConfig = config;
......@@ -38,6 +39,7 @@ namespace OnlineStore.DeviceLibrary
Init();
UseAxis = true;
ClampJwa = new ClampJawBean(jawconfig);
UpdownAxis = new AxisBean(config.UpDown_Axis, Name);
BatchAxis = new AxisBean(config.Batch_Axis, Name);
MoveInfo = new LineMoveInfo(DeviceID, "[" + Name.Trim() + "-Move]");
......@@ -128,8 +130,9 @@ namespace OnlineStore.DeviceLibrary
IOMove(IO_Type.SL_Buffer_StopDown, IO_VALUE.LOW);
IOMove(IO_Type.SL_Out_StopDown, IO_VALUE.LOW);
//夹紧气缸放松
CylinderMove(null, IO_Type.SL_ClampCylinder_Work, IO_Type.SL_ClampCylinder_Relax);
//CylinderMove(null, IO_Type.SL_ClampCylinder_Work, IO_Type.SL_ClampCylinder_Relax);
ClampJwa.Relax();
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_Entry_StopDown, IO_VALUE.LOW));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_Buffer_StopDown, IO_VALUE.LOW));
......@@ -238,8 +241,8 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.NextMoveStep(LineMoveStep.FR_15_TopDown);
LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ": 定位气缸下降 ,夹紧气缸放松");
LocationCylinderDown(MoveInfo);
//CylinderMove(MoveInfo, IO_Type.SL_OutTopCylinder_Up, IO_Type.SL_OutTopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.SL_ClampCylinder_Work, IO_Type.SL_ClampCylinder_Relax);
//CylinderMove(MoveInfo, IO_Type.SL_ClampCylinder_Work, IO_Type.SL_ClampCylinder_Relax);
ClampJwa.Relax(MoveInfo);
break;
case LineMoveStep.FR_15_TopDown:
RFIDData data = RFIDManager.GetShelfId(DeviceID);
......@@ -276,12 +279,12 @@ namespace OnlineStore.DeviceLibrary
}
break;
case LineMoveStep.FR_17_BatchAxisToP1:
MoveInfo.NextMoveStep(LineMoveStep.FR_18_ClampCheck);
DebugInfo(MoveInfo.MoveType + " : 等待夹爪料盘检测信号无料");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.LOW));
break;
// MoveInfo.NextMoveStep(LineMoveStep.FR_18_ClampCheck);
// DebugInfo(MoveInfo.MoveType + " : 等待夹爪料盘检测信号无料");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.LOW));
// break;
case LineMoveStep.FR_18_ClampCheck:
//case LineMoveStep.FR_18_ClampCheck:
LogInfo("重置完成!");
MoveEndS();
......
......@@ -371,7 +371,8 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FI_23_CylinderTighten);
InLog("料盘移栽" + MoveInfo.SLog + ":上料横移机构夹紧");
CylinderMove(MoveInfo, IO_Type.SL_ClampCylinder_Relax, IO_Type.SL_ClampCylinder_Work);
//CylinderMove(MoveInfo, IO_Type.SL_ClampCylinder_Relax, IO_Type.SL_ClampCylinder_Work);
ClampJwa.Push(MoveInfo);
}
else if (MoveInfo.IsStep(LineMoveStep.FI_23_CylinderTighten))
{
......@@ -384,8 +385,8 @@ namespace OnlineStore.DeviceLibrary
if (UpdownIsInP1())
{
MoveInfo.NextMoveStep(LineMoveStep.FI_25_CheckTray);
InLog("料盘移栽" + MoveInfo.SLog + ":等待 SL_ClampCylinder_Check=HIGH,SL_AxisLocationCheck=LOW");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.HIGH));
InLog("料盘移栽" + MoveInfo.SLog + ":等待 SL_AxisLocationCheck=LOW");
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.HIGH));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_AxisLocationCheck, IO_VALUE.LOW));
}
else
......@@ -547,7 +548,8 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FI_34_CylinderRelax);
InLog("料盘移栽" + MoveInfo.SLog + ":上料气缸放松");
CylinderMove(MoveInfo, IO_Type.SL_ClampCylinder_Work, IO_Type.SL_ClampCylinder_Relax);
//CylinderMove(MoveInfo, IO_Type.SL_ClampCylinder_Work, IO_Type.SL_ClampCylinder_Relax);
ClampJwa.Relax(MoveInfo);
}
else if (MoveInfo.IsStep(LineMoveStep.FI_34_CylinderRelax))
{
......@@ -567,22 +569,22 @@ namespace OnlineStore.DeviceLibrary
}
else
{
if (IOValue(IO_Type.SL_ClampCylinder_Check).Equals(IO_VALUE.LOW))
//if (IOValue(IO_Type.SL_ClampCylinder_Check).Equals(IO_VALUE.LOW))
{
FI_37_TrayMoveOk();
}
else
{
MoveInfo.NextMoveStep(LineMoveStep.FI_36_ClampCheck);
InLog("料盘移栽" + MoveInfo.SLog + ":等待夹爪无料");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.LOW));
}
}
//else
//{
// MoveInfo.NextMoveStep(LineMoveStep.FI_36_ClampCheck);
// InLog("料盘移栽" + MoveInfo.SLog + ":等待夹爪无料");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.LOW));
//}
}
else if (MoveInfo.IsStep(LineMoveStep.FI_36_ClampCheck))
{
FI_37_TrayMoveOk();
}
//else if (MoveInfo.IsStep(LineMoveStep.FI_36_ClampCheck))
//{
// FI_37_TrayMoveOk();
//}
else if (MoveInfo.IsStep(LineMoveStep.FI_37_TrayMoveOk))
{
if (axisCheckTimer != null && axisCheckTimer.Enabled)
......@@ -883,9 +885,9 @@ namespace OnlineStore.DeviceLibrary
if (UpdownIsInP1())
{
MoveInfo.NextMoveStep(LineMoveStep.FI_17_CylinderGive);
InLog("料盘移栽" + MoveInfo.SLog + ":上料机构检测到料盘,横移机构到放料端,等待夹爪料盘检测=LOW");
InLog("料盘移栽" + MoveInfo.SLog + ":上料机构检测到料盘,横移机构到放料端, ");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Take, IO_Type.SL_MoveCylinder_Give);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.LOW));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.LOW));
}
else
{
......
......@@ -614,7 +614,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.NextMoveStep(LineMoveStep.FO_22_CylinderTake);
OutLog(outType + MoveInfo.SLog + ":上料横移机构取料端,等待夹爪无料");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Give, IO_Type.SL_MoveCylinder_Take);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.LOW));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.LOW));
}
else
{
......@@ -649,7 +649,8 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FO_25_CylinderTighten);
OutLog(outType + MoveInfo.SLog + ":上料气缸夹紧");
CylinderMove(MoveInfo, IO_Type.SL_ClampCylinder_Relax, IO_Type.SL_ClampCylinder_Work);
//CylinderMove(MoveInfo, IO_Type.SL_ClampCylinder_Relax, IO_Type.SL_ClampCylinder_Work);
ClampJwa.Push(MoveInfo);
}
else if (MoveInfo.IsStep(LineMoveStep.FO_25_CylinderTighten))
{
......@@ -665,13 +666,13 @@ namespace OnlineStore.DeviceLibrary
{
if (UpdownIsInP1())
{
if (IOValue(IO_Type.SL_ClampCylinder_Check).Equals(IO_VALUE.LOW))
{
MoveInfo.NextMoveStep(LineMoveStep.FO_27_ClampCheck);
OutLog(outType + MoveInfo.SLog + ":检测夹爪料盘检测=HIGH");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.HIGH));
}
else
//if (IOValue(IO_Type.SL_ClampCylinder_Check).Equals(IO_VALUE.LOW))
//{
// MoveInfo.NextMoveStep(LineMoveStep.FO_27_ClampCheck);
// OutLog(outType + MoveInfo.SLog + ":检测夹爪料盘检测=HIGH");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.HIGH));
//}
//else
{
FO_28_CylinderGive(outType);
}
......@@ -699,7 +700,8 @@ namespace OnlineStore.DeviceLibrary
OutStoreCount++;
MoveInfo.NextMoveStep(LineMoveStep.FO_30_CylinderSlack);
OutLog(outType + MoveInfo.SLog + ":出料横移机构放松,累积出库【" + OutStoreCount + "】盘【" + OutStoreHeight + "】mm");
CylinderMove(MoveInfo, IO_Type.SL_ClampCylinder_Work, IO_Type.SL_ClampCylinder_Relax);
//CylinderMove(MoveInfo, IO_Type.SL_ClampCylinder_Work, IO_Type.SL_ClampCylinder_Relax);
ClampJwa.Relax(MoveInfo);
}
else if (MoveInfo.IsStep(LineMoveStep.FO_30_CylinderSlack))
......@@ -719,12 +721,12 @@ namespace OnlineStore.DeviceLibrary
}
else if (MoveInfo.IsStep(LineMoveStep.FO_31_UpdownAxisToP1))
{
MoveInfo.NextMoveStep(LineMoveStep.FO_32_ClampCheck);
OutLog(outType + MoveInfo.SLog + ":检测夹爪料盘检测=LOW");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.LOW));
}
else if (MoveInfo.IsStep(LineMoveStep.FO_32_ClampCheck))
{
// MoveInfo.NextMoveStep(LineMoveStep.FO_32_ClampCheck);
// OutLog(outType + MoveInfo.SLog + ":检测夹爪料盘检测=LOW");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.LOW));
//}
//else if (MoveInfo.IsStep(LineMoveStep.FO_32_ClampCheck))
//{
if (UpdownIsInP1())
{
MoveInfo.NextMoveStep(LineMoveStep.FO_33_CylinderTake);
......@@ -810,7 +812,8 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FO_25_CylinderTighten);
OutLog(outType + MoveInfo.SLog + ":上料气缸夹紧");
CylinderMove(MoveInfo, IO_Type.SL_ClampCylinder_Relax, IO_Type.SL_ClampCylinder_Work);
//CylinderMove(MoveInfo, IO_Type.SL_ClampCylinder_Relax, IO_Type.SL_ClampCylinder_Work);
ClampJwa.Push(MoveInfo);
}
private void SendOutShelfOut(string msg = "")
......
......@@ -23,11 +23,11 @@ namespace OnlineStore.DeviceLibrary
{
int hynum = (config.Id % 100);
List<int> jNumList = new List<int>() { 5 };
if (jNumList.Contains(hynum))
{
return new HY_Coveryor(cid, config);
}
else
//if (jNumList.Contains(hynum))
//{
// return new HY_Coveryor(cid, config);
//}
//else
{
return new HY_C1_SLStation(cid, config);
}
......
......@@ -65,7 +65,8 @@ namespace OnlineStore.DeviceLibrary
foreach (FeedingEquip_Config config in feedMap.Values)
{
FeedingEquip equip = new FeedingEquip(lineConfig.CID, config);
ConfigClampJaw jawconfig = Line_Config.ClampJawMap[config.Id];
FeedingEquip equip = new FeedingEquip(lineConfig.CID, config,jawconfig);
//增加AGV小车客户端
AgvClient.NodeList.Add(config.AgvInName);
AgvClient.NodeList.Add(config.AgvOutName);
......@@ -76,7 +77,8 @@ namespace OnlineStore.DeviceLibrary
}
foreach (MoveEquip_Config config in configList.Values)
{
MoveEquip equip = new MoveEquip(lineConfig.CID, config);
ConfigClampJaw jawconfig = Line_Config.ClampJawMap[config.Id];
MoveEquip equip = new MoveEquip(lineConfig.CID, config, jawconfig);
AddDeviceName(ioList, config.IOIPList);
MoveEquipMap.Add(config.Id, equip);
AllEquipMap.Add(config.Id, equip);
......
......@@ -13,14 +13,15 @@ namespace OnlineStore.DeviceLibrary
public partial class MoveEquip : EquipBase
{
public MoveEquip_Config Config;
public ClampJawBean ClampJwa = null;
public bool OnlyProOutTray = false;
public MoveEquip(string cid, MoveEquip_Config config)
public MoveEquip(string cid, MoveEquip_Config config,ConfigClampJaw jawconfig)
{
this.DeviceID = config.Id;
this.Config = config;
baseConfig = config;
IsDebug = config.IsDebug.Equals(1);
ClampJwa = new ClampJawBean(jawconfig);
Name = (" " + "D" + DeviceID + "-进仓" + DeviceID.ToString().PadLeft(1, '0') + " ").ToUpper();
if (DeviceID.Equals(7))
{
......@@ -129,15 +130,16 @@ namespace OnlineStore.DeviceLibrary
DebugInfo(MoveInfo.MoveType + " : 上升气缸到位,顶升气缸下降,前后气缸后退,夹紧气缸放松");
CylinderMove(MoveInfo, IO_Type.TopCylinder_Up, IO_Type.TopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
//CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
ClampJwa.Relax(MoveInfo);
break;
case LineMoveStep.MH_03_OtherBack:
MoveInfo.NextMoveStep(LineMoveStep.MH_04_ClampCheck);
DebugInfo(MoveInfo.MoveType + " : 等待夹爪气缸料盘检测无料");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.LOW));
break;
case LineMoveStep.MH_04_ClampCheck:
// MoveInfo.NextMoveStep(LineMoveStep.MH_04_ClampCheck);
// DebugInfo(MoveInfo.MoveType + " : 等待夹爪气缸料盘检测无料");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.LOW));
// break;
//case LineMoveStep.MH_04_ClampCheck:
LogInfo(MoveInfo.MoveType + " 完成!");
runStatus = LineRunStatus.Runing;
......
......@@ -66,7 +66,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
OutLog("出库 " + MoveInfo.MoveStep + ": 前后气缸前进,等待夹爪料盘检测信号=LOW");
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.LOW));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.LOW));
}
else
{
......@@ -104,8 +104,9 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.MO_54_CylinderOpen);
OutLog("出库 " + MoveInfo.SLog + ": 夹料气缸夹紧,更新料盘位置【" + MoveInfo.MoveParam.WareCode + "】【MOVING】【" + DeviceID + "】");
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Relax, IO_Type.ClampCylinder_Work);
//CylinderMove(MoveInfo, IO_Type.ClampCylinder_Relax, IO_Type.ClampCylinder_Work);
ClampJwa.Push(MoveInfo );
//更新料盘位置
SServerManager.UpdateTrayLoc(Name, MoveInfo.MoveParam.WareCode, LocStatus.MOVING, DeviceID.ToString());
......@@ -115,7 +116,6 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.NextMoveStep(LineMoveStep.MO_55_CylinderUp);
OutLog("出库 " + MoveInfo.SLog + ": 上下气缸上升");
UpdownUpMove();
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
}
else if (MoveInfo.IsStep(LineMoveStep.MO_56_ResetClamp))
......@@ -126,26 +126,27 @@ namespace OnlineStore.DeviceLibrary
}
else if (MoveInfo.IsStep(LineMoveStep.MO_55_CylinderUp))
{
MoveInfo.NextMoveStep(LineMoveStep.MO_57_ClampCheck);
if (ClampCount.Equals(0))
{
OutLog("出库 " + MoveInfo.SLog + ": 检测夹爪料盘检测=HIGH,超时1000");
MoveInfo.OneWaitCanEndStep = true;
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.HIGH));
}
else
{
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(200));
OutLog("出库 " + MoveInfo.SLog + ": 检测夹爪料盘检测=HIGH");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.HIGH));
}
}
else if (MoveInfo.IsStep(LineMoveStep.MO_57_ClampCheck))
{
// MoveInfo.NextMoveStep(LineMoveStep.MO_57_ClampCheck);
// if (ClampCount.Equals(0))
// {
// OutLog("出库 " + MoveInfo.SLog + ": 检测夹爪料盘检测=HIGH,超时1000");
// MoveInfo.OneWaitCanEndStep = true;
// MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.HIGH));
// }
// else
// {
// MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(200));
// OutLog("出库 " + MoveInfo.SLog + ": 检测夹爪料盘检测=HIGH");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.HIGH));
// }
//}
//else if (MoveInfo.IsStep(LineMoveStep.MO_57_ClampCheck))
//{
if (UpdownIsUp())
{
if (IOValue(IO_Type.ClampCylinder_Check).Equals(IO_VALUE.HIGH))
//if (IOValue(IO_Type.ClampCylinder_Check).Equals(IO_VALUE.HIGH))
if(ClampJwa.HasReel())
{
if (IsBigStore())
{
......@@ -165,7 +166,8 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.NextMoveStep(LineMoveStep.MO_56_ResetClamp);
ClampCount = 1;
OutLog("出库 " + MoveInfo.SLog + ": 第一次未抓到料,重新抓一次,夹爪先放松", 1);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
//CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
ClampJwa.Relax(MoveInfo);
}
}
else
......@@ -223,7 +225,8 @@ namespace OnlineStore.DeviceLibrary
LogInfo("出库 " + MoveInfo.SLog + ": 夹料气缸放松,更新托盘信息 " + tray.ToStr() + "");
//出库全部完成
MoveInfo.NextMoveStep(LineMoveStep.MO_61_CylinderRelax);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
//CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
ClampJwa.Relax(MoveInfo);
}
else if (MoveInfo.IsStep(LineMoveStep.MO_61_CylinderRelax))
{
......@@ -286,7 +289,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.NextMoveStep(LineMoveStep.MI_02_ToLineUp);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.LOW));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.LOW));
}
else
{
......@@ -325,7 +328,7 @@ namespace OnlineStore.DeviceLibrary
InLog("入库 " + MoveInfo.SLog + ": 前后气缸后退,等待夹爪检测=LOW");
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.LOW));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.LOW));
}
else if (MoveInfo.IsStep(LineMoveStep.MI_02_ToLineUp))
{
......@@ -346,7 +349,8 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.MI_05_CylinderOpen);
InLog("入库 " + MoveInfo.SLog + ": 夹料气缸夹紧");
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Relax, IO_Type.ClampCylinder_Work);
//CylinderMove(MoveInfo, IO_Type.ClampCylinder_Relax, IO_Type.ClampCylinder_Work);
ClampJwa.Push(MoveInfo);
}
else if (MoveInfo.IsStep(LineMoveStep.MI_05_CylinderOpen))
{
......@@ -357,12 +361,12 @@ namespace OnlineStore.DeviceLibrary
}
else if (MoveInfo.IsStep(LineMoveStep.MI_06_CylinderUp))
{
MoveInfo.NextMoveStep(LineMoveStep.MI_07_ClampCheck);
InLog("入库 " + MoveInfo.SLog + ": 等待夹爪料盘检测信号=HIGH");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.HIGH));
}
else if (MoveInfo.IsStep(LineMoveStep.MI_07_ClampCheck))
{
// MoveInfo.NextMoveStep(LineMoveStep.MI_07_ClampCheck);
// InLog("入库 " + MoveInfo.SLog + ": 等待夹爪料盘检测信号=HIGH");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Check, IO_VALUE.HIGH));
//}
//else if (MoveInfo.IsStep(LineMoveStep.MI_07_ClampCheck))
//{
int num = MoveInfo.MoveParam.TrayNumber;
MoveInfo.NextMoveStep(LineMoveStep.MI_10_WaitBox);
LogInfo("入库【" + posId + "】 " + MoveInfo.SLog + ": 物品已移走,更新托盘【" + num + "】为空盘,删除入库任务");
......@@ -408,7 +412,8 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.MI_12_CylinderRelax);
InLog("入库 " + MoveInfo.SLog + ",夹料气缸放松");
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
//CylinderMove(MoveInfo, IO_Type.ClampCylinder_Work, IO_Type.ClampCylinder_Relax);
ClampJwa.Relax(MoveInfo);
}
else if (MoveInfo.IsStep(LineMoveStep.MI_12_CylinderRelax))
{
......
using Neotel;
using OnlineStore.Common;
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OnlineStore.DeviceLibrary
{
public class ClampJawBean
{
public ConfigClampJaw config = null;
public Rmaxis rmaxis = null;
public ClampJawBean (ConfigClampJaw config)
{
this.config = config;
OpenPort();
}
public bool OpenPort()
{
if (config == null)
{
return false;
}
if (rmaxis == null)
{
rmaxis = new Rmaxis();
}
if (!rmaxis.IsPortOpen)
{
bool result = rmaxis.OpenPort(config.PortName, config.AxisNo);
if (!result)
{
LogUtil.error(config.DisplayStr + " OpenPort 失败:" );
}
}
return rmaxis.IsPortOpen;
}
public void ClosePort()
{
if (rmaxis != null)
{
rmaxis.ClosePort();
}
}
public void Push(LineMoveInfo moveInfo = null, bool checkHasReel = true)
{
if (rmaxis != null && rmaxis.IsPortOpen)
{
rmaxis.Push(config.Force, config.Distance, config.Velocity);
}
if (moveInfo != null)
{
moveInfo.WaitList.Add(WaitResultInfo.WaitClampReached((int)config.Distance));
if (checkHasReel)
{
moveInfo.WaitList.Add(WaitResultInfo.WaitClampHasReel());
}
}
}
public bool IsReached()
{
if (rmaxis != null && rmaxis.IsPortOpen)
{
return rmaxis.IsReached;
}
return false;
}
public bool HasReel()
{
if (rmaxis != null && rmaxis.IsPortOpen)
{
return !rmaxis.IsPushEmpty;
}
return false;
}
public void Relax(LineMoveInfo moveInfo = null)
{
if (rmaxis != null && rmaxis.IsPortOpen)
{
rmaxis.GoHome( );
}
if (moveInfo != null)
{
moveInfo.WaitList.Add(WaitResultInfo.WaitClampReached(0));
}
}
}
}
......@@ -411,58 +411,15 @@ namespace OnlineStore.DeviceLibrary
}
if (moveInfo != null)
{
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) ||
if (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));
}
//如果是进仓门口 夹紧
if (baseConfig.DType.Equals(DeviceType.FeedingEquip) && (IoHighType.Equals(IO_Type.SL_ClampCylinder_Work)))
{
//夹爪夹紧
moveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoLowType, IO_VALUE.LOW));
}
else if (baseConfig.DType.Equals(DeviceType.FeedingEquip) && (IoHighType.Equals(IO_Type.SL_ClampCylinder_Relax)))
{
//夹爪放松
moveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoHighType, IO_VALUE.HIGH));
}
else if (baseConfig.DType.Equals(DeviceType.MoveEquip) && (IoHighType.Equals(IO_Type.ClampCylinder_Relax)))
{
//夹爪放松
moveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoHighType, IO_VALUE.HIGH));
}
else if (baseConfig.DType.Equals(DeviceType.MoveEquip) && (IoHighType.Equals(IO_Type.ClampCylinder_Work)))
{
//夹爪夹紧
moveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoLowType, IO_VALUE.LOW));
}
else if (baseConfig.DType.Equals(DeviceType.HYEquip) && (IoHighType.Equals(IO_Type.HY_ClampCylinder_Relax)))
{
//夹爪放松
moveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoHighType, IO_VALUE.HIGH));
}
else if (baseConfig.DType.Equals(DeviceType.HYEquip) && (IoHighType.Equals(IO_Type.HY_ClampCylinder_Work)))
{
//夹爪夹紧
moveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoLowType, IO_VALUE.LOW));
}
else
{
moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoLowType, IO_VALUE.LOW));
moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoHighType, IO_VALUE.HIGH));
}
}
if (isCheckMove)
{
CheckAndMove(IoLowType, IO_VALUE.LOW);
......@@ -473,9 +430,10 @@ namespace OnlineStore.DeviceLibrary
IOMove(IoLowType, IO_VALUE.LOW);
IOMove(IoHighType, IO_VALUE.HIGH);
}
}catch(Exception ex)
}
catch (Exception ex)
{
LogUtil.error(Name + "CylinderMove ["+moveInfo.Name+"] ["+IoLowType+"] ["+IoHighType+"] ["+isCheckMove+"] 出错:"+ex.ToString());
LogUtil.error(Name + "CylinderMove [" + moveInfo.Name + "] [" + IoLowType + "] [" + IoHighType + "] [" + isCheckMove + "] 出错:" + ex.ToString());
}
}
......
......@@ -221,40 +221,24 @@ namespace OnlineStore.DeviceLibrary
wait.IsEnd = false;
return wait;
}
public static WaitResultInfo WaitStell(byte slvAddr, int targetPosition, int speed)
public static WaitResultInfo WaitClampReached(int position)
{
WaitResultInfo wait = new WaitResultInfo();
wait.CanWhileMoveCount =10;
wait.WaitType = WaitEnum.W004_StellMove;
wait.SlvAddr = slvAddr;
wait.IsHomeMove = false;
wait.TargetPosition = targetPosition;
wait.TargetSpeed = speed;
wait.IsEnd = false;
return wait;
}
public static WaitResultInfo WaitStellHome(byte slvAddr, int targetPosition, int speed)
{
WaitResultInfo wait = new WaitResultInfo();
wait.CanWhileMoveCount = 10;
wait.WaitType = WaitEnum.W004_StellMove;
wait.SlvAddr = slvAddr;
wait.IsHomeMove = true;
wait.TargetPosition = 0;
wait.TargetSpeed = speed;
wait.CanWhileMoveCount = 0;
wait.WaitType = WaitEnum.W004_ClampReached;
wait.TargetPosition = position;
wait.IsEnd = false;
return wait;
}
public static WaitResultInfo WaitShuoKe(int slvAddr, int targetPosition, bool isHome)
public static WaitResultInfo WaitClampHasReel()
{
WaitResultInfo wait = new WaitResultInfo();
wait.CanWhileMoveCount = 0;
wait.WaitType = WaitEnum.W005_ShuoKe;
wait.SlvAddr =(byte) slvAddr;
wait.TargetPosition = targetPosition;
wait.IsHomeMove = isHome;
wait.WaitType = WaitEnum.W005_WaitHasReel;
wait.IsEnd = false;
return wait;
}
public static WaitResultInfo WaitTime(int MScends)
{
WaitResultInfo wait = new WaitResultInfo();
......@@ -264,26 +248,7 @@ namespace OnlineStore.DeviceLibrary
wait.IsEnd = false;
return wait;
}
//public static WaitResultInfo WaitAxisOrg(ConfigMoveAxis axis,IO_VALUE value )
//{
// WaitResultInfo wait = new WaitResultInfo();
// wait.CanWhileMoveCount = 0;
// wait.WaitType = WaitEnum.W006_AxisOrg;
// wait.AxisInfo = axis;
// wait.IsHomeMove = true;
// wait.IoValue = value;
// wait.IsEnd = false;
// return wait;
//}
public static WaitResultInfo WaitHeight(int height)
{
WaitResultInfo wait = new WaitResultInfo();
wait.WaitType = WaitEnum.W007_ReelHeight;
wait.HeightValue = height;
wait.IsEnd = false;
return wait;
}
public static WaitResultInfo WaitCanInstore()
{
WaitResultInfo wait = new WaitResultInfo();
......@@ -337,13 +302,13 @@ namespace OnlineStore.DeviceLibrary
{
return "时间【" + TimeMSeconds + "】毫秒";
}
else if (WaitType.Equals(WaitEnum.W004_StellMove))
else if (WaitType.Equals(WaitEnum.W004_ClampReached))
{
return "电钢目标位置【" + TargetPosition + "】 ";
return "夹爪到位【" + TargetPosition + "】 ";
}
else if (WaitType.Equals(WaitEnum.W005_ShuoKe))
else if (WaitType.Equals(WaitEnum.W005_WaitHasReel))
{
return "硕科电机目标位置【" + TargetPosition + "】 ";
return "夹爪有料 ";
}
else if (WaitType.Equals(WaitEnum.W006_AxisOrg))
{
......@@ -458,13 +423,13 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
internal static int W003_Time = 3;
/// <summary>
/// 电钢运动
/// j夹爪到位
/// </summary>
internal static int W004_StellMove = 4;
internal static int W004_ClampReached = 4;
/// <summary>
/// 硕科电机
/// 夹爪有料
/// </summary>
internal static int W005_ShuoKe = 5;
internal static int W005_WaitHasReel = 5;
/// <summary>
/// 轴原点信号
/// </summary>
......
......@@ -615,10 +615,10 @@ namespace OnlineStore.DeviceLibrary
/// 料盘移栽: 升降伺服到P1点
/// </summary>
FI_35_AxisToP1,
/// <summary>
/// 料盘移栽:检测夹爪无料
/// </summary>
FI_36_ClampCheck,
///// <summary>
///// 料盘移栽:检测夹爪无料
///// </summary>
//FI_36_ClampCheck,
/// <summary>
/// 料盘移栽: 放托盘离开
/// </summary>
......@@ -789,7 +789,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 紧急出料移栽:检测夹爪料盘检测信号无料
/// </summary>
FO_32_ClampCheck,
//FO_32_ClampCheck,
/// <summary>
/// 紧急出料移栽:上料横移机构到取料端
......
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.12" targetFramework="net461" />
</packages>
\ No newline at end of file
......@@ -31,12 +31,14 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net">
<HintPath>..\..\dll\log4net.dll</HintPath>
<Reference Include="log4net, Version=2.0.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\..\packages\log4net.2.0.12\lib\net45\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
......@@ -99,5 +101,8 @@
<DependentUpon>FrmHuiChuanTest.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.12" targetFramework="net461" />
</packages>
\ No newline at end of file
......@@ -33,12 +33,13 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\log4net.dll</HintPath>
<Reference Include="log4net, Version=2.0.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\..\packages\log4net.2.0.12\lib\net40\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
......@@ -67,6 +68,9 @@
<Name>Common</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
......
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.12" targetFramework="net40" />
</packages>
\ No newline at end of file
......@@ -69,6 +69,10 @@ namespace OnlineStore.LoadCSVLibrary
{
type = typeof(ConfigMoveAxis);
}
else if (typeValue.Equals(ConfigItemType.CLAW))
{
type = typeof(ConfigClampJaw);
}
Dictionary<string, string> proTitleMap = getProAttributeMap(type);
ConfigBase bllIns = (ConfigBase)type.Assembly.CreateInstance(type.FullName);
......
......@@ -59,14 +59,7 @@ namespace OnlineStore.LoadCSVLibrary
}
public class ConfigMoveAxis : ConfigBase
{
///// <summary>
///// 伺服ON的Do信号
///// </summary>
//public string ServerOnDO = "";
///// <summary>
///// 伺服刹车信号
///// </summary>
//public string BreakOnDO = "";
[CSVAttribute("设备名称")]
public string DeviceName { get; set; }
......@@ -152,6 +145,74 @@ namespace OnlineStore.LoadCSVLibrary
}
}
public class ConfigClampJaw : ConfigBase
{
[CSVAttribute("设备名称")]
public string PortName { get; set; }
[CSVAttribute("目标速度")]
public float Velocity { get; set; }
[CSVAttribute("加速度")]
public float AddSpeed { get; set; }
[CSVAttribute("减速度")]
public float DelSpeed { get; set; }
[CSVAttribute("出力")]
public float Force { get; set; }
[CSVAttribute("距离")]
public float Distance { get; set; }
public string GetNameStr()
{
return PortName + "_" + AxisNo;
}
public bool IsSameAxis(string portName, ushort slv)
{
if (PortName.Equals(portName) && slv.Equals(AxisNo))
{
return true;
}
return false;
}
public string DisplayStr
{
get
{
return Explain + "(" + ProName + ")";
}
set
{
}
}
private ushort axisNo=999;
public ushort AxisNo
{
get
{
if (axisNo.Equals(999)){
if (ProValue.Equals("") || ProValue.Equals("-1"))
{
axisNo = 0;
}
axisNo = (ushort)Convert.ToInt32(ProValue);
}
return axisNo;
}
}
public override void CheckField()
{
if (String.IsNullOrEmpty(ProType) || String.IsNullOrEmpty(ProName) || String.IsNullOrEmpty(PortName) || String.IsNullOrEmpty(ProValue))
{
throw new CVSFieldNotMatchingExection(ConfigStr + "【类型】【名称】【属性值】【设备名称】必须配置值!");
}
}
}
/// <summary>
/// io配置
......@@ -243,6 +304,8 @@ namespace OnlineStore.LoadCSVLibrary
public static string DO = "DO";
public static string AXIS = "AXIS";
public static string PRO = "PRO";
public static string CLAW = "CLAW";
}
}
......@@ -98,7 +98,7 @@ namespace OnlineStore.LoadCSVLibrary
List<string> checkProList = new List<string>(proMap.Keys);//用来检测attribute属性都应该要配置值
foreach (ConfigBase con in configList)
{
if (con.ProType == ConfigItemType.AXIS || con.ProType == ConfigItemType.PRO)
if (con.ProType == ConfigItemType.AXIS || con.ProType == ConfigItemType.PRO||con.ProType==ConfigItemType.CLAW)
{
if (proMap.ContainsKey(con.ProName))
{
......@@ -112,7 +112,16 @@ namespace OnlineStore.LoadCSVLibrary
//如果属性存在
prop.SetValue(this, Convert.ChangeType(con, prop.PropertyType), null);//赋值****在这里需要考虑类型问题
ConfigMoveAxis axis = (ConfigMoveAxis)con;
}
else if (con.ProType == ConfigItemType.CLAW)
{
//如果属性存在
prop.SetValue(this, Convert.ChangeType(con, prop.PropertyType), null);//赋值****在这里需要考虑类型问题
ConfigClampJaw jaw = (ConfigClampJaw)con;
if (!Line_Config.ClampJawMap.ContainsKey(jaw.SubType))
{
Line_Config.ClampJawMap.Add(jaw.SubType, jaw);
}
}
else if (con.ProType == ConfigItemType.PRO)
{
......
......@@ -323,15 +323,15 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary>
public static string SL_TrayLocation_After = "SL_TrayLocation_After";
public static string ClampCylinder_Work = "ClampCylinder_Work";
public static string ClampCylinder_Check = "ClampCylinder_Check";
public static string ClampCylinder_Relax = "ClampCylinder_Relax";
public static string HY_ClampCylinder_Relax = "HY_ClampCylinder_Relax";
public static string HY_ClampCylinder_Work = "HY_ClampCylinder_Work";
public static string HY_ClampCylinder_Check = "HY_ClampCylinder_Check";
public static string SL_ClampCylinder_Relax = "SL_ClampCylinder_Relax";
public static string SL_ClampCylinder_Work = "SL_ClampCylinder_Work";
public static string SL_ClampCylinder_Check = "SL_ClampCylinder_Check";
//public static string ClampCylinder_Work = "ClampCylinder_Work";
//public static string ClampCylinder_Check = "ClampCylinder_Check";
//public static string ClampCylinder_Relax = "ClampCylinder_Relax";
//public static string HY_ClampCylinder_Relax = "HY_ClampCylinder_Relax";
//public static string HY_ClampCylinder_Work = "HY_ClampCylinder_Work";
//public static string HY_ClampCylinder_Check = "HY_ClampCylinder_Check";
//public static string SL_ClampCylinder_Relax = "SL_ClampCylinder_Relax";
//public static string SL_ClampCylinder_Work = "SL_ClampCylinder_Work";
//public static string SL_ClampCylinder_Check = "SL_ClampCylinder_Check";
public static string HY_TrayCheck1 = "HY_TrayCheck1";
public static string HY_TrayCheck2 = "HY_TrayCheck2";
......
......@@ -23,6 +23,49 @@ namespace OnlineStore.LoadCSVLibrary
{
}
public static Dictionary<int, ConfigClampJaw> ClampJawMap = new Dictionary<int, ConfigClampJaw>();
/// <summary>
/// CLAW,1,D1移栽夹爪,CLAW_D1,0,COM1,,500,0,0,30,7
/// </summary>
[ConfigProAttribute("CLAW_D1")]
public ConfigClampJaw CLAW_D1 { get; set; }
/// <summary>
/// CLAW,2,D2移栽夹爪,CLAW_D2,1,COM1,,500,0,0,30,7
/// </summary>
[ConfigProAttribute("CLAW_D2")]
public ConfigClampJaw CLAW_D2 { get; set; }
/// <summary>
/// CLAW,3,D3移栽夹爪,CLAW_D3,2,COM1,,500,0,0,30,7
/// </summary>
[ConfigProAttribute("CLAW_D3")]
public ConfigClampJaw CLAW_D3 { get; set; }
/// <summary>
/// CLAW,4,D4移栽夹爪,CLAW_D4,3,COM1,,500,0,0,30,7
/// </summary>
[ConfigProAttribute("CLAW_D4")]
public ConfigClampJaw CLAW_D4 { get; set; }
/// <summary>
/// CLAW,5,D5移栽夹爪,CLAW_D5,0,COM2,,500,0,0,30,7
/// </summary>
[ConfigProAttribute("CLAW_D5")]
public ConfigClampJaw CLAW_D5 { get; set; }
/// <summary>
/// CLAW,6,D6移栽夹爪,CLAW_D6,1,COM2,,500,0,0,30,7
/// </summary>
[ConfigProAttribute("CLAW_D6")]
public ConfigClampJaw CLAW_D6 { get; set; }
/// <summary>
/// CLAW,7,D7移栽夹爪,CLAW_D7,2,COM2,,500,0,0,30,7
/// </summary>
[ConfigProAttribute("CLAW_D7")]
public ConfigClampJaw CLAW_D7 { get; set; }
/// <summary>
/// CLAW,101,D8移栽夹爪,CLAW_T1,3,COM2,,500,0,0,30,7
/// </summary>
[ConfigProAttribute("CLAW_T1")]
public ConfigClampJaw CLAW_T1 { get; set; }
/// <summary>
/// 气压检测信号关闭需要持续的时间
/// </summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!