Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 9cc48e7e
由
LN
编写于
2024-03-04 10:12:36 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加配置,默认进入过板模式不加载设备
1 个父辈
f453e1aa
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
46 行增加
和
5 行删除
Common/Setting_NInit.cs
Common/util/ConfigAppSettings.cs
DeviceLibrary/csvLoad/CSVBomManager.cs
DeviceLibrary/manager/TSAVBean.cs
TSA-V/FrmMenu.cs
TSA-V/FrmPutCom.cs
TSA-V/Smart-Workstation.csproj
Common/Setting_NInit.cs
查看文件 @
9cc48e7
...
@@ -81,6 +81,11 @@ namespace TSA_V.Common
...
@@ -81,6 +81,11 @@ namespace TSA_V.Common
public
static
MyConfig
<
bool
>
Device_IsCycleDebug
=
false
;
public
static
MyConfig
<
bool
>
Device_IsCycleDebug
=
false
;
[
MyConfigComment
(
"侧挡气缸是否先移动"
)]
[
MyConfigComment
(
"侧挡气缸是否先移动"
)]
public
static
MyConfig
<
bool
>
Device_SideCylinderMoveFirst
=
true
;
public
static
MyConfig
<
bool
>
Device_SideCylinderMoveFirst
=
true
;
[
MyConfigComment
(
"是否自动进入过板模式"
)]
public
static
MyConfig
<
bool
>
Device_AutoGuoBan
=
false
;
[
MyConfigComment
(
"是否工作区域启动"
)]
[
MyConfigComment
(
"是否工作区域启动"
)]
public
static
MyConfig
<
bool
>
Work_WorkSingleStart
=
false
;
public
static
MyConfig
<
bool
>
Work_WorkSingleStart
=
false
;
[
MyConfigComment
(
"是否离线模式"
)]
[
MyConfigComment
(
"是否离线模式"
)]
...
@@ -130,7 +135,7 @@ namespace TSA_V.Common
...
@@ -130,7 +135,7 @@ namespace TSA_V.Common
{
{
try
try
{
{
ConfigRead
();
//配置迁移
//配置迁移
if
(!
Soft_NeedChangeConfig
)
if
(!
Soft_NeedChangeConfig
)
{
{
...
@@ -241,5 +246,21 @@ namespace TSA_V.Common
...
@@ -241,5 +246,21 @@ namespace TSA_V.Common
LogUtil
.
error
(
"配置迁移出错:"
+
ex
.
ToString
());
LogUtil
.
error
(
"配置迁移出错:"
+
ex
.
ToString
());
}
}
}
}
public
static
void
ConfigRead
()
{
try
{
Device_AutoGuoBan
=
ConfigAppSettings
.
GetBoolValue
(
"Device_AutoGuoBan"
,
Device_AutoGuoBan
);
ConfigAppSettings
.
RemoveKey
(
"Device_AutoGuoBan"
);
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"ConfigRead 出错: "
+
ex
.
ToString
());
}
}
}
}
}
}
Common/util/ConfigAppSettings.cs
查看文件 @
9cc48e7
...
@@ -87,6 +87,11 @@ namespace TSA_V.Common
...
@@ -87,6 +87,11 @@ namespace TSA_V.Common
}
}
public
static
bool
GetBoolValue
(
string
keyStr
,
bool
defv
=
false
)
public
static
bool
GetBoolValue
(
string
keyStr
,
bool
defv
=
false
)
{
{
int
v
=
GetIntValue
(
keyStr
,-
1
);
if
(
v
==
-
1
)
{
return
defv
;
}
return
GetIntValue
(
keyStr
).
Equals
(
1
);
return
GetIntValue
(
keyStr
).
Equals
(
1
);
}
}
...
...
DeviceLibrary/csvLoad/CSVBomManager.cs
查看文件 @
9cc48e7
...
@@ -387,7 +387,7 @@ namespace TSA_V.LoadCSVLibrary
...
@@ -387,7 +387,7 @@ namespace TSA_V.LoadCSVLibrary
if
(
strarr
.
Length
!=
intarr
.
Length
)
if
(
strarr
.
Length
!=
intarr
.
Length
)
{
{
MessageBox
.
Show
(
$
"{com.PN}的数量分组{intarr.Length}和位置分组{strarr.Length},不统一!"
);
LogUtil
.
error
(
$
"{com.PN}的数量分组{intarr.Length}和位置分组{strarr.Length},不统一!"
);
return
new
List
<
ComponetInfo
>();
return
new
List
<
ComponetInfo
>();
}
}
...
...
DeviceLibrary/manager/TSAVBean.cs
查看文件 @
9cc48e7
...
@@ -194,6 +194,14 @@ namespace TSA_V.DeviceLibrary
...
@@ -194,6 +194,14 @@ namespace TSA_V.DeviceLibrary
{
{
try
try
{
{
if
(
Setting_NInit
.
Device_AutoGuoBan
)
{
LogUtil
.
info
(
Name
+
" Device_AutoGuoBan 已配置,默认进入过板模式"
);
WorkModeUtil
.
AutoSelect
(
Name
);
return
;
}
if
(!
IOManager
.
ShuddenOK
())
if
(!
IOManager
.
ShuddenOK
())
{
{
WarnMsg
=
GetTime
()
+
ResourceControl
.
GetString
(
"FrmBoardInfo_lblMsg_Text"
,
"急停未开"
);
WarnMsg
=
GetTime
()
+
ResourceControl
.
GetString
(
"FrmBoardInfo_lblMsg_Text"
,
"急停未开"
);
...
...
TSA-V/FrmMenu.cs
查看文件 @
9cc48e7
...
@@ -241,7 +241,14 @@ namespace TSA_V
...
@@ -241,7 +241,14 @@ namespace TSA_V
}
}
else
else
{
{
LogUtil
.
info
(
"未连接到IO模块,等待2000后重连!"
);
if
(
Setting_NInit
.
Device_AutoGuoBan
)
{
}
else
{
LogUtil
.
info
(
"未连接到IO模块,等待2000后重连!"
);
}
}
}
}
}
...
...
TSA-V/FrmPutCom.cs
查看文件 @
9cc48e7
...
@@ -132,7 +132,7 @@ namespace TSA_V
...
@@ -132,7 +132,7 @@ namespace TSA_V
}
}
else
if
(
TSAVBean
.
Status
.
Equals
(
TSAVStatus
.
Runing
))
else
if
(
TSAVBean
.
Status
.
Equals
(
TSAVStatus
.
Runing
))
{
{
Work
.
MoveToBag
(
currPosition
);
Work
.
MoveToBag
(
currPosition
,
currCom
);
}
}
}
}
private
void
btnPre_Click
(
object
sender
,
EventArgs
e
)
private
void
btnPre_Click
(
object
sender
,
EventArgs
e
)
...
...
TSA-V/Smart-Workstation.csproj
查看文件 @
9cc48e7
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<OutputType>WinExe</OutputType>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>TSA_V</RootNamespace>
<RootNamespace>TSA_V</RootNamespace>
<AssemblyName>N
EO STATION
</AssemblyName>
<AssemblyName>N
eo_Station
</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<TargetFrameworkProfile />
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论