Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit fee4217a
由
张东亮
编写于
2025-11-07 20:22:04 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
回原时行走机构去待机点时,移栽X轴回待机点
1 个父辈
e53252f5
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
34 行增加
和
3 行删除
source/DeviceLibrary/storeBean/EquipBase.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean.cs
source/DeviceLibrary/storeBean/EquipBase.cs
查看文件 @
fee4217
...
@@ -11,6 +11,7 @@ using System.Text;
...
@@ -11,6 +11,7 @@ using System.Text;
using
System.Threading
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
System.Timers
;
using
System.Timers
;
using
System.Web.UI
;
namespace
OnlineStore.DeviceLibrary
namespace
OnlineStore.DeviceLibrary
{
{
...
@@ -336,10 +337,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -336,10 +337,13 @@ namespace OnlineStore.DeviceLibrary
wait
.
IsEnd
=
true
;
wait
.
IsEnd
=
true
;
}
}
}
}
else
if
(!
wait
.
IsEnd
)
{
msg
=
$
"{wait.AxisInfo.DisplayStr} 回原结束,原点信号没亮"
;
}
if
(!
wait
.
IsEnd
&&
!
wait
.
StartTrrigerTime
.
Equals
(
DateTime
.
MinValue
))
{
{
msg
=
$
"{wait.AxisInfo.DisplayStr} 回原结束,但信号未持续亮500ms"
;
LogUtil
.
info
(
$
"{wait.AxisInfo.DisplayStr} 回原结束,信号持续时间{(DateTime.Now - wait.StartTrrigerTime).TotalMilliseconds.ToString("
f2
")}ms"
)
;
}
}
}
}
}
}
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
查看文件 @
fee4217
...
@@ -636,6 +636,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -636,6 +636,9 @@ namespace OnlineStore.DeviceLibrary
case
StepEnum
.
BOX_H01_CheckCurPullDownPos
:
case
StepEnum
.
BOX_H01_CheckCurPullDownPos
:
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H01_1_MoveAxisToP1
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H01_1_MoveAxisToP1
);
XAxis_A
.
AbsMove
(
MoveInfo
,
Config
.
XAxis_A_P1
,
Config
.
XAxis_A_P1_Speed
);
XAxis_B
.
AbsMove
(
MoveInfo
,
Config
.
XAxis_B_P1
,
Config
.
XAxis_B_P1_Speed
);
LogInfo
(
$
"复位 {MoveInfo.SLog}:移栽X轴到P1"
);
MoveAxisToP1
();
MoveAxisToP1
();
LogInfo
(
$
"复位 {MoveInfo.SLog}:行走机构去待机点"
);
LogInfo
(
$
"复位 {MoveInfo.SLog}:行走机构去待机点"
);
break
;
break
;
...
...
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean.cs
查看文件 @
fee4217
...
@@ -445,6 +445,30 @@ namespace OnlineStore.DeviceLibrary
...
@@ -445,6 +445,30 @@ namespace OnlineStore.DeviceLibrary
if
(
wait
.
IsHomeMove
)
if
(
wait
.
IsHomeMove
)
{
{
wait
.
IsEnd
=
AxisBean
.
HomeMoveIsEnd
(
moveInfo
,
wait
.
AxisInfo
,
out
msg
);
wait
.
IsEnd
=
AxisBean
.
HomeMoveIsEnd
(
moveInfo
,
wait
.
AxisInfo
,
out
msg
);
//var isEnd = AxisBean.HomeMoveIsEnd(moveInfo, wait.AxisInfo, out msg);
//if (isEnd)
//{
// var homeSigOk = AxisBean.GetHomeSig(moveInfo, wait.AxisInfo);
// if (homeSigOk)
// {
// if (wait.StartTrrigerTime.Equals(DateTime.MinValue))
// {
// wait.StartTrrigerTime = DateTime.Now;
// }
// if ((DateTime.Now - wait.StartTrrigerTime).TotalMilliseconds > 500)
// {
// wait.IsEnd = true;
// }
// }
// else
// {
// msg = $"{wait.AxisInfo.DisplayStr} 回原结束,原点信号没亮";
// }
// if (!wait.IsEnd)
// {
// LogUtil.info($"{wait.AxisInfo.DisplayStr} 回原结束,信号持续时间{(DateTime.Now - wait.StartTrrigerTime).TotalMilliseconds.ToString("f2")}ms");
// }
//}
}
}
else
else
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论