Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a9e1bee3
由
LN
编写于
2020-03-18 09:08:47 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
接驳台逻辑修改。
1 个父辈
1c3c6ffa
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
33 行增加
和
24 行删除
source/AssemblyLineClient/FrmLineStore.cs
source/DeviceLibrary/assemblyLine/DischargeLine_Partial.cs
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
a9e1bee
...
...
@@ -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
))
{
...
...
@@ -617,11 +617,11 @@ namespace OnlineStore.AssemblyLine
//listView1.Items[i].BackColor = Color.White;
}
else
if
(
alarmType
.
Equals
(
LineAlarmType
.
IoSingleTimeOut
))
{
{
SetItemColor
(
i
,
Color
.
LightCoral
);
}
else
if
(
alarmType
.
Equals
(
LineAlarmType
.
None
).
Equals
(
false
))
{
{
SetItemColor
(
i
,
Color
.
Red
);
}
else
if
(
runStatus
.
Equals
(
LineRunStatus
.
HomeMoving
)
||
runStatus
.
Equals
(
LineRunStatus
.
Reset
))
...
...
@@ -632,7 +632,7 @@ namespace OnlineStore.AssemblyLine
{
SetItemColor
(
i
,
Color
.
LimeGreen
);
}
if
(
runStatus
.
Equals
(
LineRunStatus
.
Runing
))
else
if
(
runStatus
.
Equals
(
LineRunStatus
.
Runing
))
{
SetItemColor
(
i
,
Color
.
LightBlue
);
}
...
...
source/DeviceLibrary/assemblyLine/DischargeLine_Partial.cs
查看文件 @
a9e1bee
...
...
@@ -114,14 +114,14 @@ namespace OnlineStore.DeviceLibrary
//{
// ScanCode();
//}
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_02_ScanCode
))
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_02_ScanCode
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DO_03_GetTraySize
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
LastWidth
=
0
;
int
robotIndex
=
GetRobotIndex
();
string
result
=
SServerManager
.
GetTraySize
(
Name
,
robotIndex
,
StationInfo_Move
.
CodeStr
,
out
LastWidth
);
LogUtil
.
info
(
hengyiName
+
"出口有料,二维码["
+
StationInfo_Move
.
CodeStr
+
"] 获取料盘尺寸【"
+
LastWidth
+
"】【"
+
result
+
"】"
);
LogUtil
.
info
(
hengyiName
+
"出口有料,二维码["
+
StationInfo_Move
.
CodeStr
+
"] 获取料盘尺寸【"
+
LastWidth
+
"】【"
+
result
+
"】"
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_03_GetTraySize
))
{
...
...
@@ -137,13 +137,14 @@ namespace OnlineStore.DeviceLibrary
CylinderMove
(
MoveInfo
,
IO_Type
.
SeparateDevice_Up
,
IO_Type
.
SeparateDevice_Down
);
}
else
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DO_10_StopSeparateLine
);
LogUtil
.
info
(
hengyiName
+
"扫码NG料, 先转动NG料到扫码后一个工位,需要停止接驳台皮带线"
);
SeparateStopRun
(
MoveInfo
);
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DO_10_StopSeparateLine
);
LogUtil
.
info
(
hengyiName
+
"扫码NG料, 先转动NG料到扫码后一个工位,需要停止接驳台皮带线"
);
SeparateStopRun
(
MoveInfo
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_10_StopSeparateLine
))
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_10_StopSeparateLine
))
{
if
(
TrayProcessCanStartLine
())
{
...
...
@@ -153,7 +154,8 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Location_Check3
,
IO_VALUE
.
HIGH
));
Task
.
Factory
.
StartNew
(
delegate
{
Task
.
Factory
.
StartNew
(
delegate
{
Thread
.
Sleep
(
1000
);
SeparateBackRun
(
null
);
});
...
...
@@ -181,15 +183,15 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
OneWaitCanEndStep
=
true
;
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
60000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SeparateDevice_Check
,
IO_VALUE
.
HIGH
));
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_07_SeparateCheck
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DO_08_CRun
);
if
(
IOValue
(
IO_Type
.
SeparateDevice_Check
).
Equals
(
IO_VALUE
.
HIGH
))
{
{
int
robotIndex
=
GetRobotIndex
();
LogUtil
.
info
(
hengyiName
+
"出口有料,转动接驳台皮带线2000 , 收到SeparateDevice_Check信号,调用arriveRobotLocation="
+
robotIndex
);
LogUtil
.
info
(
hengyiName
+
"出口有料,转动接驳台皮带线2000 , 收到SeparateDevice_Check信号,调用arriveRobotLocation="
+
robotIndex
);
SServerManager
.
arriveRobotLocation
(
Name
,
robotIndex
,
StationInfo_Move
.
CodeStr
);
}
else
...
...
@@ -275,8 +277,8 @@ namespace OnlineStore.DeviceLibrary
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DON_01_WaitTime
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DON_03_GetTraySize
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
LastWidth
=
0
;
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
LastWidth
=
0
;
int
robotIndex
=
GetRobotIndex
();
string
result
=
SServerManager
.
GetTraySize
(
Name
,
robotIndex
,
StationInfo_Move
.
CodeStr
,
out
LastWidth
);
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"送料: ["
+
StationInfo_Move
.
CodeStr
+
"] 获取尺寸【"
+
LastWidth
+
"】【"
+
result
+
"】"
);
...
...
@@ -323,28 +325,35 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DON_07_SeparateCheck
);
// Line3LastTrayP++;
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"送料,等待料盘到达接驳台,最多等待6
0
000"
);
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"送料,等待料盘到达接驳台,最多等待6
5
000"
);
MoveInfo
.
TimeOutSeconds
=
40
;
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
));
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DON_07_SeparateCheck
))
{
TimeSpan
span
=
DateTime
.
Now
-
MoveInfo
.
LastSetpTime
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DON_08_CRun
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
IOMove
(
IO_Type
.
SeparateDevice_Run
,
IO_VALUE
.
HIGH
);
if
(
IOValue
(
IO_Type
.
SeparateDevice_Check
).
Equals
(
IO_VALUE
.
HIGH
))
{
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
);
}
else
{
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"送料,接驳台无料
盘,等待2000,
"
);
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"送料,接驳台无料"
);
}
MoveInfo
.
EndStepWait
();
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DON_08_CRun
))
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论