Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO815-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e567911a
由
LN
编写于
2020-11-12 13:24:42 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
单盘入库,获取库位号之后,需要重新压紧一次
1 个父辈
b5cfda84
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
37 行删除
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/acSingleStore/AutomaticBaiting_Partial.cs
source/DeviceLibrary/store/InOrOutStoreParam.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
e567911
...
...
@@ -719,17 +719,19 @@ namespace OnlineStore.DeviceLibrary
}
else
{
LogUtil
.
info
(
"单盘入库获取库位号成功:"
+
param
.
PositionNum
+
",叉子后退,开始入库"
);
//更改当前入库参数
storeRunStatus
=
StoreRunStatus
.
Busy
;
storeStatus
=
StoreStatus
.
InStoreExecute
;
StoreMove
.
MoveParam
=
param
;
moveP
=
StoreMove
.
MoveParam
.
MoveP
;
//lastMoveType = StoreMoveType.InStore;
StoreMove
.
IsBatchInOutStore
=
true
;
StoreMove
.
IsNeedInStore
=
true
;
LogUtil
.
info
(
"单盘入库获取库位号成功:"
+
param
.
ToStr
()
+
",叉子后退,压紧轴压紧["
+
moveP
.
ComPress_P2
+
"],开始入库"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_07_InoutToP1
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P1
,
Config
.
InOutAxis_P1_Position
);
ComMoveToPosition
(
moveP
.
ComPress_P2
,
Config
.
CompAxis_P2_Speed
);
}
}
}
...
...
source/DeviceLibrary/acSingleStore/AutomaticBaiting_Partial.cs
查看文件 @
e567911
...
...
@@ -535,9 +535,7 @@ namespace OnlineStore.DeviceLibrary
Dictionary
<
string
,
string
>
data
=
resultOperation
.
data
;
if
(
data
!=
null
&&
data
.
ContainsKey
(
ParamDefine
.
posId
)
&&
data
.
ContainsKey
(
ParamDefine
.
plateH
)
&&
data
.
ContainsKey
(
ParamDefine
.
plateW
))
{
//服务器返回时有:posId库位编号,plateW:料盘宽度,plateH:料盘高度,
//postId格式BoxId#位置
{
string
posId
=
data
[
ParamDefine
.
posId
];
try
{
...
...
@@ -548,10 +546,8 @@ namespace OnlineStore.DeviceLibrary
//bool isSingleOut = singleOut.ToLower().Equals("true");
string
[]
posArray
=
posId
.
Split
(
'#'
);
if
(!(
posArray
.
Length
==
2
))
{
// WarnMsg = Name + ResourceControl.GetString(ResourceControl.InStoreError, "入库库位格式错误:") + "【" + message + "】【" + posId + "】";
SetWarnMsgAndLog
(
ResourceControl
.
InStoreError
,
message
,
posId
);
// LogUtil.error("服务器反馈 入库库位格式错误:二维码【" + message + "】库位【" + posId + "】");
{
SetWarnMsgAndLog
(
ResourceControl
.
InStoreError
,
message
,
posId
);
return
null
;
}
...
...
@@ -559,10 +555,8 @@ namespace OnlineStore.DeviceLibrary
//根据发送的posId获取位置列表
AutoStorePosition
position
=
CSVPositionReader
<
AutoStorePosition
>.
GetPositon
(
posId
);
if
(
position
==
null
)
{
//出入库没有找到服务器发送的库位,需要打印日志方便查询原因
// WarnMsg = ResourceControl.GetString(ResourceControl.InStoreNoPosition, "入库未找到库位:") + "【" + message + "】【" + posId + "】 ";
SetWarnMsgAndLog
(
ResourceControl
.
InStoreNoPosition
,
message
,
posId
);
// LogUtil.error("服务器反馈 入库未找到库位:二维码【" + message + "】库位【" + posId + "】");
{
SetWarnMsgAndLog
(
ResourceControl
.
InStoreNoPosition
,
message
,
posId
);
return
null
;
}
...
...
source/DeviceLibrary/store/InOrOutStoreParam.cs
查看文件 @
e567911
...
...
@@ -46,17 +46,7 @@ namespace OnlineStore.DeviceLibrary
this
.
PlateH
=
plateH
;
IsSolderPaste
=
false
;
}
//public InOutStoreParam(string wareNo, string posId, int plateH, int plateW,int trayCode)
//{
// ACStoreP = null;
// WareNumber = wareNo;
// PositionNum = posId;
// MoveP = null;
// this.PlagtW = plateW;
// this.PlateH = plateH;
// this.TrayCode = trayCode;
// IsSolderPaste = false;
//}
public
InOutStoreParam
(
string
wareNo
,
string
posId
,
LineMoveP
linePosition
)
{
...
...
@@ -67,14 +57,7 @@ namespace OnlineStore.DeviceLibrary
IsSolderPaste
=
false
;
SetSize
();
}
//public InOutStoreParam(string wareNo, string posId, AutoStorePosition movep)
//{
// ACStoreP = movep;
// WareNumber = wareNo;
// PositionNum = posId;
// MoveP = null;
// IsSolderPaste = false;
//}
public
void
SetSize
()
{
AutoStorePosition
position
=
CSVPositionReader
<
AutoStorePosition
>.
GetPositon
(
PositionNum
);
...
...
@@ -116,10 +99,7 @@ namespace OnlineStore.DeviceLibrary
/// 位置坐标名(对应配置表的位置)
/// </summary>
public
string
PositionNum
{
get
;
set
;
}
/// <summary>
/// 托盘号
/// </summary>
public
int
TrayCode
{
get
;
set
;
}
public
LineMoveP
MoveP
{
get
;
set
;
}
/// <summary>
...
...
@@ -134,7 +114,10 @@ namespace OnlineStore.DeviceLibrary
/// 是否是放入锡膏(在线料仓才需要此字段)
/// </summary>
public
bool
IsSolderPaste
{
get
;
set
;
}
public
string
ToStr
()
{
return
" ["
+
WareNumber
+
"] ["
+
PositionNum
+
"] ["
+
PlagtW
+
"x"
+
PlateH
+
"] "
;
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论