Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC30-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a3ea18af
由
刘韬
编写于
2021-10-21 17:03:00 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
添加IO重连机制
1 个父辈
13d512f3
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14 行增加
和
6 行删除
source/ACSingleStore/FrmIOStatus.Designer.cs
source/ACSingleStore/Properties/Resource.en-US.resx
source/DeviceLibrary/DeviceLibrary/IO/AIOBOX/AIOBOXManager.cs
source/DeviceLibrary/DeviceLibrary/PanasonicServo/BatchAxisController.cs
source/ACSingleStore/FrmIOStatus.Designer.cs
查看文件 @
a3ea18a
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
// timer1
// timer1
//
//
this
.
timer1
.
Enabled
=
true
;
this
.
timer1
.
Enabled
=
true
;
this
.
timer1
.
Interval
=
10
00
;
this
.
timer1
.
Interval
=
5
00
;
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer1_Tick
);
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer1_Tick
);
//
//
// groupBox1
// groupBox1
...
...
source/ACSingleStore/Properties/Resource.en-US.resx
查看文件 @
a3ea18a
...
@@ -1212,4 +1212,7 @@
...
@@ -1212,4 +1212,7 @@
<data name="InstoreInfo" xml:space="preserve">
<data name="InstoreInfo" xml:space="preserve">
<value> batch storage and retrieval info: storage: </value>
<value> batch storage and retrieval info: storage: </value>
</data>
</data>
<data name="FrmStoreBox_tabPage6_Text" xml:space="preserve">
<value>Storage Adjust</value>
</data>
</root>
</root>
\ No newline at end of file
\ No newline at end of file
source/DeviceLibrary/DeviceLibrary/IO/AIOBOX/AIOBOXManager.cs
查看文件 @
a3ea18a
...
@@ -76,15 +76,20 @@ namespace OnlineStore.DeviceLibrary
...
@@ -76,15 +76,20 @@ namespace OnlineStore.DeviceLibrary
aioBox
.
IP
=
ioIp
;
aioBox
.
IP
=
ioIp
;
aioBox
.
Upload
=
false
;
aioBox
.
Upload
=
false
;
aioBox
.
DI_Changed_Event
+=
AioBox_DI_Changed_Event
;
aioBox
.
DI_Changed_Event
+=
AioBox_DI_Changed_Event
;
;
aioBox
.
DO_Changed_Event
+=
AioBox_DO_Changed_Event
;
aioBox
.
DO_Changed_Event
+=
AioBox_DO_Changed_Event
;
LogUtil
.
info
(
"开始连接:"
+
logName
+
":"
);
LogUtil
.
info
(
"开始连接:"
+
logName
+
":"
);
aioBox
.
Connect
();
aioBox
.
Connect
();
AIOMap
.
Add
(
ioIp
,
aioBox
);
AIOMap
.
Add
(
ioIp
,
aioBox
);
Thread
.
Sleep
(
5
);
for
(
int
i
=
0
;
i
<
15
;
i
++)
{
if
(
aioBox
.
IsConn
)
break
;
Thread
.
Sleep
(
1000
);
}
LogUtil
.
info
(
"连接成功:"
+
logName
+
":"
);
//读取所有的DO
//读取所有的DO
ReadAllDI
(
ioIp
,
0
);
ReadAllDI
(
ioIp
,
0
);
Thread
.
Sleep
(
5
);
Thread
.
Sleep
(
5
);
...
...
source/DeviceLibrary/DeviceLibrary/PanasonicServo/BatchAxisController.cs
查看文件 @
a3ea18a
...
@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
{
{
checkTimer
=
new
System
.
Timers
.
Timer
();
checkTimer
=
new
System
.
Timers
.
Timer
();
checkTimer
.
AutoReset
=
true
;
checkTimer
.
AutoReset
=
true
;
checkTimer
.
Interval
+=
3
0
;
checkTimer
.
Interval
+=
1
0
;
checkTimer
.
Elapsed
+=
CheckTimer_Elapsed
;
checkTimer
.
Elapsed
+=
CheckTimer_Elapsed
;
checkTimer
.
Enabled
=
false
;
checkTimer
.
Enabled
=
false
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论