Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
顾剑亮
/
AGVControl-Qisda-ProductionLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 35a0bc87
由
张东亮
编写于
2021-01-27 14:25:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加invalid状态控制
1 个父辈
17bd5b24
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
9 行增加
和
3 行删除
.vs/AGVControl-ProductionLine/v16/.suo
AGVControl-ProductionLine/BLL/Common.cs
AGVControl-ProductionLine/bean/Job.cs
AGVControl-ProductionLine/bean/job/EmptyAGVBackJob.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
查看文件 @
35a0bc8
此文件类型无法预览
AGVControl-ProductionLine/BLL/Common.cs
查看文件 @
35a0bc8
...
@@ -30,6 +30,7 @@ namespace AGVControl
...
@@ -30,6 +30,7 @@ namespace AGVControl
public
const
string
Wait
=
"Wait"
;
public
const
string
Wait
=
"Wait"
;
public
const
string
Done
=
"Done"
;
public
const
string
Done
=
"Done"
;
public
const
string
Aborted
=
"Aborted"
;
public
const
string
Aborted
=
"Aborted"
;
public
const
string
Invalid
=
"Invalid"
;
public
const
string
AutoCharge
=
"AutoCharge"
;
public
const
string
AutoCharge
=
"AutoCharge"
;
public
const
string
Executing
=
"Executing"
;
public
const
string
Executing
=
"Executing"
;
...
@@ -582,7 +583,7 @@ namespace AGVControl
...
@@ -582,7 +583,7 @@ namespace AGVControl
if
(
loc
.
StartsWith
(
SettingString
.
C4_Name_Prefix
)
&&
SettingString
.
C4_AGV_IPs
.
Contains
(
agv
.
IP
))
if
(
loc
.
StartsWith
(
SettingString
.
C4_Name_Prefix
)
&&
SettingString
.
C4_AGV_IPs
.
Contains
(
agv
.
IP
))
{
{
nodeName
=
loc
;
nodeName
=
loc
;
//Common.LogInfo
("双层线正在出的工单目标产线有空料架,优先处4C-" + loc);
Common
.
log
.
Debug
(
"双层线正在出的工单目标产线有空料架,优先处4C-"
+
loc
);
return
true
;
return
true
;
}
}
else
if
(
loc
.
StartsWith
(
SettingString
.
D4_Name_Prefix
)
&&
!
SettingString
.
C4_AGV_IPs
.
Contains
(
agv
.
IP
))
else
if
(
loc
.
StartsWith
(
SettingString
.
D4_Name_Prefix
)
&&
!
SettingString
.
C4_AGV_IPs
.
Contains
(
agv
.
IP
))
...
@@ -606,6 +607,9 @@ namespace AGVControl
...
@@ -606,6 +607,9 @@ namespace AGVControl
//4C车间寻找
//4C车间寻找
if
(
SettingString
.
C4_AGV_IPs
.
Contains
(
agv
.
IP
))
if
(
SettingString
.
C4_AGV_IPs
.
Contains
(
agv
.
IP
))
{
{
List
<
Agv_Info
>
agvs
=
Common
.
agvInfo
.
FindAll
(
s
=>
SettingString
.
C4_AGV_IPs
.
Contains
(
s
.
IP
)
&&
(
s
.
CurJob
is
EmptyShelfBackJob
||
s
.
CurJob
is
GoEmptyShelfLineJob
));
if
(
agvs
!=
null
&&
agvs
.
Count
>
1
)
return
false
;
string
nearNodeName
=
CalculateNearNode
(
agv
,
SettingString
.
C4_Name_Prefix
);
string
nearNodeName
=
CalculateNearNode
(
agv
,
SettingString
.
C4_Name_Prefix
);
if
(
nearNodeName
.
Equals
(
""
))
if
(
nearNodeName
.
Equals
(
""
))
{
{
...
@@ -619,6 +623,9 @@ namespace AGVControl
...
@@ -619,6 +623,9 @@ namespace AGVControl
//4D车间寻找
//4D车间寻找
if
(!
SettingString
.
C4_AGV_IPs
.
Contains
(
agv
.
IP
))
if
(!
SettingString
.
C4_AGV_IPs
.
Contains
(
agv
.
IP
))
{
{
List
<
Agv_Info
>
agvs
=
Common
.
agvInfo
.
FindAll
(
s
=>
!
SettingString
.
C4_AGV_IPs
.
Contains
(
s
.
IP
)
&&
(
s
.
CurJob
is
EmptyShelfBackJob
||
s
.
CurJob
is
GoEmptyShelfLineJob
));
if
(
agvs
!=
null
&&
agvs
.
Count
>
1
)
return
false
;
string
nearNodeName
=
CalculateNearNode
(
agv
,
SettingString
.
D4_Name_Prefix
);
string
nearNodeName
=
CalculateNearNode
(
agv
,
SettingString
.
D4_Name_Prefix
);
if
(
nearNodeName
.
Equals
(
""
))
if
(
nearNodeName
.
Equals
(
""
))
{
{
...
...
AGVControl-ProductionLine/bean/Job.cs
查看文件 @
35a0bc8
...
@@ -52,7 +52,7 @@ namespace AGVControl
...
@@ -52,7 +52,7 @@ namespace AGVControl
bool
rtn
=
false
;
bool
rtn
=
false
;
if
(!
CurTaskID
.
Equals
(-
1
)
&&
Common
.
mir
.
Get_Task_State
(
CurTaskID
,
out
string
stateStr
))
if
(!
CurTaskID
.
Equals
(-
1
)
&&
Common
.
mir
.
Get_Task_State
(
CurTaskID
,
out
string
stateStr
))
{
{
if
(
stateStr
.
Equals
(
SettingString
.
Aborted
))
if
(
stateStr
.
Equals
(
SettingString
.
Aborted
)
||
stateStr
.
Equals
(
SettingString
.
Invalid
)
)
{
{
rtn
=
Common
.
mir
.
Add_Mission_Fleet
(
agv
,
Common
.
agvMission
[
CurTaskName
]);
rtn
=
Common
.
mir
.
Add_Mission_Fleet
(
agv
,
Common
.
agvMission
[
CurTaskName
]);
if
(
rtn
)
if
(
rtn
)
...
...
AGVControl-ProductionLine/bean/job/EmptyAGVBackJob.cs
查看文件 @
35a0bc8
...
@@ -56,7 +56,6 @@ namespace AGVControl
...
@@ -56,7 +56,6 @@ namespace AGVControl
CurTaskState
=
Common
.
GetTakJobState
(
CurTaskID
);
CurTaskState
=
Common
.
GetTakJobState
(
CurTaskID
);
if
(
EmptyAGVBackStep
.
IsStep
(
EMPTY_AGV_BACK_STEP
.
NONE
))
if
(
EmptyAGVBackStep
.
IsStep
(
EMPTY_AGV_BACK_STEP
.
NONE
))
{
{
if
(
Common
.
FindEmptyShelfNode
(
agv
,
out
string
nodeName
,
true
))
if
(
Common
.
FindEmptyShelfNode
(
agv
,
out
string
nodeName
,
true
))
{
{
int
i
=
Common
.
agvInfo
.
FindIndex
(
s
=>
s
.
CurJob
is
GoEmptyShelfLineJob
&&
((
GoEmptyShelfLineJob
)
s
.
CurJob
).
EmptyShelfPlace
.
Equals
(
nodeName
));
int
i
=
Common
.
agvInfo
.
FindIndex
(
s
=>
s
.
CurJob
is
GoEmptyShelfLineJob
&&
((
GoEmptyShelfLineJob
)
s
.
CurJob
).
EmptyShelfPlace
.
Equals
(
nodeName
));
...
...
AGVControl-ProductionLine/bin/Debug/AGVControl-ProductionLine.exe
查看文件 @
35a0bc8
此文件类型无法预览
AGVControl-ProductionLine/bin/Debug/AGVControl-ProductionLine.pdb
查看文件 @
35a0bc8
此文件类型无法预览
AGVControl-ProductionLine/obj/Debug/AGVControl-ProductionLine.exe
查看文件 @
35a0bc8
此文件类型无法预览
AGVControl-ProductionLine/obj/Debug/AGVControl-ProductionLine.pdb
查看文件 @
35a0bc8
此文件类型无法预览
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论