Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 599f085c
由
LN
编写于
2021-03-19 17:15:11 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
夹爪使用修改:
1.设备复位时夹爪需要回原点,然后到放松状态。 2.夹爪放松改为绝对位置运动方式,默认位置为1 3.夹爪调试界面增加位置和出力显示。
1 个父辈
842f751e
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
305 行增加
和
213 行删除
source/AssemblyLineClient/FrmFeedingEquip.Designer.cs
source/AssemblyLineClient/FrmFeedingEquip.cs
source/AssemblyLineClient/FrmMoveEquip.Designer.cs
source/AssemblyLineClient/FrmMoveEquip.cs
source/AssemblyLineClient/useControl/ClampJawControl.Designer.cs
source/AssemblyLineClient/useControl/ClampJawControl.cs
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
source/DeviceLibrary/assemblyLine/MoveEquip.cs
source/DeviceLibrary/baan/ClampJawBean.cs
source/AssemblyLineClient/FrmFeedingEquip.Designer.cs
查看文件 @
599f085
...
...
@@ -749,7 +749,7 @@
//
this
.
clampJawControl1
.
Location
=
new
System
.
Drawing
.
Point
(
462
,
422
);
this
.
clampJawControl1
.
Name
=
"clampJawControl1"
;
this
.
clampJawControl1
.
Size
=
new
System
.
Drawing
.
Size
(
239
,
167
);
this
.
clampJawControl1
.
Size
=
new
System
.
Drawing
.
Size
(
507
,
167
);
this
.
clampJawControl1
.
TabIndex
=
280
;
//
// tabPage2
...
...
source/AssemblyLineClient/FrmFeedingEquip.cs
查看文件 @
599f085
...
...
@@ -104,6 +104,7 @@ namespace OnlineStore.AssemblyLine
{
return
;
}
clampJawControl1
.
UpdateSta
();
ReadIOList
();
ReadBtnDO
();
BatchTimerPro
();
...
...
source/AssemblyLineClient/FrmMoveEquip.Designer.cs
查看文件 @
599f085
...
...
@@ -55,6 +55,16 @@
this
.
lblMoveInfo
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblInstoreList
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tabPage2
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
groupBox7
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnP3Save
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
label6
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtlP3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
listP3
=
new
System
.
Windows
.
Forms
.
ListBox
();
this
.
cmbP3Height
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
label8
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
cmbP3Width
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
label9
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblP3List
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
groupDetial
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnDSave
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
label3
=
new
System
.
Windows
.
Forms
.
Label
();
...
...
@@ -64,10 +74,9 @@
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
cmbDSize
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblP2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
axisMoveControl1
=
new
OnlineStore
.
AssemblyLine
.
AxisMoveControl
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
lblP3List
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblP2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnP3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtP3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btnSave
=
new
System
.
Windows
.
Forms
.
Button
();
...
...
@@ -77,15 +86,6 @@
this
.
label4
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnP2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtP2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
groupBox7
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnP3Save
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
label6
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtlP3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
listP3
=
new
System
.
Windows
.
Forms
.
ListBox
();
this
.
cmbP3Height
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
label8
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
cmbP3Width
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
label9
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
panBase
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
...
...
@@ -96,9 +96,9 @@
this
.
groupBox5
.
SuspendLayout
();
this
.
groupBox6
.
SuspendLayout
();
this
.
tabPage2
.
SuspendLayout
();
this
.
groupBox7
.
SuspendLayout
();
this
.
groupDetial
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
groupBox7
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// panBase
...
...
@@ -160,9 +160,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
(
4
56
,
178
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
4
14
,
179
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
2
88
,
148
);
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
2
69
,
148
);
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
...
...
@@ -209,7 +209,7 @@
this
.
lblAddr
.
AutoSize
=
true
;
this
.
lblAddr
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblAddr
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblAddr
.
Location
=
new
System
.
Drawing
.
Point
(
22
7
,
29
);
this
.
lblAddr
.
Location
=
new
System
.
Drawing
.
Point
(
22
5
,
29
);
this
.
lblAddr
.
Name
=
"lblAddr"
;
this
.
lblAddr
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
lblAddr
.
TabIndex
=
274
;
...
...
@@ -296,9 +296,9 @@
this
.
groupBox4
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox4
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
2
32
,
178
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
2
10
,
178
);
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
2
20
,
333
);
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
2
00
,
337
);
this
.
groupBox4
.
TabIndex
=
104
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"DO列表"
;
...
...
@@ -316,7 +316,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
(
209
,
313
);
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
189
,
317
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
// groupBox3
...
...
@@ -326,7 +326,7 @@
this
.
groupBox3
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
178
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
2
20
,
333
);
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
2
00
,
337
);
this
.
groupBox3
.
TabIndex
=
103
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"DI列表"
;
...
...
@@ -344,7 +344,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
(
209
,
313
);
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
189
,
317
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// groupDO
...
...
@@ -359,9 +359,9 @@
this
.
groupDO
.
Controls
.
Add
(
this
.
BeforeAfterCylinder_Before
);
this
.
groupDO
.
Controls
.
Add
(
this
.
TopCylinder_Up
);
this
.
groupDO
.
Controls
.
Add
(
this
.
UpDownCylinder_Up
);
this
.
groupDO
.
Location
=
new
System
.
Drawing
.
Point
(
4
56
,
334
);
this
.
groupDO
.
Location
=
new
System
.
Drawing
.
Point
(
4
14
,
330
);
this
.
groupDO
.
Name
=
"groupDO"
;
this
.
groupDO
.
Size
=
new
System
.
Drawing
.
Size
(
5
23
,
111
);
this
.
groupDO
.
Size
=
new
System
.
Drawing
.
Size
(
5
56
,
111
);
this
.
groupDO
.
TabIndex
=
255
;
this
.
groupDO
.
TabStop
=
false
;
this
.
groupDO
.
Text
=
"IO操作测试"
;
...
...
@@ -499,13 +499,13 @@
//
// tabPage1
//
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox5
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupDO
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
clampJawControl1
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupDO
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox6
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox4
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage1
.
Name
=
"tabPage1"
;
this
.
tabPage1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
...
...
@@ -521,9 +521,9 @@
this
.
groupBox5
.
Controls
.
Add
(
this
.
label7
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
txtPosId
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnClear
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
4
56
,
448
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
4
14
,
446
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
523
,
61
);
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
407
,
61
);
this
.
groupBox5
.
TabIndex
=
280
;
this
.
groupBox5
.
TabStop
=
false
;
//
...
...
@@ -558,9 +558,9 @@
//
// clampJawControl1
//
this
.
clampJawControl1
.
Location
=
new
System
.
Drawing
.
Point
(
751
,
174
);
this
.
clampJawControl1
.
Location
=
new
System
.
Drawing
.
Point
(
686
,
174
);
this
.
clampJawControl1
.
Name
=
"clampJawControl1"
;
this
.
clampJawControl1
.
Size
=
new
System
.
Drawing
.
Size
(
2
34
,
158
);
this
.
clampJawControl1
.
Size
=
new
System
.
Drawing
.
Size
(
2
91
,
157
);
this
.
clampJawControl1
.
TabIndex
=
279
;
//
// groupBox6
...
...
@@ -629,6 +629,130 @@
this
.
tabPage2
.
Text
=
" 伺服信息 "
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
//
// groupBox7
//
this
.
groupBox7
.
Controls
.
Add
(
this
.
btnP3Save
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
label6
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
txtlP3
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
listP3
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
cmbP3Height
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
label8
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
cmbP3Width
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
label9
);
this
.
groupBox7
.
Location
=
new
System
.
Drawing
.
Point
(
742
,
165
);
this
.
groupBox7
.
Name
=
"groupBox7"
;
this
.
groupBox7
.
Size
=
new
System
.
Drawing
.
Size
(
237
,
347
);
this
.
groupBox7
.
TabIndex
=
324
;
this
.
groupBox7
.
TabStop
=
false
;
this
.
groupBox7
.
Text
=
"升降轴仓门取放点P3详细配置"
;
//
// btnP3Save
//
this
.
btnP3Save
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnP3Save
.
ForeColor
=
System
.
Drawing
.
Color
.
Blue
;
this
.
btnP3Save
.
Location
=
new
System
.
Drawing
.
Point
(
167
,
65
);
this
.
btnP3Save
.
Name
=
"btnP3Save"
;
this
.
btnP3Save
.
Size
=
new
System
.
Drawing
.
Size
(
64
,
34
);
this
.
btnP3Save
.
TabIndex
=
322
;
this
.
btnP3Save
.
Text
=
"保存"
;
this
.
btnP3Save
.
UseVisualStyleBackColor
=
true
;
this
.
btnP3Save
.
Click
+=
new
System
.
EventHandler
(
this
.
btnP3Save_Click
);
//
// label6
//
this
.
label6
.
AutoSize
=
true
;
this
.
label6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label6
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label6
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
74
);
this
.
label6
.
Name
=
"label6"
;
this
.
label6
.
Size
=
new
System
.
Drawing
.
Size
(
49
,
17
);
this
.
label6
.
TabIndex
=
321
;
this
.
label6
.
Text
=
"P3位置:"
;
this
.
label6
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// txtlP3
//
this
.
txtlP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtlP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtlP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtlP3
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtlP3
.
Location
=
new
System
.
Drawing
.
Point
(
66
,
69
);
this
.
txtlP3
.
MaxLength
=
12
;
this
.
txtlP3
.
Name
=
"txtlP3"
;
this
.
txtlP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtlP3
.
Size
=
new
System
.
Drawing
.
Size
(
90
,
26
);
this
.
txtlP3
.
TabIndex
=
320
;
this
.
txtlP3
.
Text
=
"-1"
;
//
// listP3
//
this
.
listP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
listP3
.
FormattingEnabled
=
true
;
this
.
listP3
.
ItemHeight
=
20
;
this
.
listP3
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
110
);
this
.
listP3
.
Name
=
"listP3"
;
this
.
listP3
.
Size
=
new
System
.
Drawing
.
Size
(
219
,
224
);
this
.
listP3
.
TabIndex
=
319
;
//
// cmbP3Height
//
this
.
cmbP3Height
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbP3Height
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbP3Height
.
FormattingEnabled
=
true
;
this
.
cmbP3Height
.
Location
=
new
System
.
Drawing
.
Point
(
166
,
25
);
this
.
cmbP3Height
.
Name
=
"cmbP3Height"
;
this
.
cmbP3Height
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
28
);
this
.
cmbP3Height
.
TabIndex
=
318
;
this
.
cmbP3Height
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbP3Width_SelectedIndexChanged
);
//
// label8
//
this
.
label8
.
AutoSize
=
true
;
this
.
label8
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label8
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label8
.
Location
=
new
System
.
Drawing
.
Point
(
125
,
31
);
this
.
label8
.
Name
=
"label8"
;
this
.
label8
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label8
.
TabIndex
=
317
;
this
.
label8
.
Text
=
"高度:"
;
this
.
label8
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// cmbP3Width
//
this
.
cmbP3Width
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbP3Width
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbP3Width
.
FormattingEnabled
=
true
;
this
.
cmbP3Width
.
Location
=
new
System
.
Drawing
.
Point
(
54
,
25
);
this
.
cmbP3Width
.
Name
=
"cmbP3Width"
;
this
.
cmbP3Width
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
28
);
this
.
cmbP3Width
.
TabIndex
=
316
;
this
.
cmbP3Width
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbP3Width_SelectedIndexChanged
);
//
// label9
//
this
.
label9
.
AutoSize
=
true
;
this
.
label9
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label9
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label9
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
31
);
this
.
label9
.
Name
=
"label9"
;
this
.
label9
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label9
.
TabIndex
=
315
;
this
.
label9
.
Text
=
"宽度:"
;
this
.
label9
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// lblP3List
//
this
.
lblP3List
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
lblP3List
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblP3List
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblP3List
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
458
);
this
.
lblP3List
.
Name
=
"lblP3List"
;
this
.
lblP3List
.
Size
=
new
System
.
Drawing
.
Size
(
486
,
40
);
this
.
lblP3List
.
TabIndex
=
314
;
this
.
lblP3List
.
Text
=
"P3列表:"
;
this
.
lblP3List
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// groupDetial
//
this
.
groupDetial
.
Controls
.
Add
(
this
.
btnDSave
);
...
...
@@ -741,6 +865,19 @@
this
.
label1
.
Text
=
"宽度:"
;
this
.
label1
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// lblP2
//
this
.
lblP2
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
lblP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblP2
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblP2
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
413
);
this
.
lblP2
.
Name
=
"lblP2"
;
this
.
lblP2
.
Size
=
new
System
.
Drawing
.
Size
(
486
,
40
);
this
.
lblP2
.
TabIndex
=
313
;
this
.
lblP2
.
Text
=
"P2列表:"
;
this
.
lblP2
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// axisMoveControl1
//
this
.
axisMoveControl1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
7
);
...
...
@@ -766,32 +903,6 @@
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
Text
=
"升降轴位置配置"
;
//
// lblP3List
//
this
.
lblP3List
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
lblP3List
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblP3List
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblP3List
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
458
);
this
.
lblP3List
.
Name
=
"lblP3List"
;
this
.
lblP3List
.
Size
=
new
System
.
Drawing
.
Size
(
486
,
40
);
this
.
lblP3List
.
TabIndex
=
314
;
this
.
lblP3List
.
Text
=
"P3列表:"
;
this
.
lblP3List
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// lblP2
//
this
.
lblP2
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
lblP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblP2
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblP2
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
413
);
this
.
lblP2
.
Name
=
"lblP2"
;
this
.
lblP2
.
Size
=
new
System
.
Drawing
.
Size
(
486
,
40
);
this
.
lblP2
.
TabIndex
=
313
;
this
.
lblP2
.
Text
=
"P2列表:"
;
this
.
lblP2
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// btnP3
//
this
.
btnP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
...
...
@@ -917,117 +1028,6 @@
this
.
txtP2
.
TabIndex
=
305
;
this
.
txtP2
.
Text
=
"-1"
;
//
// groupBox7
//
this
.
groupBox7
.
Controls
.
Add
(
this
.
btnP3Save
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
label6
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
txtlP3
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
listP3
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
cmbP3Height
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
label8
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
cmbP3Width
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
label9
);
this
.
groupBox7
.
Location
=
new
System
.
Drawing
.
Point
(
742
,
165
);
this
.
groupBox7
.
Name
=
"groupBox7"
;
this
.
groupBox7
.
Size
=
new
System
.
Drawing
.
Size
(
237
,
347
);
this
.
groupBox7
.
TabIndex
=
324
;
this
.
groupBox7
.
TabStop
=
false
;
this
.
groupBox7
.
Text
=
"升降轴仓门取放点P3详细配置"
;
//
// btnP3Save
//
this
.
btnP3Save
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnP3Save
.
ForeColor
=
System
.
Drawing
.
Color
.
Blue
;
this
.
btnP3Save
.
Location
=
new
System
.
Drawing
.
Point
(
167
,
65
);
this
.
btnP3Save
.
Name
=
"btnP3Save"
;
this
.
btnP3Save
.
Size
=
new
System
.
Drawing
.
Size
(
64
,
34
);
this
.
btnP3Save
.
TabIndex
=
322
;
this
.
btnP3Save
.
Text
=
"保存"
;
this
.
btnP3Save
.
UseVisualStyleBackColor
=
true
;
this
.
btnP3Save
.
Click
+=
new
System
.
EventHandler
(
this
.
btnP3Save_Click
);
//
// label6
//
this
.
label6
.
AutoSize
=
true
;
this
.
label6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label6
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label6
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
74
);
this
.
label6
.
Name
=
"label6"
;
this
.
label6
.
Size
=
new
System
.
Drawing
.
Size
(
49
,
17
);
this
.
label6
.
TabIndex
=
321
;
this
.
label6
.
Text
=
"P3位置:"
;
this
.
label6
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// txtlP3
//
this
.
txtlP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtlP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtlP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtlP3
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtlP3
.
Location
=
new
System
.
Drawing
.
Point
(
66
,
69
);
this
.
txtlP3
.
MaxLength
=
12
;
this
.
txtlP3
.
Name
=
"txtlP3"
;
this
.
txtlP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtlP3
.
Size
=
new
System
.
Drawing
.
Size
(
90
,
26
);
this
.
txtlP3
.
TabIndex
=
320
;
this
.
txtlP3
.
Text
=
"-1"
;
//
// listP3
//
this
.
listP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
listP3
.
FormattingEnabled
=
true
;
this
.
listP3
.
ItemHeight
=
20
;
this
.
listP3
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
110
);
this
.
listP3
.
Name
=
"listP3"
;
this
.
listP3
.
Size
=
new
System
.
Drawing
.
Size
(
219
,
224
);
this
.
listP3
.
TabIndex
=
319
;
//
// cmbP3Height
//
this
.
cmbP3Height
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbP3Height
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbP3Height
.
FormattingEnabled
=
true
;
this
.
cmbP3Height
.
Location
=
new
System
.
Drawing
.
Point
(
166
,
25
);
this
.
cmbP3Height
.
Name
=
"cmbP3Height"
;
this
.
cmbP3Height
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
28
);
this
.
cmbP3Height
.
TabIndex
=
318
;
this
.
cmbP3Height
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbP3Width_SelectedIndexChanged
);
//
// label8
//
this
.
label8
.
AutoSize
=
true
;
this
.
label8
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label8
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label8
.
Location
=
new
System
.
Drawing
.
Point
(
125
,
31
);
this
.
label8
.
Name
=
"label8"
;
this
.
label8
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label8
.
TabIndex
=
317
;
this
.
label8
.
Text
=
"高度:"
;
this
.
label8
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// cmbP3Width
//
this
.
cmbP3Width
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbP3Width
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbP3Width
.
FormattingEnabled
=
true
;
this
.
cmbP3Width
.
Location
=
new
System
.
Drawing
.
Point
(
54
,
25
);
this
.
cmbP3Width
.
Name
=
"cmbP3Width"
;
this
.
cmbP3Width
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
28
);
this
.
cmbP3Width
.
TabIndex
=
316
;
this
.
cmbP3Width
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbP3Width_SelectedIndexChanged
);
//
// label9
//
this
.
label9
.
AutoSize
=
true
;
this
.
label9
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label9
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label9
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
31
);
this
.
label9
.
Name
=
"label9"
;
this
.
label9
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label9
.
TabIndex
=
315
;
this
.
label9
.
Text
=
"宽度:"
;
this
.
label9
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// FrmMoveEquip
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
...
...
@@ -1058,12 +1058,12 @@
this
.
groupBox6
.
ResumeLayout
(
false
);
this
.
groupBox6
.
PerformLayout
();
this
.
tabPage2
.
ResumeLayout
(
false
);
this
.
groupBox7
.
ResumeLayout
(
false
);
this
.
groupBox7
.
PerformLayout
();
this
.
groupDetial
.
ResumeLayout
(
false
);
this
.
groupDetial
.
PerformLayout
();
this
.
groupBox2
.
ResumeLayout
(
false
);
this
.
groupBox2
.
PerformLayout
();
this
.
groupBox7
.
ResumeLayout
(
false
);
this
.
groupBox7
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
}
...
...
source/AssemblyLineClient/FrmMoveEquip.cs
查看文件 @
599f085
...
...
@@ -86,7 +86,7 @@ namespace OnlineStore.AssemblyLine
foreach
(
ConfigIO
ioValue
in
equipBean
.
Config
.
DIList
.
Values
)
{
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
,
220
);
this
.
tableLayoutPanel1
.
Controls
.
Add
(
control
,
0
,
roleindex
);
roleindex
++;
DIControlList
.
Add
(
ioValue
.
ProName
,
control
);
...
...
@@ -98,7 +98,7 @@ namespace OnlineStore.AssemblyLine
foreach
(
ConfigIO
ioValue
in
equipBean
.
Config
.
DOList
.
Values
)
{
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
,
220
);
control
.
Click
+=
Control_Click
;
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
roleindex
++;
...
...
@@ -134,7 +134,7 @@ namespace OnlineStore.AssemblyLine
ReadIOList
();
ReadBtnDO
();
clampJawControl1
.
UpdateSta
();
lblName
.
BackColor
=
equipBean
.
GetShowColor
();
if
(
equipBean
.
runStatus
>
LineRunStatus
.
Wait
)
{
...
...
source/AssemblyLineClient/useControl/ClampJawControl.Designer.cs
查看文件 @
599f085
...
...
@@ -31,10 +31,13 @@ namespace OnlineStore.AssemblyLine.useControl
{
this
.
groupClamp
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
linkLabel1
=
new
System
.
Windows
.
Forms
.
LinkLabel
();
this
.
chbEmpty
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
chbPosition
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
btnClampWork
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnClampRelax
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblForce
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblPosition
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblMoveOk
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnHome
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblEmpty
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
groupClamp
.
SuspendLayout
();
this
.
SuspendLayout
();
//
...
...
@@ -43,15 +46,18 @@ namespace OnlineStore.AssemblyLine.useControl
this
.
groupClamp
.
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
.
groupClamp
.
Controls
.
Add
(
this
.
lblEmpty
);
this
.
groupClamp
.
Controls
.
Add
(
this
.
btnHome
);
this
.
groupClamp
.
Controls
.
Add
(
this
.
lblMoveOk
);
this
.
groupClamp
.
Controls
.
Add
(
this
.
lblPosition
);
this
.
groupClamp
.
Controls
.
Add
(
this
.
lblForce
);
this
.
groupClamp
.
Controls
.
Add
(
this
.
linkLabel1
);
this
.
groupClamp
.
Controls
.
Add
(
this
.
chbEmpty
);
this
.
groupClamp
.
Controls
.
Add
(
this
.
chbPosition
);
this
.
groupClamp
.
Controls
.
Add
(
this
.
btnClampWork
);
this
.
groupClamp
.
Controls
.
Add
(
this
.
btnClampRelax
);
this
.
groupClamp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupClamp
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
4
);
this
.
groupClamp
.
Name
=
"groupClamp"
;
this
.
groupClamp
.
Size
=
new
System
.
Drawing
.
Size
(
2
18
,
158
);
this
.
groupClamp
.
Size
=
new
System
.
Drawing
.
Size
(
2
66
,
146
);
this
.
groupClamp
.
TabIndex
=
283
;
this
.
groupClamp
.
TabStop
=
false
;
this
.
groupClamp
.
Text
=
"夹爪操作"
;
...
...
@@ -60,7 +66,7 @@ namespace OnlineStore.AssemblyLine.useControl
//
this
.
linkLabel1
.
AutoSize
=
true
;
this
.
linkLabel1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
linkLabel1
.
Location
=
new
System
.
Drawing
.
Point
(
1
67
,
121
);
this
.
linkLabel1
.
Location
=
new
System
.
Drawing
.
Point
(
1
59
,
115
);
this
.
linkLabel1
.
Name
=
"linkLabel1"
;
this
.
linkLabel1
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
20
);
this
.
linkLabel1
.
TabIndex
=
285
;
...
...
@@ -68,36 +74,14 @@ namespace OnlineStore.AssemblyLine.useControl
this
.
linkLabel1
.
Text
=
"查询"
;
this
.
linkLabel1
.
LinkClicked
+=
new
System
.
Windows
.
Forms
.
LinkLabelLinkClickedEventHandler
(
this
.
linkLabel1_LinkClicked
);
//
// chbEmpty
//
this
.
chbEmpty
.
AutoSize
=
true
;
this
.
chbEmpty
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbEmpty
.
Location
=
new
System
.
Drawing
.
Point
(
102
,
120
);
this
.
chbEmpty
.
Name
=
"chbEmpty"
;
this
.
chbEmpty
.
Size
=
new
System
.
Drawing
.
Size
(
56
,
24
);
this
.
chbEmpty
.
TabIndex
=
284
;
this
.
chbEmpty
.
Text
=
"空抓"
;
this
.
chbEmpty
.
UseVisualStyleBackColor
=
true
;
//
// chbPosition
//
this
.
chbPosition
.
AutoSize
=
true
;
this
.
chbPosition
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbPosition
.
Location
=
new
System
.
Drawing
.
Point
(
9
,
120
);
this
.
chbPosition
.
Name
=
"chbPosition"
;
this
.
chbPosition
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
24
);
this
.
chbPosition
.
TabIndex
=
283
;
this
.
chbPosition
.
Text
=
"运动到位"
;
this
.
chbPosition
.
UseVisualStyleBackColor
=
true
;
//
// btnClampWork
//
this
.
btnClampWork
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnClampWork
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClampWork
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClampWork
.
Location
=
new
System
.
Drawing
.
Point
(
29
,
69
);
this
.
btnClampWork
.
Location
=
new
System
.
Drawing
.
Point
(
18
,
104
);
this
.
btnClampWork
.
Name
=
"btnClampWork"
;
this
.
btnClampWork
.
Size
=
new
System
.
Drawing
.
Size
(
1
4
0
,
34
);
this
.
btnClampWork
.
Size
=
new
System
.
Drawing
.
Size
(
1
2
0
,
34
);
this
.
btnClampWork
.
TabIndex
=
282
;
this
.
btnClampWork
.
Text
=
"夹料气缸夹紧"
;
this
.
btnClampWork
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -108,20 +92,69 @@ namespace OnlineStore.AssemblyLine.useControl
this
.
btnClampRelax
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnClampRelax
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClampRelax
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClampRelax
.
Location
=
new
System
.
Drawing
.
Point
(
29
,
27
);
this
.
btnClampRelax
.
Location
=
new
System
.
Drawing
.
Point
(
18
,
64
);
this
.
btnClampRelax
.
Name
=
"btnClampRelax"
;
this
.
btnClampRelax
.
Size
=
new
System
.
Drawing
.
Size
(
1
4
0
,
34
);
this
.
btnClampRelax
.
Size
=
new
System
.
Drawing
.
Size
(
1
2
0
,
34
);
this
.
btnClampRelax
.
TabIndex
=
281
;
this
.
btnClampRelax
.
Text
=
"夹料气缸放松"
;
this
.
btnClampRelax
.
UseVisualStyleBackColor
=
false
;
this
.
btnClampRelax
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClampRelax_Click
);
//
// lblForce
//
this
.
lblForce
.
AutoSize
=
true
;
this
.
lblForce
.
Location
=
new
System
.
Drawing
.
Point
(
159
,
19
);
this
.
lblForce
.
Name
=
"lblForce"
;
this
.
lblForce
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
lblForce
.
TabIndex
=
286
;
this
.
lblForce
.
Text
=
"实时出力:"
;
//
// lblPosition
//
this
.
lblPosition
.
AutoSize
=
true
;
this
.
lblPosition
.
Location
=
new
System
.
Drawing
.
Point
(
159
,
43
);
this
.
lblPosition
.
Name
=
"lblPosition"
;
this
.
lblPosition
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
lblPosition
.
TabIndex
=
287
;
this
.
lblPosition
.
Text
=
"实时位置:"
;
//
// lblMoveOk
//
this
.
lblMoveOk
.
AutoSize
=
true
;
this
.
lblMoveOk
.
Location
=
new
System
.
Drawing
.
Point
(
159
,
91
);
this
.
lblMoveOk
.
Name
=
"lblMoveOk"
;
this
.
lblMoveOk
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
lblMoveOk
.
TabIndex
=
288
;
this
.
lblMoveOk
.
Text
=
"运动到位?"
;
//
// btnHome
//
this
.
btnHome
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnHome
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnHome
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnHome
.
Location
=
new
System
.
Drawing
.
Point
(
18
,
24
);
this
.
btnHome
.
Name
=
"btnHome"
;
this
.
btnHome
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
btnHome
.
TabIndex
=
289
;
this
.
btnHome
.
Text
=
"夹爪回原点"
;
this
.
btnHome
.
UseVisualStyleBackColor
=
false
;
this
.
btnHome
.
Click
+=
new
System
.
EventHandler
(
this
.
btnHome_Click
);
//
// lblEmpty
//
this
.
lblEmpty
.
AutoSize
=
true
;
this
.
lblEmpty
.
Location
=
new
System
.
Drawing
.
Point
(
159
,
67
);
this
.
lblEmpty
.
Name
=
"lblEmpty"
;
this
.
lblEmpty
.
Size
=
new
System
.
Drawing
.
Size
(
44
,
17
);
this
.
lblEmpty
.
TabIndex
=
290
;
this
.
lblEmpty
.
Text
=
"有料?"
;
//
// ClampJawControl
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
Controls
.
Add
(
this
.
groupClamp
);
this
.
Name
=
"ClampJawControl"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
2
31
,
167
);
this
.
Size
=
new
System
.
Drawing
.
Size
(
2
79
,
155
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
ClampJawControl_Load
);
this
.
groupClamp
.
ResumeLayout
(
false
);
this
.
groupClamp
.
PerformLayout
();
...
...
@@ -134,8 +167,11 @@ namespace OnlineStore.AssemblyLine.useControl
private
System
.
Windows
.
Forms
.
GroupBox
groupClamp
;
private
System
.
Windows
.
Forms
.
Button
btnClampWork
;
private
System
.
Windows
.
Forms
.
Button
btnClampRelax
;
private
System
.
Windows
.
Forms
.
CheckBox
chbEmpty
;
private
System
.
Windows
.
Forms
.
CheckBox
chbPosition
;
private
System
.
Windows
.
Forms
.
LinkLabel
linkLabel1
;
private
System
.
Windows
.
Forms
.
Label
lblPosition
;
private
System
.
Windows
.
Forms
.
Label
lblForce
;
private
System
.
Windows
.
Forms
.
Label
lblMoveOk
;
private
System
.
Windows
.
Forms
.
Button
btnHome
;
private
System
.
Windows
.
Forms
.
Label
lblEmpty
;
}
}
source/AssemblyLineClient/useControl/ClampJawControl.cs
查看文件 @
599f085
...
...
@@ -35,8 +35,30 @@ namespace OnlineStore.AssemblyLine.useControl
private
void
linkLabel1_LinkClicked
(
object
sender
,
LinkLabelLinkClickedEventArgs
e
)
{
chbPosition
.
Checked
=
clampJaw
.
IsReached
();
chbEmpty
.
Checked
=!
clampJaw
.
HasReel
();
UpdateSta
();
}
public
void
UpdateSta
()
{
if
(
clampJaw
.
IsReached
())
{
lblMoveOk
.
Text
=
"运动到位 ✔"
;
}
else
{
lblMoveOk
.
Text
=
" "
;
}
if
(
clampJaw
.
HasReel
())
{
lblEmpty
.
Text
=
"有料 ✔"
;
}
else
{
lblEmpty
.
Text
=
"无料"
;
}
lblPosition
.
Text
=
"实时位置:"
+
clampJaw
.
GetPosition
();
lblForce
.
Text
=
"实时出力:"
+
clampJaw
.
GetTorque
();
}
private
void
btnClampRelax_Click
(
object
sender
,
EventArgs
e
)
...
...
@@ -50,5 +72,11 @@ namespace OnlineStore.AssemblyLine.useControl
LogUtil
.
info
(
JName
+
"界面点击:"
+
btnClampRelax
.
Text
);
clampJaw
.
Push
();
}
private
void
btnHome_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
JName
+
"界面点击:"
+
btnHome
.
Text
);
clampJaw
.
GoHome
();
}
}
}
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
查看文件 @
599f085
...
...
@@ -132,7 +132,7 @@ namespace OnlineStore.DeviceLibrary
//夹紧气缸放松
//CylinderMove(null, IO_Type.SL_ClampCylinder_Work, IO_Type.SL_ClampCylinder_Relax);
ClampJwa
.
Relax
();
ClampJwa
.
GoHome
();
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_Entry_StopDown
,
IO_VALUE
.
LOW
));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_Buffer_StopDown, IO_VALUE.LOW));
...
...
@@ -164,7 +164,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
time
));
//线体开始转动
AllLineMove
(
IO_VALUE
.
HIGH
);
ClampJwa
.
Relax
();
break
;
case
LineMoveStep
.
FR_02_LineRun
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FR_03_CylinderUp
);
...
...
source/DeviceLibrary/assemblyLine/MoveEquip.cs
查看文件 @
599f085
...
...
@@ -120,8 +120,9 @@ namespace OnlineStore.DeviceLibrary
{
case
LineMoveStep
.
MH_01_UpDownHome
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_02_CylinderUp
);
DebugInfo
(
MoveInfo
.
MoveType
+
" : 升降轴走到待机点"
);
DebugInfo
(
MoveInfo
.
MoveType
+
" : 升降轴走到待机点
,夹爪回原点
"
);
UpdownUpMove
();
ClampJwa
.
GoHome
(
MoveInfo
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
break
;
case
LineMoveStep
.
MH_02_CylinderUp
:
...
...
source/DeviceLibrary/baan/ClampJawBean.cs
查看文件 @
599f085
...
...
@@ -35,7 +35,7 @@ namespace OnlineStore.DeviceLibrary
bool
result
=
rmaxis
.
OpenPort
(
config
.
PortName
,
config
.
AxisNo
);
if
(!
result
)
{
LogUtil
.
error
(
Name
+
" OpenPort 失败
:"
+
rmaxis
.
ErrorCode
);
LogUtil
.
error
(
Name
+
" OpenPort 失败
"
);
}
}
return
rmaxis
.
IsPortOpen
;
...
...
@@ -86,7 +86,18 @@ namespace OnlineStore.DeviceLibrary
{
if
(
rmaxis
!=
null
&&
rmaxis
.
IsPortOpen
)
{
rmaxis
.
GoHome
(
);
rmaxis
.
MoveAbsolute
(
1
);
}
if
(
moveInfo
!=
null
)
{
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampReached
(
1
));
}
}
public
void
GoHome
(
LineMoveInfo
moveInfo
=
null
)
{
if
(
rmaxis
!=
null
&&
rmaxis
.
IsPortOpen
)
{
rmaxis
.
GoHome
();
}
if
(
moveInfo
!=
null
)
{
...
...
@@ -94,5 +105,20 @@ namespace OnlineStore.DeviceLibrary
}
}
public
float
GetPosition
()
{
return
rmaxis
.
GetPosition
();
}
public
float
GetTorque
()
{
return
rmaxis
.
GetTorque
();
}
public
void
PushTest
(
float
force
,
float
distance
)
{
if
(
rmaxis
!=
null
&&
rmaxis
.
IsPortOpen
)
{
rmaxis
.
Push
(
force
,
distance
,
config
.
Velocity
);
}
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论