Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
顾剑亮
/
AGVControl-Qisda-ProductionLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 584f4b01
由
张东亮
编写于
2020-12-21 11:50:22 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
删除软件发送心跳信号给备料区软件
1 个父辈
7246fea4
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
13 行增加
和
4 行删除
.vs/AGVControl-ProductionLine/v16/.suo
AGVControl-ProductionLine/BLL/AgvServer.cs
AGVControl-ProductionLine/BLL/Control.cs
AGVControl-ProductionLine/BLL/UnlockMissionManager.cs
AGVControl-ProductionLine/bean/UnlockedShelf.cs
AGVControl-ProductionLine/bin/Debug/AGVControl-ProductionLine.exe
AGVControl-ProductionLine/bin/Debug/AGVControl-ProductionLine.pdb
AGVControl-ProductionLine/obj/Debug/AGVControl-ProductionLine.exe
AGVControl-ProductionLine/obj/Debug/AGVControl-ProductionLine.pdb
.vs/AGVControl-ProductionLine/v16/.suo
查看文件 @
584f4b0
此文件类型无法预览
AGVControl-ProductionLine/BLL/AgvServer.cs
查看文件 @
584f4b0
...
...
@@ -236,6 +236,8 @@ namespace BLL
}
else
{
if
(!
IsNeedKeepLive
(
clientNode
.
Name
))
continue
;
if
(
clientNode
.
StateEquals
(
eNodeStatus
.
None
))
{
byte
[]
buff
=
new
byte
[]
{
0X00
,
0X00
};
...
...
@@ -278,6 +280,13 @@ namespace BLL
}
}
private
bool
IsNeedKeepLive
(
string
name
)
{
if
(
SettingString
.
C4FeederIn
.
Equals
(
name
)
||
SettingString
.
C4FeederOut
.
Equals
(
name
)
||
SettingString
.
D4FeederIn
.
Equals
(
name
)
||
SettingString
.
A5
.
Equals
(
name
)
||
SettingString
.
A6
.
Equals
(
name
)||
SettingString
.
D4FeederOut
.
Equals
(
name
))
return
false
;
return
true
;
}
public
bool
CheckIP
(
string
name
,
string
ip
)
{
//IP合法
...
...
AGVControl-ProductionLine/BLL/Control.cs
查看文件 @
584f4b0
...
...
@@ -95,7 +95,7 @@ namespace AGVControl.BLL
}
if
(
Common
.
nodeInfo
[
j
].
Name
.
StartsWith
(
SettingString
.
D4_Name_Prefix
)
||
Common
.
nodeInfo
[
j
].
Name
.
StartsWith
(
SettingString
.
C4_Name_Prefix
))
{
if
(
!
Common
.
nodeInfo
[
j
].
Name
.
Equals
(
SettingString
.
C4FeederIn
)
&&
!
Common
.
nodeInfo
[
j
].
Name
.
Equals
(
SettingString
.
D4FeederIn
)
&&
!
Common
.
nodeInfo
[
j
].
Name
.
Equals
(
SettingString
.
D4FeederOut
))
//
&& !Common.nodeInfo[j].Name.Equals(SettingString.C4FeederOut) &&
if
(
Common
.
missionManager
.
GetUnlockCnt
(
Common
.
nodeInfo
[
j
].
Name
)
>
0
)
//!Common.nodeInfo[j].Name.Equals(SettingString.C4FeederIn) && !Common.nodeInfo[j].Name.Equals(SettingString.D4FeederIn) && !Common.nodeInfo[j].Name.Equals(SettingString.D4FeederOut)
&& !Common.nodeInfo[j].Name.Equals(SettingString.C4FeederOut) &&
{
tmp
=
AGVManager
.
GetFirstRFID
(
Common
.
nodeInfo
[
j
].
Name
);
if
(!
tmp
.
Equals
(
Common
.
nodeInfo
[
j
].
RFID
))
...
...
AGVControl-ProductionLine/BLL/UnlockMissionManager.cs
查看文件 @
584f4b0
...
...
@@ -85,7 +85,7 @@ namespace AGVControl
}
public
bool
DelMission
(
string
nodeName
,
string
rfid
)
{
bool
rtn
=
NodeUnlockMissions
[
nodeName
].
Delete
(
rfid
);
bool
rtn
=
NodeUnlockMissions
[
nodeName
].
Delete
(
rfid
,
nodeName
);
if
(
rtn
)
{
UnlockMissions
[
nodeName
]
=
new
UnlockInfo
(
nodeName
,
NodeUnlockMissions
[
nodeName
].
EmptyCnt
,
NodeUnlockMissions
[
nodeName
].
GetRfidWithTime
());
...
...
AGVControl-ProductionLine/bean/UnlockedShelf.cs
查看文件 @
584f4b0
...
...
@@ -62,7 +62,7 @@ namespace AGVControl
/// <summary>
/// 删除一个解绑任务
/// </summary>
public
bool
Delete
(
string
rfid
)
public
bool
Delete
(
string
rfid
,
string
nodeName
=
""
)
{
if
(
EmptyCnt
>
0
)
{
...
...
@@ -75,7 +75,7 @@ namespace AGVControl
{
Rfids
.
Clear
();
}
if
(
rfid
.
Equals
(
SettingString
.
C4FeederOut
)
||
rfid
.
Equals
(
SettingString
.
D4FeederOut
))
if
(
nodeName
.
Equals
(
SettingString
.
C4FeederOut
)||
nodeName
.
Equals
(
SettingString
.
D4FeederOut
))
Rfids
.
Remove
(
rfid
);
return
true
;
}
...
...
AGVControl-ProductionLine/bin/Debug/AGVControl-ProductionLine.exe
查看文件 @
584f4b0
此文件类型无法预览
AGVControl-ProductionLine/bin/Debug/AGVControl-ProductionLine.pdb
查看文件 @
584f4b0
此文件类型无法预览
AGVControl-ProductionLine/obj/Debug/AGVControl-ProductionLine.exe
查看文件 @
584f4b0
此文件类型无法预览
AGVControl-ProductionLine/obj/Debug/AGVControl-ProductionLine.pdb
查看文件 @
584f4b0
此文件类型无法预览
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论