Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO908-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5dd7fb09
由
张东亮
编写于
2023-09-20 10:58:51 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
启动或者复位时清空出库缓存
1 个父辈
502c2435
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
13 行删除
source/DeviceLibrary/storeBean/EquipBase.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
source/DeviceLibrary/storeBean/EquipBase.cs
查看文件 @
5dd7fb0
...
@@ -74,7 +74,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -74,7 +74,7 @@ namespace OnlineStore.DeviceLibrary
alarmType
.
Equals
(
AlarmType
.
AxisAlarm
)
||
alarmType
.
Equals
(
AlarmType
.
AxisMoveError
))
alarmType
.
Equals
(
AlarmType
.
AxisAlarm
)
||
alarmType
.
Equals
(
AlarmType
.
AxisMoveError
))
{
{
AxisAlarmFlag
=
true
;
AxisAlarmFlag
=
true
;
Stop
Move
();
Stop
Run
();
}
}
}
}
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
查看文件 @
5dd7fb0
...
@@ -350,6 +350,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -350,6 +350,8 @@ namespace OnlineStore.DeviceLibrary
alarmType
=
AlarmType
.
None
;
alarmType
=
AlarmType
.
None
;
isInSuddenDown
=
false
;
isInSuddenDown
=
false
;
isNoAirpressure_Check
=
false
;
isNoAirpressure_Check
=
false
;
waitAOutStoreList
=
new
ConcurrentQueue
<
InOutParam
>();
waitBOutStoreList
=
new
ConcurrentQueue
<
InOutParam
>();
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H001_Wait
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H001_Wait
);
AutoInout
.
StopAuto
();
AutoInout
.
StopAuto
();
LogInfo
(
$
"复位 {MoveInfo.SLog} :存储机构轴开始复位"
);
LogInfo
(
$
"复位 {MoveInfo.SLog} :存储机构轴开始复位"
);
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
查看文件 @
5dd7fb0
...
@@ -29,7 +29,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -29,7 +29,7 @@ namespace OnlineStore.DeviceLibrary
Operation
operation
=
getLineBoxStatus
();
Operation
operation
=
getLineBoxStatus
();
if
(!
string
.
IsNullOrEmpty
(
posid
))
if
(!
string
.
IsNullOrEmpty
(
posid
))
{
{
operation
.
boxStatus
[
1
].
data
[
ParamDefine
.
posId
]=
posid
;
operation
.
boxStatus
[
1
].
data
[
ParamDefine
.
posId
]
=
posid
;
}
}
LogUtil
.
info
(
$
"SendStoreState,posid:{posid}, storeStatus:{storeStatus}"
);
LogUtil
.
info
(
$
"SendStoreState,posid:{posid}, storeStatus:{storeStatus}"
);
operation
.
boxStatus
[
1
].
status
=
(
int
)
storeStatus
;
operation
.
boxStatus
[
1
].
status
=
(
int
)
storeStatus
;
...
@@ -62,14 +62,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -62,14 +62,14 @@ namespace OnlineStore.DeviceLibrary
lastConTime
=
DateTime
.
Now
;
lastConTime
=
DateTime
.
Now
;
try
try
{
{
// humBean.HumidityProcess(this);
// humBean.HumidityProcess(this);
//if (IsDebug)
//if (IsDebug)
//{
//{
//}
//}
//else
//else
{
{
if
(
StoreManager
.
IsConnectServer
)
if
(
StoreManager
.
IsConnectServer
&&
(
runStatus
.
Equals
(
RunStatus
.
Runing
)||
runStatus
.
Equals
(
RunStatus
.
Busy
))
)
{
{
SendLineStatus
();
SendLineStatus
();
}
}
...
@@ -125,26 +125,26 @@ namespace OnlineStore.DeviceLibrary
...
@@ -125,26 +125,26 @@ namespace OnlineStore.DeviceLibrary
else
if
(
runStatus
.
Equals
(
DeviceStatus
.
OutStoreBoxEnd
)
||
runStatus
.
Equals
(
DeviceStatus
.
InStoreEnd
))
else
if
(
runStatus
.
Equals
(
DeviceStatus
.
OutStoreBoxEnd
)
||
runStatus
.
Equals
(
DeviceStatus
.
InStoreEnd
))
{
{
boxStatus
.
data
.
Add
(
ParamDefine
.
posId
,
lastPosId
);
boxStatus
.
data
.
Add
(
ParamDefine
.
posId
,
lastPosId
);
boxStatus
.
data
.
Add
(
ParamDefine
.
barcode
,
lastBarcode
);
boxStatus
.
data
.
Add
(
ParamDefine
.
barcode
,
lastBarcode
);
boxStatus
.
data
.
Add
(
ParamDefine
.
executeTime
,
executeTime
);
boxStatus
.
data
.
Add
(
ParamDefine
.
executeTime
,
executeTime
);
}
}
else
if
(!
lastPosId
.
Equals
(
""
))
else
if
(!
lastPosId
.
Equals
(
""
))
{
{
boxStatus
.
data
.
Add
(
ParamDefine
.
posId
,
lastPosId
);
boxStatus
.
data
.
Add
(
ParamDefine
.
posId
,
lastPosId
);
boxStatus
.
data
.
Add
(
ParamDefine
.
barcode
,
lastBarcode
);
boxStatus
.
data
.
Add
(
ParamDefine
.
barcode
,
lastBarcode
);
boxStatus
.
data
.
Add
(
ParamDefine
.
executeTime
,
executeTime
);
boxStatus
.
data
.
Add
(
ParamDefine
.
executeTime
,
executeTime
);
boxStatus
.
status
=
(
int
)
deviceStatus
;
boxStatus
.
status
=
(
int
)
deviceStatus
;
if
(
lastPosId
!=
""
)
if
(
lastPosId
!=
""
)
{
{
LogUtil
.
info
(
"给服务器发送出入库消息:"
+
Name
+
",status【"
+
deviceStatus
+
"】posId【"
+
lastPosId
+
"】barcode【"
+
lastBarcode
+
"】"
);
LogUtil
.
info
(
"给服务器发送出入库消息:"
+
Name
+
",status【"
+
deviceStatus
+
"】posId【"
+
lastPosId
+
"】barcode【"
+
lastBarcode
+
"】"
);
}
}
lastPosId
=
""
;
lastPosId
=
""
;
lastBarcode
=
""
;
lastBarcode
=
""
;
}
}
if
(
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
InStore
)
||
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
OutStore
))
if
(
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
InStore
)
||
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
OutStore
))
{
{
if
((
MoveInfo
.
MoveParam
!=
null
)
&&(
MoveInfo
.
MoveParam
.
PosInfo
!=
null
))
if
((
MoveInfo
.
MoveParam
!=
null
)
&&
(
MoveInfo
.
MoveParam
.
PosInfo
!=
null
))
{
{
if
(!
boxStatus
.
data
.
ContainsKey
(
ParamDefine
.
posId
))
if
(!
boxStatus
.
data
.
ContainsKey
(
ParamDefine
.
posId
))
{
{
...
@@ -249,9 +249,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -249,9 +249,9 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
logName
+
"服务器反馈 :"
+
resultOperation
.
msg
);
LogUtil
.
info
(
logName
+
"服务器反馈 :"
+
resultOperation
.
msg
);
continue
;
continue
;
}
}
else
if
(
resultOperation
.
op
.
Equals
(
1
)&&
operation
.
seq
.
Equals
(
resultOperation
.
seq
))
else
if
(
resultOperation
.
op
.
Equals
(
1
)
&&
operation
.
seq
.
Equals
(
resultOperation
.
seq
))
{
{
LogUtil
.
info
(
logName
+
" 成功"
+
$
"【{JsonHelper.SerializeObject(resultOperation)}】"
);
LogUtil
.
info
(
logName
+
" 成功"
+
$
"【{JsonHelper.SerializeObject(resultOperation)}】"
);
return
true
;
return
true
;
}
}
else
else
...
@@ -334,8 +334,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -334,8 +334,8 @@ namespace OnlineStore.DeviceLibrary
try
try
{
{
//判断是否接收过此库位的出库信息
//判断是否接收过此库位的出库信息
if
(
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
OutStore
)
&&
(
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
.
Equals
(
posId
)
||
if
(
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
OutStore
)
&&
(
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
.
Equals
(
posId
)
||
(
MoveInfo
.
MoveParam
.
PosInfoBack
!=
null
&&
MoveInfo
.
MoveParam
.
PosInfoBack
.
PosId
.
Equals
(
posId
))))
(
MoveInfo
.
MoveParam
.
PosInfoBack
!=
null
&&
MoveInfo
.
MoveParam
.
PosInfoBack
.
PosId
.
Equals
(
posId
))))
{
{
LogUtil
.
error
(
Name
+
" 出库命令【"
+
inoutParam
.
PosInfo
.
ToStr
()
+
"】重复,正在【"
+
posId
+
"】出库中"
);
LogUtil
.
error
(
Name
+
" 出库命令【"
+
inoutParam
.
PosInfo
.
ToStr
()
+
"】重复,正在【"
+
posId
+
"】出库中"
);
continue
;
continue
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论