Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e53252f5
由
张东亮
编写于
2025-11-07 10:01:38 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
回原后回原信号检查、在缓存区范围检查
1 个父辈
aca5029e
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
35 行增加
和
5 行删除
source/DeviceLibrary/baan/AxisBean.cs
source/DeviceLibrary/manager/model/DeviceMoveInfo.cs
source/DeviceLibrary/storeBean/EquipBase.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
source/DeviceLibrary/baan/AxisBean.cs
查看文件 @
e53252f
...
...
@@ -30,7 +30,6 @@ namespace OnlineStore.DeviceLibrary
AxisName
=
deviceName
+
" "
+
Config
.
Explain
+
"["
+
Config
.
DeviceName
+
"-"
+
Config
.
GetAxisValue
()
+
"]"
;
}
private
bool
IsIntSlvBlock
=
false
;
public
bool
Open
(
bool
isCheck
,
out
string
Msg
)
{
...
...
@@ -136,6 +135,12 @@ namespace OnlineStore.DeviceLibrary
}
}
public
static
bool
GetHomeSig
(
DeviceMoveInfo
MoveInfo
,
ConfigMoveAxis
axis
)
{
string
deviceName
=
axis
.
DeviceName
;
short
axisNo
=
axis
.
GetAxisValue
();
return
AxisManager
.
instance
.
GetHomeSingle
(
deviceName
,
axisNo
).
Equals
(
1
);
}
/// <summary>
/// 判断AC伺服电机轴是否运动完成
/// </summary>
...
...
source/DeviceLibrary/manager/model/DeviceMoveInfo.cs
查看文件 @
e53252f
...
...
@@ -417,6 +417,9 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
public
int
HeightValue
{
get
;
set
;
}
public
DateTime
StartTrrigerTime
=
DateTime
.
MinValue
;
}
internal
class
WaitEnum
...
...
source/DeviceLibrary/storeBean/EquipBase.cs
查看文件 @
e53252f
...
...
@@ -320,7 +320,28 @@ namespace OnlineStore.DeviceLibrary
string
msg
=
""
;
if
(
wait
.
IsHomeMove
)
{
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
;
}
}
if
(!
wait
.
IsEnd
)
{
msg
=
$
"{wait.AxisInfo.DisplayStr} 回原结束,但信号未持续亮500ms"
;
}
}
}
else
{
...
...
@@ -518,7 +539,7 @@ namespace OnlineStore.DeviceLibrary
}
protected
AlarmType
alarmRedLedType
=
AlarmType
.
AxisAlarm
;
protected
bool
isHumiTemOverlimit
=
false
;
protected
bool
isHumiTemOverlimit
=
false
;
protected
void
LedProcess
(
object
sender
,
ElapsedEventArgs
e
)
{
try
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
查看文件 @
e53252f
...
...
@@ -432,7 +432,8 @@ namespace OnlineStore.DeviceLibrary
}
else
{
if
(
MoveAxis
.
IsInPosition
(
Config
.
MoveAxis_P2
))
var
moveAxisIsInBufferMaxPulse
=
ConfigHelper
.
Config
.
Get
(
"行走机构在缓存区的最大脉冲值"
,
Config
.
MoveAxis_P1
+
20000
);
if
(
MoveAxis
.
IsInPosition
(
Config
.
MoveAxis_P2
)
||
MoveAxis
.
GetAclPosition
()
<
moveAxisIsInBufferMaxPulse
)
{
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H0101_CheckXAxisAndUpdownAxis
);
if
(
MiddleAxis_A
.
IsInPosition
(
Config
.
MiddleAxis_A_P2
)
&&
XAxis_A
.
IsInPosition
(
Config
.
XAxis_A_P2
))
...
...
@@ -825,7 +826,7 @@ namespace OnlineStore.DeviceLibrary
//}
//if (!runStatus.Equals(RunStatus.Runing))
// return;
if
(
MoveStop
)
if
(
MoveStop
)
{
return
;
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论