Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit fc530fa1
由
张东亮
编写于
2024-03-07 08:47:55 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
入库期间急停锁定库位,收到料盘尺寸为0时使用库位尺寸
1 个父辈
0d199e3d
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
33 行增加
和
0 行删除
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
DeviceLibrary/theMachine/BoxTransport.cs
DeviceLibrary/theMachine/MainMachine _BtnProcess.cs
DeviceLibrary/theMachine/MainMachine_Store.cs
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
查看文件 @
fc530fa
...
...
@@ -669,6 +669,12 @@ namespace DeviceLibrary
}
else
{
if
(
plateH
==
0
||
plateW
==
0
)
{
plateW
=
position
.
BagWidth
;
plateH
=
position
.
BagHigh
;
LogUtil
.
info
(
"收到服务器出库命令:【"
+
posId
+
$
"】,但无尺寸信息,使用库位尺寸{plateW}*{plateH}"
);
}
if
(
isSingleOut
)
RobotManage
.
mainMachine
.
AddSingleStoreTask
(
posId
,
plateW
,
plateH
);
else
...
...
DeviceLibrary/theMachine/BoxTransport.cs
查看文件 @
fc530fa
...
...
@@ -55,6 +55,10 @@ namespace DeviceLibrary
MoveInfo
.
NewMove
(
MoveStep
.
Wait
);
MoveInfo
.
log
(
"执行重置"
);
}
public
bool
IsInstore
{
get
{
return
Common
.
IsInstore
(
storeMoveType
)
;
}
}
StoreMoveType
storeMoveType
=
StoreMoveType
.
None
;
string
WareCode
=
""
;
int
plateH
=
0
;
...
...
DeviceLibrary/theMachine/MainMachine _BtnProcess.cs
查看文件 @
fc530fa
...
...
@@ -59,6 +59,7 @@ namespace DeviceLibrary
void
SuddenStop_BTN
()
{
lastSuddenStop
=
true
;
RobotManage
.
mainMachine
.
DisableInstorePos
();
RobotManage
.
Stop
();
}
}
...
...
DeviceLibrary/theMachine/MainMachine_Store.cs
查看文件 @
fc530fa
...
...
@@ -34,6 +34,28 @@ namespace DeviceLibrary
if
(
OutSingleJobList
.
Enqueue
(
jobInfo
))
LogUtil
.
info
(
$
"单盘出库任务队列任务数量: {OutSingleJobList.Count}"
);
}
/// <summary>
/// 入库,放料前急停屏蔽库位
/// </summary>
/// <param name="reason"></param>
public
void
DisableInstorePos
(
string
reason
=
"入库中,放料前急停屏蔽库位"
)
{
try
{
if
(
boxTransport
!=
null
)
{
if
(
boxTransport
.
IsInstore
)
//&& !boxTransport.IsPutOnOut
{
ServerCommunication
.
DisablePos
(
Name
,
StoreMoveInfo
.
MoveParam
?.
WareCode
,
StoreMoveInfo
.
MoveParam
?.
PosID
,
reason
);
}
}
}
catch
(
Exception
e
)
{
LogUtil
.
error
(
$
"DisableInstorePos error"
,
e
);
}
}
void
StoreProcess
()
{
if
(
CheckWait
(
StoreMoveInfo
))
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论