Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ccb5e455
由
LN
编写于
2021-02-01 11:19:34 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
59875bb0
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
20 行删除
source/AssemblyLineClient/FrmMoveEquip.Designer.cs
source/DeviceLibrary/baan/ClampJawBean.cs
source/AssemblyLineClient/FrmMoveEquip.Designer.cs
查看文件 @
ccb5e45
...
...
@@ -142,7 +142,7 @@
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
(
496
,
175
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
500
,
175
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
373
,
151
);
this
.
groupBox1
.
TabIndex
=
105
;
...
...
@@ -353,9 +353,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
(
496
,
332
);
this
.
groupDO
.
Location
=
new
System
.
Drawing
.
Point
(
500
,
332
);
this
.
groupDO
.
Name
=
"groupDO"
;
this
.
groupDO
.
Size
=
new
System
.
Drawing
.
Size
(
6
61
,
117
);
this
.
groupDO
.
Size
=
new
System
.
Drawing
.
Size
(
6
52
,
117
);
this
.
groupDO
.
TabIndex
=
255
;
this
.
groupDO
.
TabStop
=
false
;
this
.
groupDO
.
Text
=
"IO操作测试"
;
...
...
@@ -365,7 +365,7 @@
this
.
ClampCylinder_Work
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClampCylinder_Work
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
ClampCylinder_Work
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ClampCylinder_Work
.
Location
=
new
System
.
Drawing
.
Point
(
52
7
,
26
);
this
.
ClampCylinder_Work
.
Location
=
new
System
.
Drawing
.
Point
(
52
0
,
26
);
this
.
ClampCylinder_Work
.
Name
=
"ClampCylinder_Work"
;
this
.
ClampCylinder_Work
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
ClampCylinder_Work
.
TabIndex
=
262
;
...
...
@@ -378,7 +378,7 @@
this
.
BeforeAfterCylinder_After
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
BeforeAfterCylinder_After
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
BeforeAfterCylinder_After
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
BeforeAfterCylinder_After
.
Location
=
new
System
.
Drawing
.
Point
(
2
71
,
66
);
this
.
BeforeAfterCylinder_After
.
Location
=
new
System
.
Drawing
.
Point
(
2
64
,
66
);
this
.
BeforeAfterCylinder_After
.
Name
=
"BeforeAfterCylinder_After"
;
this
.
BeforeAfterCylinder_After
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
BeforeAfterCylinder_After
.
TabIndex
=
261
;
...
...
@@ -391,7 +391,7 @@
this
.
UpDownCylinder_Down
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
UpDownCylinder_Down
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
UpDownCylinder_Down
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
UpDownCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
39
9
,
66
);
this
.
UpDownCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
39
2
,
66
);
this
.
UpDownCylinder_Down
.
Name
=
"UpDownCylinder_Down"
;
this
.
UpDownCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
UpDownCylinder_Down
.
TabIndex
=
260
;
...
...
@@ -404,7 +404,7 @@
this
.
TopCylinder_Down
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
TopCylinder_Down
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
TopCylinder_Down
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
TopCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
1
43
,
66
);
this
.
TopCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
1
36
,
66
);
this
.
TopCylinder_Down
.
Name
=
"TopCylinder_Down"
;
this
.
TopCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
TopCylinder_Down
.
TabIndex
=
259
;
...
...
@@ -417,7 +417,7 @@
this
.
StopDown2
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
StopDown2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
StopDown2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
StopDown2
.
Location
=
new
System
.
Drawing
.
Point
(
15
,
66
);
this
.
StopDown2
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
66
);
this
.
StopDown2
.
Name
=
"StopDown2"
;
this
.
StopDown2
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
StopDown2
.
TabIndex
=
258
;
...
...
@@ -430,7 +430,7 @@
this
.
ClampCylinder_Relax
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClampCylinder_Relax
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
ClampCylinder_Relax
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ClampCylinder_Relax
.
Location
=
new
System
.
Drawing
.
Point
(
52
7
,
66
);
this
.
ClampCylinder_Relax
.
Location
=
new
System
.
Drawing
.
Point
(
52
0
,
66
);
this
.
ClampCylinder_Relax
.
Name
=
"ClampCylinder_Relax"
;
this
.
ClampCylinder_Relax
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
ClampCylinder_Relax
.
TabIndex
=
255
;
...
...
@@ -443,7 +443,7 @@
this
.
StopDown1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
StopDown1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
StopDown1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
StopDown1
.
Location
=
new
System
.
Drawing
.
Point
(
15
,
26
);
this
.
StopDown1
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
26
);
this
.
StopDown1
.
Name
=
"StopDown1"
;
this
.
StopDown1
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
StopDown1
.
TabIndex
=
256
;
...
...
@@ -456,7 +456,7 @@
this
.
BeforeAfterCylinder_Before
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
BeforeAfterCylinder_Before
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
BeforeAfterCylinder_Before
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
BeforeAfterCylinder_Before
.
Location
=
new
System
.
Drawing
.
Point
(
2
71
,
26
);
this
.
BeforeAfterCylinder_Before
.
Location
=
new
System
.
Drawing
.
Point
(
2
64
,
26
);
this
.
BeforeAfterCylinder_Before
.
Name
=
"BeforeAfterCylinder_Before"
;
this
.
BeforeAfterCylinder_Before
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
BeforeAfterCylinder_Before
.
TabIndex
=
249
;
...
...
@@ -469,7 +469,7 @@
this
.
TopCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
TopCylinder_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
TopCylinder_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
TopCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
1
43
,
26
);
this
.
TopCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
1
36
,
26
);
this
.
TopCylinder_Up
.
Name
=
"TopCylinder_Up"
;
this
.
TopCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
TopCylinder_Up
.
TabIndex
=
246
;
...
...
@@ -482,7 +482,7 @@
this
.
UpDownCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
UpDownCylinder_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
UpDownCylinder_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
UpDownCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
39
9
,
26
);
this
.
UpDownCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
39
2
,
26
);
this
.
UpDownCylinder_Up
.
Name
=
"UpDownCylinder_Up"
;
this
.
UpDownCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
UpDownCylinder_Up
.
TabIndex
=
252
;
...
...
@@ -499,7 +499,7 @@
this
.
lblThisSta
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblThisSta
.
Location
=
new
System
.
Drawing
.
Point
(
199
,
127
);
this
.
lblThisSta
.
Name
=
"lblThisSta"
;
this
.
lblThisSta
.
Size
=
new
System
.
Drawing
.
Size
(
94
7
,
28
);
this
.
lblThisSta
.
Size
=
new
System
.
Drawing
.
Size
(
94
2
,
28
);
this
.
lblThisSta
.
TabIndex
=
246
;
this
.
lblThisSta
.
Text
=
"等待启动"
;
this
.
lblThisSta
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
...
...
@@ -535,9 +535,9 @@
//
// clampJawControl1
//
this
.
clampJawControl1
.
Location
=
new
System
.
Drawing
.
Point
(
87
4
,
173
);
this
.
clampJawControl1
.
Location
=
new
System
.
Drawing
.
Point
(
87
6
,
173
);
this
.
clampJawControl1
.
Name
=
"clampJawControl1"
;
this
.
clampJawControl1
.
Size
=
new
System
.
Drawing
.
Size
(
28
6
,
159
);
this
.
clampJawControl1
.
Size
=
new
System
.
Drawing
.
Size
(
28
3
,
159
);
this
.
clampJawControl1
.
TabIndex
=
279
;
//
// groupBox6
...
...
@@ -551,7 +551,7 @@
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblThisSta
);
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
6
);
this
.
groupBox6
.
Name
=
"groupBox6"
;
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
11
51
,
166
);
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
11
46
,
166
);
this
.
groupBox6
.
TabIndex
=
278
;
this
.
groupBox6
.
TabStop
=
false
;
this
.
groupBox6
.
Text
=
"当前状态"
;
...
...
@@ -563,7 +563,7 @@
this
.
lblInoutInfo
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblInoutInfo
.
Location
=
new
System
.
Drawing
.
Point
(
2
,
17
);
this
.
lblInoutInfo
.
Name
=
"lblInoutInfo"
;
this
.
lblInoutInfo
.
Size
=
new
System
.
Drawing
.
Size
(
11
43
,
23
);
this
.
lblInoutInfo
.
Size
=
new
System
.
Drawing
.
Size
(
11
38
,
23
);
this
.
lblInoutInfo
.
TabIndex
=
281
;
this
.
lblInoutInfo
.
Text
=
"当前出入库:"
;
//
...
...
@@ -587,7 +587,7 @@
this
.
lblInstoreList
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblInstoreList
.
Location
=
new
System
.
Drawing
.
Point
(
199
,
45
);
this
.
lblInstoreList
.
Name
=
"lblInstoreList"
;
this
.
lblInstoreList
.
Size
=
new
System
.
Drawing
.
Size
(
94
7
,
77
);
this
.
lblInstoreList
.
Size
=
new
System
.
Drawing
.
Size
(
94
2
,
77
);
this
.
lblInstoreList
.
TabIndex
=
277
;
//
// tabPage2
...
...
source/DeviceLibrary/baan/ClampJawBean.cs
查看文件 @
ccb5e45
...
...
@@ -11,11 +11,13 @@ namespace OnlineStore.DeviceLibrary
{
public
class
ClampJawBean
{
public
string
Name
=
""
;
public
ConfigClampJaw
config
=
null
;
public
Rmaxis
rmaxis
=
null
;
public
ClampJawBean
(
ConfigClampJaw
config
)
{
this
.
config
=
config
;
Name
=
config
.
DisplayStr
+
"("
+
config
.
PortName
+
"_"
+
config
.
AxisNo
+
")"
;
OpenPort
();
}
public
bool
OpenPort
()
...
...
@@ -33,7 +35,7 @@ namespace OnlineStore.DeviceLibrary
bool
result
=
rmaxis
.
OpenPort
(
config
.
PortName
,
config
.
AxisNo
);
if
(!
result
)
{
LogUtil
.
error
(
config
.
DisplayStr
+
" OpenPort 失败:"
);
LogUtil
.
error
(
Name
+
" OpenPort 失败:"
);
}
}
return
rmaxis
.
IsPortOpen
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论