Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 111b89b1
由
张东亮
编写于
2025-08-13 16:56:53 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
消息上传打印
1 个父辈
c752d3a0
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
35 行增加
和
17 行删除
source/DeviceLibrary/manager/model/DeviceBase.cs
source/DeviceLibrary/manager/model/DeviceMoveInfo.cs
source/DeviceLibrary/storeBean/EquipBase.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
source/DeviceLibrary/storeBean/inputBean/InputEquip_InStore.cs
source/DeviceLibrary/manager/model/DeviceBase.cs
查看文件 @
111b89b
...
...
@@ -247,9 +247,9 @@ namespace OnlineStore.DeviceLibrary
}
}
WarnMsg
=
msg
;
if
(!
string
.
IsNullOrEmpty
(
WarnM
sg
))
if
(!
string
.
IsNullOrEmpty
(
m
sg
))
{
Msg
.
add
(
WarnM
sg
,
MsgLevel
.
alarm
);
Msg
.
add
(
m
sg
,
MsgLevel
.
alarm
);
}
}
public
void
SetCriticalMsg
(
string
msg
=
""
)
...
...
@@ -269,9 +269,9 @@ namespace OnlineStore.DeviceLibrary
}
}
WarnMsg
=
msg
;
if
(!
string
.
IsNullOrEmpty
(
WarnM
sg
))
if
(!
string
.
IsNullOrEmpty
(
m
sg
))
{
Msg
.
add
(
WarnM
sg
,
MsgLevel
.
critical
);
Msg
.
add
(
m
sg
,
MsgLevel
.
critical
);
}
}
...
...
source/DeviceLibrary/manager/model/DeviceMoveInfo.cs
查看文件 @
111b89b
...
...
@@ -137,7 +137,7 @@ namespace OnlineStore.DeviceLibrary
}
public
void
NextMoveStep
(
StepEnum
step
)
{
TimeOutSeconds
=
6
0
;
TimeOutSeconds
=
12
0
;
PreMoveStep
=
moveStep
;
moveStep
=
step
;
LastSetpTime
=
DateTime
.
Now
;
...
...
@@ -158,7 +158,7 @@ namespace OnlineStore.DeviceLibrary
}
public
void
NewMove
(
MoveType
type
)
{
TimeOutSeconds
=
6
0
;
TimeOutSeconds
=
12
0
;
moveStep
=
StepEnum
.
Wait
;
this
.
moveType
=
type
;
LastSetpTime
=
DateTime
.
Now
;
...
...
@@ -168,7 +168,7 @@ namespace OnlineStore.DeviceLibrary
}
public
void
NewMove
(
MoveType
type
,
InOutParam
param
)
{
TimeOutSeconds
=
6
0
;
TimeOutSeconds
=
12
0
;
moveStep
=
StepEnum
.
Wait
;
this
.
moveType
=
type
;
this
.
MoveParam
=
param
;
...
...
source/DeviceLibrary/storeBean/EquipBase.cs
查看文件 @
111b89b
...
...
@@ -267,7 +267,7 @@ namespace OnlineStore.DeviceLibrary
if
(
alarmIo
.
Equals
(
1
))
{
WarnMsg
=
Name
+
" "
+
axisInfo
.
AxisName
+
"报警"
;
Msg
.
add
(
WarnMsg
,
MsgLevel
.
alarm
);
Msg
.
add
(
Name
+
" "
+
axisInfo
.
AxisName
+
"报警"
,
MsgLevel
.
alarm
);
LogUtil
.
error
(
WarnMsg
);
if
(
NeedAlarm
)
...
...
@@ -330,7 +330,7 @@ namespace OnlineStore.DeviceLibrary
{
isOk
=
false
;
WarnMsg
=
Name
+
msg
;
Msg
.
add
(
WarnM
sg
,
MsgLevel
.
alarm
);
Msg
.
add
(
Name
+
m
sg
,
MsgLevel
.
alarm
);
Alarm
(
AlarmType
.
AxisMoveError
);
LogUtil
.
error
(
WarnMsg
,
moveInfo
.
ErrorLogType
,
moveInfo
.
logSeconds
());
break
;
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
查看文件 @
111b89b
...
...
@@ -127,6 +127,7 @@ namespace OnlineStore.DeviceLibrary
return
false
;
}
string
preUploadMsg
=
""
;
public
void
ProcessMsg
(
List
<
Msg
>
msg
)
{
uploadMsg
=
string
.
Join
(
"\r\n"
,
msg
.
Select
(
x
=>
...
...
@@ -135,9 +136,14 @@ namespace OnlineStore.DeviceLibrary
{
return
GetMsgPrefix
(
x
.
msgLevel
)
+
x
.
msgtxt
;
}
return
null
;
}
).
Where
(
x
=>
!
string
.
IsNullOrEmpty
(
x
)));
if
(!
preUploadMsg
.
Equals
(
uploadMsg
))
{
LogUtil
.
info
(
"上传消息到服务器消息:"
+
uploadMsg
);
preUploadMsg
=
uploadMsg
;
}
}
string
GetMsgPrefix
(
MsgLevel
msgLevel
)
{
...
...
@@ -188,7 +194,7 @@ namespace OnlineStore.DeviceLibrary
boxStatus
.
data
.
Add
(
ParamDefine
.
barcode
,
lastBarcode
);
boxStatus
.
data
.
Add
(
ParamDefine
.
executeTime
,
executeTime
);
}
else
else
if
(!
lastPosId
.
Equals
(
""
))
{
boxStatus
.
data
.
Add
(
ParamDefine
.
posId
,
lastPosId
);
...
...
@@ -416,7 +422,7 @@ namespace OnlineStore.DeviceLibrary
{
//出入库没有找到服务器发送的库位,需要打印日志方便查询原因
WarnMsg
=
Name
+
"未找到库位:【"
+
inoutParam
.
PosInfo
.
ToStr
()
+
"】"
;
Msg
.
add
(
WarnMsg
,
MsgLevel
.
warning
);
Msg
.
add
(
Name
+
"未找到库位:【"
+
inoutParam
.
PosInfo
.
ToStr
()
+
"】"
,
MsgLevel
.
warning
);
LogUtil
.
error
(
WarnMsg
);
continue
;
}
...
...
source/DeviceLibrary/storeBean/inputBean/InputEquip_InStore.cs
查看文件 @
111b89b
...
...
@@ -333,9 +333,15 @@ namespace OnlineStore.DeviceLibrary
MoveLog
(
$
" 入料->A侧 {MoveInfo.SLog}: 暂存区为空, 进出轴 到P2(A暂存区放料点){Config.Inout_P2}"
);
InOutAxis
.
AbsMove
(
MoveInfo
,
Config
.
Inout_P2
,
Config
.
Inout_P2_Speed
);
}
else
if
(
MoveInfo
.
IsTimeOut
(
6
0
))
else
if
(
MoveInfo
.
IsTimeOut
(
12
0
))
{
SetWarnMsg
(
"A上暂存区物料拿走"
);
if
(
StoreManager
.
XLRStore
.
boxEquip
.
runStatus
==
RunStatus
.
Reset
||
StoreManager
.
XLRStore
.
boxEquip
.
runStatus
==
RunStatus
.
HomeMoving
)
{
MoveInfo
.
LastSetpTime
=
DateTime
.
Now
;
}
else
SetWarnMsg
(
"A上暂存区物料拿走"
);
}
}
else
if
(
MoveInfo
.
IsStep
(
StepEnum
.
II43_InoutToP2
))
...
...
@@ -424,9 +430,15 @@ namespace OnlineStore.DeviceLibrary
ClearTimeoutAlarm
(
"B上暂存区物料拿走"
);
II63_InoutToP3
();
}
else
if
(
MoveInfo
.
IsTimeOut
(
6
0
))
else
if
(
MoveInfo
.
IsTimeOut
(
12
0
))
{
SetWarnMsg
(
"B上暂存区物料拿走"
);
if
(
StoreManager
.
XLRStore
.
boxEquip
.
runStatus
==
RunStatus
.
Reset
||
StoreManager
.
XLRStore
.
boxEquip
.
runStatus
==
RunStatus
.
HomeMoving
)
{
MoveInfo
.
LastSetpTime
=
DateTime
.
Now
;
}
else
SetWarnMsg
(
"B上暂存区物料拿走"
);
}
}
else
if
(
MoveInfo
.
IsStep
(
StepEnum
.
II63_InoutToP3
))
...
...
@@ -851,7 +863,7 @@ namespace OnlineStore.DeviceLibrary
public
override
bool
StartOutstore
(
InOutParam
param
)
{
if
(!
NoAlarm
())
{
{
LogError
(
"报警中,无法开始出库:"
+
param
.
PosInfo
.
ToStr
());
return
false
;
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论