Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 6565a536
由
LN
编写于
2023-11-06 14:36:45 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
入库通知增加日志。
1 个父辈
8f0c4992
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
49 行增加
和
12 行删除
source/Common/bean/Bean.cs
source/Common/util/HttpHelper.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/Common/bean/Bean.cs
查看文件 @
6565a53
...
...
@@ -2,7 +2,7 @@
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
OnlineStore.Common
{
...
...
@@ -71,6 +71,26 @@ namespace OnlineStore.Common
/// 报警集合
/// </summary>
public
List
<
AlarmInfo
>
alarmList
=
new
List
<
AlarmInfo
>();
public
string
GetBoxData
(
string
key
=
""
)
{
if
(
key
==
""
)
{
key
=
ParamDefine
.
posId
;
}
if
(
boxStatus
!=
null
&&
boxStatus
.
Count
>
0
)
{
foreach
(
BoxStatus
item
in
boxStatus
.
Values
)
{
if
(
item
.
data
.
ContainsKey
(
key
))
{
return
item
.
data
[
key
];
}
}
}
return
""
;
}
}
/// <summary>
...
...
source/Common/util/HttpHelper.cs
查看文件 @
6565a53
...
...
@@ -37,6 +37,11 @@ namespace OnlineStore.Common
string
result
=
PostJson
(
url
,
json
,
Encoding
.
UTF8
,
out
isTimeOut
);
if
((
operation
.
op
>
0
&&
operation
.
op
!=
5
)
||
operation
.
GetBoxData
()
!=
""
)
{
LogUtil
.
info
(
$
"PostOP send [{json}] ,revice [{result}]"
);
}
if
(!
string
.
IsNullOrEmpty
(
result
))
{
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
6565a53
...
...
@@ -1460,8 +1460,12 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
lastPosId
!=
""
)
{
LogUtil
.
info
(
$
"SendLineStatus ,发送成功,清空 lastPosId "
+
lastPosId
);
lastPosId
=
""
;
string
sendPosId
=
operation
.
GetBoxData
();
if
(
sendPosId
!=
""
)
{
LogUtil
.
info
(
$
"SendLineStatus , sendPosId ={sendPosId}, 发送成功,清空 lastPosId "
+
lastPosId
);
lastPosId
=
""
;
}
}
if
(
resultOperation
==
null
)
{
...
...
@@ -1788,10 +1792,14 @@ namespace OnlineStore.DeviceLibrary
if
(
IsDebug
)
{
boxStatus
.
status
=
(
int
)
StoreStatus
.
Debugging
;
}
}
else
if
(
storeStatus
.
Equals
(
StoreStatus
.
OutStoreBoxEnd
)
||
storeStatus
.
Equals
(
StoreStatus
.
InStoreEnd
))
{
boxStatus
.
data
.
Add
(
ParamDefine
.
posId
,
lastPosId
);
boxStatus
.
data
.
Add
(
ParamDefine
.
posId
,
lastPosId
);
if
(
lastPosId
!=
""
)
{
LogUtil
.
info
(
"给服务器发送出入库完成消息:"
+
StoreName
+
",status【"
+
storeStatus
+
"】posId【"
+
lastPosId
+
"】"
);
}
}
else
if
(!
lastPosId
.
Equals
(
""
))
{
...
...
@@ -1799,9 +1807,9 @@ namespace OnlineStore.DeviceLibrary
boxStatus
.
status
=
(
int
)
lastPosIdStatus
;
if
(
lastPosId
!=
""
)
{
LogUtil
.
info
(
"给服务器发送出入库完成消息:"
+
StoreName
+
",status【"
+
lastPosIdStatus
+
"】posId【"
+
lastPosId
+
"】"
);
LogUtil
.
info
(
"给服务器发送出入库完成消息:"
+
StoreName
+
",status【"
+
lastPosIdStatus
+
"】posId【"
+
lastPosId
+
"】"
);
}
// lastPosId = "";
// lastPosId = "";
}
//如果在空闲中,且有入库未完成,直接发送入库执行中
...
...
@@ -1860,8 +1868,12 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
lastPosId
!=
""
)
{
LogUtil
.
info
(
$
"SendLineStatus ,发送成功,清空 lastPosId "
+
lastPosId
);
lastPosId
=
""
;
string
sendPosId
=
lineOperation
.
GetBoxData
();
if
(
sendPosId
!=
""
)
{
LogUtil
.
info
(
$
"SendLineStatus , sendPosId ={sendPosId}, 发送成功,清空 lastPosId "
+
lastPosId
);
lastPosId
=
""
;
}
}
//发送状态信息到服务器
if
(
resultOperation
==
null
||
(
resultOperation
.
op
<=
0
))
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
6565a53
...
...
@@ -583,7 +583,7 @@ namespace OnlineStore.DeviceLibrary
//SendLineStatus(StoreID, posId, StoreStatus.InStoreEnd);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_14_PutWareToBag
);
InStoreLog
(
"入库: 放下物品
,升降轴至P4(库位入料缓冲点)["
+
moveP
.
UpDown_P4
+
"] ,压紧轴至P3(压紧前点) ["
+
moveP
.
ComPress_P3
+
"]"
);
InStoreLog
(
$
"入库: 放下物品, 设置lastPosId={lastPosId} , lastPosIdStatus={lastPosIdStatus}
,升降轴至P4(库位入料缓冲点)["
+
moveP
.
UpDown_P4
+
"] ,压紧轴至P3(压紧前点) ["
+
moveP
.
ComPress_P3
+
"]"
);
ComMoveToPosition
(
moveP
.
ComPress_P3
,
Config
.
CompAxis_P3_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P4
,
Config
.
UpDownAxis_P4_Speed
);
...
...
@@ -766,11 +766,11 @@ namespace OnlineStore.DeviceLibrary
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_05_GetWare
)
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_06_InoutToP1
);
OutStoreLog
(
"出库:进出轴至P1(待机点) "
);
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PosInfo
.
PosId
:
""
;
OutStoreLog
(
"出库:进出轴至P1(待机点) ,设置 lastPosId="
+
posId
);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed);
InOutBackToP1
(
moveP
.
InOut_P1
);
//把库位的物品放到取到叉子上之后是出仓完成
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PosInfo
.
PosId
:
""
;
lastPosIdStatus
=
StoreStatus
.
OutStoreBoxEnd
;
storeStatus
=
StoreStatus
.
OutStoreBoxEnd
;
lastPosId
=
posId
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论