Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1131-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c5c0adeb
由
张东亮
编写于
2023-02-28 09:03:20 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
出库长皮带线30秒内未检测到料盘时自动屏蔽库位
1 个父辈
a20ce6d7
全部展开
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
13 行增加
和
2 行删除
source/DeviceLibrary/manager/SServerManager.cs
source/DeviceLibrary/storeBean/EquipBase.cs
source/XLRStoreClient/FrmXLRStore.Designer.cs
source/DeviceLibrary/manager/SServerManager.cs
查看文件 @
c5c0ade
...
@@ -366,7 +366,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -366,7 +366,7 @@ namespace OnlineStore.DeviceLibrary
/// <param name="barcode"></param>
/// <param name="barcode"></param>
/// <param name="poid"></param>
/// <param name="poid"></param>
/// <returns></returns>
/// <returns></returns>
public
static
string
DisablePos
(
string
deviceName
,
string
barcode
,
string
poid
)
public
static
string
DisablePos
(
string
deviceName
,
string
barcode
,
string
poid
,
string
reason
=
""
)
{
{
string
msg
=
""
;
string
msg
=
""
;
try
try
...
@@ -384,6 +384,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -384,6 +384,7 @@ namespace OnlineStore.DeviceLibrary
Dictionary
<
string
,
string
>
paramMap
=
new
Dictionary
<
string
,
string
>();
Dictionary
<
string
,
string
>
paramMap
=
new
Dictionary
<
string
,
string
>();
paramMap
.
Add
(
"posId"
,
poid
);
//posId:库位号
paramMap
.
Add
(
"posId"
,
poid
);
//posId:库位号
paramMap
.
Add
(
"barcode"
,
barcode
);
// barcode = 料盘的条码
paramMap
.
Add
(
"barcode"
,
barcode
);
// barcode = 料盘的条码
paramMap
.
Add
(
"msg"
,
reason
);
string
server
=
GetAddr
(
Addr_disabledPos
,
paramMap
);
string
server
=
GetAddr
(
Addr_disabledPos
,
paramMap
);
DateTime
startTime
=
DateTime
.
Now
;
DateTime
startTime
=
DateTime
.
Now
;
string
resultStr
=
HttpHelper
.
Post
(
server
,
""
);
string
resultStr
=
HttpHelper
.
Post
(
server
,
""
);
...
...
source/DeviceLibrary/storeBean/EquipBase.cs
查看文件 @
c5c0ade
using
HalconDotNet
;
using
OnlineStore.Common
;
using
OnlineStore.Common
;
using
OnlineStore.LoadCSVLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System
;
...
@@ -6,6 +7,7 @@ using System.Collections.Concurrent;
...
@@ -6,6 +7,7 @@ using System.Collections.Concurrent;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Drawing
;
using
System.Drawing
;
using
System.Linq
;
using
System.Linq
;
using
System.Security.Cryptography
;
using
System.Text
;
using
System.Text
;
using
System.Threading
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
...
@@ -376,12 +378,20 @@ namespace OnlineStore.DeviceLibrary
...
@@ -376,12 +378,20 @@ namespace OnlineStore.DeviceLibrary
{
{
timeOutSeconds
=
40
;
timeOutSeconds
=
40
;
}
}
if
(
MoveInfo
.
IsStep
(
StepEnum
.
Line_02_WaitReduceSig
))
{
timeOutSeconds
=
30
;
}
//一分钟还未检测到
//一分钟还未检测到
if
(
span
.
TotalSeconds
>
timeOutSeconds
&&
alarmType
<=
AlarmType
.
IoSingleTimeOut
)
if
(
span
.
TotalSeconds
>
timeOutSeconds
&&
alarmType
<=
AlarmType
.
IoSingleTimeOut
)
{
{
ConfigIO
io
=
baseConfig
.
getWaitIO
(
wait
.
IoType
);
ConfigIO
io
=
baseConfig
.
getWaitIO
(
wait
.
IoType
);
WarnMsg
=
moveInfo
.
Name
+
"["
+
moveInfo
.
MoveType
+
"]["
+
moveInfo
.
MoveStep
+
"] 等待"
+
NotOkMsg
+
" 超时 "
+
Math
.
Round
(
span
.
TotalSeconds
,
1
)
+
"秒"
;
WarnMsg
=
moveInfo
.
Name
+
"["
+
moveInfo
.
MoveType
+
"]["
+
moveInfo
.
MoveStep
+
"] 等待"
+
NotOkMsg
+
" 超时 "
+
Math
.
Round
(
span
.
TotalSeconds
,
1
)
+
"秒"
;
if
(
MoveInfo
.
IsStep
(
StepEnum
.
Line_02_WaitReduceSig
))
{
SServerManager
.
DisablePos
(
"仓内长皮带线"
,
MoveInfo
.
MoveParam
.
PosInfo
.
barcode
,
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
,
$
"在长皮带线{timeOutSeconds}S内未检测到料盘"
);
wait
.
IsEnd
=
true
;
}
LogUtil
.
error
(
WarnMsg
,
moveInfo
.
ErrorLogType
,
moveInfo
.
logSeconds
());
LogUtil
.
error
(
WarnMsg
,
moveInfo
.
ErrorLogType
,
moveInfo
.
logSeconds
());
if
(
NoAlarm
())
if
(
NoAlarm
())
{
{
...
...
source/XLRStoreClient/FrmXLRStore.Designer.cs
查看文件 @
c5c0ade
此文件的差异被折叠,
点击展开。
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论