Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2789729e
由
LN
编写于
2019-12-29 13:12:51 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
b3c81d79
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
72 行增加
和
69 行删除
source/AssemblyLineClient/FrmDischargeLine.Designer.cs
source/DeviceLibrary/LineConfig/Config_DischargeLine_2.csv
source/DeviceLibrary/assemblyLine/DischargeLine.cs
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
source/DeviceLibrary/assemblyLine/OutTrayLineBean.cs
source/AssemblyLineClient/FrmDischargeLine.Designer.cs
查看文件 @
2789729
...
...
@@ -45,6 +45,7 @@
this
.
groupBox4
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox5
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnNgMove
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnRun2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnRun3
=
new
System
.
Windows
.
Forms
.
Button
();
...
...
@@ -62,7 +63,6 @@
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtSlaveId
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
cmbWriteIO
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnNgMove
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
panel1
.
SuspendLayout
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabPage1
.
SuspendLayout
();
...
...
@@ -193,7 +193,7 @@
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
60
);
this
.
tabControl1
.
Name
=
"tabControl1"
;
this
.
tabControl1
.
SelectedIndex
=
0
;
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
1307
,
5
5
9
);
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
1307
,
5
1
9
);
this
.
tabControl1
.
TabIndex
=
257
;
//
// tabPage1
...
...
@@ -207,24 +207,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
(
1299
,
52
9
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
1299
,
48
9
);
this
.
tabPage1
.
TabIndex
=
0
;
this
.
tabPage1
.
Text
=
" IO列表 "
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
//
// groupBox2
//
this
.
groupBox2
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupBox2
.
Controls
.
Add
(
this
.
btnLine2Test
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
lblLineInfo
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
btnStrart
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
btnlineStop
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
cmbLineType
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
btnLine1Test
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
49
7
,
449
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
49
5
,
157
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
79
3
,
72
);
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
79
7
,
66
);
this
.
groupBox2
.
TabIndex
=
279
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
Text
=
"皮带转动测试"
;
...
...
@@ -234,7 +232,7 @@
this
.
btnLine2Test
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnLine2Test
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLine2Test
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLine2Test
.
Location
=
new
System
.
Drawing
.
Point
(
662
,
1
9
);
this
.
btnLine2Test
.
Location
=
new
System
.
Drawing
.
Point
(
662
,
1
6
);
this
.
btnLine2Test
.
Name
=
"btnLine2Test"
;
this
.
btnLine2Test
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
40
);
this
.
btnLine2Test
.
TabIndex
=
250
;
...
...
@@ -247,7 +245,7 @@
this
.
lblLineInfo
.
AutoSize
=
true
;
this
.
lblLineInfo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblLineInfo
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblLineInfo
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
31
);
this
.
lblLineInfo
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
28
);
this
.
lblLineInfo
.
Name
=
"lblLineInfo"
;
this
.
lblLineInfo
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
lblLineInfo
.
TabIndex
=
280
;
...
...
@@ -258,7 +256,7 @@
this
.
btnStrart
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnStrart
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnStrart
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnStrart
.
Location
=
new
System
.
Drawing
.
Point
(
325
,
22
);
this
.
btnStrart
.
Location
=
new
System
.
Drawing
.
Point
(
325
,
19
);
this
.
btnStrart
.
Name
=
"btnStrart"
;
this
.
btnStrart
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
34
);
this
.
btnStrart
.
TabIndex
=
267
;
...
...
@@ -271,7 +269,7 @@
this
.
btnlineStop
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnlineStop
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnlineStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnlineStop
.
Location
=
new
System
.
Drawing
.
Point
(
434
,
22
);
this
.
btnlineStop
.
Location
=
new
System
.
Drawing
.
Point
(
434
,
19
);
this
.
btnlineStop
.
Name
=
"btnlineStop"
;
this
.
btnlineStop
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
34
);
this
.
btnlineStop
.
TabIndex
=
266
;
...
...
@@ -284,7 +282,7 @@
this
.
cmbLineType
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbLineType
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbLineType
.
FormattingEnabled
=
true
;
this
.
cmbLineType
.
Location
=
new
System
.
Drawing
.
Point
(
85
,
2
5
);
this
.
cmbLineType
.
Location
=
new
System
.
Drawing
.
Point
(
85
,
2
2
);
this
.
cmbLineType
.
Name
=
"cmbLineType"
;
this
.
cmbLineType
.
Size
=
new
System
.
Drawing
.
Size
(
231
,
28
);
this
.
cmbLineType
.
TabIndex
=
0
;
...
...
@@ -294,7 +292,7 @@
this
.
btnLine1Test
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnLine1Test
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLine1Test
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLine1Test
.
Location
=
new
System
.
Drawing
.
Point
(
543
,
1
9
);
this
.
btnLine1Test
.
Location
=
new
System
.
Drawing
.
Point
(
543
,
1
6
);
this
.
btnLine1Test
.
Name
=
"btnLine1Test"
;
this
.
btnLine1Test
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
40
);
this
.
btnLine1Test
.
TabIndex
=
101
;
...
...
@@ -311,9 +309,9 @@
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
(
49
8
,
199
);
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
49
5
,
227
);
this
.
groupBox6
.
Name
=
"groupBox6"
;
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
79
2
,
24
6
);
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
79
7
,
25
6
);
this
.
groupBox6
.
TabIndex
=
278
;
this
.
groupBox6
.
TabStop
=
false
;
this
.
groupBox6
.
Text
=
"消息"
;
...
...
@@ -349,19 +347,20 @@
this
.
lblInstoreList
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblInstoreList
.
Location
=
new
System
.
Drawing
.
Point
(
267
,
228
);
this
.
lblInstoreList
.
Name
=
"lblInstoreList"
;
this
.
lblInstoreList
.
Size
=
new
System
.
Drawing
.
Size
(
5
19
,
53
);
this
.
lblInstoreList
.
Size
=
new
System
.
Drawing
.
Size
(
5
24
,
53
);
this
.
lblInstoreList
.
TabIndex
=
277
;
//
// lblThisSta
//
this
.
lblThisSta
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
this
.
lblThisSta
.
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
.
lblThisSta
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblThisSta
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lblThisSta
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblThisSta
.
Location
=
new
System
.
Drawing
.
Point
(
263
,
29
);
this
.
lblThisSta
.
Name
=
"lblThisSta"
;
this
.
lblThisSta
.
Size
=
new
System
.
Drawing
.
Size
(
52
3
,
191
);
this
.
lblThisSta
.
Size
=
new
System
.
Drawing
.
Size
(
52
8
,
224
);
this
.
lblThisSta
.
TabIndex
=
246
;
this
.
lblThisSta
.
Text
=
"等待启动"
;
this
.
lblThisSta
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
...
...
@@ -373,7 +372,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
,
51
7
);
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
47
7
);
this
.
groupBox3
.
TabIndex
=
103
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"DI列表"
;
...
...
@@ -390,7 +389,7 @@
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
,
4
9
7
);
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
4
5
7
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// groupBox4
...
...
@@ -400,7 +399,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
,
51
7
);
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
47
7
);
this
.
groupBox4
.
TabIndex
=
104
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"DO列表"
;
...
...
@@ -417,7 +416,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
,
4
9
7
);
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
4
5
7
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
// groupBox5
...
...
@@ -431,21 +430,34 @@
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
(
8
97
,
6
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
8
76
,
6
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
393
,
188
);
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
416
,
147
);
this
.
groupBox5
.
TabIndex
=
255
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
Text
=
"IO操作测试"
;
//
// btnNgMove
//
this
.
btnNgMove
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnNgMove
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnNgMove
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnNgMove
.
Location
=
new
System
.
Drawing
.
Point
(
271
,
62
);
this
.
btnNgMove
.
Name
=
"btnNgMove"
;
this
.
btnNgMove
.
Size
=
new
System
.
Drawing
.
Size
(
128
,
34
);
this
.
btnNgMove
.
TabIndex
=
264
;
this
.
btnNgMove
.
Text
=
"NG气缸前进"
;
this
.
btnNgMove
.
UseVisualStyleBackColor
=
false
;
this
.
btnNgMove
.
Click
+=
new
System
.
EventHandler
(
this
.
btnNgMove_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
(
19
,
104
);
this
.
btnSRun
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
62
);
this
.
btnSRun
.
Name
=
"btnSRun"
;
this
.
btnSRun
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnSRun
.
Size
=
new
System
.
Drawing
.
Size
(
1
28
,
34
);
this
.
btnSRun
.
TabIndex
=
263
;
this
.
btnSRun
.
Text
=
"分盘装置电机驱动"
;
this
.
btnSRun
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -456,9 +468,9 @@
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
(
1
74
,
22
);
this
.
btnRun2
.
Location
=
new
System
.
Drawing
.
Point
(
1
40
,
22
);
this
.
btnRun2
.
Name
=
"btnRun2"
;
this
.
btnRun2
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnRun2
.
Size
=
new
System
.
Drawing
.
Size
(
1
28
,
34
);
this
.
btnRun2
.
TabIndex
=
262
;
this
.
btnRun2
.
Text
=
"皮带线2运转"
;
this
.
btnRun2
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -469,9 +481,9 @@
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
(
19
,
64
);
this
.
btnRun3
.
Location
=
new
System
.
Drawing
.
Point
(
271
,
22
);
this
.
btnRun3
.
Name
=
"btnRun3"
;
this
.
btnRun3
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnRun3
.
Size
=
new
System
.
Drawing
.
Size
(
1
28
,
34
);
this
.
btnRun3
.
TabIndex
=
261
;
this
.
btnRun3
.
Text
=
"皮带线3运转"
;
this
.
btnRun3
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -482,9 +494,9 @@
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
(
19
,
22
);
this
.
btnRun1
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
22
);
this
.
btnRun1
.
Name
=
"btnRun1"
;
this
.
btnRun1
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnRun1
.
Size
=
new
System
.
Drawing
.
Size
(
1
28
,
34
);
this
.
btnRun1
.
TabIndex
=
260
;
this
.
btnRun1
.
Text
=
"皮带线1运转"
;
this
.
btnRun1
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -495,9 +507,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
(
174
,
144
);
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
271
,
102
);
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
1
28
,
34
);
this
.
btnCloseAll
.
TabIndex
=
259
;
this
.
btnCloseAll
.
Text
=
"关闭所有DO"
;
this
.
btnCloseAll
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -508,9 +520,9 @@
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
(
1
74
,
104
);
this
.
btnStop1Up
.
Location
=
new
System
.
Drawing
.
Point
(
1
40
,
62
);
this
.
btnStop1Up
.
Name
=
"btnStop1Up"
;
this
.
btnStop1Up
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnStop1Up
.
Size
=
new
System
.
Drawing
.
Size
(
1
28
,
34
);
this
.
btnStop1Up
.
TabIndex
=
256
;
this
.
btnStop1Up
.
Text
=
"定位气缸上升"
;
this
.
btnStop1Up
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -529,9 +541,9 @@
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtSlaveId
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
cmbWriteIO
);
this
.
groupBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
49
7
,
6
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
49
5
,
6
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
3
94
,
188
);
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
3
74
,
147
);
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
...
...
@@ -540,7 +552,7 @@
//
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
(
32
8
,
63
);
this
.
txtDOIndex
.
Location
=
new
System
.
Drawing
.
Point
(
32
2
,
63
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
23
);
...
...
@@ -551,7 +563,7 @@
//
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
,
63
);
this
.
txtDoName
.
Location
=
new
System
.
Drawing
.
Point
(
65
,
63
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
116
,
23
);
...
...
@@ -563,7 +575,7 @@
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
(
1
9
,
66
);
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
1
3
,
66
);
this
.
label17
.
Name
=
"label17"
;
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
46
,
17
);
this
.
label17
.
TabIndex
=
266
;
...
...
@@ -575,7 +587,7 @@
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
(
2
72
,
66
);
this
.
label14
.
Location
=
new
System
.
Drawing
.
Point
(
2
66
,
66
);
this
.
label14
.
Name
=
"label14"
;
this
.
label14
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label14
.
TabIndex
=
265
;
...
...
@@ -587,7 +599,7 @@
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
(
16
9
,
99
);
this
.
btnOpenDo
.
Location
=
new
System
.
Drawing
.
Point
(
16
3
,
99
);
this
.
btnOpenDo
.
Name
=
"btnOpenDo"
;
this
.
btnOpenDo
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
34
);
this
.
btnOpenDo
.
TabIndex
=
264
;
...
...
@@ -600,7 +612,7 @@
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
(
2
75
,
99
);
this
.
btnWriteSingleDO
.
Location
=
new
System
.
Drawing
.
Point
(
2
69
,
99
);
this
.
btnWriteSingleDO
.
Name
=
"btnWriteSingleDO"
;
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
34
);
this
.
btnWriteSingleDO
.
TabIndex
=
261
;
...
...
@@ -611,7 +623,7 @@
// 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
,
105
);
this
.
txtWriteTime
.
Location
=
new
System
.
Drawing
.
Point
(
76
,
105
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
66
,
23
);
...
...
@@ -623,7 +635,7 @@
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
(
1
9
,
108
);
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
1
3
,
108
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
17
);
this
.
label5
.
TabIndex
=
262
;
...
...
@@ -649,7 +661,7 @@
this
.
cmbWriteIO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbWriteIO
.
FormattingEnabled
=
true
;
this
.
cmbWriteIO
.
ItemHeight
=
22
;
this
.
cmbWriteIO
.
Location
=
new
System
.
Drawing
.
Point
(
1
7
,
25
);
this
.
cmbWriteIO
.
Location
=
new
System
.
Drawing
.
Point
(
1
1
,
25
);
this
.
cmbWriteIO
.
Name
=
"cmbWriteIO"
;
this
.
cmbWriteIO
.
Size
=
new
System
.
Drawing
.
Size
(
356
,
28
);
this
.
cmbWriteIO
.
TabIndex
=
234
;
...
...
@@ -657,24 +669,11 @@
this
.
cmbWriteIO
.
DrawItem
+=
new
System
.
Windows
.
Forms
.
DrawItemEventHandler
(
this
.
cmbWriteIO_DrawItem
);
this
.
cmbWriteIO
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbWriteIO_SelectedIndexChanged
);
//
// btnNgMove
//
this
.
btnNgMove
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnNgMove
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnNgMove
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnNgMove
.
Location
=
new
System
.
Drawing
.
Point
(
174
,
63
);
this
.
btnNgMove
.
Name
=
"btnNgMove"
;
this
.
btnNgMove
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnNgMove
.
TabIndex
=
264
;
this
.
btnNgMove
.
Text
=
"NG气缸前进"
;
this
.
btnNgMove
.
UseVisualStyleBackColor
=
false
;
this
.
btnNgMove
.
Click
+=
new
System
.
EventHandler
(
this
.
btnNgMove_Click
);
//
// FrmDischargeLine
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1318
,
62
2
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1318
,
58
2
);
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
Controls
.
Add
(
this
.
tabControl1
);
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
...
...
source/DeviceLibrary/LineConfig/Config_DischargeLine_2.csv
查看文件 @
2789729
...
...
@@ -7,9 +7,9 @@ DI,0,出料皮带线体2复位,DLine_Reset,1,PRO_AOI_IP_3,0,出料皮带线体2复位,X042,X042
DI,0,皮带线4入口定位检测,EntryLocation_Check1,2,PRO_AOI_IP_3,0,皮带线4入口定位检测,X043,X043
DI,0,皮带线4出口定位检测,ExitLocation_Check1,3,PRO_AOI_IP_3,0,皮带线4出口定位检测,X044,X044
DI,0,皮带线4出口料盘检测,ExitTray_Check1,4,PRO_AOI_IP_3,0,皮带线4出口料盘检测,X045,X045
DI,0,皮带线5
定位检测,EntryLocation_Check2,5,PRO_AOI_IP_3,0,皮带线5
定位检测,X046,X046
DI,0,皮带线5
入口定位检测,ExitLocation_Check2,6,PRO_AOI_IP_3,0,皮带线5入
口定位检测,X047,X047
DI,0,皮带线5出口
定位检测,ExitTray_Check2,7,PRO_AOI_IP_3,0,皮带线5出口定位
检测,X048,X048
DI,0,皮带线5
入口定位检测,EntryLocation_Check2,5,PRO_AOI_IP_3,0,皮带线5入口
定位检测,X046,X046
DI,0,皮带线5
出口定位检测,ExitLocation_Check2,6,PRO_AOI_IP_3,0,皮带线5出
口定位检测,X047,X047
DI,0,皮带线5出口
料盘检测,ExitTray_Check2,7,PRO_AOI_IP_3,0,皮带线5出口料盘
检测,X048,X048
DI,0,皮带线6定位检测,Location_Check3,8,PRO_AOI_IP_3,0,皮带线6定位检测,X049,X049
DI,0,皮带线6入口料盘检测,EntryTray_Check3,9,PRO_AOI_IP_3,0,皮带线6入口料盘检测,X050,X050
DI,0,皮带线6中间位置料盘检测,MiddleTray_Check3,10,PRO_AOI_IP_3,0,皮带线6中间位置料盘检测,X051,X051
...
...
source/DeviceLibrary/assemblyLine/DischargeLine.cs
查看文件 @
2789729
...
...
@@ -108,7 +108,7 @@ namespace OnlineStore.DeviceLibrary
CheckAndMove
(
IO_Type
.
SeparateDevice_Run
,
IO_VALUE
.
LOW
);
if
(
DeviceID
.
Equals
(
302
))
{
CylinderMove
(
MoveInfo
,
IO_Type
.
NGCylinder_
After
,
IO_Type
.
NGCylinder_Before
);
CylinderMove
(
MoveInfo
,
IO_Type
.
NGCylinder_
Before
,
IO_Type
.
NGCylinder_After
);
}
if
(
IsDebug
)
{
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
查看文件 @
2789729
...
...
@@ -387,7 +387,7 @@ namespace OnlineStore.DeviceLibrary
{
LogInfo
(
" 上升横移机构 "
);
}
//
CylinderMove(null, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
CylinderMove
(
null
,
IO_Type
.
SL_MoveCylinder_Down
,
IO_Type
.
SL_MoveCylinder_Up
);
}
internal
override
void
CloseCylinderStop
()
{
...
...
source/DeviceLibrary/assemblyLine/OutTrayLineBean.cs
查看文件 @
2789729
...
...
@@ -58,15 +58,19 @@ namespace OnlineStore.DeviceLibrary
}
#
region
出库处理
private
string
posId
=
""
;
public
bool
StartOut
(
InOutParam
moveParam
)
public
bool
StartOut
(
InOutParam
moveParam
)
{
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
)
&&
equipBean
.
runStatus
>
LineRunStatus
.
HomeMoving
)
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
)
&&
equipBean
.
runStatus
>
LineRunStatus
.
HomeMoving
)
{
MoveInfo
.
MoveParam
=
moveParam
;
MoveInfo
.
NewMove
(
LineMoveType
.
OutStore
);
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosId
:
""
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DLO_01_WaitEntryNoTray
);
LogUtil
.
info
(
Name
+
"开始出料【"
+
moveParam
.
PosId
+
"】处理:"
+
MoveInfo
.
SLog
+
"等待入口无料盘"
);
LogUtil
.
info
(
Name
+
"开始出料【"
+
moveParam
.
PosId
+
"】处理:"
+
MoveInfo
.
SLog
+
"等待入口无料盘,NG气缸后退"
);
if
(
equipBeanId
.
Equals
(
302
)
&&
EntryLocation_Check
.
Equals
(
IO_Type
.
EntryLocation_Check2
))
{
equipBean
.
CylinderMove
(
MoveInfo
,
IO_Type
.
NGCylinder_Before
,
IO_Type
.
NGCylinder_After
);
}
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
return
true
;
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论