Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a619de01
由
LN
编写于
2026-02-09 09:45:41 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
同元器件同时投影时上一步显示错误问题修改
1 个父辈
36721a18
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
44 行增加
和
14 行删除
DeviceLibrary/manager/work/WorkBean_PN.cs
DeviceLibrary/manager/work/WorkInfo.cs
TSA-V/workForm/FrmTSAV.cs
DeviceLibrary/manager/work/WorkBean_PN.cs
查看文件 @
a619de0
...
...
@@ -27,13 +27,14 @@ namespace TSA_V.DeviceLibrary
{
LogUtil
.
info
(
"开始程序【"
+
boardInfo
.
boardName
+
"】的插件 , 继续之前的工作,索引号="
+
currIndex
);
currIndex
=
Convert
.
ToInt32
(
Setting_NInit
.
Work_TagNumber
);
for
(
int
i
=
0
;
i
<
needWorkSmtList
.
Count
;
i
++)
{
if
(!
workedPnList
.
Contains
(
needWorkSmtList
[
i
].
PN
))
{
workedPnList
.
Add
(
needWorkSmtList
[
i
].
PN
);
}
}
//for(int i = 0; i < needWorkSmtList.Count; i++)
//{
// if (!workedPnList.Contains(needWorkSmtList[i].PN))
// {
// workedPnList.Add(needWorkSmtList[i].PN);
// }
//}
ResetWorkPnList
(
currIndex
,
true
);
isContinue
=
false
;
}
else
...
...
@@ -55,6 +56,23 @@ namespace TSA_V.DeviceLibrary
}
private
void
ResetWorkPnList
(
int
workIndex
,
bool
isNext
)
{
workedPnList
=
new
List
<
string
>();
needWorkSmtList
=
currBoard
.
GetSmtList
();
for
(
int
i
=
0
;
i
<
needWorkSmtList
.
Count
;
i
++)
{
if
(
i
<
workIndex
)
{
if
(!
workedPnList
.
Contains
(
needWorkSmtList
[
i
].
PN
))
{
workedPnList
.
Add
(
needWorkSmtList
[
i
].
PN
);
}
}
}
}
public
override
bool
MoveToNextPoint
(
bool
isNext
,
bool
isReset
)
{
waitList
=
new
List
<
WaitResultInfo
>();
...
...
@@ -117,9 +135,10 @@ namespace TSA_V.DeviceLibrary
else
{
currPoint
=
GetSmtList
()[
currIndex
];
ResetWorkPnList
(
currIndex
,
isNext
);
if
(
workedPnList
.
Contains
(
currPoint
.
PN
))
{
LogUtil
.
info
(
" 程序【"
+
currBoard
.
boardName
+
"】
插件【"
+
currPoint
.
TagNo
+
"】,
PN=【"
+
currPoint
.
PN
+
"】已投影过,跳过"
);
LogUtil
.
info
(
" 程序【"
+
currBoard
.
boardName
+
"】
isNext="
+
isNext
+
",索引【"
+
currIndex
+
"】插件【"
+
currPoint
.
TagNo
+
"】
PN=【"
+
currPoint
.
PN
+
"】已投影过,跳过"
);
MoveToNextPoint
(
isNext
,
isReset
);
}
//LogUtil.info(" 程序【" + currBoard.boardName + "】插件【" + currPoint.pointName + "】");
...
...
@@ -157,12 +176,15 @@ namespace TSA_V.DeviceLibrary
else
{
this
.
currPosition
=
position
;
workedPnList
.
Add
(
currPoint
.
PN
);
if
(!
workedPnList
.
Contains
(
currPoint
.
PN
))
{
workedPnList
.
Add
(
currPoint
.
PN
);
}
XYMove
();
//插件机工作
if
(
WorkType
.
Equals
(
1
))
{
LogUtil
.
info
(
" 程序【"
+
currBoard
.
boardName
+
"】PN=【"
+
currPoint
.
PN
+
"】 库位【"
+
position
.
PositionName
+
"】X轴【"
+
currPoint
.
NodePositionX
+
"】,Y轴【"
+
currPoint
.
NodePositionY
+
"】"
);
LogUtil
.
info
(
" 程序【"
+
currBoard
.
boardName
+
"】
isNext="
+
isNext
+
",索引【"
+
currIndex
+
"】 插件【"
+
currPoint
.
TagNo
+
"】
PN=【"
+
currPoint
.
PN
+
"】 库位【"
+
position
.
PositionName
+
"】X轴【"
+
currPoint
.
NodePositionX
+
"】,Y轴【"
+
currPoint
.
NodePositionY
+
"】"
);
MoveToBag
(
position
);
...
...
@@ -216,7 +238,7 @@ namespace TSA_V.DeviceLibrary
msg
+=
smt
.
TagNo
+
"_"
+
smt
.
PN
+
"_"
+
smt
.
NodePositionX
+
"_"
+
smt
.
NodePositionY
+
" "
;
}
}
LogUtil
.
info
(
" 程序【"
+
currBoard
.
boardName
+
"】插件【"
+
msg
+
"】显示投影光标"
);
LogUtil
.
info
(
" 程序【"
+
currBoard
.
boardName
+
"】
索引【"
+
currIndex
+
"】插件【"
+
currPoint
.
TagNo
+
"】PN=【"
+
currPoint
.
PN
+
"】
插件【"
+
msg
+
"】显示投影光标"
);
TSAVBean
.
ShowPoint
(
currBoard
,
needShowXyPoint
.
ToArray
());
waitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
////xy轴运动到固定点
...
...
DeviceLibrary/manager/work/WorkInfo.cs
查看文件 @
a619de0
...
...
@@ -163,7 +163,7 @@ namespace TSA_V.DeviceLibrary
}
public
bool
MoveToNextPoint
(
bool
isNext
)
{
return
MoveToNextPoint
(
isNext
,
false
);
return
MoveToNextPoint
(
isNext
,
true
);
}
public
virtual
bool
MoveToNextPoint
(
bool
isNext
,
bool
isReset
)
{
...
...
TSA-V/workForm/FrmTSAV.cs
查看文件 @
a619de0
...
...
@@ -889,12 +889,16 @@ namespace TSA_V
}
}
private
int
PreOrNextIndex
(
bool
isNext
,
bool
reset
=
false
)
{
{
pnList
=
new
List
<
string
>();
if
(
isNext
)
{
for
(
int
i
=
0
;
i
<=
preIndex
;
i
++)
for
(
int
i
=
0
;
i
<=
preIndex
;
i
++)
{
if
(
i
<
0
||
i
>=
workSmtList
.
Count
)
{
continue
;
}
if
(!
pnList
.
Contains
(
workSmtList
[
i
].
PN
))
{
pnList
.
Add
(
workSmtList
[
i
].
PN
);
...
...
@@ -905,6 +909,10 @@ namespace TSA_V
{
for
(
int
i
=
preIndex
;
i
<
workSmtList
.
Count
;
i
++)
{
if
(
i
<
0
||
i
>=
workSmtList
.
Count
)
{
continue
;
}
if
(!
pnList
.
Contains
(
workSmtList
[
i
].
PN
))
{
pnList
.
Add
(
workSmtList
[
i
].
PN
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论