Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2216c537
由
LN
编写于
2023-06-21 16:53:59 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
无轨道模式不能选择 过板模式
1 个父辈
5cf1f174
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
10 行删除
DeviceLibrary/deviceLibrary/IO/IOManager.cs
DeviceLibrary/manager/WorkModeUtil.cs
TSA-V/FrmMenu.cs
DeviceLibrary/deviceLibrary/IO/IOManager.cs
查看文件 @
2216c53
...
...
@@ -31,9 +31,9 @@ namespace TSA_V.DeviceLibrary
{
return
IOBase
.
instance
.
IsConnection
(
KNDIP
);
}
private
static
StringBuilder
builder
=
new
StringBuilder
(
"\r\n"
);
static
IOManager
()
private
static
StringBuilder
builder
=
new
StringBuilder
(
"\r\n"
);
public
static
void
InitData
()
{
KNDIP
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
IO_IP
);
KNDPort
=
(
ushort
)
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
IO_Port
);
...
...
DeviceLibrary/manager/WorkModeUtil.cs
查看文件 @
2216c53
...
...
@@ -18,9 +18,7 @@ namespace TSA_V.DeviceLibrary
/// <summary>
/// 只能进入过板模式
/// </summary>
public
static
bool
OnlyGuoBan
=
false
;
public
static
bool
WaitSelect
=
false
;
public
static
bool
OnlyGuoBan
=
false
;
private
static
bool
IsSelected
=
false
;
...
...
@@ -43,9 +41,17 @@ namespace TSA_V.DeviceLibrary
{
return
;
}
//如果是无轨道程序,不能选择仅过板模式
if
(
IOBase
.
NoLine
)
{
LogUtil
.
error
(
Name
+
" 无轨道程序,不能选择仅过板模式 ,直接返回"
);
ModeCheckEnd
();
return
;
}
try
{
WaitSelect
=
true
;
{
//如果超时,且调宽轴已上线,旋转轴上线失败,提示是否进入过板模式
IsSelected
=
true
;
LogUtil
.
error
(
Name
+
" 询问是否进入过板模式"
);
...
...
@@ -70,8 +76,7 @@ namespace TSA_V.DeviceLibrary
LogUtil
.
error
(
"询问是否进入过板模式出错:"
+
ex
.
ToString
());
}
finally
{
ModeCheckEnd
();
WaitSelect
=
false
;
ModeCheckEnd
();
}
}
...
...
TSA-V/FrmMenu.cs
查看文件 @
2216c53
...
...
@@ -138,6 +138,7 @@ namespace TSA_V
{
Task
.
Factory
.
StartNew
(
delegate
{
IOManager
.
InitData
();
TSAVBean
.
DeviceCheck
();
IOManager
.
ConnectionIO
();
//TSAVBean.StartRun();
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论