Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a9e1bee3
由
LN
编写于
2020-03-18 09:08:47 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
接驳台逻辑修改。
1 个父辈
1c3c6ffa
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
9 行删除
source/AssemblyLineClient/FrmLineStore.cs
source/DeviceLibrary/assemblyLine/DischargeLine_Partial.cs
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
a9e1bee
...
@@ -609,7 +609,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -609,7 +609,7 @@ namespace OnlineStore.AssemblyLine
}
}
}
}
private
void
SetItemColor
(
int
i
,
LineRunStatus
runStatus
,
LineAlarmType
alarmType
)
private
void
SetItemColor
(
int
i
,
LineRunStatus
runStatus
,
LineAlarmType
alarmType
)
{
{
if
(
runStatus
.
Equals
(
LineRunStatus
.
Wait
))
if
(
runStatus
.
Equals
(
LineRunStatus
.
Wait
))
{
{
...
@@ -632,7 +632,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -632,7 +632,7 @@ namespace OnlineStore.AssemblyLine
{
{
SetItemColor
(
i
,
Color
.
LimeGreen
);
SetItemColor
(
i
,
Color
.
LimeGreen
);
}
}
if
(
runStatus
.
Equals
(
LineRunStatus
.
Runing
))
else
if
(
runStatus
.
Equals
(
LineRunStatus
.
Runing
))
{
{
SetItemColor
(
i
,
Color
.
LightBlue
);
SetItemColor
(
i
,
Color
.
LightBlue
);
}
}
...
...
source/DeviceLibrary/assemblyLine/DischargeLine_Partial.cs
查看文件 @
a9e1bee
...
@@ -143,7 +143,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -143,7 +143,8 @@ namespace OnlineStore.DeviceLibrary
SeparateStopRun
(
MoveInfo
);
SeparateStopRun
(
MoveInfo
);
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_10_StopSeparateLine
))
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_10_StopSeparateLine
))
{
{
if
(
TrayProcessCanStartLine
())
if
(
TrayProcessCanStartLine
())
{
{
...
@@ -153,7 +154,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -153,7 +154,8 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Location_Check3
,
IO_VALUE
.
HIGH
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Location_Check3
,
IO_VALUE
.
HIGH
));
Task
.
Factory
.
StartNew
(
delegate
{
Task
.
Factory
.
StartNew
(
delegate
{
Thread
.
Sleep
(
1000
);
Thread
.
Sleep
(
1000
);
SeparateBackRun
(
null
);
SeparateBackRun
(
null
);
});
});
...
@@ -323,28 +325,35 @@ namespace OnlineStore.DeviceLibrary
...
@@ -323,28 +325,35 @@ namespace OnlineStore.DeviceLibrary
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DON_07_SeparateCheck
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DON_07_SeparateCheck
);
// Line3LastTrayP++;
// Line3LastTrayP++;
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"送料,等待料盘到达接驳台,最多等待6
0
000"
);
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"送料,等待料盘到达接驳台,最多等待6
5
000"
);
MoveInfo
.
TimeOutSeconds
=
40
;
MoveInfo
.
TimeOutSeconds
=
40
;
MoveInfo
.
OneWaitCanEndStep
=
true
;
MoveInfo
.
OneWaitCanEndStep
=
true
;
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
6
0
000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
6
5
000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SeparateDevice_Check
,
IO_VALUE
.
HIGH
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SeparateDevice_Check
,
IO_VALUE
.
HIGH
));
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DON_07_SeparateCheck
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DON_07_SeparateCheck
))
{
{
TimeSpan
span
=
DateTime
.
Now
-
MoveInfo
.
LastSetpTime
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DON_08_CRun
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DON_08_CRun
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
IOMove
(
IO_Type
.
SeparateDevice_Run
,
IO_VALUE
.
HIGH
);
IOMove
(
IO_Type
.
SeparateDevice_Run
,
IO_VALUE
.
HIGH
);
if
(
IOValue
(
IO_Type
.
SeparateDevice_Check
).
Equals
(
IO_VALUE
.
HIGH
))
if
(
IOValue
(
IO_Type
.
SeparateDevice_Check
).
Equals
(
IO_VALUE
.
HIGH
))
{
{
int
robotIndex
=
GetRobotIndex
();
int
robotIndex
=
GetRobotIndex
();
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"送料,接驳台有料盘,等待2000,调用arriveRobotLocation="
+
robotIndex
+
"["
+
StationInfo_Move
.
CodeStr
+
"]"
);
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"送料,接驳台有料,调用arriveRobotLocation="
+
robotIndex
+
"["
+
StationInfo_Move
.
CodeStr
+
"]"
);
SServerManager
.
arriveRobotLocation
(
Name
,
robotIndex
,
StationInfo_Move
.
CodeStr
);
}
else
if
(
span
.
TotalSeconds
<=
60
)
{
int
robotIndex
=
GetRobotIndex
();
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"送料,接驳台应有料"
+
FormUtil
.
GetSpanStr
(
span
)+
",调用arriveRobotLocation="
+
robotIndex
+
"["
+
StationInfo_Move
.
CodeStr
+
"]"
);
SServerManager
.
arriveRobotLocation
(
Name
,
robotIndex
,
StationInfo_Move
.
CodeStr
);
SServerManager
.
arriveRobotLocation
(
Name
,
robotIndex
,
StationInfo_Move
.
CodeStr
);
}
}
else
else
{
{
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"送料,接驳台无料
盘,等待2000,
"
);
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"送料,接驳台无料"
);
}
}
MoveInfo
.
EndStepWait
();
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DON_08_CRun
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DON_08_CRun
))
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论