Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ea944e7c
由
刘韬
编写于
2022-11-22 13:08:16 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修正入库时单盘出库卡死
1 个父辈
6d6f260e
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
18 行增加
和
12 行删除
DeviceLibrary/DeviceLibrary/CylinderManger.cs
DeviceLibrary/DeviceLibrary/LiftMonitor.cs
DeviceLibrary/theMachine/MainMachine.cs
DeviceLibrary/theMachine/MainMachine_Clamp.cs
DeviceLibrary/DeviceLibrary/CylinderManger.cs
查看文件 @
ea944e7
...
...
@@ -46,6 +46,8 @@ namespace DeviceLibrary
public
void
Pause
()
{
LogUtil
.
info
(
$
"{Name},停止运行"
);
IOManager
.
IOMove
(
Low
,
IO_VALUE
.
LOW
);
IOManager
.
IOMove
(
High
,
IO_VALUE
.
LOW
);
if
(
currentIOvalue
==
IO_VALUE
.
None
)
{
LogUtil
.
info
(
$
"{Name},没有在运行"
);
return
;
...
...
@@ -59,9 +61,6 @@ namespace DeviceLibrary
LogUtil
.
info
(
$
"{Name},currentIOvalue:{currentIOvalue},暂停是IO已到位"
);
return
;
}
IOManager
.
IOMove
(
Low
,
IO_VALUE
.
LOW
);
IOManager
.
IOMove
(
High
,
IO_VALUE
.
LOW
);
}
public
void
Resume
()
...
...
DeviceLibrary/DeviceLibrary/LiftMonitor.cs
查看文件 @
ea944e7
...
...
@@ -73,11 +73,12 @@ namespace DeviceLibrary
axisBean
.
RelMove
(
StrokeLength
,
(
double
)
upspeed
);
DateTime
d
=
DateTime
.
Now
;
moveInfo
.
log
(
$
"{axisBean.AxisName},LiftUp"
);
if
(
moveInfo
!=
null
)
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitAction
(
new
Func
<
WaitResultInfo
,
bool
>(
WaitUp
),
$
"等待顶升[{axisBean.Config.Explain}]机构上升"
));
var
wr
=
WaitResultInfo
.
WaitAction
(
new
Func
<
WaitResultInfo
,
bool
>(
WaitUp
),
$
"等待顶升[{axisBean.Config.Explain}]机构上升"
);
if
(
moveInfo
!=
null
)
moveInfo
.
WaitList
.
Add
(
wr
);
Task
.
Run
(()=>
{
while
(!
IOManager
.
IOValue
(
up
.
ToString
()).
Equals
(
IO_VALUE
.
HIGH
))
{
Task
.
Delay
(
30
);
Task
.
Delay
(
15
);
if
(
paused
)
{
paused
=
false
;
...
...
@@ -89,6 +90,7 @@ namespace DeviceLibrary
return
;
}
}
moveInfo
.
WaitList
.
Remove
(
wr
);
if
(
UpOverTimeMS
>
0
)
Task
.
Delay
(
UpOverTimeMS
).
Wait
();
axisBean
.
SuddenStop
();
...
...
@@ -149,13 +151,14 @@ namespace DeviceLibrary
axisBean
.
RelMove
(-
StrokeLength
,
(
double
)
downspeed
);
DateTime
d
=
DateTime
.
Now
;
moveInfo
.
log
(
$
"{axisBean.AxisName},LiftDown"
);
var
wr
=
WaitResultInfo
.
WaitAction
(
new
Func
<
WaitResultInfo
,
bool
>(
WaitDown
),
$
"等待顶升[{axisBean.Config.Explain}]机构下降"
);
if
(
moveInfo
!=
null
)
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitAction
(
new
Func
<
WaitResultInfo
,
bool
>(
WaitDown
),
$
"等待顶升[{axisBean.Config.Explain}]机构下降"
)
);
moveInfo
.
WaitList
.
Add
(
wr
);
Task
.
Run
(()
=>
{
while
(!
IOManager
.
IOValue
(
down
.
ToString
()).
Equals
(
IO_VALUE
.
HIGH
))
{
Task
.
Delay
(
30
);
Task
.
Delay
(
15
);
if
(
paused
)
{
paused
=
false
;
...
...
@@ -168,6 +171,9 @@ namespace DeviceLibrary
return
;
}
}
moveInfo
.
WaitList
.
Remove
(
wr
);
if
(
DownOverTimeMS
>
0
)
Task
.
Delay
(
DownOverTimeMS
).
Wait
();
axisBean
.
SuddenStop
();
...
...
DeviceLibrary/theMachine/MainMachine.cs
查看文件 @
ea944e7
...
...
@@ -136,12 +136,12 @@ namespace DeviceLibrary
RobotManage
.
Config
.
DOList
.
Remove
(
IO_Type
.
StringDoor_Open
);
RobotManage
.
Config
.
DOList
.
Remove
(
IO_Type
.
StringDoor_Close
);
StringDoor
=
new
LiftMonitor
(
IO_Type
.
StringDoor_Open
,
IO_Type
.
StringDoor_Close
,
IO_Type
.
StringDoor_Axis_Break
,
new
AxisBean
(
Config
.
StringDoor_Axis
,
Name
),
Config
.
StringDoorLength
,
Config
.
StringDoorLength_speed
);
StringDoor
.
DownOverTimeMS
=
300
;
StringDoor
.
UpOverTimeMS
=
100
;
StringDoor
.
DownOverTimeMS
=
ConfigHelper
.
Config
.
Get
(
"Device_StringDoor_DownOverTimeMS"
,
0
)
;
StringDoor
.
UpOverTimeMS
=
ConfigHelper
.
Config
.
Get
(
"Device_StringDoor_UpOverTimeMS"
,
0
)
;
LogUtil
.
info
(
"加载料串门类型为:步进"
);
//此版本同步删除其他IO
RobotManage
.
Config
.
DOList
.
Remove
(
IO_Type
.
NitrogenValve
);
//
RobotManage.Config.DOList.Remove(IO_Type.NitrogenValve);
}
else
LogUtil
.
info
(
"加载料串门类型为:气缸"
);
...
...
DeviceLibrary/theMachine/MainMachine_Clamp.cs
查看文件 @
ea944e7
...
...
@@ -80,7 +80,8 @@ namespace DeviceLibrary
switch
(
ClampMoveInfo
.
MoveStep
)
{
case
MoveStep
.
Wait
:
if
(
IsGetReelReady
)
{
if
(
IsGetReelReady
&&
StoreMoveInfo
.
MoveStep
<
MoveStep
.
StoreOut10
)
{
ClampMoveInfo
.
NewMove
(
MoveStep
.
ReelClamp_01
);
OpenFlipDoor
(
ClampMoveInfo
);
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论