Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 9d5db606
由
LN
编写于
2023-11-03 16:47:04 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
检测到信号2000后再停止线体
1 个父辈
fd5f97ce
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
32 行增加
和
16 行删除
Common/util/ConfigAppSettings.cs
DeviceLibrary/manager/TSAVBean.cs
DeviceLibrary/manager/TSAVBean_Partial.cs
DeviceLibrary/manager/WorkInfo.cs
TSA-V/App.config
TSA-V/Properties/Resource.en-US.resx
TSA-V/Properties/Resource.ru-RU.resx
TSA-V/Properties/Resource.zh-CN.resx
TSA-V/workForm/FrmBoardSelect.cs
TSA-V/workForm/FrmTSAV.cs
Common/util/ConfigAppSettings.cs
查看文件 @
9d5db60
...
...
@@ -245,10 +245,11 @@ namespace TSA_V.Common
public
static
void
UpdateAppSetting
(
string
key
,
string
value
)
{
Configuration
configuration
=
ConfigurationManager
.
OpenExeConfiguration
(
ConfigurationUserLevel
.
None
);
configuration
.
AppSettings
.
Settings
[
key
].
Value
=
value
;
configuration
.
Save
(
ConfigurationSaveMode
.
Modified
);
ConfigurationManager
.
RefreshSection
(
"appSettings"
);
SaveValue
(
key
,
value
);
//Configuration configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
//configuration.AppSettings.Settings[key].Value = value;
//configuration.Save(ConfigurationSaveMode.Modified);
//ConfigurationManager.RefreshSection("appSettings");
}
}
}
DeviceLibrary/manager/TSAVBean.cs
查看文件 @
9d5db60
DeviceLibrary/manager/TSAVBean_Partial.cs
查看文件 @
9d5db60
...
...
@@ -249,8 +249,8 @@ namespace TSA_V.DeviceLibrary
else
if
(
LineStep
.
IsStep
(
StepEnum
.
LS02_LineMove
))
{
LineStep
.
NextStep
(
StepEnum
.
LS03_WaitBoard
);
LineLog
(
"流水线转动:检测到组装工位信号,再转动
1
000停止"
);
LineStep
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1
000
));
LineLog
(
"流水线转动:检测到组装工位信号,再转动
2
000停止"
);
LineStep
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2
000
));
}
else
if
(
LineStep
.
IsStep
(
StepEnum
.
LS03_WaitBoard
))
{
...
...
DeviceLibrary/manager/WorkInfo.cs
查看文件 @
9d5db60
...
...
@@ -39,6 +39,7 @@ namespace TSA_V.DeviceLibrary
public
DateTime
beginWorkTime
=
DateTime
.
Now
;
public
bool
IsShowAOI
=
false
;
private
List
<
ComponetInfo
>
useComponets
=
new
List
<
ComponetInfo
>();
public
static
bool
isContinue
=
false
;
public
void
StartWork
(
BoardInfo
boardInfo
)
{
//StatusClient.instance.SendNew(Color.Green, "扫码成功:" + BoardManager.CurrBoard.boardCode);
...
...
@@ -48,6 +49,12 @@ namespace TSA_V.DeviceLibrary
currBoard
=
boardInfo
;
needWorkSmtList
=
currBoard
.
GetSmtList
();
currIndex
=
-
1
;
if
(
isContinue
)
{
LogUtil
.
info
(
"开始程序【"
+
boardInfo
.
boardName
+
"】的插件 , 继续之前的工作,索引号="
+
currIndex
);
currIndex
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
TagNumber
);
isContinue
=
false
;
}
IsShowAOI
=
false
;
currPoint
=
null
;
IsWorking
=
true
;
...
...
TSA-V/App.config
查看文件 @
9d5db60
...
...
@@ -124,9 +124,6 @@
<
add
key
=
"DisableBottomCylinder"
value
=
"1"
/>
<
add
key
=
"SMF_Serverurl"
value
=
"http://localhost:8800/"
/>
<
add
key
=
"SMF_CID"
value
=
"NEOSTATION001"
/>
<!--记录程序运行步骤-->
<
add
key
=
"ProcedureName"
value
=
"12343"
/>
<
add
key
=
"TagNumber"
value
=
"3"
/>
</
appSettings
>
<
log4net
>
<
appender
name
=
"defaultAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
...
...
TSA-V/Properties/Resource.en-US.resx
查看文件 @
9d5db60
...
...
@@ -2584,4 +2584,7 @@
<data name="ComInsufficient" xml:space="preserve">
<value>Insufficient component inventory</value>
</data>
<data name="iscontinue" xml:space="preserve">
<value>There is an open program '{0}', whether to continue or not?</value>
</data>
</root>
\ No newline at end of file
TSA-V/Properties/Resource.ru-RU.resx
查看文件 @
9d5db60
...
...
@@ -2580,4 +2580,7 @@
<data name="NoAirAlarm" xml:space="preserve">
<value>未检测到气压信号</value>
</data>
<data name="iscontinue" xml:space="preserve">
<value>有未结束的程序'{0}',是否继续?</value>
</data>
</root>
\ No newline at end of file
TSA-V/Properties/Resource.zh-CN.resx
查看文件 @
9d5db60
...
...
@@ -2580,4 +2580,7 @@
<data name="NoAirAlarm" xml:space="preserve">
<value>未检测到气压信号</value>
</data>
<data name="iscontinue" xml:space="preserve">
<value>有未结束的程序'{0}',是否继续?</value>
</data>
</root>
\ No newline at end of file
TSA-V/workForm/FrmBoardSelect.cs
查看文件 @
9d5db60
...
...
@@ -386,17 +386,17 @@ namespace TSA_V
string
TagNumber
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
TagNumber
);
if
(!
string
.
IsNullOrEmpty
(
ProcedureName
)&&!
string
.
IsNullOrEmpty
(
TagNumber
))
{
DialogResult
dr
=
MessageBox
.
Show
(
$
"有未结束的程序'{ProcedureName}',是否继续?"
,
"提示"
,
MessageBoxButtons
.
OKCancel
,
MessageBoxIcon
.
Question
);
if
(
dr
==
DialogResult
.
OK
)
{
cmbBoardList
.
Text
=
ProcedureName
;
BoardInfo
board
=
(
BoardInfo
)
cmbBoardList
.
SelectedItem
;
if
(
string
.
IsNullOrEmpty
(
board
.
boardName
))
BoardInfo
board
=
BoardManager
.
getBoardByName
(
ProcedureName
);
if
(
board
==
null
)
{
MessageBox
.
Show
(
$
"未找到当前板子信息{ProcedureName},请检查!"
);
return
;
}
string
msg
=
ResourceCulture
.
GetString
(
"iscontinue"
,
"有未结束的程序'{0}',是否继续?"
,
new
string
[]
{
ProductName
});
DialogResult
dr
=
MessageBox
.
Show
(
msg
,
ResourceCulture
.
GetString
(
"提示"
),
MessageBoxButtons
.
OKCancel
,
MessageBoxIcon
.
Question
);
if
(
dr
==
DialogResult
.
OK
)
{
BoardManager
.
CurrBoard
=
board
;
LogUtil
.
info
(
$
"继续之前的工作: {ProcedureName} ,索引{TagNumber}"
);
FrmWork
fw
=
new
FrmWork
(
true
);
this
.
Hide
();
this
.
Close
();
...
...
TSA-V/workForm/FrmTSAV.cs
查看文件 @
9d5db60
...
...
@@ -29,6 +29,7 @@ namespace TSA_V
{
InitializeComponent
();
isContinue
=
iscontinue
;
WorkInfo
.
isContinue
=
iscontinue
;
}
private
bool
isInitOk
=
false
;
...
...
@@ -593,6 +594,7 @@ namespace TSA_V
if
(
position
!=
null
)
{
lblPositionNum
.
Text
=
position
.
PositionNum
;
smtPoint
.
PositionNum
=
position
.
PositionNum
;
}
lblComDes
.
Text
=
com
.
ComponentDes
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论