Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
827-AGV
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit cd07a8bd
由
张东亮
编写于
2023-06-06 14:34:09 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
37bd1b5a
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
24 行增加
和
22 行删除
AGV_UI/Status.cs
DeviceLibrary/Control.cs
DeviceLibrary/bean/job/EmptyShelfBackJob.cs
DeviceLibrary/manager/AGVManager.cs
SO827-AGV/FrmMain.cs
SO827-AGV/Manual.cs
AGV_UI/Status.cs
查看文件 @
cd07a8b
...
...
@@ -87,6 +87,7 @@ namespace AGV_UI
/// <param name="state"></param>
public
void
SetConnectState
(
bool
state
=
false
)
{
if
(!
this
.
IsHandleCreated
)
return
;
Image
image
=
Manager
.
SetConnState
(
state
);
this
.
Invoke
(
new
Action
(()
=>
{
...
...
DeviceLibrary/Control.cs
查看文件 @
cd07a8b
...
...
@@ -232,7 +232,7 @@ namespace DeviceLibrary
{
Agv_Info
agv
=
AGVManager
.
agvInfo
[
i
];
if
(!
agv
.
IsCon
)
continue
;
//AGV网络连接
if
(!
AGVManager
.
agvInfo
[
i
]
.
IsUse
)
continue
;
//AGV是否可用
if
(!
agv
.
IsUse
)
continue
;
//AGV是否可用
//Ready,Pause,Executing,Error
if
(!
AGVManager
.
agvInfo
[
i
].
StateID
.
Equals
(
eAGVState
.
Ready
)
&&
!
AGVManager
.
agvInfo
[
i
].
StateID
.
Equals
(
eAGVState
.
Pause
)
...
...
DeviceLibrary/bean/job/EmptyShelfBackJob.cs
查看文件 @
cd07a8b
...
...
@@ -19,7 +19,7 @@ namespace DeviceLibrary
/// 载空料架返回任务
/// </summary>
/// <param name="lineName">产线的节点名称</param>
public
EmptyShelfBackJob
(
string
emptyShelfPlace
,
eShelfType
shelfType
,
string
emptyShelfTargetPlace
)
public
EmptyShelfBackJob
(
string
emptyShelfPlace
,
eShelfType
shelfType
,
string
emptyShelfTargetPlace
)
{
EmptyShelfPlace
=
emptyShelfPlace
;
this
.
shelfType
=
shelfType
;
...
...
@@ -61,22 +61,21 @@ namespace DeviceLibrary
if
(
jobStep
.
IsStep
(
EMPTY_SHELF_BACK_STEP
.
NONE
))
{
//if (
AGVManager.CheckBoxNeedShelfState(agv, out string nodeName))
//
{
//
EmptyShelfTargetPlace = nodeName;
//
jobStep.ToNextStep(EMPTY_SHELF_BACK_STEP.WAIT_AGV_REACH_Target);
//
runInfo = "从线体 [" + EmptyShelfPlace + "]送往" + EmptyShelfTargetPlace;
//
msg += string.Format("[{0}] {1}", jobStep.CurStep(), runInfo);
//
jobStep.Msg = msg;
//
if (!EmptyShelfTargetPlace.Equals(""))
//
{
//
MissionSys.AssignMission(agv, EmptyShelfTargetPlace);
//
UpdateJobTaskInfo(agv);
//
}
if
(
EmptyShelfPlace
.
Equals
(
SettingString
.
A1
)
&&
AGVManager
.
CheckBoxNeedShelfState
(
agv
,
out
string
nodeName
))
{
EmptyShelfTargetPlace
=
nodeName
;
jobStep
.
ToNextStep
(
EMPTY_SHELF_BACK_STEP
.
WAIT_AGV_REACH_Target
);
runInfo
=
"从线体 ["
+
EmptyShelfPlace
+
"]送往"
+
EmptyShelfTargetPlace
;
msg
+=
string
.
Format
(
"[{0}] {1}"
,
jobStep
.
CurStep
(),
runInfo
);
jobStep
.
Msg
=
msg
;
if
(!
EmptyShelfTargetPlace
.
Equals
(
""
))
{
MissionSys
.
AssignMission
(
agv
,
EmptyShelfTargetPlace
);
UpdateJobTaskInfo
(
agv
);
}
//}
//else
if
(
AGVManager
.
CheckShelfStorageInState
(
agv
))
}
else
if
(
AGVManager
.
CheckShelfStorageInState
(
agv
))
{
jobStep
.
ToNextStep
(
EMPTY_SHELF_BACK_STEP
.
WAIT_AGV_REACH_Target
);
EmptyShelfTargetPlace
=
SettingString
.
A2
;
...
...
@@ -104,7 +103,7 @@ namespace DeviceLibrary
{
EmptyShelfTargetPlace
=
nodeName
;
jobStep
.
ToNextStep
(
EMPTY_SHELF_BACK_STEP
.
WAIT_AGV_REACH_Target
);
runInfo
=
"待机位检测到"
+
EmptyShelfTargetPlace
+
"需要料架,送往 "
+
EmptyShelfTargetPlace
;
runInfo
=
"待机位检测到"
+
EmptyShelfTargetPlace
+
"需要料架,送往 "
+
EmptyShelfTargetPlace
;
msg
+=
string
.
Format
(
"[{0}] {1}"
,
jobStep
.
CurStep
(),
runInfo
);
jobStep
.
Msg
=
msg
;
MissionSys
.
AssignMission
(
agv
,
EmptyShelfTargetPlace
);
...
...
DeviceLibrary/manager/AGVManager.cs
查看文件 @
cd07a8b
...
...
@@ -250,8 +250,8 @@ namespace DeviceLibrary
/// <returns></returns>
public
static
bool
CheckNeedEmptyShelf
(
Agv_Info
agv
,
out
string
nodeName
)
{
if
(!
CheckBoxNeedShelfState
(
agv
,
out
nodeName
))
nodeName
=
""
;
//
if (!CheckBoxNeedShelfState(agv, out nodeName))
{
if
(
CheckShelfStorageInState
(
agv
))
{
...
...
SO827-AGV/FrmMain.cs
查看文件 @
cd07a8b
此文件的差异被折叠,
点击展开。
SO827-AGV/Manual.cs
查看文件 @
cd07a8b
...
...
@@ -146,8 +146,10 @@ namespace AGVControl
if
(
taskName
.
Equals
(
SettingString
.
Enter
)
||
taskName
.
Equals
(
SettingString
.
Leave
))
if
(
MessageBox
.
Show
(
"确定对小车发送进/出任务?"
,
Agv
.
Name
,
MessageBoxButtons
.
YesNo
)
==
DialogResult
.
No
)
return
;
MissionSys
.
AssignMission
(
Agv
,
taskName
);
LogUtil
.
info
(
string
.
Format
(
"{0} 手动发任务 [{1}]"
,
Agv
.
Name
,
cmbBxMission
.
SelectedItem
.
ToString
()));
Task
.
Factory
.
StartNew
(
delegate
{
MissionSys
.
AssignMission
(
Agv
,
taskName
);
LogUtil
.
info
(
string
.
Format
(
"{0} 手动发任务 [{1}]"
,
Agv
.
Name
,
taskName
));
});
}
}
catch
(
Exception
ex
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论