Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
MIMO
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d727492d
由
张东亮
编写于
2023-03-30 17:13:41 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
取出出库料串按钮修复
1 个父辈
486ec025
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
27 行增加
和
12 行删除
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
DeviceLibrary/theMachine/MainMachine _IOMonitor.cs
DeviceLibrary/theMachine/MainMachine_ServerControl.cs
DeviceLibrary/theMachine/MainMachine_Store.cs
DeviceLibrary/theMachine/MainMachine_String.cs
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
查看文件 @
d727492
...
...
@@ -449,12 +449,7 @@ namespace DeviceLibrary
var
step
=
RobotManage
.
mainMachine
.
StringMoveInfo
.
MoveStep
;
if
((
step
>=
MoveStep
.
StringLoad_04
&&
step
<
MoveStep
.
StringOut_01
))
{
if
(
RobotManage
.
mainMachine
.
StringState
.
Equals
(
StringStateE
.
OutStore
)
&&
RobotManage
.
mainMachine
.
ServerCM
.
queueTaskCount
==
0
)
{
map
[
ParamDefine
.
takeOutReel
]
=
ParamDefine
.
enable
;
}
else
map
[
ParamDefine
.
takeOutReel
]
=
ParamDefine
.
enable
;
map
[
ParamDefine
.
takeOutReel
]
=
ParamDefine
.
enable
;
}
if
(
RobotManage
.
mainMachine
.
IOValue
(
IO_Type
.
NGDoor_Open
).
Equals
(
IO_VALUE
.
HIGH
))
{
...
...
DeviceLibrary/theMachine/MainMachine _IOMonitor.cs
查看文件 @
d727492
...
...
@@ -24,6 +24,7 @@ namespace DeviceLibrary
if
((
StringState
>=
StringStateE
.
OutStore
)
&&
IOValue
(
IO_Type
.
DoorClose_LoadMaterial
).
Equals
(
IO_VALUE
.
LOW
))
{
MaterialDoorOpen
=
true
;
RequestTakeOutReel
=
false
;
StringState
=
StringStateE
.
None
;
}
else
if
(
IOValue
(
IO_Type
.
DoorClose_LoadMaterial
).
Equals
(
IO_VALUE
.
HIGH
)
&&
StringMoveInfo
.
MoveStep
==
MoveStep
.
Wait
)
...
...
DeviceLibrary/theMachine/MainMachine_ServerControl.cs
查看文件 @
d727492
...
...
@@ -28,18 +28,17 @@ namespace DeviceLibrary
public
string
doTakeOutReel
()
{
LogUtil
.
info
(
"请求下降出库料串"
);
var
step
=
RobotManage
.
mainMachine
.
StringMoveInfo
.
MoveStep
;
var
st
ringSt
ep
=
RobotManage
.
mainMachine
.
StringMoveInfo
.
MoveStep
;
var
clampstep
=
RobotManage
.
mainMachine
.
ClampMoveInfo
.
MoveStep
;
if
(
step
==
MoveStep
.
StringReadyGet
&&
clampstep
>=
MoveStep
.
ReelClamp_GetHeight
)
if
(
st
ringSt
ep
==
MoveStep
.
StringReadyGet
&&
clampstep
>=
MoveStep
.
ReelClamp_GetHeight
)
{
RobotManage
.
mainMachine
.
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringOut_01
);
StringState
=
StringStateE
.
ManualOut
;
return
crc
.
GetString
(
L
.
string_begin_release
,
"开始释放料串"
);
}
if
(
step
==
MoveStep
.
StringReadyPut
)
if
(
st
ringSt
ep
==
MoveStep
.
StringReadyPut
)
{
RobotManage
.
mainMachine
.
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringOut_01
);
StringState
=
StringStateE
.
ManualOut
;
RequestTakeOutReel
=
true
;
return
crc
.
GetString
(
L
.
string_begin_release
,
"开始释放料串"
);
}
LogUtil
.
info
(
$
"料串无法释放,料仓正在出入库中:{StringMoveInfo.MoveStep}"
);
...
...
DeviceLibrary/theMachine/MainMachine_Store.cs
查看文件 @
d727492
...
...
@@ -107,7 +107,7 @@ namespace DeviceLibrary
else
boxTransport
.
IgnoreX09
=
false
;
TurnToOut
();
if
(
IsPutReelReady
&&
OutStoreJobList
.
Dequeue
(
out
JobInfo
jobInfo
))
if
(
IsPutReelReady
&&
!
RequestTakeOutReel
&&
OutStoreJobList
.
Dequeue
(
out
JobInfo
jobInfo
))
{
StoreMoveInfo
.
NewMove
(
MoveStep
.
StoreOut10
);
StoreMoveInfo
.
MoveParam
.
PosID
=
jobInfo
.
PosId
;
...
...
DeviceLibrary/theMachine/MainMachine_String.cs
查看文件 @
d727492
...
...
@@ -30,6 +30,11 @@ namespace DeviceLibrary
get
=>
StringMoveInfo
.
MoveStep
==
MoveStep
.
StringReadyPut
;
}
/// <summary>
/// 请求取出出库料盘
/// 当前出库料盘出完,不出下一盘
/// </summary>
public
bool
RequestTakeOutReel
=
false
;
/// <summary>
/// 通知料盘已取走
/// </summary>
void
ReelGetted
(
bool
success
=
true
)
...
...
@@ -328,6 +333,20 @@ namespace DeviceLibrary
StringMoveInfo
.
log
(
$
"当前服务器反馈没有出库任务, 料串下降待机"
);
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringOut_01
);
}
else
if
(
RequestTakeOutReel
)
{
StringMoveInfo
.
log
(
$
"请求取出出库料盘,料串下降"
);
RobotManage
.
mainMachine
.
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringOut_01
);
StringState
=
StringStateE
.
ManualOut
;
}
else
if
(
ServerCM
.
queueTaskCount
!=
0
)
{
StringMoveInfo
.
log
(
$
"当前服务器反馈有出库任务:{ServerCM.queueTaskCount}"
);
}
else
if
(!
boxTransport
.
IsComplateOrFree
)
{
StringMoveInfo
.
log
(
$
"等待料盘转移完成"
);
}
break
;
case
MoveStep
.
StringReelPut
:
if
(
Setting_Init
.
Device_OutStoreStringReelCheck
)
{
...
...
@@ -408,6 +427,7 @@ namespace DeviceLibrary
break
;
case
MoveStep
.
StringOut_01
:
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringOut_Released
);
RequestTakeOutReel
=
false
;
StringMoveInfo
.
log
(
$
"料串下降到P1点"
);
Batch_Axis
.
AbsMove
(
StringMoveInfo
,
Config
.
Batch_P1
,
Config
.
Batch_P1_speed
);
StringMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitMsg
(
"料串正在下降"
,
MsgLevel
.
warning
));
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论