Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 8edc95ae
由
刘韬
编写于
2024-05-07 13:20:15 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
提升初次料串上升速度, 入料机构回原时带上料仓一起回原
1 个父辈
33ce29be
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
41 行增加
和
7 行删除
source/DeviceLibrary/storeBean/boxBean/AutoInoutInfo.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean.cs
source/DeviceLibrary/storeBean/inputBean/InputEquip.cs
source/DeviceLibrary/storeBean/boxBean/AutoInoutInfo.cs
查看文件 @
8edc95a
...
@@ -46,16 +46,34 @@ namespace OnlineStore.DeviceLibrary
...
@@ -46,16 +46,34 @@ namespace OnlineStore.DeviceLibrary
{
{
try
try
{
{
//是否自动进入出库状态
if
(
StoreManager
.
XLRStore
.
boxEquip
.
paresetReset
)
if
(!
autoNext
)
{
{
return
;
if
(
storeMoveType
==
MoveType
.
InStore
)
{
StoreManager
.
XLRStore
.
boxEquip
.
paresetReset
=
false
;
boxBean
.
LogInfo
(
$
"上料机构复位时请求料仓复位"
);
boxBean
.
Reset
();
CurrInOutCount
=
0
;
}
}
}
CurrInOutCount
++;
CurrInOutCount
++;
if
(
CurrInOutCount
>=
boxBean
.
Config
.
Box_ResetCount
)
if
(
CurrInOutCount
>=
boxBean
.
Config
.
Box_ResetCount
)
{
{
boxBean
.
LogInfo
(
$
"存储机构出入库达到{CurrInOutCount}次数,需要复位"
);
boxBean
.
LogInfo
(
$
"存储机构出入库达到{CurrInOutCount}次数,需要复位"
);
boxBean
.
Reset
();
//if (storeMoveType == MoveType.InStore)
//{
// boxBean.Reset();
//}
//if (storeMoveType == MoveType.OutStore)
//{
// boxBean.Reset();
//}
}
//是否自动进入出库状态
if
(!
autoNext
)
{
return
;
}
}
if
(
storeMoveType
.
Equals
(
MoveType
.
InStore
))
if
(
storeMoveType
.
Equals
(
MoveType
.
InStore
))
{
{
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
查看文件 @
8edc95a
...
@@ -294,7 +294,19 @@ namespace OnlineStore.DeviceLibrary
...
@@ -294,7 +294,19 @@ namespace OnlineStore.DeviceLibrary
SetAllTimer
(
true
);
SetAllTimer
(
true
);
return
true
;
return
true
;
}
}
public
bool
paresetReset
=
false
;
public
void
SafeReset
()
{
if
(
MoveInfo
.
MoveStep
==
StepEnum
.
Wait
)
{
LogInfo
(
"料仓没有动作 开始重置"
);
Reset
();
}
else
{
LogInfo
(
"料仓正在动作 结束后重置"
);
paresetReset
=
true
;
}
}
public
override
bool
Reset
()
public
override
bool
Reset
()
{
{
StopMove
();
StopMove
();
...
...
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean.cs
查看文件 @
8edc95a
...
@@ -345,7 +345,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -345,7 +345,10 @@ namespace OnlineStore.DeviceLibrary
targetP2
=
Config
.
BatchAxisP2
;
targetP2
=
Config
.
BatchAxisP2
;
}
}
}
}
targetSpeed
=
Robot
.
Config
.
BatchAxis_P3Speed
/
2
;
targetSpeed
=
Robot
.
Config
.
BatchAxis_P3Speed
;
}
else
{
targetSpeed
=
Robot
.
Config
.
BatchAxis_P1Speed
;
}
}
// 需要增加定时器,获取验证信号并停止伺服
// 需要增加定时器,获取验证信号并停止伺服
StartMovePosition
=
BatchAxis
.
GetAclPosition
();
StartMovePosition
=
BatchAxis
.
GetAclPosition
();
...
@@ -365,7 +368,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -365,7 +368,7 @@ namespace OnlineStore.DeviceLibrary
public
void
BatchAxisDown
()
public
void
BatchAxisDown
()
{
{
int
targetP1
=
Config
.
BatchAxisP1
;
int
targetP1
=
Config
.
BatchAxisP1
;
int
targetSpeed
=
Robot
.
Config
.
BatchAxis_P
3Speed
/
2
;
int
targetSpeed
=
Robot
.
Config
.
BatchAxis_P
1Speed
;
{
{
MoveInfo
.
TimeOutSeconds
=
200
;
MoveInfo
.
TimeOutSeconds
=
200
;
MoveInfo
.
CanWhileCount
=
0
;
MoveInfo
.
CanWhileCount
=
0
;
...
...
source/DeviceLibrary/storeBean/inputBean/InputEquip.cs
查看文件 @
8edc95a
...
@@ -158,6 +158,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -158,6 +158,7 @@ namespace OnlineStore.DeviceLibrary
OnlyResetInputAxis
=
true
;
OnlyResetInputAxis
=
true
;
LogUtil
.
info
(
$
"入料机构出入库到达{resetCnt},准备复位"
);
LogUtil
.
info
(
$
"入料机构出入库到达{resetCnt},准备复位"
);
Reset
();
Reset
();
StoreManager
.
XLRStore
.
boxEquip
.
SafeReset
();
}
}
}
}
public
override
bool
Reset
()
public
override
bool
Reset
()
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论