Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5d86a6d0
由
LN
编写于
2019-10-18 10:46:58 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
c0a0de6a
显示空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
589 行增加
和
311 行删除
source/AssemblyLineClient/FrmDischargeLine.Designer.cs
source/AssemblyLineClient/FrmDischargeLine.cs
source/AssemblyLineClient/FrmFeedingEquip.Designer.cs
source/AssemblyLineClient/FrmFeedingEquip.cs
source/AssemblyLineClient/FrmMoveEquip.Designer.cs
source/AssemblyLineClient/FrmProvidingEquip.Designer.cs
source/DeviceLibrary/LineConfig/Config_DischargeLine_1.csv
source/DeviceLibrary/LineConfig/Config_DischargeLine_2.csv
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_Partial.cs
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/assemblyLine/ProvidingEquip_Partial.cs
source/DeviceLibrary/assemblyLine/TrayManager.cs
source/DeviceLibrary/model/StoreMoveInfo.cs
source/DeviceLibrary/model/StoreStep.cs
source/LoadCVSLibrary/storeConfig/config/DischargeLine_Config.cs
source/LoadCVSLibrary/storeConfig/config/FeedingEquip_Config.cs
source/AssemblyLineClient/FrmDischargeLine.Designer.cs
查看文件 @
5d86a6d
...
...
@@ -19,6 +19,14 @@
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
FrmDischargeLine
));
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
txtDOIndex
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtDoName
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label17
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label14
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnOpenDo
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnWriteSingleDO
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtWriteTime
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtSlaveId
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
chbAutoRead
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
cmbWriteIO
=
new
System
.
Windows
.
Forms
.
ComboBox
();
...
...
@@ -42,14 +50,10 @@
this
.
lblTrayNum
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblInstoreList
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
txtDOIndex
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtDoName
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label17
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label14
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnOpenDo
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnWriteSingleDO
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtWriteTime
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnRun1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnRun3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnRun2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
...
...
@@ -86,6 +90,100 @@
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
//
// txtDOIndex
//
this
.
txtDOIndex
.
Enabled
=
false
;
this
.
txtDOIndex
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtDOIndex
.
Location
=
new
System
.
Drawing
.
Point
(
328
,
67
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
23
);
this
.
txtDOIndex
.
TabIndex
=
268
;
this
.
txtDOIndex
.
Text
=
"0"
;
//
// txtDoName
//
this
.
txtDoName
.
Enabled
=
false
;
this
.
txtDoName
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtDoName
.
Location
=
new
System
.
Drawing
.
Point
(
71
,
67
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
116
,
23
);
this
.
txtDoName
.
TabIndex
=
267
;
this
.
txtDoName
.
Text
=
"0"
;
//
// label17
//
this
.
label17
.
AutoSize
=
true
;
this
.
label17
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label17
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
19
,
70
);
this
.
label17
.
Name
=
"label17"
;
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
46
,
17
);
this
.
label17
.
TabIndex
=
266
;
this
.
label17
.
Text
=
"设备IP:"
;
this
.
label17
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// label14
//
this
.
label14
.
AutoSize
=
true
;
this
.
label14
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label14
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label14
.
Location
=
new
System
.
Drawing
.
Point
(
272
,
70
);
this
.
label14
.
Name
=
"label14"
;
this
.
label14
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label14
.
TabIndex
=
265
;
this
.
label14
.
Text
=
"地址:"
;
this
.
label14
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// btnOpenDo
//
this
.
btnOpenDo
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnOpenDo
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenDo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDo
.
Location
=
new
System
.
Drawing
.
Point
(
169
,
107
);
this
.
btnOpenDo
.
Name
=
"btnOpenDo"
;
this
.
btnOpenDo
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
34
);
this
.
btnOpenDo
.
TabIndex
=
264
;
this
.
btnOpenDo
.
Text
=
"打开"
;
this
.
btnOpenDo
.
UseVisualStyleBackColor
=
false
;
this
.
btnOpenDo
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenDo_Click
);
//
// btnWriteSingleDO
//
this
.
btnWriteSingleDO
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnWriteSingleDO
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnWriteSingleDO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnWriteSingleDO
.
Location
=
new
System
.
Drawing
.
Point
(
275
,
107
);
this
.
btnWriteSingleDO
.
Name
=
"btnWriteSingleDO"
;
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
34
);
this
.
btnWriteSingleDO
.
TabIndex
=
261
;
this
.
btnWriteSingleDO
.
Text
=
"关闭"
;
this
.
btnWriteSingleDO
.
UseVisualStyleBackColor
=
false
;
this
.
btnWriteSingleDO
.
Click
+=
new
System
.
EventHandler
(
this
.
btnWriteSingleDO_Click
);
//
// txtWriteTime
//
this
.
txtWriteTime
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtWriteTime
.
Location
=
new
System
.
Drawing
.
Point
(
82
,
113
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
66
,
23
);
this
.
txtWriteTime
.
TabIndex
=
263
;
this
.
txtWriteTime
.
Text
=
"0"
;
//
// label5
//
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label5
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
19
,
116
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
17
);
this
.
label5
.
TabIndex
=
262
;
this
.
label5
.
Text
=
"定时(ms):"
;
this
.
label5
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// txtSlaveId
//
this
.
txtSlaveId
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
...
...
@@ -134,7 +232,7 @@
this
.
groupBox4
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
6
);
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
63
4
);
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
76
4
);
this
.
groupBox4
.
TabIndex
=
104
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"DO列表"
;
...
...
@@ -151,7 +249,7 @@
this
.
tableLayoutPanel2
.
RowCount
=
2
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
61
4
);
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
74
4
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
// groupBox3
...
...
@@ -161,7 +259,7 @@
this
.
groupBox3
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
6
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
63
4
);
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
76
4
);
this
.
groupBox3
.
TabIndex
=
103
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"DI列表"
;
...
...
@@ -178,18 +276,22 @@
this
.
tableLayoutPanel1
.
RowCount
=
2
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
61
4
);
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
74
4
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// groupBox5
//
this
.
groupBox5
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnSRun
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnRun2
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnRun3
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnRun1
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnCloseAll
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnStop1Up
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
897
,
6
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
382
,
208
);
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
459
,
208
);
this
.
groupBox5
.
TabIndex
=
255
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
Text
=
"IO操作测试"
;
...
...
@@ -199,7 +301,7 @@
this
.
btnCloseAll
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCloseAll
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseAll
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
220
,
26
);
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
44
,
152
);
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnCloseAll
.
TabIndex
=
259
;
...
...
@@ -212,7 +314,7 @@
this
.
btnStop1Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnStop1Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnStop1Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnStop1Up
.
Location
=
new
System
.
Drawing
.
Point
(
44
,
27
);
this
.
btnStop1Up
.
Location
=
new
System
.
Drawing
.
Point
(
44
,
110
);
this
.
btnStop1Up
.
Name
=
"btnStop1Up"
;
this
.
btnStop1Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnStop1Up
.
TabIndex
=
256
;
...
...
@@ -319,7 +421,7 @@
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
69
);
this
.
tabControl1
.
Name
=
"tabControl1"
;
this
.
tabControl1
.
SelectedIndex
=
0
;
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
1
296
,
67
6
);
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
1
373
,
80
6
);
this
.
tabControl1
.
TabIndex
=
257
;
//
// tabPage1
...
...
@@ -332,19 +434,22 @@
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage1
.
Name
=
"tabPage1"
;
this
.
tabPage1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
1
288
,
64
6
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
1
365
,
77
6
);
this
.
tabPage1
.
TabIndex
=
0
;
this
.
tabPage1
.
Text
=
" IO列表 "
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
//
// groupBox6
//
this
.
groupBox6
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblTrayNum
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblInstoreList
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblThisSta
);
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
498
,
221
);
this
.
groupBox6
.
Name
=
"groupBox6"
;
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
781
,
41
9
);
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
858
,
54
9
);
this
.
groupBox6
.
TabIndex
=
278
;
this
.
groupBox6
.
TabStop
=
false
;
this
.
groupBox6
.
Text
=
"消息"
;
...
...
@@ -373,6 +478,8 @@
//
// panel1
//
this
.
panel1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
panel1
.
Controls
.
Add
(
this
.
chbDebug
);
this
.
panel1
.
Controls
.
Add
(
this
.
lblStoreStatus
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnOutStore
);
...
...
@@ -381,108 +488,66 @@
this
.
panel1
.
Controls
.
Add
(
this
.
btnReset
);
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
2
,
1
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
1
295
,
68
);
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
1
369
,
68
);
this
.
panel1
.
TabIndex
=
258
;
//
// txtDOIndex
//
this
.
txtDOIndex
.
Enabled
=
false
;
this
.
txtDOIndex
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtDOIndex
.
Location
=
new
System
.
Drawing
.
Point
(
328
,
67
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
23
);
this
.
txtDOIndex
.
TabIndex
=
268
;
this
.
txtDOIndex
.
Text
=
"0"
;
//
// txtDoName
//
this
.
txtDoName
.
Enabled
=
false
;
this
.
txtDoName
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtDoName
.
Location
=
new
System
.
Drawing
.
Point
(
71
,
67
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
116
,
23
);
this
.
txtDoName
.
TabIndex
=
267
;
this
.
txtDoName
.
Text
=
"0"
;
//
// label17
//
this
.
label17
.
AutoSize
=
true
;
this
.
label17
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label17
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
19
,
70
);
this
.
label17
.
Name
=
"label17"
;
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
46
,
17
);
this
.
label17
.
TabIndex
=
266
;
this
.
label17
.
Text
=
"设备IP:"
;
this
.
label17
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// label14
//
this
.
label14
.
AutoSize
=
true
;
this
.
label14
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label14
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label14
.
Location
=
new
System
.
Drawing
.
Point
(
272
,
70
);
this
.
label14
.
Name
=
"label14"
;
this
.
label14
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label14
.
TabIndex
=
265
;
this
.
label14
.
Text
=
"地址:"
;
this
.
label14
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// btnOpenDo
//
this
.
btnOpenDo
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnOpenDo
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenDo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDo
.
Location
=
new
System
.
Drawing
.
Point
(
169
,
107
);
this
.
btnOpenDo
.
Name
=
"btnOpenDo"
;
this
.
btnOpenDo
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
34
);
this
.
btnOpenDo
.
TabIndex
=
264
;
this
.
btnOpenDo
.
Text
=
"打开"
;
this
.
btnOpenDo
.
UseVisualStyleBackColor
=
false
;
this
.
btnOpenDo
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenDo_Click
);
//
// btnWriteSingleDO
//
this
.
btnWriteSingleDO
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnWriteSingleDO
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnWriteSingleDO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnWriteSingleDO
.
Location
=
new
System
.
Drawing
.
Point
(
275
,
107
);
this
.
btnWriteSingleDO
.
Name
=
"btnWriteSingleDO"
;
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
34
);
this
.
btnWriteSingleDO
.
TabIndex
=
261
;
this
.
btnWriteSingleDO
.
Text
=
"关闭"
;
this
.
btnWriteSingleDO
.
UseVisualStyleBackColor
=
false
;
this
.
btnWriteSingleDO
.
Click
+=
new
System
.
EventHandler
(
this
.
btnWriteSingleDO_Click
);
//
// txtWriteTime
//
this
.
txtWriteTime
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtWriteTime
.
Location
=
new
System
.
Drawing
.
Point
(
82
,
113
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
66
,
23
);
this
.
txtWriteTime
.
TabIndex
=
263
;
this
.
txtWriteTime
.
Text
=
"0"
;
//
// label5
//
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label5
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
19
,
116
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
17
);
this
.
label5
.
TabIndex
=
262
;
this
.
label5
.
Text
=
"定时(ms):"
;
this
.
label5
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
// btnRun1
//
this
.
btnRun1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnRun1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnRun1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnRun1
.
Location
=
new
System
.
Drawing
.
Point
(
44
,
26
);
this
.
btnRun1
.
Name
=
"btnRun1"
;
this
.
btnRun1
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnRun1
.
TabIndex
=
260
;
this
.
btnRun1
.
Text
=
"皮带线1运转"
;
this
.
btnRun1
.
UseVisualStyleBackColor
=
false
;
this
.
btnRun1
.
Click
+=
new
System
.
EventHandler
(
this
.
btnRun1_Click
);
//
// btnRun3
//
this
.
btnRun3
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnRun3
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnRun3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnRun3
.
Location
=
new
System
.
Drawing
.
Point
(
44
,
68
);
this
.
btnRun3
.
Name
=
"btnRun3"
;
this
.
btnRun3
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnRun3
.
TabIndex
=
261
;
this
.
btnRun3
.
Text
=
"皮带先3运转"
;
this
.
btnRun3
.
UseVisualStyleBackColor
=
false
;
this
.
btnRun3
.
Click
+=
new
System
.
EventHandler
(
this
.
btnRun3_Click
);
//
// btnRun2
//
this
.
btnRun2
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnRun2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnRun2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnRun2
.
Location
=
new
System
.
Drawing
.
Point
(
199
,
26
);
this
.
btnRun2
.
Name
=
"btnRun2"
;
this
.
btnRun2
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnRun2
.
TabIndex
=
262
;
this
.
btnRun2
.
Text
=
"皮带线2运转"
;
this
.
btnRun2
.
UseVisualStyleBackColor
=
false
;
this
.
btnRun2
.
Click
+=
new
System
.
EventHandler
(
this
.
btnRun2_Click
);
//
// btnSRun
//
this
.
btnSRun
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnSRun
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnSRun
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnSRun
.
Location
=
new
System
.
Drawing
.
Point
(
199
,
68
);
this
.
btnSRun
.
Name
=
"btnSRun"
;
this
.
btnSRun
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnSRun
.
TabIndex
=
263
;
this
.
btnSRun
.
Text
=
"分盘装置电机1驱动"
;
this
.
btnSRun
.
UseVisualStyleBackColor
=
false
;
this
.
btnSRun
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSRun_Click
);
//
// FrmDischargeLine
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
13
07
,
75
1
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
13
84
,
88
1
);
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
Controls
.
Add
(
this
.
tabControl1
);
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
...
...
@@ -543,6 +608,10 @@
private
System
.
Windows
.
Forms
.
Button
btnWriteSingleDO
;
private
System
.
Windows
.
Forms
.
TextBox
txtWriteTime
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
Button
btnSRun
;
private
System
.
Windows
.
Forms
.
Button
btnRun2
;
private
System
.
Windows
.
Forms
.
Button
btnRun3
;
private
System
.
Windows
.
Forms
.
Button
btnRun1
;
}
}
source/AssemblyLineClient/FrmDischargeLine.cs
查看文件 @
5d86a6d
...
...
@@ -310,22 +310,7 @@ namespace OnlineStore.AssemblyLine
equipBean
.
Reset
();
}
}
private
void
btnStop1Up_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
"点击【"
+
btnStop1Up
.
Text
+
"】 "
);
if
(
btnStop1Up
.
Text
.
Equals
(
"定位气缸上升"
))
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SeparateDevice_Down
,
IO_Type
.
SeparateDevice_Up
);
btnStop1Up
.
Text
=
"定位气缸下降"
;
btnStop1Up
.
BackColor
=
Color
.
Aqua
;
}
else
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SeparateDevice_Up
,
IO_Type
.
SeparateDevice_Down
);
btnStop1Up
.
Text
=
"定位气缸上升"
;
btnStop1Up
.
BackColor
=
Color
.
SkyBlue
;
}
}
private
void
btnCloseAll_Click
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -338,7 +323,29 @@ namespace OnlineStore.AssemblyLine
}
}
}
private
void
btnStop1Up_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnStop1Up
,
"定位气缸上升"
,
"定位气缸下降"
,
IO_Type
.
SeparateDevice_Down
,
IO_Type
.
SeparateDevice_Up
);
}
private
void
btnRun1_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnRun1
,
"皮带线1运转"
,
"皮带线1停止"
,
IO_Type
.
DLine_Run1
);
}
private
void
btnRun2_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnRun2
,
"皮带线2运转"
,
"皮带线2停止"
,
IO_Type
.
DLine_Run2
);
}
private
void
btnRun3_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnRun3
,
"皮带线3运转"
,
"皮带线3停止"
,
IO_Type
.
DLine_Run3
);
}
private
void
btnSRun_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnRun3
,
"分盘装置电机1驱动"
,
"分盘装置电机1停止"
,
IO_Type
.
SeparateDevice_Run
);
}
}
}
...
...
source/AssemblyLineClient/FrmFeedingEquip.Designer.cs
查看文件 @
5d86a6d
...
...
@@ -117,6 +117,11 @@
this
.
label46
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label49
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
btnLineRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOSWRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnEStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnLSWRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnBStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
...
...
@@ -353,6 +358,11 @@
this
.
groupBox5
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnBStopDown
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnEStopDown
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnOSWRun
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnLSWRun
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnLineRun
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnFL_TopCylinder
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnSwLocationCylinder
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnSWTop
);
...
...
@@ -375,9 +385,9 @@
this
.
btnFL_TopCylinder
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnFL_TopCylinder
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnFL_TopCylinder
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnFL_TopCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
1
6
,
16
0
);
this
.
btnFL_TopCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
1
93
,
13
0
);
this
.
btnFL_TopCylinder
.
Name
=
"btnFL_TopCylinder"
;
this
.
btnFL_TopCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnFL_TopCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
34
);
this
.
btnFL_TopCylinder
.
TabIndex
=
262
;
this
.
btnFL_TopCylinder
.
Text
=
"FL顶升上升"
;
this
.
btnFL_TopCylinder
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -388,9 +398,9 @@
this
.
btnSwLocationCylinder
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnSwLocationCylinder
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnSwLocationCylinder
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnSwLocationCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
162
,
206
);
this
.
btnSwLocationCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
34
,
318
);
this
.
btnSwLocationCylinder
.
Name
=
"btnSwLocationCylinder"
;
this
.
btnSwLocationCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnSwLocationCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
34
);
this
.
btnSwLocationCylinder
.
TabIndex
=
261
;
this
.
btnSwLocationCylinder
.
Text
=
"环形线横移定位上升"
;
this
.
btnSwLocationCylinder
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -401,9 +411,9 @@
this
.
btnSWTop
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnSWTop
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnSWTop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnSWTop
.
Location
=
new
System
.
Drawing
.
Point
(
1
62
,
160
);
this
.
btnSWTop
.
Location
=
new
System
.
Drawing
.
Point
(
1
93
,
318
);
this
.
btnSWTop
.
Name
=
"btnSWTop"
;
this
.
btnSWTop
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnSWTop
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
34
);
this
.
btnSWTop
.
TabIndex
=
260
;
this
.
btnSWTop
.
Text
=
"环形线横移顶升上升"
;
this
.
btnSWTop
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -414,9 +424,9 @@
this
.
btnCloseAll
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCloseAll
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseAll
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
276
);
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
34
,
405
);
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
34
);
this
.
btnCloseAll
.
TabIndex
=
259
;
this
.
btnCloseAll
.
Text
=
"关闭所有DO"
;
this
.
btnCloseAll
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -427,9 +437,9 @@
this
.
btnOutTopCylinder
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnOutTopCylinder
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOutTopCylinder
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOutTopCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
1
62
,
2
7
);
this
.
btnOutTopCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
1
93
,
17
7
);
this
.
btnOutTopCylinder
.
Name
=
"btnOutTopCylinder"
;
this
.
btnOutTopCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnOutTopCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
34
);
this
.
btnOutTopCylinder
.
TabIndex
=
258
;
this
.
btnOutTopCylinder
.
Text
=
"SL出口顶升上升"
;
this
.
btnOutTopCylinder
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -440,9 +450,9 @@
this
.
btnLocationCylinder
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnLocationCylinder
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLocationCylinder
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLocationCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
2
7
);
this
.
btnLocationCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
34
,
17
7
);
this
.
btnLocationCylinder
.
Name
=
"btnLocationCylinder"
;
this
.
btnLocationCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnLocationCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
34
);
this
.
btnLocationCylinder
.
TabIndex
=
256
;
this
.
btnLocationCylinder
.
Text
=
"SL定位气缸上升"
;
this
.
btnLocationCylinder
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -453,9 +463,9 @@
this
.
btnTrayLocationCylinder
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnTrayLocationCylinder
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTrayLocationCylinder
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTrayLocationCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
1
62
,
116
);
this
.
btnTrayLocationCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
1
93
,
271
);
this
.
btnTrayLocationCylinder
.
Name
=
"btnTrayLocationCylinder"
;
this
.
btnTrayLocationCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnTrayLocationCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
34
);
this
.
btnTrayLocationCylinder
.
TabIndex
=
255
;
this
.
btnTrayLocationCylinder
.
Text
=
"SL升降盘定位气缸前进"
;
this
.
btnTrayLocationCylinder
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -466,9 +476,9 @@
this
.
btnFeedSideWayCylinder
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnFeedSideWayCylinder
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnFeedSideWayCylinder
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnFeedSideWayCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
1
62
,
72
);
this
.
btnFeedSideWayCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
1
93
,
224
);
this
.
btnFeedSideWayCylinder
.
Name
=
"btnFeedSideWayCylinder"
;
this
.
btnFeedSideWayCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnFeedSideWayCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
34
);
this
.
btnFeedSideWayCylinder
.
TabIndex
=
252
;
this
.
btnFeedSideWayCylinder
.
Text
=
"SL上料横移气缸取料"
;
this
.
btnFeedSideWayCylinder
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -479,9 +489,9 @@
this
.
btnFeedCylinder
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnFeedCylinder
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnFeedCylinder
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnFeedCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
116
);
this
.
btnFeedCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
34
,
271
);
this
.
btnFeedCylinder
.
Name
=
"btnFeedCylinder"
;
this
.
btnFeedCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnFeedCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
34
);
this
.
btnFeedCylinder
.
TabIndex
=
249
;
this
.
btnFeedCylinder
.
Text
=
"SL上料气缸放松"
;
this
.
btnFeedCylinder
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -492,9 +502,9 @@
this
.
btnFeedSideWay
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnFeedSideWay
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnFeedSideWay
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnFeedSideWay
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
72
);
this
.
btnFeedSideWay
.
Location
=
new
System
.
Drawing
.
Point
(
34
,
224
);
this
.
btnFeedSideWay
.
Name
=
"btnFeedSideWay"
;
this
.
btnFeedSideWay
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnFeedSideWay
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
34
);
this
.
btnFeedSideWay
.
TabIndex
=
246
;
this
.
btnFeedSideWay
.
Text
=
"SL上料横移机构上升"
;
this
.
btnFeedSideWay
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -734,7 +744,7 @@
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage2
.
Name
=
"tabPage2"
;
this
.
tabPage2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
13
21
,
745
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
13
65
,
776
);
this
.
tabPage2
.
TabIndex
=
1
;
this
.
tabPage2
.
Text
=
" 伺服信息 "
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -1432,6 +1442,71 @@
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
1372
,
68
);
this
.
panel1
.
TabIndex
=
258
;
//
// btnLineRun
//
this
.
btnLineRun
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnLineRun
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLineRun
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLineRun
.
Location
=
new
System
.
Drawing
.
Point
(
34
,
36
);
this
.
btnLineRun
.
Name
=
"btnLineRun"
;
this
.
btnLineRun
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnLineRun
.
TabIndex
=
263
;
this
.
btnLineRun
.
Text
=
"SL进料线体运转"
;
this
.
btnLineRun
.
UseVisualStyleBackColor
=
false
;
this
.
btnLineRun
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLineRun_Click
);
//
// btnOSWRun
//
this
.
btnOSWRun
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnOSWRun
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOSWRun
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOSWRun
.
Location
=
new
System
.
Drawing
.
Point
(
34
,
83
);
this
.
btnOSWRun
.
Name
=
"btnOSWRun"
;
this
.
btnOSWRun
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnOSWRun
.
TabIndex
=
265
;
this
.
btnOSWRun
.
Text
=
"SL线体出口横移电机运转"
;
this
.
btnOSWRun
.
UseVisualStyleBackColor
=
false
;
this
.
btnOSWRun
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOSWRun_Click
);
//
// btnEStopDown
//
this
.
btnEStopDown
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnEStopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnEStopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnEStopDown
.
Location
=
new
System
.
Drawing
.
Point
(
193
,
83
);
this
.
btnEStopDown
.
Name
=
"btnEStopDown"
;
this
.
btnEStopDown
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnEStopDown
.
TabIndex
=
266
;
this
.
btnEStopDown
.
Text
=
"SL进料阻挡下降"
;
this
.
btnEStopDown
.
UseVisualStyleBackColor
=
false
;
this
.
btnEStopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnEStopDown_Click
);
//
// btnLSWRun
//
this
.
btnLSWRun
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnLSWRun
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLSWRun
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLSWRun
.
Location
=
new
System
.
Drawing
.
Point
(
193
,
36
);
this
.
btnLSWRun
.
Name
=
"btnLSWRun"
;
this
.
btnLSWRun
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnLSWRun
.
TabIndex
=
264
;
this
.
btnLSWRun
.
Text
=
"SL线体定位横移电机运转"
;
this
.
btnLSWRun
.
UseVisualStyleBackColor
=
false
;
this
.
btnLSWRun
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLSWRun_Click
);
//
// btnBStopDown
//
this
.
btnBStopDown
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnBStopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnBStopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnBStopDown
.
Location
=
new
System
.
Drawing
.
Point
(
34
,
130
);
this
.
btnBStopDown
.
Name
=
"btnBStopDown"
;
this
.
btnBStopDown
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnBStopDown
.
TabIndex
=
267
;
this
.
btnBStopDown
.
Text
=
"SL缓冲阻挡下降"
;
this
.
btnBStopDown
.
UseVisualStyleBackColor
=
false
;
this
.
btnBStopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnBStopDown_Click
);
//
// FrmFeedingEquip
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
...
...
@@ -1571,6 +1646,11 @@
private
System
.
Windows
.
Forms
.
Button
btnSwLocationCylinder
;
private
System
.
Windows
.
Forms
.
Button
btnSWTop
;
private
System
.
Windows
.
Forms
.
Button
btnFL_TopCylinder
;
private
System
.
Windows
.
Forms
.
Button
btnEStopDown
;
private
System
.
Windows
.
Forms
.
Button
btnOSWRun
;
private
System
.
Windows
.
Forms
.
Button
btnLineRun
;
private
System
.
Windows
.
Forms
.
Button
btnLSWRun
;
private
System
.
Windows
.
Forms
.
Button
btnBStopDown
;
}
}
source/AssemblyLineClient/FrmFeedingEquip.cs
查看文件 @
5d86a6d
...
...
@@ -626,6 +626,30 @@ namespace OnlineStore.AssemblyLine
}
private
void
btnLineRun_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnLineRun
,
"SL进料线体运转"
,
"SL进料线体停止"
,
IO_Type
.
SL_Line_Run
);
}
private
void
btnLSWRun_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnLSWRun
,
"SL线体定位横移电机运转"
,
"SL线体定位横移电机停止"
,
IO_Type
.
SL_LocationSideWay_Run
);
}
private
void
btnOSWRun_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnOSWRun
,
"SL线体出口横移电机运转"
,
"SL线体出口横移电机停止"
,
IO_Type
.
SL_OutSideWay_Run
);
}
private
void
btnEStopDown_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnEStopDown
,
"SL进料阻挡下降"
,
"SL进料阻挡上升"
,
IO_Type
.
SL_Entry_StopDown
);
}
private
void
btnBStopDown_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnBStopDown
,
"缓冲阻挡下降"
,
"缓冲阻挡上升"
,
IO_Type
.
SL_Buffer_StopDown
);
}
}
}
...
...
source/AssemblyLineClient/FrmMoveEquip.Designer.cs
查看文件 @
5d86a6d
...
...
@@ -378,7 +378,7 @@
this
.
btnStop2Up
.
Name
=
"btnStop2Up"
;
this
.
btnStop2Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnStop2Up
.
TabIndex
=
258
;
this
.
btnStop2Up
.
Text
=
"阻挡
气缸
2下降"
;
this
.
btnStop2Up
.
Text
=
"阻挡2下降"
;
this
.
btnStop2Up
.
UseVisualStyleBackColor
=
false
;
this
.
btnStop2Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStop2Up_Click
);
//
...
...
@@ -391,7 +391,7 @@
this
.
btnStop1Up
.
Name
=
"btnStop1Up"
;
this
.
btnStop1Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnStop1Up
.
TabIndex
=
256
;
this
.
btnStop1Up
.
Text
=
"阻挡
气缸
1下降"
;
this
.
btnStop1Up
.
Text
=
"阻挡1下降"
;
this
.
btnStop1Up
.
UseVisualStyleBackColor
=
false
;
this
.
btnStop1Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStop1Up_Click
);
//
...
...
@@ -400,7 +400,7 @@
this
.
btnClampSlack
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnClampSlack
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClampSlack
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClampSlack
.
Location
=
new
System
.
Drawing
.
Point
(
220
,
72
);
this
.
btnClampSlack
.
Location
=
new
System
.
Drawing
.
Point
(
44
,
116
);
this
.
btnClampSlack
.
Name
=
"btnClampSlack"
;
this
.
btnClampSlack
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnClampSlack
.
TabIndex
=
255
;
...
...
@@ -426,11 +426,11 @@
this
.
btnBeforeAfterBefore
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnBeforeAfterBefore
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnBeforeAfterBefore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnBeforeAfterBefore
.
Location
=
new
System
.
Drawing
.
Point
(
44
,
116
);
this
.
btnBeforeAfterBefore
.
Location
=
new
System
.
Drawing
.
Point
(
220
,
72
);
this
.
btnBeforeAfterBefore
.
Name
=
"btnBeforeAfterBefore"
;
this
.
btnBeforeAfterBefore
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnBeforeAfterBefore
.
TabIndex
=
249
;
this
.
btnBeforeAfterBefore
.
Text
=
"
前后气缸
前进"
;
this
.
btnBeforeAfterBefore
.
Text
=
"
横移
前进"
;
this
.
btnBeforeAfterBefore
.
UseVisualStyleBackColor
=
false
;
this
.
btnBeforeAfterBefore
.
Click
+=
new
System
.
EventHandler
(
this
.
btnBeforeAfterBefore_Click
);
//
...
...
@@ -622,7 +622,7 @@
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage2
.
Name
=
"tabPage2"
;
this
.
tabPage2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
1
288
,
64
6
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
1
365
,
77
6
);
this
.
tabPage2
.
TabIndex
=
1
;
this
.
tabPage2
.
Text
=
" 伺服信息 "
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
...
...
source/AssemblyLineClient/FrmProvidingEquip.Designer.cs
查看文件 @
5d86a6d
...
...
@@ -320,7 +320,7 @@
this
.
btnStop2Up
.
Name
=
"btnStop2Up"
;
this
.
btnStop2Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnStop2Up
.
TabIndex
=
258
;
this
.
btnStop2Up
.
Text
=
"阻挡
气缸
2下降"
;
this
.
btnStop2Up
.
Text
=
"阻挡2下降"
;
this
.
btnStop2Up
.
UseVisualStyleBackColor
=
false
;
this
.
btnStop2Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStop2Up_Click
);
//
...
...
@@ -333,7 +333,7 @@
this
.
btnStop1Up
.
Name
=
"btnStop1Up"
;
this
.
btnStop1Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnStop1Up
.
TabIndex
=
256
;
this
.
btnStop1Up
.
Text
=
"阻挡
气缸
1下降"
;
this
.
btnStop1Up
.
Text
=
"阻挡1下降"
;
this
.
btnStop1Up
.
UseVisualStyleBackColor
=
false
;
this
.
btnStop1Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStop1Up_Click
);
//
...
...
@@ -342,7 +342,7 @@
this
.
btnClampSlack
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnClampSlack
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClampSlack
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClampSlack
.
Location
=
new
System
.
Drawing
.
Point
(
220
,
72
);
this
.
btnClampSlack
.
Location
=
new
System
.
Drawing
.
Point
(
44
,
116
);
this
.
btnClampSlack
.
Name
=
"btnClampSlack"
;
this
.
btnClampSlack
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnClampSlack
.
TabIndex
=
255
;
...
...
@@ -368,7 +368,7 @@
this
.
btnBeforeAfterBefore
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnBeforeAfterBefore
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnBeforeAfterBefore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnBeforeAfterBefore
.
Location
=
new
System
.
Drawing
.
Point
(
44
,
116
);
this
.
btnBeforeAfterBefore
.
Location
=
new
System
.
Drawing
.
Point
(
220
,
72
);
this
.
btnBeforeAfterBefore
.
Name
=
"btnBeforeAfterBefore"
;
this
.
btnBeforeAfterBefore
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnBeforeAfterBefore
.
TabIndex
=
249
;
...
...
source/DeviceLibrary/LineConfig/Config_DischargeLine_1.csv
查看文件 @
5d86a6d
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,扫码的相机名称(多个用#分隔),CameraNameList,Name1#Name1,,,,,
,,,,,,,,,
DI,0,出料皮带线体1急停,DLine_SuddenStop,0,192.168.200.12,0,出料皮带线体1急停,X021,X021
DI,0,出料皮带线体1复位,DLine_Reset,1,192.168.200.12,0,出料皮带线体1复位,X022,X022
...
...
source/DeviceLibrary/LineConfig/Config_DischargeLine_2.csv
查看文件 @
5d86a6d
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,扫码的相机名称(多个用#分隔),CameraNameList,Name1#Name1,,,,,
,,,,,,,,,
DI,0,出料皮带线体2急停,DLine_SuddenStop,0,192.168.200.13,0,出料皮带线体2急停,X041,X041
DI,0,出料皮带线体2复位,DLine_Reset,1,192.168.200.13,0,出料皮带线体2复位,X042,X042
...
...
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
5d86a6d
...
...
@@ -437,7 +437,7 @@ namespace OnlineStore.DeviceLibrary
continue
;
}
NotOkMsg
=
wait
.
ToStr
();
if
(
wait
.
WaitType
.
Equals
(
1
))
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W001_AxisMove
))
{
string
msg
=
""
;
if
(
wait
.
IsHomeMove
)
...
...
@@ -452,11 +452,11 @@ namespace OnlineStore.DeviceLibrary
{
isOk
=
false
;
WarnMsg
=
msg
;
Alarm
(
LineAlarmType
.
AxisMoveError
);
Alarm
(
LineAlarmType
.
AxisMoveError
);
break
;
}
}
else
if
(
wait
.
WaitType
.
Equals
(
2
))
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W002_IOValue
))
{
NotOkMsg
=
" ("
+
baseConfig
.
GetDisplayName
(
wait
.
IoType
)
+
"="
+
wait
.
IoValue
+
") "
;
wait
.
IsEnd
=
IOValue
(
wait
.
IoType
).
Equals
(
wait
.
IoValue
);
...
...
@@ -482,8 +482,8 @@ namespace OnlineStore.DeviceLibrary
{
ConfigIO
io
=
baseConfig
.
getWaitIO
(
wait
.
IoType
);
WarnMsg
=
Name
+
"等待"
+
NotOkMsg
+
" 超时"
;
Alarm
(
LineAlarmType
.
IoSingleTimeOut
);
LogUtil
.
error
(
MoveInfo
.
Name
+
WarnMsg
,
13
);
Alarm
(
LineAlarmType
.
IoSingleTimeOut
);
LogUtil
.
error
(
MoveInfo
.
Name
+
WarnMsg
,
DeviceID
+
13
);
}
else
if
(
rwSpan
.
TotalSeconds
>
3
&&
span
.
TotalSeconds
>
3
)
{
...
...
@@ -509,21 +509,25 @@ namespace OnlineStore.DeviceLibrary
}
}
}
else
if
(
wait
.
WaitType
.
Equals
(
3
))
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W003_Time
))
{
wait
.
IsEnd
=
(
span
.
TotalMilliseconds
>=
wait
.
TimeMSeconds
);
}
else
if
(
wait
.
WaitType
.
Equals
(
8
))
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W008_InStoreCheckOK
))
{
string
posId
=
moveInfo
.
MoveParam
.
PosId
;
int
id
=
moveInfo
.
MoveParam
.
GetStoreId
();
wait
.
IsEnd
=
LineServer
.
RightInPosId
(
id
,
posId
);
}
else
if
(
wait
.
WaitType
.
Equals
(
9
))
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W009_BoxCanInstore
))
{
int
storeId
=
moveInfo
.
MoveParam
.
GetStoreId
();
wait
.
IsEnd
=
LineServer
.
BoxCanReviceTray
(
storeId
);
}
else
{
wait
.
IsEnd
=
CheckWaitResult
(
wait
);
}
//else if (wait.WaitType.Equals(10))
//{
// wait.IsEnd = LineManager.Line.SideWay34HasTray().Equals(false);
...
...
@@ -547,12 +551,17 @@ namespace OnlineStore.DeviceLibrary
{
WarnMsg
=
moveInfo
.
Name
+
"["
+
moveInfo
.
MoveType
+
"]["
+
moveInfo
.
MoveStep
+
"]等待["
+
NotOkMsg
+
"]超时["
+
Math
.
Round
(
span
.
TotalSeconds
,
1
)
+
"]秒"
;
LogUtil
.
error
(
WarnMsg
,
18
);
LogUtil
.
error
(
WarnMsg
,
DeviceID
+
18
);
Alarm
(
LineAlarmType
.
IoSingleTimeOut
);
}
}
protected
virtual
bool
CheckWaitResult
(
WaitResultInfo
wait
)
{
return
false
;
}
#
endregion
protected
void
CheckLog
(
string
msg
)
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_Partial.cs
查看文件 @
5d86a6d
...
...
@@ -99,7 +99,7 @@ namespace OnlineStore.DeviceLibrary
{
//preTrayNum = currMoveTrayNum;
SecondMoveInfo
.
MoveParam
=
new
InOutParam
(
currMoveTrayNum
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
05
_CodeRember
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
11
_CodeRember
);
SecondMoveInfo
.
EndStepWait
();
return
;
}
...
...
@@ -118,8 +118,8 @@ namespace OnlineStore.DeviceLibrary
{
TrayManager
.
UpdateTrayNumError
(-
1
,
""
);
}
CheckLog
(
"托盘放行 SecondStoreMove:(MO_
07
_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
07
_WaitCanGo
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_
13
_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
13
_WaitCanGo
);
}
catch
(
Exception
ex
)
...
...
@@ -150,7 +150,7 @@ namespace OnlineStore.DeviceLibrary
{
SecondMoveInfo
.
MoveParam
=
new
InOutParam
(
currMoveTrayNum
);
LogInfo
(
SecondMoveInfo
.
MoveNum
+
"*************** 托盘号【"
+
currMoveTrayNum
+
"】可以放出料托盘,正在出料中,移栽料盘"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
05
_CodeRember
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
11
_CodeRember
);
SecondMoveInfo
.
EndStepWait
();
}
else
...
...
@@ -160,8 +160,8 @@ namespace OnlineStore.DeviceLibrary
{
TrayManager
.
UpdateTrayNumError
(-
1
,
""
);
}
CheckLog
(
"托盘检测 SecondStoreMove:(MO_
09
_TopCylinder_Down ,托盘号【"
+
currMoveTrayNum
+
"】,直接放盘通过,顶升气缸下降)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
06
_TopCylinder_Down
);
CheckLog
(
"托盘检测 SecondStoreMove:(MO_
12
_TopCylinder_Down ,托盘号【"
+
currMoveTrayNum
+
"】,直接放盘通过,顶升气缸下降)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
12
_TopCylinder_Down
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
}
...
...
@@ -175,10 +175,10 @@ namespace OnlineStore.DeviceLibrary
#
endregion
#
region
不需要出出料,直接放行
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
06
_TopCylinder_Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
12
_TopCylinder_Down
))
{
CheckLog
(
"托盘放行 SecondStoreMove:(MO_
07
_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
07
_WaitCanGo
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_
13
_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
13
_WaitCanGo
);
//更新横移托盘已处理完成
TrayManager
.
UpdateSWState
(
Config
.
SidesWayNum
,
1
);
//if (DeviceID.Equals(2))
...
...
@@ -189,29 +189,29 @@ namespace OnlineStore.DeviceLibrary
//}
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
07
_WaitCanGo
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
13
_WaitCanGo
))
{
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
0
_StopCylinder2_Down ,阻挡气缸1-2下降)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
0
_StopCylinder2_Down
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
4
_StopCylinder2_Down ,阻挡气缸1-2下降)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
4
_StopCylinder2_Down
);
IOMove
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
HIGH
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
HIGH
));
// SecondMoveInfo.EndStepWait();
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
0
_StopCylinder2_Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
4
_StopCylinder2_Down
))
{
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
1
_Tray_Check , 阻挡2托盘检测=0), 延时2秒)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
1
_Tray_Check
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
5
_Tray_Check , 阻挡2托盘检测=0), 延时2秒)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
5
_Tray_Check
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Check2
,
IO_VALUE
.
LOW
));
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
1
_Tray_Check
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
5
_Tray_Check
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
2
_StopCylinder_Back
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
2
_StopCylinder_Back , 阻挡气缸1-2上升 )"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
6
_StopCylinder_Back
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
6
_StopCylinder_Back , 阻挡气缸1-2上升 )"
);
IOMove
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
LOW
));
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
200
));
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
2
_StopCylinder_Back
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
6
_StopCylinder_Back
))
{
preTrayNum
=
currMoveTrayNum
;
CheckLog
(
"托盘放行 SecondStoreMove:(托盘放行结束) "
);
...
...
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
查看文件 @
5d86a6d
...
...
@@ -284,7 +284,7 @@ namespace OnlineStore.DeviceLibrary
continue
;
}
NotOkMsg
=
wait
.
ToStr
();
if
(
wait
.
WaitType
==
2
)
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W002_IOValue
)
)
{
NotOkMsg
=
" ("
+
Config
.
GetDisplayName
(
wait
.
IoType
)
+
"="
+
wait
.
IoValue
+
") "
;
wait
.
IsEnd
=
IOValue
(
wait
.
IoType
).
Equals
(
wait
.
IoValue
);
...
...
@@ -317,17 +317,17 @@ namespace OnlineStore.DeviceLibrary
}
}
}
else
if
(
wait
.
WaitType
==
3
)
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W003_Time
)
)
{
wait
.
IsEnd
=
(
span
.
TotalMilliseconds
>=
wait
.
TimeMSeconds
);
}
else
if
(
wait
.
WaitType
==
8
)
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W008_InStoreCheckOK
)
)
{
string
posId
=
checkWaitInfo
.
MoveParam
.
PosId
;
int
id
=
checkWaitInfo
.
MoveParam
.
GetStoreId
();
wait
.
IsEnd
=
LineServer
.
RightInPosId
(
id
,
posId
);
}
else
if
(
wait
.
WaitType
.
Equals
(
9
))
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W009_BoxCanInstore
))
{
int
storeId
=
checkWaitInfo
.
MoveParam
.
GetStoreId
();
wait
.
IsEnd
=
LineServer
.
BoxCanReviceTray
(
storeId
);
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
5d86a6d
...
...
@@ -104,7 +104,7 @@ namespace OnlineStore.DeviceLibrary
#
endregion
#
region
移载装置,放物品到流水线操作
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
05
_CodeRember
)
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
11
_CodeRember
)
&&
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_56_BeforeAfterCylinderAfter
)
&&
!
SecondMoveInfo
.
IsInWait
)
{
...
...
@@ -163,7 +163,7 @@ namespace OnlineStore.DeviceLibrary
TrayManager
.
DelNeedEmptyTrayNum
();
OutStoreLog
(
"出库 SecondStoreMove:移栽完成,放行托盘"
);
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
06
_TopCylinder_Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
12
_TopCylinder_Down
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
LogInfo
(
"【"
+
posId
+
"】出库处理结束,!"
);
...
...
@@ -252,9 +252,9 @@ namespace OnlineStore.DeviceLibrary
TrayManager
.
UpdateFixtureValue
(
num
);
//阻挡气缸移动
InStoreLog
(
"放托盘(放开阻挡):SecondStoreMove=MO_
09
_TopCylinder_Down 物品已移走,顶升气缸1下降)"
);
InStoreLog
(
"放托盘(放开阻挡):SecondStoreMove=MO_
12
_TopCylinder_Down 物品已移走,顶升气缸1下降)"
);
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
06
_TopCylinder_Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
12
_TopCylinder_Down
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_10_WaitBox
))
...
...
@@ -499,7 +499,7 @@ namespace OnlineStore.DeviceLibrary
{
//preTrayNum = currMoveTrayNum;
SecondMoveInfo
.
MoveParam
=
new
InOutParam
(
currMoveTrayNum
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
05
_CodeRember
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
11
_CodeRember
);
SecondMoveInfo
.
EndStepWait
();
return
;
}
...
...
@@ -529,8 +529,8 @@ namespace OnlineStore.DeviceLibrary
{
TrayManager
.
UpdateTrayNumError
(-
1
,
""
);
}
CheckLog
(
"托盘放行 SecondStoreMove:(MO_
07
_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
07
_WaitCanGo
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_
13
_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
13
_WaitCanGo
);
if
(
DeviceID
.
Equals
(
2
))
{
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
10000
));
...
...
@@ -569,7 +569,7 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo
.
MoveParam
=
new
InOutParam
(
currMoveTrayNum
);
isNeedMove
=
true
;
LogInfo
(
SecondMoveInfo
.
MoveNum
+
"*************** 托盘号【"
+
currMoveTrayNum
+
"】可以放出库托盘,正在出库中,移栽料盘"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
05
_CodeRember
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
11
_CodeRember
);
SecondMoveInfo
.
EndStepWait
();
}
else
...
...
@@ -592,8 +592,8 @@ namespace OnlineStore.DeviceLibrary
{
TrayManager
.
UpdateTrayNumError
(-
1
,
""
);
}
CheckLog
(
"托盘检测 SecondStoreMove:(MO_
09
_TopCylinder_Down ,托盘号【"
+
currMoveTrayNum
+
"】,直接放盘通过,顶升气缸下降)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
06
_TopCylinder_Down
);
CheckLog
(
"托盘检测 SecondStoreMove:(MO_
12
_TopCylinder_Down ,托盘号【"
+
currMoveTrayNum
+
"】,直接放盘通过,顶升气缸下降)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
12
_TopCylinder_Down
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
}
...
...
@@ -607,10 +607,10 @@ namespace OnlineStore.DeviceLibrary
#
endregion
#
region
不需要出入库,直接放行
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
06
_TopCylinder_Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
12
_TopCylinder_Down
))
{
CheckLog
(
"托盘放行 SecondStoreMove:(MO_
07
_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
07
_WaitCanGo
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_
13
_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
13
_WaitCanGo
);
if
(
DeviceID
.
Equals
(
2
))
{
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
10000
));
...
...
@@ -619,29 +619,29 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
07
_WaitCanGo
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
13
_WaitCanGo
))
{
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
0
_StopCylinder2_Down ,阻挡气缸1-2下降)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
0
_StopCylinder2_Down
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
4
_StopCylinder2_Down ,阻挡气缸1-2下降)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
4
_StopCylinder2_Down
);
IOMove
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
HIGH
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
HIGH
));
// SecondMoveInfo.EndStepWait();
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
0
_StopCylinder2_Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
4
_StopCylinder2_Down
))
{
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
1
_Tray_Check , 阻挡2托盘检测=0), 延时2秒)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
1
_Tray_Check
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
5
_Tray_Check , 阻挡2托盘检测=0), 延时2秒)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
5
_Tray_Check
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Check2
,
IO_VALUE
.
LOW
));
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
1
_Tray_Check
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
5
_Tray_Check
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
2
_StopCylinder_Back
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
2
_StopCylinder_Back , 阻挡气缸1-2上升 )"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
6
_StopCylinder_Back
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
6
_StopCylinder_Back , 阻挡气缸1-2上升 )"
);
IOMove
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
LOW
));
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
200
));
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
2
_StopCylinder_Back
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
6
_StopCylinder_Back
))
{
preTrayNum
=
currMoveTrayNum
;
CheckLog
(
"托盘放行 SecondStoreMove:(托盘放行结束) "
);
...
...
source/DeviceLibrary/assemblyLine/ProvidingEquip_Partial.cs
查看文件 @
5d86a6d
...
...
@@ -11,6 +11,19 @@ namespace OnlineStore.DeviceLibrary
partial
class
ProvidingEquip
{
#
region
托盘检测
protected
override
bool
CheckWaitResult
(
WaitResultInfo
wait
)
{
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W201_ProvidingCanOut
))
{
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
{
return
true
;
}
}
return
false
;
}
private
void
StartCheckFixture
()
{
int
num
=
TrayManager
.
GetNum
(
DeviceID
);
...
...
@@ -90,9 +103,6 @@ namespace OnlineStore.DeviceLibrary
{
try
{
//判断是否需要顶升
bool
isNeed
=
false
;
//此处先对托盘号进行验证
currMoveTrayNum
=
TrayManager
.
GetNum
(
DeviceID
);
bool
isFull
=
TrayManager
.
IsFixTureFull
(
currMoveTrayNum
);
...
...
@@ -101,10 +111,14 @@ namespace OnlineStore.DeviceLibrary
//出料中,需要拦盘
if
(
CheckIsNeedOutStore
())
{
//preTrayNum = currMoveTrayNum;
SecondMoveInfo
.
MoveParam
=
new
InOutParam
(
currMoveTrayNum
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_05_CodeRember
);
SecondMoveInfo
.
EndStepWait
();
TrayInfo
trayInfo
=
TrayManager
.
GetTrayInfo
(
currMoveTrayNum
);
InOutParam
param
=
new
InOutParam
(
currMoveTrayNum
,
trayInfo
.
WareCode
,
trayInfo
.
PosId
,
trayInfo
.
PlateH
,
trayInfo
.
PlateW
);
CheckLog
(
"托盘检测(流水线阻挡)是需要出库"
+
param
.
ToStr
()
+
":(MIO_05_WaitTime 等待1秒后顶升上升 )"
);
SecondMoveInfo
.
MoveParam
=
param
;
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_05_WaitTime
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitProvidingEquipCanOut
());
//等待
return
;
}
}
...
...
@@ -115,29 +129,15 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
error
(
msg
);
return
;
}
if
(
isNeed
)
{
CheckLog
(
"托盘检测(流水线阻挡)SecondStoreMove:(MIO_05_WaitTime 等待一秒钟)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_05_WaitTime
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
200
));
}
else
{
LogInfo
(
SecondMoveInfo
.
MoveNum
+
"***************上个托盘号【"
+
preTrayNum
+
"】,当前"
+
(
isFull
?
"有料托盘"
:
"空托盘"
)
+
"【"
+
currMoveTrayNum
+
"】没有出出料任务,放盘通过~"
);
LogInfo
(
SecondMoveInfo
.
MoveNum
+
"***************上个托盘号【"
+
preTrayNum
+
"】,当前"
+
(
isFull
?
"有料托盘"
:
"空托盘"
)
+
"【"
+
currMoveTrayNum
+
"】没有出入料任务,放盘通过~"
);
// preTrayNum = currMoveTrayNum;
if
(
TrayManager
.
ErrorStoreId
.
Equals
(
DeviceID
))
{
TrayManager
.
UpdateTrayNumError
(-
1
,
""
);
}
CheckLog
(
"托盘放行 SecondStoreMove:(MO_07_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_07_WaitCanGo
);
//if (DeviceID.Equals(2))
//{
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(10000));
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitSideWay());
// SecondMoveInfo.OneWaitCanEndStep = true;
//}
}
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_13_WaitCanGo
);
}
catch
(
Exception
ex
)
{
...
...
@@ -149,6 +149,10 @@ namespace OnlineStore.DeviceLibrary
CheckLog
(
"托盘检测(流水线阻挡)SecondStoreMove:(MIO_06_TopCylinderUp 顶升气缸上 升 )"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_TopCylinderUp
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_UP
);
//移栽开始出库
LogInfo
(
"开始新的出库任务~"
+
SecondMoveInfo
.
MoveParam
.
ToStr
());
bool
result
=
StartOutStoreMove
(
SecondMoveInfo
.
MoveParam
);
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_06_TopCylinderUp
))
{
...
...
@@ -158,31 +162,11 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_07_TopCylinderUpWait
))
{
CheckLog
(
"托盘检测(流水线阻挡)*************** 托盘号【"
+
currMoveTrayNum
+
"】"
);
//托盘号正确
//preTrayNum = num;
//判断盘是空盘,空盘并且编号正确才需要放料盘过去
if
(
CheckIsNeedOutStore
())
{
SecondMoveInfo
.
MoveParam
=
new
InOutParam
(
currMoveTrayNum
);
LogInfo
(
SecondMoveInfo
.
MoveNum
+
"*************** 托盘号【"
+
currMoveTrayNum
+
"】可以放出料托盘,正在出料中,
移栽料盘"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_05
_CodeRember
);
LogInfo
(
SecondMoveInfo
.
MoveNum
+
" 托盘号【"
+
currMoveTrayNum
+
"】等待
移栽料盘"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_11
_CodeRember
);
SecondMoveInfo
.
EndStepWait
();
}
else
{
//preTrayNum = num;
if
(
TrayManager
.
ErrorStoreId
.
Equals
(
DeviceID
))
{
TrayManager
.
UpdateTrayNumError
(-
1
,
""
);
}
CheckLog
(
"托盘检测 SecondStoreMove:(MO_09_TopCylinder_Down ,托盘号【"
+
currMoveTrayNum
+
"】,直接放盘通过,顶升气缸下降)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_06_TopCylinder_Down
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
}
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_08_WaitInStore
)
&&
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
{
CheckLog
(
"托盘放行 SecondStoreMove:(MIO_09_WaitLetFixtureGo ,等待移栽完成后放开阻挡)"
);
...
...
@@ -192,43 +176,37 @@ namespace OnlineStore.DeviceLibrary
#
endregion
#
region
不需要出出料,直接放行
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
06
_TopCylinder_Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
12
_TopCylinder_Down
))
{
CheckLog
(
"托盘放行 SecondStoreMove:(MO_
07
_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
07
_WaitCanGo
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_
13
_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
13
_WaitCanGo
);
//更新横移托盘已处理完成
TrayManager
.
UpdateSWState
(
Config
.
SidesWayNum
,
1
);
//if (DeviceID.Equals(2))
//{
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(10000));
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitSideWay());
// SecondMoveInfo.OneWaitCanEndStep = true;
//}
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
07
_WaitCanGo
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
13
_WaitCanGo
))
{
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
0
_StopCylinder2_Down ,阻挡气缸1-2下降)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
0
_StopCylinder2_Down
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
4
_StopCylinder2_Down ,阻挡气缸1-2下降)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
4
_StopCylinder2_Down
);
IOMove
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
HIGH
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
HIGH
));
// SecondMoveInfo.EndStepWait();
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
0
_StopCylinder2_Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
4
_StopCylinder2_Down
))
{
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
1
_Tray_Check , 阻挡2托盘检测=0), 延时2秒)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
1
_Tray_Check
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
5
_Tray_Check , 阻挡2托盘检测=0), 延时2秒)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
5
_Tray_Check
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Check2
,
IO_VALUE
.
LOW
));
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
1
_Tray_Check
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
5
_Tray_Check
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
2
_StopCylinder_Back
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
2
_StopCylinder_Back , 阻挡气缸1-2上升 )"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_1
6
_StopCylinder_Back
);
CheckLog
(
"托盘放行 SecondStoreMove:(MO_1
6
_StopCylinder_Back , 阻挡气缸1-2上升 )"
);
IOMove
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
LOW
));
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
200
));
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
2
_StopCylinder_Back
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_1
6
_StopCylinder_Back
))
{
preTrayNum
=
currMoveTrayNum
;
CheckLog
(
"托盘放行 SecondStoreMove:(托盘放行结束) "
);
...
...
@@ -286,7 +264,7 @@ namespace OnlineStore.DeviceLibrary
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosId
:
""
;
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_01_UpDownCylinderDown
))
{
InStoreLog
(
"出料:(PO_02_UpDownCylinderDownWait,
编码与仓位一致,上下气缸1下降后等待0.3秒再夹紧,防止没有下降到位就
夹紧"
);
InStoreLog
(
"出料:(PO_02_UpDownCylinderDownWait,
上下气缸1下降后等待0.3秒再
夹紧"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_02_UpDownCylinderDownWait
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
300
));
}
...
...
@@ -312,11 +290,14 @@ namespace OnlineStore.DeviceLibrary
TrayManager
.
UpdateFixtureValue
(
num
);
//阻挡气缸移动
InStoreLog
(
"放托盘(放开阻挡):SecondStoreMove=MO_
09
_TopCylinder_Down 物品已移走,顶升气缸1下降)"
);
InStoreLog
(
"放托盘(放开阻挡):SecondStoreMove=MO_
12
_TopCylinder_Down 物品已移走,顶升气缸1下降)"
);
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_06_TopCylinder_Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_12_TopCylinder_Down
);
if
(
Config
.
SidesWayNum
<=
0
)
{
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_05_WaitBox
))
{
InStoreLog
(
"出料:(PO_06_BeforeAfterCylinderBefore,前后气缸前进)"
);
...
...
source/DeviceLibrary/assemblyLine/TrayManager.cs
查看文件 @
5d86a6d
...
...
@@ -76,6 +76,18 @@ namespace OnlineStore.DeviceLibrary
}
return
false
;
}
internal
static
TrayInfo
GetTrayInfo
(
int
trayNum
)
{
lock
(
fixtureMapLock
)
{
if
(
fixtureCodeFullMap
.
ContainsKey
(
trayNum
))
{
return
fixtureCodeFullMap
[
trayNum
];
}
}
return
null
;
}
///// <summary>
///// 托盘是否可以累积扔盘,判断是出库的托盘,并且所放的托盘为七寸
///// </summary>
...
...
source/DeviceLibrary/model/StoreMoveInfo.cs
查看文件 @
5d86a6d
...
...
@@ -170,7 +170,7 @@ namespace OnlineStore.DeviceLibrary
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
CanWhileMoveCount
=
0
;
wait
.
WaitType
=
2
;
wait
.
WaitType
=
WaitEnum
.
W002_IOValue
;
wait
.
IoType
=
ioType
;
wait
.
IoValue
=
ioValue
;
wait
.
IsEnd
=
false
;
...
...
@@ -180,7 +180,7 @@ namespace OnlineStore.DeviceLibrary
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
CanWhileMoveCount
=
0
;
wait
.
WaitType
=
1
;
wait
.
WaitType
=
WaitEnum
.
W001_AxisMove
;
wait
.
AxisInfo
=
axis
;
wait
.
IsHomeMove
=
false
;
wait
.
TargetPosition
=
targetPosition
;
...
...
@@ -192,7 +192,7 @@ namespace OnlineStore.DeviceLibrary
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
CanWhileMoveCount
=
0
;
wait
.
WaitType
=
1
;
wait
.
WaitType
=
WaitEnum
.
W001_AxisMove
;
wait
.
AxisInfo
=
axis
;
wait
.
IsHomeMove
=
true
;
wait
.
IsEnd
=
false
;
...
...
@@ -202,7 +202,7 @@ namespace OnlineStore.DeviceLibrary
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
CanWhileMoveCount
=
10
;
wait
.
WaitType
=
4
;
wait
.
WaitType
=
WaitEnum
.
W004_StellMove
;
wait
.
SlvAddr
=
slvAddr
;
wait
.
IsHomeMove
=
false
;
wait
.
TargetPosition
=
targetPosition
;
...
...
@@ -214,7 +214,7 @@ namespace OnlineStore.DeviceLibrary
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
CanWhileMoveCount
=
10
;
wait
.
WaitType
=
4
;
wait
.
WaitType
=
WaitEnum
.
W004_StellMove
;
wait
.
SlvAddr
=
slvAddr
;
wait
.
IsHomeMove
=
true
;
wait
.
TargetPosition
=
0
;
...
...
@@ -226,7 +226,7 @@ namespace OnlineStore.DeviceLibrary
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
CanWhileMoveCount
=
0
;
wait
.
WaitType
=
5
;
wait
.
WaitType
=
WaitEnum
.
W005_ShuoKe
;
wait
.
SlvAddr
=(
byte
)
slvAddr
;
wait
.
TargetPosition
=
targetPosition
;
wait
.
IsHomeMove
=
isHome
;
...
...
@@ -236,7 +236,7 @@ namespace OnlineStore.DeviceLibrary
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
CanWhileMoveCount
=
0
;
wait
.
WaitType
=
3
;
wait
.
WaitType
=
WaitEnum
.
W003_Time
;
wait
.
TimeMSeconds
=
MScends
;
wait
.
IsEnd
=
false
;
return
wait
;
...
...
@@ -245,7 +245,7 @@ namespace OnlineStore.DeviceLibrary
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
CanWhileMoveCount
=
0
;
wait
.
WaitType
=
6
;
wait
.
WaitType
=
WaitEnum
.
W006_AxisOrg
;
wait
.
AxisInfo
=
axis
;
wait
.
IsHomeMove
=
true
;
wait
.
IoValue
=
value
;
...
...
@@ -256,7 +256,7 @@ namespace OnlineStore.DeviceLibrary
public
static
WaitResultInfo
WaitHeight
(
int
height
)
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
WaitType
=
7
;
wait
.
WaitType
=
WaitEnum
.
W007_ReelHeight
;
wait
.
HeightValue
=
height
;
wait
.
IsEnd
=
false
;
return
wait
;
...
...
@@ -264,24 +264,34 @@ namespace OnlineStore.DeviceLibrary
public
static
WaitResultInfo
WaitCanInstore
()
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
WaitType
=
8
;
wait
.
WaitType
=
WaitEnum
.
W008_InStoreCheckOK
;
return
wait
;
}
public
static
WaitResultInfo
WaitBoxCanReviceTray
(
)
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
WaitType
=
9
;
wait
.
WaitType
=
WaitEnum
.
W009_BoxCanInstore
;
return
wait
;
}
public
static
WaitResultInfo
WaitSideWay
()
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
WaitType
=
10
;
wait
.
WaitType
=
WaitEnum
.
W010_SW34NoTray
;
return
wait
;
}
/// <summary>
/// 等待出料移栽可以开始移栽
/// </summary>
/// <returns></returns>
public
static
WaitResultInfo
WaitProvidingEquipCanOut
()
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
WaitType
=
WaitEnum
.
W201_ProvidingCanOut
;
return
wait
;
}
public
string
ToStr
()
{
if
(
WaitType
==
1
)
if
(
WaitType
.
Equals
(
WaitEnum
.
W001_AxisMove
)
)
{
if
(
IsHomeMove
)
{
...
...
@@ -292,38 +302,41 @@ namespace OnlineStore.DeviceLibrary
return
"轴【"
+
AxisInfo
.
DisplayStr
+
"】绝对运动,目标位置【"
+
TargetPosition
+
"】"
;
}
}
else
if
(
WaitType
==
2
)
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W002_IOValue
)
)
{
return
"等待【"
+
IoType
+
"】=【"
+
IoValue
+
"】"
;
}
else
if
(
WaitType
==
3
)
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W003_Time
)
)
{
return
"时间等待:【"
+
TimeMSeconds
+
"】毫秒"
;
}
else
if
(
WaitType
==
4
)
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W004_StellMove
)
)
{
return
"电钢目标位置:【"
+
TargetPosition
+
"】 "
;
}
else
if
(
WaitType
==
5
)
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W005_ShuoKe
)
)
{
return
"硕科电机目标位置:【"
+
TargetPosition
+
"】 "
;
}
else
if
(
WaitType
==
6
)
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W006_AxisOrg
)
)
{
return
"轴【"
+
AxisInfo
.
DisplayStr
+
"】ORG信号:【"
+
IoValue
+
"】 "
;
}
else
if
(
WaitType
==
7
)
}
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W007_ReelHeight
)
)
{
return
"料盘高度【"
+
HeightValue
+
"】 "
;
}
else
if
(
WaitType
==
8
)
}
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W008_InStoreCheckOK
)
)
{
return
"入库库位验证完成"
;
}
else
if
(
WaitType
==
9
)
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W009_BoxCanInstore
)
)
{
return
"BOX可以开始入库"
;
}
else
if
(
WaitType
==
10
)
}
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W010_SW34NoTray
)
)
{
return
"等待横移34无托盘"
;
}
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W201_ProvidingCanOut
))
{
return
"移栽模块可移栽出库"
;
}
else
{
...
...
@@ -382,6 +395,53 @@ namespace OnlineStore.DeviceLibrary
}
internal
class
WaitEnum
{
/// <summary>
/// 伺服运动
/// </summary>
internal
static
int
W001_AxisMove
=
1
;
/// <summary>
/// 信号到达
/// </summary>
internal
static
int
W002_IOValue
=
2
;
/// <summary>
/// 时间等待
/// </summary>
internal
static
int
W003_Time
=
3
;
/// <summary>
/// 电钢运动
/// </summary>
internal
static
int
W004_StellMove
=
4
;
/// <summary>
/// 硕科电机
/// </summary>
internal
static
int
W005_ShuoKe
=
5
;
/// <summary>
/// 轴原点信号
/// </summary>
internal
static
int
W006_AxisOrg
=
6
;
/// <summary>
/// 料盘高度
/// </summary>
internal
static
int
W007_ReelHeight
=
7
;
/// <summary>
/// 入库库位验证完成
/// </summary>
internal
static
int
W008_InStoreCheckOK
=
8
;
/// <summary>
/// BOX可以开始入库
/// </summary>
internal
static
int
W009_BoxCanInstore
=
9
;
/// <summary>
/// 等待横移34无托盘
/// </summary>
internal
static
int
W010_SW34NoTray
=
10
;
/// <summary>
/// 移栽模块可移栽出库
/// </summary>
internal
static
int
W201_ProvidingCanOut
=
201
;
}
public
enum
LineMoveType
{
/// <summary>
...
...
source/DeviceLibrary/model/StoreStep.cs
查看文件 @
5d86a6d
...
...
@@ -234,27 +234,27 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 移载(流水线)装置出库处理, 检测夹具编码并记忆,托盘 是空盘,并且BOX在出库等待中,开始移栽料盘
/// </summary>
MO_
05_CodeRember
=
3105
,
MO_
11_CodeRember
=
3101
,
/// <summary>
/// 移载(流水线)装置出库处理 ,顶升气缸1下降
/// </summary>
MO_
06_TopCylinder_Down
=
3106
,
MO_
12_TopCylinder_Down
=
3102
,
/// <summary>
/// 如果是移栽2需要等待托盘是否可以走
/// </summary>
MO_
07_WaitCanGo
=
3107
,
MO_
13_WaitCanGo
=
3103
,
/// <summary>
/// 移载(流水线)装置出库处理, 阻挡气缸1-2下降
/// </summary>
MO_1
0_StopCylinder2_Down
=
3110
,
MO_1
4_StopCylinder2_Down
=
3104
,
/// <summary>
/// 移载(流水线)装置出库处理, 阻挡2托盘检测=0,
/// </summary>
MO_1
1_Tray_Check
=
3111
,
MO_1
5_Tray_Check
=
3105
,
/// <summary>
/// 移载(流水线)装置出库处理, 阻挡气缸1-1下降 阻挡气缸1-2上升
/// </summary>
MO_1
2_StopCylinder_Back
=
3112
,
MO_1
6_StopCylinder_Back
=
3106
,
/// <summary>
/// 移栽装置出库处理,开始出库
...
...
source/LoadCVSLibrary/storeConfig/config/DischargeLine_Config.cs
查看文件 @
5d86a6d
...
...
@@ -28,5 +28,12 @@ namespace OnlineStore.LoadCSVLibrary
[
ConfigProAttribute
(
"IsDebug"
)]
public
int
IsDebug
{
get
;
set
;
}
/// <summary>
/// PRO,0,扫码的相机名称(多个用#分隔),CameraNameList,Name1#Name1,,,,,
/// </summary>
[
ConfigProAttribute
(
"CameraNameList"
)]
public
string
CameraNameList
{
get
;
set
;
}
}
}
source/LoadCVSLibrary/storeConfig/config/FeedingEquip_Config.cs
查看文件 @
5d86a6d
...
...
@@ -27,6 +27,12 @@ namespace OnlineStore.LoadCSVLibrary
[
ConfigProAttribute
(
"IsDebug"
)]
public
int
IsDebug
{
get
;
set
;
}
/// <summary>
/// PRO,0,扫码的相机名称(多个用#分隔),CameraNameList,Name1#Name1,,,,,
/// </summary>
[
ConfigProAttribute
(
"CameraNameList"
)]
public
string
CameraNameList
{
get
;
set
;
}
/// <summary>
/// PRO,0,对应的横移模块,SidesWayNum,3,,,,,
...
...
@@ -162,6 +168,27 @@ namespace OnlineStore.LoadCSVLibrary
[
ConfigProAttribute
(
"IsCanOut"
,
false
)]
public
int
IsCanOut
{
get
;
set
;
}
private
List
<
string
>
CameraList
=
null
;
public
List
<
string
>
GetCameraList
()
{
if
(
CameraList
==
null
)
{
CameraList
=
new
List
<
string
>();
string
[]
arrayList
=
CameraNameList
.
Split
(
'#'
);
foreach
(
string
str
in
arrayList
)
{
string
camera
=
str
.
Trim
();
if
(
string
.
IsNullOrEmpty
(
camera
).
Equals
(
false
))
{
CameraList
.
Add
(
camera
);
}
}
}
return
CameraList
;
}
private
Dictionary
<
int
,
int
>
UpDownPositionMap
=
null
;
public
int
GetUpdownPosition
(
int
trayHeight
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论