Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO20031_TinStorage
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 3979adf6
由
刘韬
编写于
2025-11-26 09:43:46 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
入料口放料后用视觉检测是否放入
1 个父辈
137a720d
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
30 行增加
和
7 行删除
DeviceLibrary/theMachine/CameraPointTest.cs
DeviceLibrary/theMachine/MainMachine_Store.cs
DeviceLibrary/theMachine/MoveStep.cs
TheMachine/Properties/AssemblyInfo.cs
DeviceLibrary/theMachine/CameraPointTest.cs
查看文件 @
3979adf
...
...
@@ -230,7 +230,9 @@ namespace DeviceLibrary
public
static
TestStorePointPort
GetTestStorePointPort
(
string
posname
)
{
TestStorePointPort
testStorePointPort
;
if
(
Regex
.
IsMatch
(
posname
,
"^S[A-G]"
))
if
(
posname
.
StartsWith
(
"L"
))
testStorePointPort
=
TestStorePointPort
.
入口
;
else
if
(
Regex
.
IsMatch
(
posname
,
"^S[A-G]"
))
testStorePointPort
=
TestStorePointPort
.
上层左侧
;
else
if
(
Regex
.
IsMatch
(
posname
,
"^S[H-N][1-6]$"
))
testStorePointPort
=
TestStorePointPort
.
下层左侧
;
...
...
DeviceLibrary/theMachine/MainMachine_Store.cs
查看文件 @
3979adf
...
...
@@ -381,15 +381,35 @@ namespace DeviceLibrary
if
(!
ServerCM
.
SendStoreState
(
StoreMoveInfo
.
MoveParam
.
PosID
,
StoreStatus
.
InStoreEnd
))
{
}
}
if
(
OutStoreJobList
.
Count
==
0
)
StoreMoveInfo
.
NewMove
(
MoveStep
.
StoreIn01
);
else
StoreMoveInfo
.
NewMove
(
MoveStep
.
Wait
);
StoreMoveInfo
.
log
(
$
"入库完成"
);
StoreMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreIn10
);
StoreMoveInfo
.
log
(
$
"入库完成,开始检查库位"
);
CameraPointTest
.
GetThingStoreName
(
TestStorePointPort
.
入口
);
}
break
;
case
MoveStep
.
StoreIn10
:
var
posid
=
StoreMoveInfo
.
MoveParam
.
PosID
;
//SA1
List
<
string
>
ol
=
new
List
<
string
>();
TestStorePointPort
tspp
=
CameraPointTest
.
GetTestStorePointPort
(
posid
);
ol
=
CameraPointTest
.
GetThingStoreName
(
tspp
);
StoreMoveInfo
.
log
(
$
"检测到有料库位,{tspp}: {string.Join("
,
", ol)}"
);
if
(
ol
.
Contains
(
posid
))
{
StoreMoveInfo
.
log
(
"入库成功"
);
}
else
{
Msg
.
add
(
string
.
Format
(
"No material detected at storage location {0} – please check."
,
posid
),
MsgLevel
.
alarm
);
StoreMoveInfo
.
log
(
"入库失败,请检查库位:"
+
posid
);
}
if
(
OutStoreJobList
.
Count
==
0
)
StoreMoveInfo
.
NewMove
(
MoveStep
.
StoreIn01
);
else
StoreMoveInfo
.
NewMove
(
MoveStep
.
Wait
);
break
;
case
MoveStep
.
StoreOut10
:
if
(
IOValue
(
IO_Type
.
Out_Drawer
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
Out_Drawer_Lock
).
Equals
(
IO_VALUE
.
HIGH
))
{
...
...
DeviceLibrary/theMachine/MoveStep.cs
查看文件 @
3979adf
...
...
@@ -60,6 +60,7 @@ namespace DeviceLibrary
StoreIn07
,
StoreIn08
,
StoreIn09
,
StoreIn10
,
StoreOut10
,
//出库
StoreOut10_1
,
StoreOut_NGPre
,
...
...
TheMachine/Properties/AssemblyInfo.cs
查看文件 @
3979adf
...
...
@@ -31,6 +31,6 @@ using System.Runtime.InteropServices;
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
[assembly: AssemblyVersion("1.
0.*
")]
[assembly: AssemblyVersion("1.
2.0
")]
//[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论