Commit d5595c80 几米阳光

轴三复位时,如果已经原点返回过且原点信号亮,需要先向前走一点再原点返回

1 个父辈 9a6597be
...@@ -85,12 +85,6 @@ ...@@ -85,12 +85,6 @@
<Compile Include="FrmIOStatus.Designer.cs"> <Compile Include="FrmIOStatus.Designer.cs">
<DependentUpon>FrmIOStatus.cs</DependentUpon> <DependentUpon>FrmIOStatus.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="FrmLogin.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmLogin.Designer.cs">
<DependentUpon>FrmLogin.cs</DependentUpon>
</Compile>
<Compile Include="FrmStoreBox.cs"> <Compile Include="FrmStoreBox.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -112,9 +106,6 @@ ...@@ -112,9 +106,6 @@
<EmbeddedResource Include="FrmIOStatus.resx"> <EmbeddedResource Include="FrmIOStatus.resx">
<DependentUpon>FrmIOStatus.cs</DependentUpon> <DependentUpon>FrmIOStatus.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="FrmLogin.resx">
<DependentUpon>FrmLogin.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmStoreBox.resx"> <EmbeddedResource Include="FrmStoreBox.resx">
<DependentUpon>FrmStoreBox.cs</DependentUpon> <DependentUpon>FrmStoreBox.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
......
<?xml version="1.0"?> <?xml version="1.0"?>
<configuration> <configuration>
<configSections> <configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
</configSections> </configSections>
<appSettings> <appSettings>
<!--是否开机自动启动料仓--> <!--是否开机自动启动料仓-->
<add key="App_AutoRun" value="0"/> <add key="App_AutoRun" value="1" />
<add key="App_Title" value="AC_SA_料仓"/> <add key="App_Title" value="AC_SA_料仓" />
<add key="scanner_start_command" value="S"/> <add key="scanner_start_command" value="S" />
<!-- 开始吹气的判断值(配置值=服务器发送的湿度值-开始吹气值)--> <!-- 开始吹气的判断值(配置值=服务器发送的湿度值-开始吹气值)-->
<add key="StartBlowValue" value="4"/> <add key="StartBlowValue" value="4" />
<!-- 停止吹气的判断值(配置值=服务器发送的湿度值-停止吹气值)--> <!-- 停止吹气的判断值(配置值=服务器发送的湿度值-停止吹气值)-->
<add key="StopBlowValue" value="4"/> <add key="StopBlowValue" value="4" />
<!--Server address--> <!--Server address-->
<!--<add key="http.server" value="http://localhost:80/"/>--> <!--<add key="http.server" value="http://localhost:80/"/>-->
<!--storeType--> <!--storeType-->
<add key="store_count" value="1"/> <add key="store_count" value="1" />
<!--start one store config--> <!--start one store config-->
<add key="Store_Position_Config" value="\StoreConfig\AC\linePositions.csv"/> <add key="Store_Position_Config" value="\StoreConfig\AC\linePositions.csv" />
<add key="Store_ConfigPath" value="\StoreConfig\AC\StoreConfig.csv"/> <add key="Store_ConfigPath" value="\StoreConfig\AC\StoreConfig.csv" />
<add key="Store_Type" value="RC_AC_SA"/> <add key="Store_Type" value="RC_AC_SA" />
<add key="Store_CID" value="ac1"/> <add key="Store_CID" value="bjac1" />
<!--end one store config--> <!--end one store config-->
<!--康泰克运动默认参数:速度倍率,起始速度,目标速度,加速时间,减速时间,SSpeed,目标位置,默认运动轴-->
<add key="KTK_MOVE_ResolveSpeed" value="10"/>
<add key="KTK_MOVE_StartSpeed" value="1000"/>
<add key="KTK_MOVE_TargetSpeed" value="20000"/>
<add key="KTK_MOVE_AccelTime" value="500"/>
<add key="KTK_MOVE_lDecelTime" value="500"/>
<add key="KTK_MOVE_SSpeed" value="5000"/>
<add key="KTK_MOVE_Distance" value="10000"/>
<add key="KTK_MOVE_AxisNo" value="1"/>
<!--摄像机名称列表配置,用#分割--> <!--摄像机名称列表配置,用#分割-->
<add key="CameraName" value="codeCamera"/> <add key="CameraName" value="codeCamera" />
<!--二维码类型列表配置,用#分割--> <!--二维码类型列表配置,用#分割-->
<add key="CodeType" value="QR Code"/> <add key="CodeType" value="QR Code" />
<!--<add key="CodeType" value="Data Matrix ECC 200"/>--> <!--<add key="CodeType" value="Data Matrix ECC 200"/>-->
<!--二维码参数文件所在路径,文件名与二维码类型名一样--> <!--二维码参数文件所在路径,文件名与二维码类型名一样-->
<add key="CodeParamPath" value="\StoreConfig\AC\"/> <add key="CodeParamPath" value="\StoreConfig\AC\" />
</appSettings> </appSettings>
<log4net> <log4net>
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="logs/SingleStore.log"/> <file value="logs/BJACStore.log" />
<appendToFile value="true"/> <appendToFile value="true" />
<rollingStyle value="Date"/> <rollingStyle value="Date" />
<datePattern value="yyyy-MM-dd"/> <datePattern value="yyyy-MM-dd" />
<layout type="log4net.Layout.PatternLayout"> <layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%date][%t]%-5p %m%n"/> <conversionPattern value="[%date][%t]%-5p %m%n" />
</layout> </layout>
</appender> </appender>
<root> <root>
<level value="Info"/> <level value="Info" />
<appender-ref ref="RollingLogFileAppender"/> <appender-ref ref="RollingLogFileAppender" />
</root> </root>
</log4net> </log4net>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup> </startup>
<!-- 部署服务库项目时,必须将配置文件的内容添加到 <!-- 部署服务库项目时,必须将配置文件的内容添加到
主机的 app.config 文件中。System.Configuration 不支持库的配置文件。 --> 主机的 app.config 文件中。System.Configuration 不支持库的配置文件。 -->
<system.serviceModel> <system.serviceModel>
...@@ -69,13 +56,13 @@ ...@@ -69,13 +56,13 @@
<service name="AcStoreWCF.CWSMDBox"> <service name="AcStoreWCF.CWSMDBox">
<endpoint address="" binding="basicHttpBinding" contract="AcStoreWCF.ICWSMDBox"> <endpoint address="" binding="basicHttpBinding" contract="AcStoreWCF.ICWSMDBox">
<identity> <identity>
<dns value="localhost"/> <dns value="localhost" />
</identity> </identity>
</endpoint> </endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host> <host>
<baseAddresses> <baseAddresses>
<add baseAddress="http://localhost:8733/Design_Time_Addresses/AcStoreWCF/CWSMDBox/"/> <add baseAddress="http://localhost:8733/Design_Time_Addresses/AcStoreWCF/CWSMDBox/" />
</baseAddresses> </baseAddresses>
</host> </host>
</service> </service>
...@@ -85,11 +72,11 @@ ...@@ -85,11 +72,11 @@
<behavior> <behavior>
<!-- 为避免泄漏元数据信息, <!-- 为避免泄漏元数据信息,
请在部署前将以下值设置为 false --> 请在部署前将以下值设置为 false -->
<serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/> <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True" />
<!-- 要接收故障异常详细信息以进行调试, <!-- 要接收故障异常详细信息以进行调试,
请将以下值设置为 true。在部署前设置为 false 请将以下值设置为 true。在部署前设置为 false
以避免泄漏异常信息 --> 以避免泄漏异常信息 -->
<serviceDebug includeExceptionDetailInFaults="False"/> <serviceDebug includeExceptionDetailInFaults="False" />
</behavior> </behavior>
</serviceBehaviors> </serviceBehaviors>
</behaviors> </behaviors>
......
...@@ -67,9 +67,6 @@ ...@@ -67,9 +67,6 @@
this.label49 = new System.Windows.Forms.Label(); this.label49 = new System.Windows.Forms.Label();
this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.axis_1_Alarm = new UserFromControl.IOStatusControl();
this.axis_3_Alarm = new UserFromControl.IOStatusControl();
this.axis_2_Alarm = new UserFromControl.IOStatusControl();
this.label38 = new System.Windows.Forms.Label(); this.label38 = new System.Windows.Forms.Label();
this.txtMiddleTarget = new System.Windows.Forms.TextBox(); this.txtMiddleTarget = new System.Windows.Forms.TextBox();
this.txtInoutTarget = new System.Windows.Forms.TextBox(); this.txtInoutTarget = new System.Windows.Forms.TextBox();
...@@ -175,6 +172,13 @@ ...@@ -175,6 +172,13 @@
this.显示ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.显示ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.axis_1_Alarm = new UserFromControl.IOStatusControl();
this.axis_3_Alarm = new UserFromControl.IOStatusControl();
this.axis_2_Alarm = new UserFromControl.IOStatusControl();
this.txtHomeSingle = new System.Windows.Forms.TextBox();
this.btnReadHomeSingle = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.groupBox5.SuspendLayout(); this.groupBox5.SuspendLayout();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
...@@ -203,6 +207,10 @@ ...@@ -203,6 +207,10 @@
// //
this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox5.Controls.Add(this.label6);
this.groupBox5.Controls.Add(this.label5);
this.groupBox5.Controls.Add(this.btnReadHomeSingle);
this.groupBox5.Controls.Add(this.txtHomeSingle);
this.groupBox5.Controls.Add(this.chbAutoRead); this.groupBox5.Controls.Add(this.chbAutoRead);
this.groupBox5.Controls.Add(this.label16); this.groupBox5.Controls.Add(this.label16);
this.groupBox5.Controls.Add(this.label15); this.groupBox5.Controls.Add(this.label15);
...@@ -244,7 +252,7 @@ ...@@ -244,7 +252,7 @@
this.groupBox5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupBox5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox5.Location = new System.Drawing.Point(507, 131); this.groupBox5.Location = new System.Drawing.Point(507, 131);
this.groupBox5.Name = "groupBox5"; this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(516, 293); this.groupBox5.Size = new System.Drawing.Size(516, 326);
this.groupBox5.TabIndex = 216; this.groupBox5.TabIndex = 216;
this.groupBox5.TabStop = false; this.groupBox5.TabStop = false;
this.groupBox5.Text = "伺服运动"; this.groupBox5.Text = "伺服运动";
...@@ -289,7 +297,7 @@ ...@@ -289,7 +297,7 @@
// label11 // label11
// //
this.label11.AutoSize = true; this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(5, 260); this.label11.Location = new System.Drawing.Point(3, 260);
this.label11.Name = "label11"; this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(114, 17); this.label11.Size = new System.Drawing.Size(114, 17);
this.label11.TabIndex = 292; this.label11.TabIndex = 292;
...@@ -316,7 +324,7 @@ ...@@ -316,7 +324,7 @@
// label10 // label10
// //
this.label10.AutoSize = true; this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(44, 229); this.label10.Location = new System.Drawing.Point(42, 229);
this.label10.Name = "label10"; this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(75, 17); this.label10.Size = new System.Drawing.Size(75, 17);
this.label10.TabIndex = 289; this.label10.TabIndex = 289;
...@@ -343,7 +351,7 @@ ...@@ -343,7 +351,7 @@
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(51, 198); this.label2.Location = new System.Drawing.Point(49, 198);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(68, 17); this.label2.Size = new System.Drawing.Size(68, 17);
this.label2.TabIndex = 286; this.label2.TabIndex = 286;
...@@ -719,43 +727,13 @@ ...@@ -719,43 +727,13 @@
this.groupBox1.Controls.Add(this.label43); this.groupBox1.Controls.Add(this.label43);
this.groupBox1.Controls.Add(this.label42); this.groupBox1.Controls.Add(this.label42);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(507, 425); this.groupBox1.Location = new System.Drawing.Point(507, 463);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(516, 191); this.groupBox1.Size = new System.Drawing.Size(516, 191);
this.groupBox1.TabIndex = 217; this.groupBox1.TabIndex = 217;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "伺服状态"; this.groupBox1.Text = "伺服状态";
// //
// axis_1_Alarm
//
this.axis_1_Alarm.IOName = "";
this.axis_1_Alarm.IOValue = 0;
this.axis_1_Alarm.isCanClick = false;
this.axis_1_Alarm.Location = new System.Drawing.Point(127, 49);
this.axis_1_Alarm.Name = "axis_1_Alarm";
this.axis_1_Alarm.Size = new System.Drawing.Size(43, 39);
this.axis_1_Alarm.TabIndex = 264;
//
// axis_3_Alarm
//
this.axis_3_Alarm.IOName = "";
this.axis_3_Alarm.IOValue = 0;
this.axis_3_Alarm.isCanClick = false;
this.axis_3_Alarm.Location = new System.Drawing.Point(329, 49);
this.axis_3_Alarm.Name = "axis_3_Alarm";
this.axis_3_Alarm.Size = new System.Drawing.Size(43, 39);
this.axis_3_Alarm.TabIndex = 266;
//
// axis_2_Alarm
//
this.axis_2_Alarm.IOName = "";
this.axis_2_Alarm.IOValue = 0;
this.axis_2_Alarm.isCanClick = false;
this.axis_2_Alarm.Location = new System.Drawing.Point(224, 49);
this.axis_2_Alarm.Name = "axis_2_Alarm";
this.axis_2_Alarm.Size = new System.Drawing.Size(43, 39);
this.axis_2_Alarm.TabIndex = 265;
//
// label38 // label38
// //
this.label38.AutoSize = true; this.label38.AutoSize = true;
...@@ -1882,7 +1860,7 @@ ...@@ -1882,7 +1860,7 @@
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox6.Controls.Add(this.btnOpenWCF); this.groupBox6.Controls.Add(this.btnOpenWCF);
this.groupBox6.Controls.Add(this.btnCloseWCF); this.groupBox6.Controls.Add(this.btnCloseWCF);
this.groupBox6.Location = new System.Drawing.Point(507, 619); this.groupBox6.Location = new System.Drawing.Point(509, 706);
this.groupBox6.Name = "groupBox6"; this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(518, 60); this.groupBox6.Size = new System.Drawing.Size(518, 60);
this.groupBox6.TabIndex = 269; this.groupBox6.TabIndex = 269;
...@@ -1915,7 +1893,7 @@ ...@@ -1915,7 +1893,7 @@
// chbAuto // chbAuto
// //
this.chbAuto.AutoSize = true; this.chbAuto.AutoSize = true;
this.chbAuto.Location = new System.Drawing.Point(515, 685); this.chbAuto.Location = new System.Drawing.Point(515, 668);
this.chbAuto.Name = "chbAuto"; this.chbAuto.Name = "chbAuto";
this.chbAuto.Size = new System.Drawing.Size(112, 24); this.chbAuto.Size = new System.Drawing.Size(112, 24);
this.chbAuto.TabIndex = 270; this.chbAuto.TabIndex = 270;
...@@ -1952,6 +1930,72 @@ ...@@ -1952,6 +1930,72 @@
this.notifyIcon1.Text = "料仓客户端"; this.notifyIcon1.Text = "料仓客户端";
this.notifyIcon1.Visible = true; this.notifyIcon1.Visible = true;
// //
// axis_1_Alarm
//
this.axis_1_Alarm.IOName = "";
this.axis_1_Alarm.IOValue = 0;
this.axis_1_Alarm.isCanClick = false;
this.axis_1_Alarm.Location = new System.Drawing.Point(127, 49);
this.axis_1_Alarm.Name = "axis_1_Alarm";
this.axis_1_Alarm.Size = new System.Drawing.Size(43, 39);
this.axis_1_Alarm.TabIndex = 264;
//
// axis_3_Alarm
//
this.axis_3_Alarm.IOName = "";
this.axis_3_Alarm.IOValue = 0;
this.axis_3_Alarm.isCanClick = false;
this.axis_3_Alarm.Location = new System.Drawing.Point(329, 49);
this.axis_3_Alarm.Name = "axis_3_Alarm";
this.axis_3_Alarm.Size = new System.Drawing.Size(43, 39);
this.axis_3_Alarm.TabIndex = 266;
//
// axis_2_Alarm
//
this.axis_2_Alarm.IOName = "";
this.axis_2_Alarm.IOValue = 0;
this.axis_2_Alarm.isCanClick = false;
this.axis_2_Alarm.Location = new System.Drawing.Point(224, 49);
this.axis_2_Alarm.Name = "axis_2_Alarm";
this.axis_2_Alarm.Size = new System.Drawing.Size(43, 39);
this.axis_2_Alarm.TabIndex = 265;
//
// txtHomeSingle
//
this.txtHomeSingle.Enabled = false;
this.txtHomeSingle.Location = new System.Drawing.Point(121, 289);
this.txtHomeSingle.Name = "txtHomeSingle";
this.txtHomeSingle.Size = new System.Drawing.Size(25, 23);
this.txtHomeSingle.TabIndex = 297;
//
// btnReadHomeSingle
//
this.btnReadHomeSingle.Location = new System.Drawing.Point(278, 287);
this.btnReadHomeSingle.Name = "btnReadHomeSingle";
this.btnReadHomeSingle.Size = new System.Drawing.Size(105, 33);
this.btnReadHomeSingle.TabIndex = 298;
this.btnReadHomeSingle.Text = "读原点信号";
this.btnReadHomeSingle.UseVisualStyleBackColor = true;
this.btnReadHomeSingle.Click += new System.EventHandler(this.btnReadHomeSingle_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(155, 292);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(94, 17);
this.label5.TabIndex = 299;
this.label5.Text = "1=ON,0=OFF";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(49, 292);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(68, 17);
this.label6.TabIndex = 300;
this.label6.Text = "原点信号:";
//
// FrmStoreBox // FrmStoreBox
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
...@@ -2145,6 +2189,10 @@ ...@@ -2145,6 +2189,10 @@
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator12; private System.Windows.Forms.ToolStripSeparator toolStripSeparator12;
private System.Windows.Forms.Button btnReadHomeSingle;
private System.Windows.Forms.TextBox txtHomeSingle;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
} }
} }
...@@ -1226,5 +1226,11 @@ namespace OnlineStore.ACSingleStore ...@@ -1226,5 +1226,11 @@ namespace OnlineStore.ACSingleStore
FrmCodeLearn learn = new FrmCodeLearn(); FrmCodeLearn learn = new FrmCodeLearn();
learn.ShowDialog(); learn.ShowDialog();
} }
private void btnReadHomeSingle_Click(object sender, EventArgs e)
{
int value = ACServerManager.GetHomeSingle(GetPortName(), GetSlaveAddr());
this.txtHomeSingle.Text = value.ToString();
}
} }
} }
...@@ -13,3 +13,5 @@ ...@@ -13,3 +13,5 @@
料叉上的信号检测:复位时不检测此信号,等到复位完成再检测,如果料仓有信号,需要打开门让人把物料拿走 料叉上的信号检测:复位时不检测此信号,等到复位完成再检测,如果料仓有信号,需要打开门让人把物料拿走
轴三运动时要判断气缸到位 轴三运动时要判断气缸到位
出库时等待拿走料盘与等待10秒有一个条件到达就完成
轴三复位时,如果已经原点返回过且原点信号亮,需要先相对走5000才能原点返回
\ No newline at end of file \ No newline at end of file
...@@ -21,79 +21,12 @@ namespace OnlineStore.Common ...@@ -21,79 +21,12 @@ namespace OnlineStore.Common
/// </summary> /// </summary>
public static string App_Title = "App_Title"; public static string App_Title = "App_Title";
/// <summary> /// <summary>
/// 配置表中表示料门位置的层数
/// </summary>
public static int modbus_door_num = 1000;
public static string modbus_door_high_position = "modbus_door_high_position";
public static string modbus_door_low_position = "modbus_door_low_position";
//电钢配置
/// <summary>
/// 串口号
/// </summary>
public static string modbus_portName = "modbus_portName";
/// <summary>
/// 波特率
/// </summary>
public static string modbus_portBaudrate = "modbus_portBaudrate";
/// <summary>
/// 奇偶校验
/// </summary>
public static string modbus_portParity = "modbus_portParity";
/// <summary>
/// 停止位
/// </summary>
public static string modbus_stopBits = "modbus_stopBits";
/// <summary>
/// 控制模式
/// </summary>
public static string modbus_controlMode = "modbus_controlMode";
/// <summary>
/// 移动位置
/// </summary>
public static string modbus_position = "modbus_position";
/// <summary>
/// 移动速度
/// </summary>
public static string modbus_velocity = "modbus_velocity";
/// <summary>
/// 板卡卡号
/// </summary>
public static string pci_board_id = "pci_board_id";
/// <summary>
/// 板卡运动默认速度
/// </summary>
public static string pci_axis_move_speed = "pci_axis_move_speed";
/// <summary>
/// 电缸运动默认速度
/// </summary>
public static string modbus_move_speed = "modbus_move_speed";
/// <summary>
/// 扫码枪开始命令发送给socket的消息 /// 扫码枪开始命令发送给socket的消息
/// </summary> /// </summary>
public static string scanner_start_command = "scanner_start_command"; public static string scanner_start_command = "scanner_start_command";
/// <summary>
/// 预警温度
/// </summary>
public static string alert_temperate = "alert.temperate";
/// <summary>
/// 预警湿度
/// </summary>
public static string alert_humidity = "alert.humidity";
/// <summary>
/// 温度传感器端口号
/// </summary>
public static string temperate_port = "temperate.port";
public static string ClientSettingsProvider_ServiceUri = "ClientSettingsProvider.ServiceUri";
public static string app_cid = "app.cid";
public static string plc_no = "plc.no";
public static string http_server = "http.server"; public static string http_server = "http.server";
public static string Store_CID = "Store_CID";
/// <summary> /// <summary>
/// 料仓数量 /// 料仓数量
...@@ -104,106 +37,8 @@ namespace OnlineStore.Common ...@@ -104,106 +37,8 @@ namespace OnlineStore.Common
/// </summary> /// </summary>
public static string Store_Type = "Store_Type"; public static string Store_Type = "Store_Type";
/// <summary>
/// l料仓上下运动轴(轴或者电钢从站地址)
/// </summary>
public static string Store_UpDown_AxisOrSlv = "Store_UpDown_AxisOrSlv";
/// <summary>
/// 料仓对应料盘旋转轴,中轴
/// </summary>
public static string Store_Middle_Rotate_AxisNo = "Store_Middle_Rotate_AxisNo";
/// <summary>
/// 料仓对应扫码枪IP
/// </summary>
public static string Store_Scanner_IP = "Store_Scanner_IP";
/// <summary>
/// 料仓对应扫码枪端口
/// </summary>
public static string Store_Scanner_Port = "Store_Scanner_Port";
/// <summary>
/// 料仓对应温湿度传感器的地址(多个)
/// </summary>
public static string Store_Temperate_ServerAddress = "Store_Temperate_ServerAddress";
public static string Store_ForwardMove_DI = "Store_ForwardMove_DI";
public static string Store_BackMove_DI = "Store_BackMove_DI";
public static string Store_RotateMove_DI = "Store_RotateMove_DI";
public static string Store_ReturnHome_DI = "Store_ReturnHome_DI";
public static string Store_DoorUpSOL_DI = "Store_DoorUpSOL_DI";
public static string Store_DoorDownSOL_DI = "Store_DoorDownSOL_DI";
public static string Store_ForwardMove_DO = "Store_ForwardMove_DO";
public static string Store_BackMove_DO = "Store_BackMove_DO";
public static string Store_RotateMove_DO = "Store_RotateMove_DO";
public static string Store_ReturnHome_DO = "Store_ReturnHome_DO";
public static string Store_DoorUpSOL_DO = "Store_DoorUpSOL_DO";
public static string Store_DoorDownSOL_DO = "Store_DoorDownSOL_DO";
public static string Store_StartOrStopBlow_DO = "Store_StartOrStopBlow_DO";
public static string Store_DoorSignal_DI = "Store_DoorSignal_DI";
public static string Store_Board_Id = "Store_Board_Id";
public static string Store_CID = "Store_CID";
public static string Store_Run_Sign = "Store_Run_Sign";//设备运行可
public static string Store_AutoRun_HddLed = "Store_AutoRun_HddLed";//设备自动运行指示灯
public static string Store_Alarm_HddLed = "Store_Alarm_HddLed";//设备报警指示灯
public static string Store_SuddenStop_BTN = "Store_SuddenStop_BTN";//设备急停按钮
public static string Store_Reset_BTN = "Store_Reset_BTN";//设备复位按钮
public static string Store_MiddleAxis_Move_Speed = "Store_MiddleAxis_Move_Speed";//中轴转动速度
public static string Store_Updown_Move_Speed = "Store_Updown_Move_Speed";//上下轴移动速度
public static string Store_Updown_Move_Speed_Low = "Store_Updown_Move_Speed_Low";//上下轴慢运动速度(托起料盘和放下料盘使用此速度)
//以下为康塔克料仓特殊配置
public static string Store_PI_BoardName = "Store_PI_BoardName";
public static string Store_PO_BoardName = "Store_PO_BoardName";
public static string Store_Middle_BoardName = "Store_Middle_BoardName";
public static string Store_UpDown_BoardName = "Store_UpDown_BoardName";
/// <summary>
/// 康泰克IO输入卡名称
/// </summary>
public static string KTK_PI_BoardName = "KTK_PI_BoardName";
/// <summary>
/// 康泰克IO输出卡名称
/// </summary>
public static string KTK_PO_BoardName = "KTK_PO_BoardName";
/// <summary>
/// 康泰克运动版卡名称
/// </summary>
public static string KTK_SMC_BoardName = "KTK_SMC_BoardName";
public static string KTK_MOVE_ResolveSpeed = "KTK_MOVE_ResolveSpeed";
public static string KTK_MOVE_StartSpeed = "KTK_MOVE_StartSpeed";
public static string KTK_MOVE_TargetSpeed = "KTK_MOVE_TargetSpeed";
public static string KTK_MOVE_AccelTime = "KTK_MOVE_AccelTime";
public static string KTK_MOVE_lDecelTime = "KTK_MOVE_lDecelTime";
public static string KTK_MOVE_SSpeed = "KTK_MOVE_SSpeed";
public static string KTK_MOVE_Distance = "KTK_MOVE_Distance";
public static string KTK_MOVE_AxisNo = "KTK_MOVE_AxisNo";
//以下为流水线料仓的配置
public static string Store_ConfigPath = "Store_ConfigPath"; public static string Store_ConfigPath = "Store_ConfigPath";
public static string Store_Position_Config = "Store_Position_Config"; public static string Store_Position_Config = "Store_Position_Config";
public static string UserName = "UserName";
public static string UserPwd = "UserPwd";
//双层在线料仓新加配置
public static string ManchineID = "ManchineID";
public static string RemoteURL = "RemoteURL";
public static string RemoteUsername = "RemoteUsername";
public static string RemotePassword = "RemotePassword";
/// <summary>
/// 过滤 条件
/// </summary>
public static string FileListerFilter = "FileListerFilter";
public static string ProgramConfig = "ProgramConfig";
public static string RemoteWriteURL = "RemoteWriteURL";
public static string LineNoWaitSingle = "LineNoWaitSingle";
public static string TheLineId = "TheLineId";
public static string File_UpdateTime = "File_UpdateTime";
/// <summary> /// <summary>
/// 摄像机名称,多个中间使用#分割 /// 摄像机名称,多个中间使用#分割
/// </summary> /// </summary>
...@@ -212,10 +47,7 @@ namespace OnlineStore.Common ...@@ -212,10 +47,7 @@ namespace OnlineStore.Common
/// 需要识别的二维码类型,多个中间使用#分割 /// 需要识别的二维码类型,多个中间使用#分割
/// </summary> /// </summary>
public static string CodeType = "CodeType"; public static string CodeType = "CodeType";
/// <summary>
/// 当叉子不在待机位,升降轴可以走的最远距离,目标距离-当前距离的最大值,超过此值不允许升降
/// </summary>
public static string UpdownMaxValue = "UpdownMaxValue";
/// <summary> /// <summary>
/// 开始吹气的判断值(配置值=服务器发送的湿度值-开始吹气值) /// 开始吹气的判断值(配置值=服务器发送的湿度值-开始吹气值)
/// </summary> /// </summary>
...@@ -230,6 +62,5 @@ namespace OnlineStore.Common ...@@ -230,6 +62,5 @@ namespace OnlineStore.Common
/// </summary> /// </summary>
public static string CodeParamPath = "CodeParamPath"; public static string CodeParamPath = "CodeParamPath";
} }
} }
...@@ -8,6 +8,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -8,6 +8,11 @@ namespace OnlineStore.DeviceLibrary
public class ACCMDManager public class ACCMDManager
{ {
/// <summary> /// <summary>
/// 0132h 原点接近传感器输入 (HOME) 状态 ReadOnly 0: 输入 OFF 1: 输入 ON
/// </summary>
public static string Home_Single = "0132";
/// <summary>
///速度 4601 ///速度 4601
/// </summary> /// </summary>
public static string Speed_Addr = "4601"; public static string Speed_Addr = "4601";
......
...@@ -301,17 +301,17 @@ namespace OnlineStore.DeviceLibrary ...@@ -301,17 +301,17 @@ namespace OnlineStore.DeviceLibrary
if (portName.Equals(ACStoreManager.store.Config.Middle_Axis.DeviceName)) if (portName.Equals(ACStoreManager.store.Config.Middle_Axis.DeviceName))
{ {
UpdateBlock(portName, slvAddr, ACCMDManager.Block_HomeMove0); UpdateBlock(portName, slvAddr, ACCMDManager.Block_HomeMove0);
LogUtil.debug("旋转轴原点返回方向:正方向"); LogUtil.info("旋转轴原点返回方向:正方向");
} }
else if (portName.Equals(ACStoreManager.store.Config.InOut_Axis.DeviceName)) else if (portName.Equals(ACStoreManager.store.Config.InOut_Axis.DeviceName))
{ {
UpdateBlock(portName, slvAddr, ACCMDManager.Block_HomeMove0); UpdateBlock(portName, slvAddr, ACCMDManager.Block_HomeMove0);
LogUtil.debug("进出轴原点返回方向:正方向"); LogUtil.info("进出轴原点返回方向:正方向");
} }
else else
{ {
UpdateBlock(portName, slvAddr, ACCMDManager.Block_HomeMove1); UpdateBlock(portName, slvAddr, ACCMDManager.Block_HomeMove1);
LogUtil.debug("升降轴原点返回方向:反方向"); LogUtil.info("升降轴原点返回方向:反方向");
} }
Thread.Sleep(SleepMSendons); Thread.Sleep(SleepMSendons);
OpenAndCloseSTB(portName, slvAddr); OpenAndCloseSTB(portName, slvAddr);
......
...@@ -484,6 +484,14 @@ namespace OnlineStore.DeviceLibrary ...@@ -484,6 +484,14 @@ namespace OnlineStore.DeviceLibrary
return GetCoilData(portName, reviceData, ACCMDManager.HOME_CMP_Status); return GetCoilData(portName, reviceData, ACCMDManager.HOME_CMP_Status);
} }
public static int GetHomeSingle(string portName, int slvAddr)
{
PreReadCoilAddr = ACCMDManager.Home_Single;
byte[] dataArray = ACCMDManager.GetWriteData(slvAddr, ACCMDManager.CMD_ReadCoil, ACCMDManager.Home_Single, "0000", 1);
byte[] reviceData = SendCommand(portName, dataArray, 100, 6);
return GetCoilData(portName, reviceData, ACCMDManager.Home_Single);
}
} }
/// <summary> /// <summary>
/// 记录最后一次获得的寄存器的值 /// 记录最后一次获得的寄存器的值
......
...@@ -37,14 +37,13 @@ AXIS,(轴三)进出轴,InOut_Axis,1,COM5,0,,,, ...@@ -37,14 +37,13 @@ AXIS,(轴三)进出轴,InOut_Axis,1,COM5,0,,,,
PRO,温湿度传感器地址,Temperate_ServerAddress,192.168.200.14,,,,,, PRO,温湿度传感器地址,Temperate_ServerAddress,192.168.200.14,,,,,,
PRO,扫码枪IP,Scanner_Ip,192.168.200.13,,,,,, PRO,扫码枪IP,Scanner_Ip,192.168.200.13,,,,,,
PRO,扫码枪端口号,Scanner_Port,51236,,,,,, PRO,扫码枪端口号,Scanner_Port,51236,,,,,,
PRO,升降轴 进料口取料点 P1,UpDownAxis_DoorOPosition_P1,687000,,,,,, PRO,升降轴 进料口取料点 P1,UpDownAxis_DoorOPosition_P1,421300,,,,,,
PRO,升降轴 进料口出料前点 P2,UpDownAxis_DoorIPosition_P2,705000,,,,,, PRO,升降轴 进料口出料前点 P2,UpDownAxis_DoorIPosition_P2,452000,,,,,,
PRO,升降轴 进料口取料缓冲点 P7,UpDownAxis_DoorOBPosition_P7,705000,,,,,, PRO,升降轴 进料口取料缓冲点 P7,UpDownAxis_DoorOBPosition_P7,452000,,,,,,
PRO,升降轴 进料口出料缓冲点 P8,UpDownAxis_DoorIBPosition_P8,688000,,,,,, PRO,升降轴 进料口出料缓冲点 P8,UpDownAxis_DoorIBPosition_P8,421300,,,,,,
,进出轴进料口取料点 P2,InOutAxis_DoorPosition_P2,28500,,,,,, PRO,旋转轴(轴1)P1 待机原位点,MiddleAxis_P1_Position,-200450,,,,,,
PRO,旋转轴(轴1)P1 待机原位点,MiddleAxis_P1_Position,229500,,,,,, PRO,进出轴(轴3)P1待机原位点,InOutAxis_P1_Position,500,,,,,,
PRO,进出轴(轴3)P1待机原位点,InOutAxis_P1_Position,-4800,,,,,, PRO,押金轴(轴4)P1待机原位点,CompressAxis_P1_Position,0,,,,,,
PRO,押金轴(轴4)P1待机原位点,CompressAxis_P1_Position,360,,,,,,
PRO,是否使用定位气缸,IsHasLocationCylinder,1,,,,,, PRO,是否使用定位气缸,IsHasLocationCylinder,1,,,,,,
PRO,是否有左右侧门,IsHasDoorLimit,0,,,,,, PRO,是否有左右侧门,IsHasDoorLimit,0,,,,,,
PRO,是否使用压紧轴(1=使用),IsHasCompress_Axis,0,,,,, , PRO,是否使用压紧轴(1=使用),IsHasCompress_Axis,0,,,,, ,
...@@ -54,36 +53,36 @@ PRO,温湿度传感器地址,TemperateServer_Port,9001,,,,,, ...@@ -54,36 +53,36 @@ PRO,温湿度传感器地址,TemperateServer_Port,9001,,,,,,
PRO,预警温度,WarnTemperate,80,,,,,, PRO,预警温度,WarnTemperate,80,,,,,,
PRO,预警湿度,WarnHumidity,80,,,,,, PRO,预警湿度,WarnHumidity,80,,,,,,
PRO,(轴一)旋转轴目标速度,MiddleAxis_TargetSpeed,40,,,,,, PRO,(轴一)旋转轴目标速度,MiddleAxis_TargetSpeed,40,,,,,,
PRO,(轴一)旋转轴加速度,MiddleAxis_AddSpeed,5000,,,,,, PRO,(轴一)旋转轴加速度,MiddleAxis_AddSpeed,2000,,,,,,
PRO,(轴一)旋转轴减速度,MiddleAxis_DelSpeed,5000,,,,,, PRO,(轴一)旋转轴减速度,MiddleAxis_DelSpeed,2000,,,,,,
PRO,(轴一)旋转轴原点低速度,MiddleAxis_HomeLowSpeed,10,,,,,, PRO,(轴一)旋转轴原点低速度,MiddleAxis_HomeLowSpeed,800,,,,,,
PRO,(轴一)旋转轴原点高速,MiddleAxis_HomeHighSpeed,60,,,,,, PRO,(轴一)旋转轴原点高速,MiddleAxis_HomeHighSpeed,60,,,,,,
PRO,(轴一)旋转轴原点加速度,MiddleAxis_HomeAddSpeed,500,,,,,, PRO,(轴一)旋转轴原点加速度,MiddleAxis_HomeAddSpeed,500,,,,,,
PRO,(轴二)升降轴轴目标速度,UpdownAxis_TargetSpeed,40,,,,,, PRO,(轴二)升降轴轴目标速度,UpdownAxis_TargetSpeed,40,,,,,,
PRO,(轴二)升降轴轴加速度,UpdownAxis_AddSpeed,300,,,,,, PRO,(轴二)升降轴轴加速度,UpdownAxis_AddSpeed,1000,,,,,,
PRO,(轴二)升降轴轴减速度,UpdownAxis_DelSpeed,300,,,,,, PRO,(轴二)升降轴轴减速度,UpdownAxis_DelSpeed,1000,,,,,,
PRO,(轴二)升降轴轴原点低速度,UpdownAxis_HomeLowSpeed,100,,,,,, PRO,(轴二)升降轴轴原点低速度,UpdownAxis_HomeLowSpeed,100,,,,,,
PRO,(轴二)升降轴轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,, PRO,(轴二)升降轴轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,,
PRO,(轴二)升降轴轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,, PRO,(轴二)升降轴轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,,
PRO,(轴三)进出轴目标速度,InoutAxis_TargetSpeed,40,,,,,, PRO,(轴三)进出轴目标速度,InoutAxis_TargetSpeed,40,,,,,,
PRO,(轴三)进出轴加速度,InoutAxis_AddSpeed,300,,,,,, PRO,(轴三)进出轴加速度,InoutAxis_AddSpeed,1500,,,,,,
PRO,(轴三)进出轴减速度,InoutAxis_DelSpeed,300,,,,,, PRO,(轴三)进出轴减速度,InoutAxis_DelSpeed,1500,,,,,,
PRO,(轴三)进出轴原点低速,InoutAxis_HomeLowSpeed,20,,,,,, PRO,(轴三)进出轴原点低速,InoutAxis_HomeLowSpeed,20,,,,,,
PRO,(轴三)进出轴原点高速,InoutAxis_HomeHighSpeed,60,,,,,, PRO,(轴三)进出轴原点高速,InoutAxis_HomeHighSpeed,60,,,,,,
PRO,(轴三)进出轴原点加速度,InoutAxis_HomeAddSpeed,200,,,,,, PRO,(轴三)进出轴原点加速度,InoutAxis_HomeAddSpeed,200,,,,,,
PRO,升降轴(轴2)P1速度,UpDownAxis_P1_Speed,1200,,,,,, PRO,升降轴(轴2)P1速度,UpDownAxis_P1_Speed,800,,,,,,
PRO,升降轴(轴2)P2速度,UpDownAxis_P2_Speed,1000,,,,,, PRO,升降轴(轴2)P2速度,UpDownAxis_P2_Speed,800,,,,,,
PRO,升降轴(轴2)P3速度,UpDownAxis_P3_Speed,1000,,,,,, PRO,升降轴(轴2)P3速度,UpDownAxis_P3_Speed,800,,,,,,
PRO,升降轴(轴2)P4速度,UpDownAxis_P4_Speed,300,,,,,, PRO,升降轴(轴2)P4速度,UpDownAxis_P4_Speed,200,,,,,,
PRO,升降轴(轴2)P5速度,UpDownAxis_P5_Speed,1000,,,,,, PRO,升降轴(轴2)P5速度,UpDownAxis_P5_Speed,800,,,,,,
PRO,升降轴(轴2)P6速度,UpDownAxis_P6_Speed,300,,,,,, PRO,升降轴(轴2)P6速度,UpDownAxis_P6_Speed,200,,,,,,
PRO,升降轴(轴2)P7速度,UpDownAxis_P7_Speed,200,,,,,, PRO,升降轴(轴2)P7速度,UpDownAxis_P7_Speed,200,,,,,,
PRO,升降轴(轴2)P8速度,UpDownAxis_P8_Speed,200,,,,,, PRO,升降轴(轴2)P8速度,UpDownAxis_P8_Speed,200,,,,,,
PRO,旋转轴(轴1)P1速度,MiddleAxis_P1_Speed,400,,,,,, PRO,旋转轴(轴1)P1速度,MiddleAxis_P1_Speed,400,,,,,,
PRO,旋转轴(轴1)P2速度,MiddleAxis_P2_Speed,300,,,,,, PRO,旋转轴(轴1)P2速度,MiddleAxis_P2_Speed,400,,,,,,
PRO,进出轴(轴3)P1速度,InOutAxis_P1_Speed,150,,,,,, PRO,进出轴(轴3)P1速度,InOutAxis_P1_Speed,180,,,,,,
PRO,进出轴(轴3)P2速度,InOutAxis_P2_Speed,120,,,,,, PRO,进出轴(轴3)P2速度,InOutAxis_P2_Speed,180,,,,,,
PRO,进出轴(轴3)P3速度,InOutAxis_P3_Speed,120,,,,,, PRO,进出轴(轴3)P3速度,InOutAxis_P3_Speed,180,,,,,,
PRO,(轴一)旋转轴停止时可误差的脉冲数的最小值,MiddleAxis_ErrorCountMin,10,,,,,, PRO,(轴一)旋转轴停止时可误差的脉冲数的最小值,MiddleAxis_ErrorCountMin,10,,,,,,
PRO,(轴二)升降轴轴停止时可误差的脉冲数的最小值,UpdownAxis_ErrorCountMin,10,,,,,, PRO,(轴二)升降轴轴停止时可误差的脉冲数的最小值,UpdownAxis_ErrorCountMin,10,,,,,,
PRO,(轴三)进出轴停止时可误差的脉冲数的最小值,InoutAxis_ErrorCountMin,10,,,,,, PRO,(轴三)进出轴停止时可误差的脉冲数的最小值,InoutAxis_ErrorCountMin,10,,,,,,
...@@ -100,7 +99,7 @@ PRO,(轴三)进出轴最小限位,InoutAxis_PositionMin,0,,,,,, ...@@ -100,7 +99,7 @@ PRO,(轴三)进出轴最小限位,InoutAxis_PositionMin,0,,,,,,
PRO,(轴一)旋转轴最大限位,MiddleAxis_PositionMax,0,,,,,, PRO,(轴一)旋转轴最大限位,MiddleAxis_PositionMax,0,,,,,,
PRO,(轴二)升降轴最大限位,UpdownAxis_PositionMax,0,,,,,, PRO,(轴二)升降轴最大限位,UpdownAxis_PositionMax,0,,,,,,
PRO,(轴三)进出轴最大限位,InoutAxis_PositionMax,0,,,,,, PRO,(轴三)进出轴最大限位,InoutAxis_PositionMax,0,,,,,,
PRO,需要吹气的温度(温度标准),Max_Temperature,20,,,,,, PRO,需要吹气的温度(温度标准),Max_Temperature,0,,,,,,
PRO,需要吹气的湿度(湿度标准),Max_Humidity,10,,,,,, PRO,需要吹气的湿度(湿度标准),Max_Humidity,10,,,,,,
PRO,每次吹气的时间(分钟),BlowAir_Time,10,,,,,, PRO,每次吹气的时间(分钟),BlowAir_Time,10,,,,,,
PRO,两次吹气间隔(分钟),BlowAir_Interval,10,,,,,, PRO,两次吹气间隔(分钟),BlowAir_Interval,10,,,,,,
位置,优先级,高度,宽度,料仓ID,中轴位置P2,升降轴库位出料前点P5,升降轴库位出料缓冲点P6,升降轴库位入料前点P3,升降轴库位入料缓冲点P4,进出轴库位点取料点P3,压紧轴压紧点P2,压紧轴压紧前点P3,进出轴进料口取料点P2 位置,优先级,高度,宽度,料仓ID,中轴位置P2,升降轴库位出料前点P5,升降轴库位出料缓冲点P6,升降轴库位入料前点P3,升降轴库位入料缓冲点P4,进出轴库位点取料点P3,压紧轴压紧点P2,压紧轴压紧前点P3,进出轴进料口取料点P2
1#AC1_1_1_3,149,65,325,1,125150,52800,72800,72800,52800,27600,0,0,28600 1#AC1_1_1_3,149,65,325,1,-4485,423600,436400,436400,423600,-106050,0,0,-109000
1#AC1_1_1_4,148,65,325,1,125160,100800,120800,120800,100800,27600,0,0,28600 1#AC1_1_1_4,,65,325,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_5,147,65,325,1,125170,148800,168800,168800,148800,27600,0,0,28600 1#AC1_1_1_5,,65,325,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_6,146,65,325,1,125180,196800,216800,216800,196800,27600,0,0,28600 1#AC1_1_1_6,,65,325,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_7,145,65,325,1,125190,244800,264800,264800,244800,27600,0,0,28600 1#AC1_1_1_7,,65,325,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_8,144,65,325,1,125200,292800,312800,312800,292800,27600,0,0,28600 1#AC1_1_1_8,,65,325,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_9,143,65,325,1,125210,340800,360800,360800,340800,27600,0,0,28600 1#AC1_1_1_9,,65,325,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_10,137,45,420,1,125220,388800,408800,408800,388800,27600,0,0,28600 1#AC1_1_1_10,,45,420,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_11,138,45,420,1,125230,436800,456800,456800,436800,27600,0,0,28600 1#AC1_1_1_11,,45,420,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_12,139,45,420,1,125240,484800,504800,504800,484800,27600,0,0,28600 1#AC1_1_1_12,,45,420,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_13,140,45,420,1,125250,532800,552800,552800,532800,27600,0,0,28600 1#AC1_1_1_13,,45,420,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_14,141,45,420,1,125260,580800,600800,600800,580800,27600,0,0,28600 1#AC1_1_1_14,,45,420,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_15,142,45,420,1,125270,628800,648800,648800,628800,27600,0,0,28600 1#AC1_1_1_15,,45,420,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_16,143,45,420,1,125280,676800,696800,696800,676800,27600,0,0,28600 1#AC1_1_1_16,,45,420,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
1#AC1_1_1_17,144,45,420,1,125290,724800,744800,744800,724800,27600,0,0,28600 1#AC1_1_1_17,,45,420,1,-67000,570000,600000,600000,570000,-15000,0,0,-15000
,,,,,,,,,,,,, ,,,,,,,,,,,,,
1#AC1_2_1_3,149,65,325,1,125150,52800,72800,72800,52800,27600,0,0,28600 1#AC1_2_1_3,,65,325,1,125150,52800,72800,72800,52800,-15000,0,0,-15000
1#AC1_2_1_4,148,65,325,1,125160,100800,120800,120800,100800,27600,0,0,28600 1#AC1_2_1_4,,65,325,1,125160,100800,120800,120800,100800,-15000,0,0,-15000
1#AC1_2_1_5,147,65,325,1,125170,148800,168800,168800,148800,27600,0,0,28600 1#AC1_2_1_5,,65,325,1,125170,148800,168800,168800,148800,-15000,0,0,-15000
1#AC1_2_1_6,146,65,325,1,125180,196800,216800,216800,196800,27600,0,0,28600 1#AC1_2_1_6,,65,325,1,125180,196800,216800,216800,196800,-15000,0,0,-15000
1#AC1_2_1_7,145,65,325,1,125190,244800,264800,264800,244800,27600,0,0,28600 1#AC1_2_1_7,,65,325,1,125190,244800,264800,264800,244800,-15000,0,0,-15000
1#AC1_2_1_8,144,65,325,1,125200,292800,312800,312800,292800,27600,0,0,28600 1#AC1_2_1_8,,65,325,1,125200,292800,312800,312800,292800,-15000,0,0,-15000
1#AC1_2_1_9,143,65,325,1,125210,340800,360800,360800,340800,27600,0,0,28600 1#AC1_2_1_9,,65,325,1,125210,340800,360800,360800,340800,-15000,0,0,-15000
1#AC1_2_1_10,137,45,420,1,125220,388800,408800,408800,388800,27600,0,0,28600 1#AC1_2_1_10,,45,420,1,125220,388800,408800,408800,388800,-15000,0,0,-15000
1#AC1_2_1_11,138,45,420,1,125230,436800,456800,456800,436800,27600,0,0,28600 1#AC1_2_1_11,,45,420,1,125230,436800,456800,456800,436800,-15000,0,0,-15000
1#AC1_2_1_12,139,45,420,1,125240,484800,504800,504800,484800,27600,0,0,28600 1#AC1_2_1_12,,45,420,1,125240,484800,504800,504800,484800,-15000,0,0,-15000
1#AC1_2_1_13,140,45,420,1,125250,532800,552800,552800,532800,27600,0,0,28600 1#AC1_2_1_13,,45,420,1,125250,532800,552800,552800,532800,-15000,0,0,-15000
1#AC1_2_1_14,141,45,420,1,125260,580800,600800,600800,580800,27600,0,0,28600 1#AC1_2_1_14,,45,420,1,125260,580800,600800,600800,580800,-15000,0,0,-15000
1#AC1_2_1_15,142,45,420,1,125270,628800,648800,648800,628800,27600,0,0,28600 1#AC1_2_1_15,,45,420,1,125270,628800,648800,648800,628800,-15000,0,0,-15000
1#AC1_2_1_16,143,45,420,1,125280,676800,696800,696800,676800,27600,0,0,28600 1#AC1_2_1_16,,45,420,1,125280,676800,696800,696800,676800,-15000,0,0,-15000
1#AC1_2_1_17,144,45,420,1,125290,724800,744800,744800,724800,27600,0,0,28600 1#AC1_2_1_17,,45,420,1,125290,724800,744800,744800,724800,-15000,0,0,-15000
,,,,,,,,,,,,, ,,,,,,,,,,,,,
1#AC1_3_1_3,149,65,325,1,125150,52800,72800,72800,52800,27600,0,0,28600 1#AC1_3_1_3,,65,325,1,125150,52800,72800,72800,52800,-15000,0,0,-15000
1#AC1_3_1_4,148,65,325,1,125160,100800,120800,120800,100800,27600,0,0,28600 1#AC1_3_1_4,,65,325,1,125160,100800,120800,120800,100800,-15000,0,0,-15000
1#AC1_3_1_5,147,65,325,1,125170,148800,168800,168800,148800,27600,0,0,28600 1#AC1_3_1_5,,65,325,1,125170,148800,168800,168800,148800,-15000,0,0,-15000
1#AC1_3_1_6,146,65,325,1,125180,196800,216800,216800,196800,27600,0,0,28600 1#AC1_3_1_6,,65,325,1,125180,196800,216800,216800,196800,-15000,0,0,-15000
1#AC1_3_1_7,145,65,325,1,125190,244800,264800,264800,244800,27600,0,0,28600 1#AC1_3_1_7,,65,325,1,125190,244800,264800,264800,244800,-15000,0,0,-15000
1#AC1_3_1_8,144,65,325,1,125200,292800,312800,312800,292800,27600,0,0,28600 1#AC1_3_1_8,,65,325,1,125200,292800,312800,312800,292800,-15000,0,0,-15000
1#AC1_3_1_9,143,65,325,1,125210,340800,360800,360800,340800,27600,0,0,28600 1#AC1_3_1_9,,65,325,1,125210,340800,360800,360800,340800,-15000,0,0,-15000
1#AC1_3_1_10,137,45,420,1,125220,388800,408800,408800,388800,27600,0,0,28600 1#AC1_3_1_10,,45,420,1,125220,388800,408800,408800,388800,-15000,0,0,-15000
1#AC1_3_1_11,138,45,420,1,125230,436800,456800,456800,436800,27600,0,0,28600 1#AC1_3_1_11,,45,420,1,125230,436800,456800,456800,436800,-15000,0,0,-15000
1#AC1_3_1_12,139,45,420,1,125240,484800,504800,504800,484800,27600,0,0,28600 1#AC1_3_1_12,,45,420,1,125240,484800,504800,504800,484800,-15000,0,0,-15000
1#AC1_3_1_13,140,45,420,1,125250,532800,552800,552800,532800,27600,0,0,28600 1#AC1_3_1_13,,45,420,1,125250,532800,552800,552800,532800,-15000,0,0,-15000
1#AC1_3_1_14,141,45,420,1,125260,580800,600800,600800,580800,27600,0,0,28600 1#AC1_3_1_14,,45,420,1,125260,580800,600800,600800,580800,-15000,0,0,-15000
1#AC1_3_1_15,142,45,420,1,125270,628800,648800,648800,628800,27600,0,0,28600 1#AC1_3_1_15,,45,420,1,125270,628800,648800,648800,628800,-15000,0,0,-15000
1#AC1_3_1_16,143,45,420,1,125280,676800,696800,696800,676800,27600,0,0,28600 1#AC1_3_1_16,,45,420,1,125280,676800,696800,696800,676800,-15000,0,0,-15000
1#AC1_3_1_17,144,45,420,1,125290,724800,744800,744800,724800,27600,0,0,28600 1#AC1_3_1_17,,45,420,1,125290,724800,744800,744800,724800,-15000,0,0,-15000
,,,,,,,,,,,,, ,,,,,,,,,,,,,
1#AC1_4_1_3,149,65,325,1,125150,52800,72800,72800,52800,27600,0,0,28600 1#AC1_4_1_3,,65,325,1,125150,52800,72800,72800,52800,-15000,0,0,-15000
1#AC1_4_1_4,148,65,325,1,125160,100800,120800,120800,100800,27600,0,0,28600 1#AC1_4_1_4,,65,325,1,125160,100800,120800,120800,100800,-15000,0,0,-15000
1#AC1_4_1_5,147,65,325,1,125170,148800,168800,168800,148800,27600,0,0,28600 1#AC1_4_1_5,,65,325,1,125170,148800,168800,168800,148800,-15000,0,0,-15000
1#AC1_4_1_6,146,65,325,1,125180,196800,216800,216800,196800,27600,0,0,28600 1#AC1_4_1_6,,65,325,1,125180,196800,216800,216800,196800,-15000,0,0,-15000
1#AC1_4_1_7,145,65,325,1,125190,244800,264800,264800,244800,27600,0,0,28600 1#AC1_4_1_7,,65,325,1,125190,244800,264800,264800,244800,-15000,0,0,-15000
1#AC1_4_1_8,144,65,325,1,125200,292800,312800,312800,292800,27600,0,0,28600 1#AC1_4_1_8,,65,325,1,125200,292800,312800,312800,292800,-15000,0,0,-15000
1#AC1_4_1_9,143,65,325,1,125210,340800,360800,360800,340800,27600,0,0,28600 1#AC1_4_1_9,,65,325,1,125210,340800,360800,360800,340800,-15000,0,0,-15000
1#AC1_4_1_10,137,45,420,1,125220,388800,408800,408800,388800,27600,0,0,28600 1#AC1_4_1_10,,45,420,1,125220,388800,408800,408800,388800,-15000,0,0,-15000
1#AC1_4_1_11,138,45,420,1,125230,436800,456800,456800,436800,27600,0,0,28600 1#AC1_4_1_11,,45,420,1,125230,436800,456800,456800,436800,-15000,0,0,-15000
1#AC1_4_1_12,139,45,420,1,125240,484800,504800,504800,484800,27600,0,0,28600 1#AC1_4_1_12,,45,420,1,125240,484800,504800,504800,484800,-15000,0,0,-15000
1#AC1_4_1_13,140,45,420,1,125250,532800,552800,552800,532800,27600,0,0,28600 1#AC1_4_1_13,,45,420,1,125250,532800,552800,552800,532800,-15000,0,0,-15000
1#AC1_4_1_14,141,45,420,1,125260,580800,600800,600800,580800,27600,0,0,28600 1#AC1_4_1_14,,45,420,1,125260,580800,600800,600800,580800,-15000,0,0,-15000
1#AC1_4_1_15,142,45,420,1,125270,628800,648800,648800,628800,27600,0,0,28600 1#AC1_4_1_15,,45,420,1,125270,628800,648800,648800,628800,-15000,0,0,-15000
1#AC1_4_1_16,143,45,420,1,125280,676800,696800,696800,676800,27600,0,0,28600 1#AC1_4_1_16,,45,420,1,125280,676800,696800,696800,676800,-15000,0,0,-15000
1#AC1_4_1_17,144,45,420,1,125290,724800,744800,744800,724800,27600,0,0,28600 1#AC1_4_1_17,,45,420,1,125290,724800,744800,744800,724800,-15000,0,0,-15000
,,,,,,,,,,,,, ,,,,,,,,,,,,,
1#AC1_5_1_3,149,65,325,1,125150,52800,72800,72800,52800,27600,0,0,28600 1#AC1_5_1_3,,65,325,1,125150,52800,72800,72800,52800,-15000,0,0,-15000
1#AC1_5_1_4,148,65,325,1,125160,100800,120800,120800,100800,27600,0,0,28600 1#AC1_5_1_4,,65,325,1,125160,100800,120800,120800,100800,-15000,0,0,-15000
1#AC1_5_1_5,147,65,325,1,125170,148800,168800,168800,148800,27600,0,0,28600 1#AC1_5_1_5,,65,325,1,125170,148800,168800,168800,148800,-15000,0,0,-15000
1#AC1_5_1_6,146,65,325,1,125180,196800,216800,216800,196800,27600,0,0,28600 1#AC1_5_1_6,,65,325,1,125180,196800,216800,216800,196800,-15000,0,0,-15000
1#AC1_5_1_7,145,65,325,1,125190,244800,264800,264800,244800,27600,0,0,28600 1#AC1_5_1_7,,65,325,1,125190,244800,264800,264800,244800,-15000,0,0,-15000
1#AC1_5_1_8,144,65,325,1,125200,292800,312800,312800,292800,27600,0,0,28600 1#AC1_5_1_8,,65,325,1,125200,292800,312800,312800,292800,-15000,0,0,-15000
1#AC1_5_1_9,143,65,325,1,125210,340800,360800,360800,340800,27600,0,0,28600 1#AC1_5_1_9,,65,325,1,125210,340800,360800,360800,340800,-15000,0,0,-15000
1#AC1_5_1_10,137,45,420,1,125220,388800,408800,408800,388800,27600,0,0,28600 1#AC1_5_1_10,,45,420,1,125220,388800,408800,408800,388800,-15000,0,0,-15000
1#AC1_5_1_11,138,45,420,1,125230,436800,456800,456800,436800,27600,0,0,28600 1#AC1_5_1_11,,45,420,1,125230,436800,456800,456800,436800,-15000,0,0,-15000
1#AC1_5_1_12,139,45,420,1,125240,484800,504800,504800,484800,27600,0,0,28600 1#AC1_5_1_12,,45,420,1,125240,484800,504800,504800,484800,-15000,0,0,-15000
1#AC1_5_1_13,140,45,420,1,125250,532800,552800,552800,532800,27600,0,0,28600 1#AC1_5_1_13,,45,420,1,125250,532800,552800,552800,532800,-15000,0,0,-15000
1#AC1_5_1_14,141,45,420,1,125260,580800,600800,600800,580800,27600,0,0,28600 1#AC1_5_1_14,,45,420,1,125260,580800,600800,600800,580800,-15000,0,0,-15000
1#AC1_5_1_15,142,45,420,1,125270,628800,648800,648800,628800,27600,0,0,28600 1#AC1_5_1_15,,45,420,1,125270,628800,648800,648800,628800,-15000,0,0,-15000
1#AC1_5_1_16,143,45,420,1,125280,676800,696800,696800,676800,27600,0,0,28600 1#AC1_5_1_16,,45,420,1,125280,676800,696800,696800,676800,-15000,0,0,-15000
1#AC1_5_1_17,144,45,420,1,125290,724800,744800,744800,724800,27600,0,0,28600 1#AC1_5_1_17,,45,420,1,125290,724800,744800,744800,724800,-15000,0,0,-15000
...@@ -324,17 +324,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -324,17 +324,10 @@ namespace OnlineStore.DeviceLibrary
StoreMove.NextMoveStep(StoreMoveStep.BOX_H_InOutBack); StoreMove.NextMoveStep(StoreMoveStep.BOX_H_InOutBack);
ACAxisHomeMove(Config.InOut_Axis); ACAxisHomeMove(Config.InOut_Axis);
LogUtil.info(LOGGER, StoreName + "开始原点返回,先把进出轴回原点"); LogUtil.info(LOGGER, StoreName + "开始原点返回,先把进出轴回原点");
//设置速度
SetShuokeSpeed();
StoreMove.WaitList.Add(WaitResultInfo.WaitTime(2000)); StoreMove.WaitList.Add(WaitResultInfo.WaitTime(2000));
} }
private void SetShuokeSpeed()
{
if (!IsHasCompress_Axis)
{
return;
}
}
public void MoveToP1() public void MoveToP1()
{ {
//压紧轴回原点,叉子回到P1,关闭门旋转轴和升降轴回到P1 //压紧轴回原点,叉子回到P1,关闭门旋转轴和升降轴回到P1
...@@ -391,13 +384,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -391,13 +384,13 @@ namespace OnlineStore.DeviceLibrary
} }
if (IsHasCompress_Axis || Config.IsHasLocationCylinder.Equals(0)) if (IsHasCompress_Axis || Config.IsHasLocationCylinder.Equals(0))
{ {
StoreMove.NextMoveStep(StoreMoveStep.BOX_H_InOutBack); InoutStartReset();
LogUtil.info(LOGGER, StoreName + "开始复位,先把进出轴回原点"); //StoreMove.NextMoveStep(StoreMoveStep.BOX_H_InOutBack);
//LogUtil.info(LOGGER, StoreName + "开始复位,先把进出轴回原点");
//ACAxisHomeMove(Config.InOut_Axis);
//StoreMove.WaitList.Add(WaitResultInfo.WaitTime(2000));
ACAxisHomeMove(Config.InOut_Axis);
//硕科压紧轴回原点
SetShuokeSpeed();
StoreMove.WaitList.Add(WaitResultInfo.WaitTime(2000));
} }
else else
{ {
...@@ -408,7 +401,27 @@ namespace OnlineStore.DeviceLibrary ...@@ -408,7 +401,27 @@ namespace OnlineStore.DeviceLibrary
} }
isInPro = false; isInPro = false;
} }
private void InoutStartReset()
{
string portName = Config.InOut_Axis.DeviceName;
int slvAddr = Config.InOut_Axis.GetAxisValue();
if (ACServerManager.GetHomeEndStatus(portName, slvAddr).Equals(1)
&& ACServerManager.GetHomeSingle(portName, slvAddr).Equals(1))
{
StoreMove.NextMoveStep(StoreMoveStep.BOX_H_InOutMove);
LogUtil.info(LOGGER, StoreName + "复位中,进出轴原点亮且已经原点返回过,先相对走3000");
int currPos = ACServerManager.GetActualtPosition(portName, slvAddr);
int targetPos = currPos + 3000;
ACAxisMove(Config.InOut_Axis, targetPos, Config.InoutAxis_HomeLowSpeed);
}
else
{
StoreMove.NextMoveStep(StoreMoveStep.BOX_H_InOutBack);
LogUtil.info(LOGGER, StoreName + "复位中,进出轴开始原点返回");
ACAxisHomeMove(Config.InOut_Axis);
StoreMove.WaitList.Add(WaitResultInfo.WaitTime(2000));
}
}
/// <summary> /// <summary>
/// 复位处理 /// 复位处理
/// </summary> /// </summary>
...@@ -425,9 +438,16 @@ namespace OnlineStore.DeviceLibrary ...@@ -425,9 +438,16 @@ namespace OnlineStore.DeviceLibrary
switch (StoreMove.MoveStep) switch (StoreMove.MoveStep)
{ {
case StoreMoveStep.BOX_H_LocationCylinderBack: case StoreMoveStep.BOX_H_LocationCylinderBack:
//StoreMove.NextMoveStep(StoreMoveStep.BOX_H_InOutBack);
//ACAxisHomeMove(Config.InOut_Axis);
//LogUtil.info(LOGGER, StoreName + "复位中:进出轴回原点。。");
//StoreMove.WaitList.Add(WaitResultInfo.WaitTime(2000));
InoutStartReset();
break;
case StoreMoveStep.BOX_H_InOutMove:
StoreMove.NextMoveStep(StoreMoveStep.BOX_H_InOutBack); StoreMove.NextMoveStep(StoreMoveStep.BOX_H_InOutBack);
ACAxisHomeMove(Config.InOut_Axis); ACAxisHomeMove(Config.InOut_Axis);
LogUtil.info(LOGGER, StoreName + "复位中:进出轴回原点。。"); LogUtil.info(LOGGER, StoreName + "复位中:进出轴开始原点返回");
StoreMove.WaitList.Add(WaitResultInfo.WaitTime(2000)); StoreMove.WaitList.Add(WaitResultInfo.WaitTime(2000));
break; break;
case StoreMoveStep.BOX_H_InOutBack: case StoreMoveStep.BOX_H_InOutBack:
...@@ -746,14 +766,16 @@ namespace OnlineStore.DeviceLibrary ...@@ -746,14 +766,16 @@ namespace OnlineStore.DeviceLibrary
this.alarmType = alarmType; this.alarmType = alarmType;
if (alarmType.Equals(StoreAlarmType.AxisAlarm) | alarmType.Equals(StoreAlarmType.AxisMoveError)) if (alarmType.Equals(StoreAlarmType.AxisAlarm) | alarmType.Equals(StoreAlarmType.AxisMoveError))
{ {
LogUtil.error(LOGGER, StoreName + "轴报警,关闭轴,打开报警灯"); LogUtil.error(LOGGER, StoreName + "轴报警,关闭刹车,停止运动,关闭轴,打开报警灯");
KNDIOMove(IO_Type.Axis_Brake, IO_VALUE.LOW);
StopMove(); StopMove();
CloseAllAxis(); CloseAllAxis();
} }
else if (alarmType == StoreAlarmType.SuddenStop) else if (alarmType == StoreAlarmType.SuddenStop)
{ {
isInSuddenDown = true; isInSuddenDown = true;
LogUtil.error(LOGGER, StoreName + "收到急停信号,关闭所有轴卡,关闭所有IO,停止所有运动"); LogUtil.error(LOGGER, StoreName + "收到急停信号,关闭刹车,停止运动,关闭轴,打开报警灯 ");
KNDIOMove(IO_Type.Axis_Brake, IO_VALUE.LOW);
StopMove(); StopMove();
CloseAllAxis(); CloseAllAxis();
StoreMove.EndMove(); StoreMove.EndMove();
...@@ -762,7 +784,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -762,7 +784,8 @@ namespace OnlineStore.DeviceLibrary
else if (alarmType.Equals(StoreAlarmType.NoAirCheck)) else if (alarmType.Equals(StoreAlarmType.NoAirCheck))
{ {
isNoAirCheck = true; isNoAirCheck = true;
LogUtil.error(LOGGER, StoreName + " 未检测到气压信号 ,关闭所有轴卡,关闭所有IO,停止所有运动"); LogUtil.error(LOGGER, StoreName + " 未检测到气压信号 ,打开刹车,停止运动,关闭轴,打开报警灯 ");
KNDIOMove(IO_Type.Axis_Brake, IO_VALUE.LOW);
StopMove(); StopMove();
CloseAllAxis(); CloseAllAxis();
StoreMove.EndMove(); StoreMove.EndMove();
...@@ -1131,7 +1154,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -1131,7 +1154,7 @@ namespace OnlineStore.DeviceLibrary
//在回原点,复位,出入库时,检测报警间隔减小 //在回原点,复位,出入库时,检测报警间隔减小
if (storeRunStatus.Equals(StoreRunStatus.Busy) || storeRunStatus.Equals(StoreRunStatus.HomeMoving) || storeRunStatus.Equals(StoreRunStatus.Reset)) if (storeRunStatus.Equals(StoreRunStatus.Busy) || storeRunStatus.Equals(StoreRunStatus.HomeMoving) || storeRunStatus.Equals(StoreRunStatus.Reset))
{ {
if (span.TotalSeconds < 1) if (span.TotalSeconds < 0.5)
{ {
return false; return false;
} }
......
...@@ -211,14 +211,16 @@ namespace OnlineStore.DeviceLibrary ...@@ -211,14 +211,16 @@ namespace OnlineStore.DeviceLibrary
/// 料仓原点返回和重置步骤,,定位气缸下降 /// 料仓原点返回和重置步骤,,定位气缸下降
/// </summary> /// </summary>
BOX_H_LocationCylinderBack=010, BOX_H_LocationCylinderBack=010,
/// <summary> /// <summary>
/// 料仓原点返回和重置步骤,,轴三进出轴先返回原点 /// 料仓原点返回和重置步骤,轴三先相对走3000
/// </summary> /// </summary>
BOX_H_InOutBack = 011, BOX_H_InOutMove=011,
/// <summary> /// <summary>
/// 料仓原点返回和重置步骤,,轴三进出轴返回原点后,需要等待500毫秒,然后再清空 /// 料仓原点返回和重置步骤,,轴三进出轴先返回原点
/// </summary> /// </summary>
//BOX_H_InOutBackWait = 012, BOX_H_InOutBack = 012,
/// <summary> /// <summary>
/// 料仓原点返回和重置步骤,,轴三返回P1点 /// 料仓原点返回和重置步骤,,轴三返回P1点
/// </summary> /// </summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!