Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO815-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 321f205e
由
几米阳光
编写于
2018-12-10 20:35:41 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
615e6b79
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
105 行增加
和
105 行删除
source/ACSingleStore/FrmStoreBox.Designer.cs
source/ACSingleStore/FrmStoreBox.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
source/DeviceLibrary/acSingleStore/AutomaticBaiting_Partial.cs
source/DeviceLibrary/store/model/StoreMoveInfo.cs
source/ACSingleStore/FrmStoreBox.Designer.cs
查看文件 @
321f205
...
@@ -219,14 +219,10 @@
...
@@ -219,14 +219,10 @@
this
.
lblBatchStatus
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblBatchStatus
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnBatchOutTest
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnBatchOutTest
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnBatchReset
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnBatchReset
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn
StartBatchInStore
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn
CloseDoor
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnGetOutTray
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnGetOutTray
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblDoorStatus
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblDoorStatus
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnBatchInStore
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnBatchInStore
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
axis_5_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
axis_1_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
axis_3_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
axis_2_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
tabPage1
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
tabPage1
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
btnTempClose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTempClose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTempInit
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTempInit
=
new
System
.
Windows
.
Forms
.
Button
();
...
@@ -238,6 +234,10 @@
...
@@ -238,6 +234,10 @@
this
.
txtHum
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtHum
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label29
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label29
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnSelTemp
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSelTemp
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
axis_5_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
axis_1_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
axis_3_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
axis_2_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
groupBox5
.
SuspendLayout
();
this
.
groupBox5
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
...
@@ -2392,7 +2392,7 @@
...
@@ -2392,7 +2392,7 @@
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblBatchStatus
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblBatchStatus
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
btnBatchOutTest
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
btnBatchOutTest
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
btnBatchReset
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
btnBatchReset
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
btn
StartBatchInStore
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
btn
CloseDoor
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
btnGetOutTray
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
btnGetOutTray
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblDoorStatus
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblDoorStatus
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
btnBatchInStore
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
btnBatchInStore
);
...
@@ -2407,7 +2407,7 @@
...
@@ -2407,7 +2407,7 @@
// btnOpenDoor
// btnOpenDoor
//
//
this
.
btnOpenDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDoor
.
Location
=
new
System
.
Drawing
.
Point
(
22
,
66
);
this
.
btnOpenDoor
.
Location
=
new
System
.
Drawing
.
Point
(
22
,
110
);
this
.
btnOpenDoor
.
Name
=
"btnOpenDoor"
;
this
.
btnOpenDoor
.
Name
=
"btnOpenDoor"
;
this
.
btnOpenDoor
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnOpenDoor
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnOpenDoor
.
TabIndex
=
232
;
this
.
btnOpenDoor
.
TabIndex
=
232
;
...
@@ -2418,18 +2418,18 @@
...
@@ -2418,18 +2418,18 @@
// lblWaitTragGo
// lblWaitTragGo
//
//
this
.
lblWaitTragGo
.
AutoSize
=
true
;
this
.
lblWaitTragGo
.
AutoSize
=
true
;
this
.
lblWaitTragGo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
1
0.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblWaitTragGo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
1
2F
,
System
.
Drawing
.
FontStyle
.
Bold
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblWaitTragGo
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lblWaitTragGo
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lblWaitTragGo
.
Location
=
new
System
.
Drawing
.
Point
(
1
50
,
120
);
this
.
lblWaitTragGo
.
Location
=
new
System
.
Drawing
.
Point
(
1
49
,
72
);
this
.
lblWaitTragGo
.
Name
=
"lblWaitTragGo"
;
this
.
lblWaitTragGo
.
Name
=
"lblWaitTragGo"
;
this
.
lblWaitTragGo
.
Size
=
new
System
.
Drawing
.
Size
(
2
47
,
20
);
this
.
lblWaitTragGo
.
Size
=
new
System
.
Drawing
.
Size
(
2
50
,
22
);
this
.
lblWaitTragGo
.
TabIndex
=
231
;
this
.
lblWaitTragGo
.
TabIndex
=
231
;
this
.
lblWaitTragGo
.
Text
=
"请
手动拿出料盘,并点击左侧信号
确认"
;
this
.
lblWaitTragGo
.
Text
=
"请
拿走料盘,并点击左侧按钮
确认"
;
//
//
// btnWaitTrgGo
// btnWaitTrgGo
//
//
this
.
btnWaitTrgGo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnWaitTrgGo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnWaitTrgGo
.
Location
=
new
System
.
Drawing
.
Point
(
2
2
,
112
);
this
.
btnWaitTrgGo
.
Location
=
new
System
.
Drawing
.
Point
(
2
1
,
64
);
this
.
btnWaitTrgGo
.
Name
=
"btnWaitTrgGo"
;
this
.
btnWaitTrgGo
.
Name
=
"btnWaitTrgGo"
;
this
.
btnWaitTrgGo
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnWaitTrgGo
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnWaitTrgGo
.
TabIndex
=
230
;
this
.
btnWaitTrgGo
.
TabIndex
=
230
;
...
@@ -2470,21 +2470,21 @@
...
@@ -2470,21 +2470,21 @@
this
.
btnBatchReset
.
UseVisualStyleBackColor
=
true
;
this
.
btnBatchReset
.
UseVisualStyleBackColor
=
true
;
this
.
btnBatchReset
.
Click
+=
new
System
.
EventHandler
(
this
.
btnBatchOutEnd_Click
);
this
.
btnBatchReset
.
Click
+=
new
System
.
EventHandler
(
this
.
btnBatchOutEnd_Click
);
//
//
// btn
StartBatchInStore
// btn
CloseDoor
//
//
this
.
btn
StartBatchInStore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btn
CloseDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btn
StartBatchInStore
.
Location
=
new
System
.
Drawing
.
Point
(
362
,
66
);
this
.
btn
CloseDoor
.
Location
=
new
System
.
Drawing
.
Point
(
362
,
110
);
this
.
btn
StartBatchInStore
.
Name
=
"btnStartBatchInStore
"
;
this
.
btn
CloseDoor
.
Name
=
"btnCloseDoor
"
;
this
.
btn
StartBatchInStore
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btn
CloseDoor
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btn
StartBatchInStore
.
TabIndex
=
226
;
this
.
btn
CloseDoor
.
TabIndex
=
226
;
this
.
btn
StartBatchInStore
.
Text
=
"关闭门锁"
;
this
.
btn
CloseDoor
.
Text
=
"关闭门锁"
;
this
.
btn
StartBatchInStore
.
UseVisualStyleBackColor
=
true
;
this
.
btn
CloseDoor
.
UseVisualStyleBackColor
=
true
;
this
.
btn
StartBatchInStore
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStartBatchInStore_Click
);
this
.
btn
CloseDoor
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStartBatchInStore_Click
);
//
//
// btnGetOutTray
// btnGetOutTray
//
//
this
.
btnGetOutTray
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnGetOutTray
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnGetOutTray
.
Location
=
new
System
.
Drawing
.
Point
(
254
,
66
);
this
.
btnGetOutTray
.
Location
=
new
System
.
Drawing
.
Point
(
254
,
110
);
this
.
btnGetOutTray
.
Name
=
"btnGetOutTray"
;
this
.
btnGetOutTray
.
Name
=
"btnGetOutTray"
;
this
.
btnGetOutTray
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnGetOutTray
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnGetOutTray
.
TabIndex
=
225
;
this
.
btnGetOutTray
.
TabIndex
=
225
;
...
@@ -2506,7 +2506,7 @@
...
@@ -2506,7 +2506,7 @@
// btnBatchInStore
// btnBatchInStore
//
//
this
.
btnBatchInStore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnBatchInStore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnBatchInStore
.
Location
=
new
System
.
Drawing
.
Point
(
133
,
66
);
this
.
btnBatchInStore
.
Location
=
new
System
.
Drawing
.
Point
(
133
,
110
);
this
.
btnBatchInStore
.
Name
=
"btnBatchInStore"
;
this
.
btnBatchInStore
.
Name
=
"btnBatchInStore"
;
this
.
btnBatchInStore
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnBatchInStore
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnBatchInStore
.
TabIndex
=
103
;
this
.
btnBatchInStore
.
TabIndex
=
103
;
...
@@ -2514,46 +2514,6 @@
...
@@ -2514,46 +2514,6 @@
this
.
btnBatchInStore
.
UseVisualStyleBackColor
=
true
;
this
.
btnBatchInStore
.
UseVisualStyleBackColor
=
true
;
this
.
btnBatchInStore
.
Click
+=
new
System
.
EventHandler
(
this
.
btnBatchInStore_Click
);
this
.
btnBatchInStore
.
Click
+=
new
System
.
EventHandler
(
this
.
btnBatchInStore_Click
);
//
//
// axis_5_Alarm
//
this
.
axis_5_Alarm
.
IOName
=
""
;
this
.
axis_5_Alarm
.
IOValue
=
0
;
this
.
axis_5_Alarm
.
isCanClick
=
false
;
this
.
axis_5_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
418
,
37
);
this
.
axis_5_Alarm
.
Name
=
"axis_5_Alarm"
;
this
.
axis_5_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_5_Alarm
.
TabIndex
=
271
;
//
// axis_1_Alarm
//
this
.
axis_1_Alarm
.
IOName
=
""
;
this
.
axis_1_Alarm
.
IOValue
=
0
;
this
.
axis_1_Alarm
.
isCanClick
=
false
;
this
.
axis_1_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
116
,
37
);
this
.
axis_1_Alarm
.
Name
=
"axis_1_Alarm"
;
this
.
axis_1_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_1_Alarm
.
TabIndex
=
264
;
//
// axis_3_Alarm
//
this
.
axis_3_Alarm
.
IOName
=
""
;
this
.
axis_3_Alarm
.
IOValue
=
0
;
this
.
axis_3_Alarm
.
isCanClick
=
false
;
this
.
axis_3_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
318
,
37
);
this
.
axis_3_Alarm
.
Name
=
"axis_3_Alarm"
;
this
.
axis_3_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_3_Alarm
.
TabIndex
=
266
;
//
// axis_2_Alarm
//
this
.
axis_2_Alarm
.
IOName
=
""
;
this
.
axis_2_Alarm
.
IOValue
=
0
;
this
.
axis_2_Alarm
.
isCanClick
=
false
;
this
.
axis_2_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
213
,
37
);
this
.
axis_2_Alarm
.
Name
=
"axis_2_Alarm"
;
this
.
axis_2_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_2_Alarm
.
TabIndex
=
265
;
//
// tabPage1
// tabPage1
//
//
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox7
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox7
);
...
@@ -2678,6 +2638,46 @@
...
@@ -2678,6 +2638,46 @@
this
.
btnSelTemp
.
UseVisualStyleBackColor
=
true
;
this
.
btnSelTemp
.
UseVisualStyleBackColor
=
true
;
this
.
btnSelTemp
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSelTemp_Click
);
this
.
btnSelTemp
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSelTemp_Click
);
//
//
// axis_5_Alarm
//
this
.
axis_5_Alarm
.
IOName
=
""
;
this
.
axis_5_Alarm
.
IOValue
=
0
;
this
.
axis_5_Alarm
.
isCanClick
=
false
;
this
.
axis_5_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
418
,
37
);
this
.
axis_5_Alarm
.
Name
=
"axis_5_Alarm"
;
this
.
axis_5_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_5_Alarm
.
TabIndex
=
271
;
//
// axis_1_Alarm
//
this
.
axis_1_Alarm
.
IOName
=
""
;
this
.
axis_1_Alarm
.
IOValue
=
0
;
this
.
axis_1_Alarm
.
isCanClick
=
false
;
this
.
axis_1_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
116
,
37
);
this
.
axis_1_Alarm
.
Name
=
"axis_1_Alarm"
;
this
.
axis_1_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_1_Alarm
.
TabIndex
=
264
;
//
// axis_3_Alarm
//
this
.
axis_3_Alarm
.
IOName
=
""
;
this
.
axis_3_Alarm
.
IOValue
=
0
;
this
.
axis_3_Alarm
.
isCanClick
=
false
;
this
.
axis_3_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
318
,
37
);
this
.
axis_3_Alarm
.
Name
=
"axis_3_Alarm"
;
this
.
axis_3_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_3_Alarm
.
TabIndex
=
266
;
//
// axis_2_Alarm
//
this
.
axis_2_Alarm
.
IOName
=
""
;
this
.
axis_2_Alarm
.
IOValue
=
0
;
this
.
axis_2_Alarm
.
isCanClick
=
false
;
this
.
axis_2_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
213
,
37
);
this
.
axis_2_Alarm
.
Name
=
"axis_2_Alarm"
;
this
.
axis_2_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_2_Alarm
.
TabIndex
=
265
;
//
// FrmStoreBox
// FrmStoreBox
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
96F
,
96F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
96F
,
96F
);
...
@@ -2900,7 +2900,7 @@
...
@@ -2900,7 +2900,7 @@
private
System
.
Windows
.
Forms
.
Label
lblDoorStatus
;
private
System
.
Windows
.
Forms
.
Label
lblDoorStatus
;
private
System
.
Windows
.
Forms
.
Button
btnBatchInStore
;
private
System
.
Windows
.
Forms
.
Button
btnBatchInStore
;
private
System
.
Windows
.
Forms
.
Button
btnGetOutTray
;
private
System
.
Windows
.
Forms
.
Button
btnGetOutTray
;
private
System
.
Windows
.
Forms
.
Button
btn
StartBatchInStore
;
private
System
.
Windows
.
Forms
.
Button
btn
CloseDoor
;
private
System
.
Windows
.
Forms
.
Button
btnBatchReset
;
private
System
.
Windows
.
Forms
.
Button
btnBatchReset
;
private
System
.
Windows
.
Forms
.
Button
btnBatchOutTest
;
private
System
.
Windows
.
Forms
.
Button
btnBatchOutTest
;
private
System
.
Windows
.
Forms
.
Label
lblBatchStatus
;
private
System
.
Windows
.
Forms
.
Label
lblBatchStatus
;
...
...
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
321f205
...
@@ -298,6 +298,8 @@ namespace OnlineStore.AutoInOutStore
...
@@ -298,6 +298,8 @@ namespace OnlineStore.AutoInOutStore
lblWaitTragGo
.
Visible
=
true
;
lblWaitTragGo
.
Visible
=
true
;
btnBatchInStore
.
Enabled
=
false
;
btnBatchInStore
.
Enabled
=
false
;
btnBatchInStore
.
Enabled
=
false
;
btnBatchInStore
.
Enabled
=
false
;
btnOpenDoor
.
Enabled
=
false
;
btnCloseDoor
.
Enabled
=
false
;
}
}
else
else
{
{
...
@@ -307,19 +309,19 @@ namespace OnlineStore.AutoInOutStore
...
@@ -307,19 +309,19 @@ namespace OnlineStore.AutoInOutStore
{
{
lblDoorStatus
.
Text
=
"仓门状态:关闭"
;
lblDoorStatus
.
Text
=
"仓门状态:关闭"
;
UpdateFormDoorStats
(
false
);
UpdateFormDoorStats
(
false
);
if
(
store
.
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
None
)
&&
AutomaticBaiting
.
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
None
))
//
if (store.StoreMove.MoveType.Equals(StoreMoveType.None) && AutomaticBaiting.StoreMove.MoveType.Equals(StoreMoveType.None))
{
//
{
if
(
AutomaticBaiting
.
BatchOutStoreCount
>
0
)
//
if (AutomaticBaiting.BatchOutStoreCount > 0)
{
//
{
btnGetOutTray
.
Enabled
=
true
;
//
btnGetOutTray.Enabled = true;
btnBatchInStore
.
Enabled
=
false
;
//
btnBatchInStore.Enabled = false;
}
//
}
else
//
else
{
//
{
btnGetOutTray
.
Enabled
=
false
;
//
btnGetOutTray.Enabled = false;
btnBatchInStore
.
Enabled
=
true
;
//
btnBatchInStore.Enabled = true;
}
//
}
}
//
}
}
}
else
else
{
{
...
@@ -345,9 +347,11 @@ namespace OnlineStore.AutoInOutStore
...
@@ -345,9 +347,11 @@ namespace OnlineStore.AutoInOutStore
private
void
UpdateFormDoorStats
(
bool
dooIsOpen
)
private
void
UpdateFormDoorStats
(
bool
dooIsOpen
)
{
{
btnBatchInStore
.
Enabled
=
!
dooIsOpen
;
btnOpenDoor
.
Enabled
=
!
dooIsOpen
;
btnBatchInStore
.
Enabled
=
dooIsOpen
;
btnGetOutTray
.
Enabled
=
!
dooIsOpen
;
btnGetOutTray
.
Enabled
=
!
dooIsOpen
;
btnStartBatchInStore
.
Enabled
=
dooIsOpen
;
btnCloseDoor
.
Enabled
=
dooIsOpen
;
btnBatchReset
.
Enabled
=
!
dooIsOpen
;
btnBatchReset
.
Enabled
=
!
dooIsOpen
;
}
}
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
321f205
...
@@ -703,7 +703,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -703,7 +703,7 @@ namespace OnlineStore.DeviceLibrary
//private DateTime preProcessTime = DateTime.Now;
//private DateTime preProcessTime = DateTime.Now;
private
bool
IsChongfu
=
false
;
private
bool
IsChongfu
=
false
;
private
Stopwatch
stopwatch
=
new
Stopwatch
();
private
Stopwatch
stopwatch
=
new
Stopwatch
();
private
object
TimerLock
=
""
;
//
private object TimerLock = "";
protected
override
void
timersTimer_Elapsed
(
object
sender
,
System
.
Timers
.
ElapsedEventArgs
e
)
protected
override
void
timersTimer_Elapsed
(
object
sender
,
System
.
Timers
.
ElapsedEventArgs
e
)
{
{
...
@@ -717,14 +717,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -717,14 +717,12 @@ namespace OnlineStore.DeviceLibrary
{
{
LogUtil
.
error
(
"主定时器:InProcess已等待"
+
stopwatch
.
Elapsed
.
ToString
()
+
"重新处理"
);
LogUtil
.
error
(
"主定时器:InProcess已等待"
+
stopwatch
.
Elapsed
.
ToString
()
+
"重新处理"
);
IsChongfu
=
true
;
IsChongfu
=
true
;
Monitor
.
Exit
(
TimerLock
);
}
}
}
}
InProcess
=
true
;
InProcess
=
true
;
stopwatch
.
Restart
();
stopwatch
.
Restart
();
if
(
Monitor
.
TryEnter
(
TimerLock
))
{
try
try
{
{
IoCheckProcess
();
IoCheckProcess
();
...
@@ -747,16 +745,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -747,16 +745,6 @@ namespace OnlineStore.DeviceLibrary
{
{
LOGGER
.
Error
(
StoreName
+
"定时处理出错:"
+
ex
.
ToString
());
LOGGER
.
Error
(
StoreName
+
"定时处理出错:"
+
ex
.
ToString
());
}
}
finally
{
Monitor
.
Exit
(
TimerLock
);
}
}
else
{
LOGGER
.
Error
(
StoreName
+
"定时处理未得到锁"
);
}
IsChongfu
=
false
;
IsChongfu
=
false
;
InProcess
=
false
;
InProcess
=
false
;
}
}
...
...
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
查看文件 @
321f205
...
@@ -165,8 +165,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -165,8 +165,8 @@ namespace OnlineStore.DeviceLibrary
break
;
break
;
case
StoreMoveStep
.
AUTO_R03_AutoAxisHome
:
case
StoreMoveStep
.
AUTO_R03_AutoAxisHome
:
//
if (KND.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.LOW))
if
(
KND
.
IOValue
(
IO_Type
.
TrayCheck_LoadMaterial
).
Equals
(
IO_VALUE
.
LOW
))
if
(
ACServerManager
.
GetLimitPositiveSingle
(
StoreManager
.
Config
.
Batch_Axis
).
Equals
(
1
))
//
if (ACServerManager.GetLimitPositiveSingle(StoreManager.Config.Batch_Axis).Equals(1))
{
{
LogUtil
.
info
(
Name
+
"复位中: 没有料盘,不需要上料,上料轴回0点"
);
LogUtil
.
info
(
Name
+
"复位中: 没有料盘,不需要上料,上料轴回0点"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_R04_AutoBack
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_R04_AutoBack
);
...
@@ -366,8 +366,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -366,8 +366,8 @@ namespace OnlineStore.DeviceLibrary
LastSize
=
0
;
LastSize
=
0
;
LastPosId
=
""
;
LastPosId
=
""
;
SuckingDisc_WorkCount
=
0
;
SuckingDisc_WorkCount
=
0
;
if
(
ACServerManager
.
GetLimitPositiveSingle
(
StoreManager
.
Config
.
Batch_Axis
).
Equals
(
0
))
//
if (ACServerManager.GetLimitPositiveSingle(StoreManager.Config.Batch_Axis).Equals(0))
//
if (KND.IOValue(IO_Type.TrayCheck_LoadMaterial).Equals(IO_VALUE.HIGH))
if
(
KND
.
IOValue
(
IO_Type
.
TrayCheck_LoadMaterial
).
Equals
(
IO_VALUE
.
HIGH
))
{
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_I01_ScanCode
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_I01_ScanCode
);
LogUtil
.
info
(
Name
+
"入料: 开始扫码 "
);
LogUtil
.
info
(
Name
+
"入料: 开始扫码 "
);
...
...
source/DeviceLibrary/acSingleStore/AutomaticBaiting_Partial.cs
查看文件 @
321f205
...
@@ -19,7 +19,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -19,7 +19,7 @@ namespace OnlineStore.DeviceLibrary
AutoAxisIsMove
=
1
;
AutoAxisIsMove
=
1
;
StartMovePosition
=
ACServerManager
.
GetActualtPosition
(
moveAxis
.
DeviceName
,
moveAxis
.
GetAxisValue
());
StartMovePosition
=
ACServerManager
.
GetActualtPosition
(
moveAxis
.
DeviceName
,
moveAxis
.
GetAxisValue
());
EndMovePosition
=
StartMovePosition
;
EndMovePosition
=
StartMovePosition
;
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
Wait
Auto
AxisStop
(
moveAxis
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
Wait
Batch
AxisStop
(
moveAxis
));
ACServerManager
.
SpeedMove
(
moveAxis
.
DeviceName
,
moveAxis
.
GetAxisValue
(),
targetSpeed
);
ACServerManager
.
SpeedMove
(
moveAxis
.
DeviceName
,
moveAxis
.
GetAxisValue
(),
targetSpeed
);
}
}
...
@@ -247,19 +247,22 @@ namespace OnlineStore.DeviceLibrary
...
@@ -247,19 +247,22 @@ namespace OnlineStore.DeviceLibrary
bool
result
=
false
;
bool
result
=
false
;
if
(
KND
.
IOValue
(
IO_Type
.
TrayCheck_LoadMaterial
).
Equals
(
IO_VALUE
.
HIGH
))
if
(
KND
.
IOValue
(
IO_Type
.
TrayCheck_LoadMaterial
).
Equals
(
IO_VALUE
.
HIGH
))
{
{
LogUtil
.
info
(
wait
.
ToStr
()+
"检测到上料机构料盘信号,可以停止运动"
);
result
=
true
;
result
=
true
;
}
}
else
else
{
{
IO_VALUE
LimitN
=
(
IO_VALUE
)
ACServerManager
.
GetLimit
Nega
tiveSingle
(
wait
.
AxisInfo
.
DeviceName
,
wait
.
AxisInfo
.
GetAxisValue
());
IO_VALUE
LimitN
=
(
IO_VALUE
)
ACServerManager
.
GetLimit
Posi
tiveSingle
(
wait
.
AxisInfo
.
DeviceName
,
wait
.
AxisInfo
.
GetAxisValue
());
if
(
LimitN
.
Equals
(
IO_VALUE
.
HIGH
))
if
(
LimitN
.
Equals
(
IO_VALUE
.
HIGH
))
{
{
LogUtil
.
info
(
wait
.
ToStr
()
+
"检测到正极限信号,可以停止运动"
);
result
=
true
;
result
=
true
;
}
}
}
}
if
(
result
)
if
(
result
)
{
{
AutoAxisIsMove
=
0
;
AutoAxisIsMove
=
0
;
LogUtil
.
info
(
wait
.
ToStr
()
+
" 停止运动"
);
ACServerManager
.
SuddenStop
(
wait
.
AxisInfo
.
DeviceName
,
wait
.
AxisInfo
.
GetAxisValue
());
ACServerManager
.
SuddenStop
(
wait
.
AxisInfo
.
DeviceName
,
wait
.
AxisInfo
.
GetAxisValue
());
}
}
return
result
;
return
result
;
...
@@ -294,10 +297,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -294,10 +297,6 @@ namespace OnlineStore.DeviceLibrary
if
(
codeList
.
Count
<=
0
)
if
(
codeList
.
Count
<=
0
)
{
{
codeList
=
CodeManager
.
CameraScan
();
codeList
=
CodeManager
.
CameraScan
();
}
else
if
(
StoreManager
.
Store
.
IsDebug
)
{
codeList
=
new
List
<
string
>()
{
"NoCode"
};
LogUtil
.
info
(
Name
+
"未扫到二维码,默认为NoCode"
);
}
}
foreach
(
string
str
in
codeList
)
foreach
(
string
str
in
codeList
)
{
{
...
@@ -307,9 +306,18 @@ namespace OnlineStore.DeviceLibrary
...
@@ -307,9 +306,18 @@ namespace OnlineStore.DeviceLibrary
LastCode
=
message
;
LastCode
=
message
;
if
(
LastCode
.
Equals
(
""
))
if
(
LastCode
.
Equals
(
""
))
{
{
LastCode
=
"NoCode"
;
LogUtil
.
info
(
Name
+
"未扫到二维码,默认为NoCode"
);
}
if
(
LastCode
.
Equals
(
""
))
{
LogUtil
.
error
(
"未扫到二维码,请拿走料盘"
);
LogUtil
.
error
(
"未扫到二维码,请拿走料盘"
);
WarnMsg
=
"未扫到二维码,请拿走料盘"
;
WarnMsg
=
"未扫到二维码,请拿走料盘"
;
}
}
else
{
LogUtil
.
info
(
"扫到二维码:"
+
LastCode
);
}
KND
.
IOMove
(
IO_Type
.
CameraLight_Power
,
IO_VALUE
.
LOW
);
KND
.
IOMove
(
IO_Type
.
CameraLight_Power
,
IO_VALUE
.
LOW
);
// StoreManager.Store.onCodeReceived(message);
// StoreManager.Store.onCodeReceived(message);
});
});
...
...
source/DeviceLibrary/store/model/StoreMoveInfo.cs
查看文件 @
321f205
...
@@ -274,10 +274,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -274,10 +274,10 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
/// 10=等待
上
料轴运动 停止
/// 10=等待
批量上下
料轴运动 停止
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
public
static
WaitResultInfo
Wait
Auto
AxisStop
(
ConfigMoveAxis
moveAxis
)
public
static
WaitResultInfo
Wait
Batch
AxisStop
(
ConfigMoveAxis
moveAxis
)
{
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
CanWhileMoveCount
=
0
;
wait
.
CanWhileMoveCount
=
0
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论