Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 65126bb1
由
刘韬
编写于
2022-04-22 10:40:12 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
6e8922c1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
59 行增加
和
33 行删除
DeviceLibrary/theMachine/MainMachine _AutoInOutTest.cs
DeviceLibrary/theMachine/MainMachine _LedProcess.cs
DeviceLibrary/theMachine/MainMachine _AutoInOutTest.cs
查看文件 @
65126bb
...
...
@@ -96,8 +96,9 @@ namespace DeviceLibrary
AIOTMoveInfo
.
log
(
$
"第一盘料盘已到达目的地"
);
if
(
CurrentPosIndex
-
1
<
0
||
StopAutoInOut
)
{
AIOTMoveInfo
.
log
(
$
"已达到最后一个库位{CurrentPosIndex},或手动停止{StopAutoInOut},自动出入库停止,将料盘送至出口"
);
AIOTMoveInfo
.
log
(
$
"已达到最后一个库位
:
{CurrentPosIndex},或手动停止{StopAutoInOut},自动出入库停止,将料盘送至出口"
);
AIOTMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreOut10
);
CloseFlipDoor
(
AIOTMoveInfo
);
return
;
}
AIOTMoveInfo
.
log
(
$
"开始转运料盘第二盘"
);
...
...
@@ -130,8 +131,9 @@ namespace DeviceLibrary
AIOTMoveInfo
.
log
(
$
"第二盘料盘已到达目的地"
);
if
(
CurrentPosIndex
-
1
<
0
||
StopAutoInOut
)
{
AIOTMoveInfo
.
log
(
$
"已达到最后一个库位{CurrentPosIndex},或手动停止{StopAutoInOut},自动出入库停止,将料盘送至出口"
);
AIOTMoveInfo
.
log
(
$
"已达到最后一个库位
:
{CurrentPosIndex},或手动停止{StopAutoInOut},自动出入库停止,将料盘送至出口"
);
AIOTMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreOut10
);
CloseFlipDoor
(
AIOTMoveInfo
);
return
;
}
...
...
@@ -154,8 +156,10 @@ namespace DeviceLibrary
var
ac1
=
poslist
[
CurrentPosIndex
];
if
(
CurrentPosIndex
-
2
<
0
||
StopAutoInOut
)
{
AIOTMoveInfo
.
log
(
$
"
已达到最后一个库位
{CurrentPosIndex},或手动停止{StopAutoInOut},自动出入库停止,将料盘送至出口"
);
AIOTMoveInfo
.
log
(
$
"
A已达到最后一个库位:
{CurrentPosIndex},或手动停止{StopAutoInOut},自动出入库停止,将料盘送至出口"
);
AIOTMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreOut10
);
CurrentPosIndex
++;
CloseFlipDoor
(
AIOTMoveInfo
);
return
;
}
var
ac2
=
poslist
[
CurrentPosIndex
-
2
];
...
...
@@ -176,7 +180,7 @@ namespace DeviceLibrary
AIOTMoveInfo
.
log
(
$
"料盘已到达目的地"
);
if
(
CurrentPosIndex
-
1
<
0
||
StopAutoInOut
)
{
AIOTMoveInfo
.
log
(
$
"
已达到最后一个库位
{CurrentPosIndex},或手动停止{StopAutoInOut},自动出入库停止,将料盘送至出口"
);
AIOTMoveInfo
.
log
(
$
"
B已达到最后一个库位:
{CurrentPosIndex},或手动停止{StopAutoInOut},自动出入库停止,将料盘送至出口"
);
AIOTMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreOut10
);
CloseFlipDoor
(
AIOTMoveInfo
);
return
;
...
...
@@ -210,7 +214,18 @@ namespace DeviceLibrary
}
break
;
case
MoveStep
.
StoreOut12
:
AIOTMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreOut13
);
if
(
ClampMoveInfo
.
MoveStep
==
MoveStep
.
Wait
)
{
AIOTMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreOut13
);
AIOTMoveInfo
.
log
(
$
"NG口已空闲"
);
CloseFlipDoor
(
AIOTMoveInfo
);
}
else
{
AIOTMoveInfo
.
log
(
$
"等待NG口空闲"
);
}
break
;
case
MoveStep
.
StoreOut13
:
AIOTMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreOut14
);
ac
=
poslist
[
CurrentPosIndex
-
1
];
reel
=
new
ReelParam
(
"auto"
,
ac
.
BagWidth
,
ac
.
BagHigh
);
if
(!
boxTransport
.
Start
(
new
BoxStorePosition
(
Config
,
ac
,
reel
),
new
BoxStorePosition
(
Config
,
StoreSide
.
NGDoor
,
reel
),
StoreMoveType
.
OutStore
))
...
...
@@ -219,10 +234,10 @@ namespace DeviceLibrary
AutoInOutTest
=
false
;
StopAutoInOut
=
true
;
return
;
}
}
AIOTMoveInfo
.
log
(
$
"开始转运料盘"
);
break
;
case
MoveStep
.
StoreOut1
3
:
case
MoveStep
.
StoreOut1
4
:
if
(
boxTransport
.
IsComplateOrFree
)
{
NGPuted
(
""
);
...
...
DeviceLibrary/theMachine/MainMachine _LedProcess.cs
查看文件 @
65126bb
...
...
@@ -29,50 +29,61 @@ namespace DeviceLibrary
StandbyLed
.
LedState
=
LedState
.
off
;
AlarmLed
.
LedState
=
LedState
.
off
;
RunningLed
.
LedState
=
LedState
.
off
;
//无法运行,量报警灯
if
(
runStatus
!=
RunStatus
.
Stop
)
//回原 绿闪
if
(
runStatus
==
RunStatus
.
HomeReset
)
{
RunningLed
.
LedState
=
LedState
.
blink
;
}
//正常 绿亮
else
if
(
runStatus
==
RunStatus
.
Running
)
{
RunningLed
.
LedState
=
LedState
.
on
;
//出入库 绿闪 黄闪
if
(
ClampMoveInfo
.
MoveStep
>
MoveStep
.
Wait
||
StoreMoveInfo
.
MoveStep
>
MoveStep
.
Wait
||
(
StringMoveInfo
.
MoveStep
>
MoveStep
.
Wait
&&
StringMoveInfo
.
MoveStep
!=
MoveStep
.
StringReadyPut
))
{
RunningLed
.
LedState
=
LedState
.
blink
;
StandbyLed
.
LedState
=
LedState
.
blink
;
}
//温度超限 绿亮 黄闪
if
(
IsTHoutRange
())
{
RunningLed
.
LedState
=
LedState
.
on
;
StandbyLed
.
LedState
=
LedState
.
blink
;
}
//温度超限30分钟 绿亮 黄闪 红闪
if
(
IsTHoutRangeOver30m
())
{
RunningLed
.
LedState
=
LedState
.
on
;
StandbyLed
.
LedState
=
LedState
.
blink
;
AlarmLed
.
LedState
=
LedState
.
blink
;
}
//系统暂停,说明书未定义, 绿闪, 黄闪
if
(!
canRunning
||
UserPause
)
{
RunningLed
.
LedState
=
LedState
.
blink
;
AlarmLed
.
LedState
=
LedState
.
blink
;
}
}
if
(
runStatus
==
RunStatus
.
HomeReset
)
else
if
(
runStatus
==
RunStatus
.
Stop
)
{
RunningLed
.
LedState
=
LedState
.
blink
;
//系统停止时有报警, 红亮
if
(
hasAlarm
)
{
RunningLed
.
LedState
=
LedState
.
off
;
StandbyLed
.
LedState
=
LedState
.
off
;
AlarmLed
.
LedState
=
LedState
.
on
;
}
}
else
if
(
runStatus
==
RunStatus
.
Running
)
//系统运行时报警, 绿亮,红闪
if
(
runStatus
!=
RunStatus
.
Stop
&&
hasAlarm
)
{
RunningLed
.
LedState
=
LedState
.
on
;
StandbyLed
.
LedState
=
LedState
.
off
;
AlarmLed
.
LedState
=
LedState
.
blink
;
}
else
if
(
runStatus
==
RunStatus
.
Stop
&&
!
hasAlarm
)
{
if
(!
canRunning
)
RunningLed
.
LedState
=
LedState
.
blink
;
if
(
UserPause
)
RunningLed
.
LedState
=
LedState
.
blink
;
}
if
(
hasAlarm
)
AlarmLed
.
LedState
=
LedState
.
on
;
if
(
ClampMoveInfo
.
MoveStep
>
MoveStep
.
Wait
||
StoreMoveInfo
.
MoveStep
>
MoveStep
.
Wait
||
(
StringMoveInfo
.
MoveStep
>
MoveStep
.
Wait
&&
StringMoveInfo
.
MoveStep
!=
MoveStep
.
StringReadyPut
))
{
RunningLed
.
LedState
=
LedState
.
blink
;
StandbyLed
.
LedState
=
LedState
.
blink
;
}
Led
.
LedGroup
.
ForEach
((
x
)
=>
{
x
.
run
();
});
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论