Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 90c6b431
由
LN
编写于
2020-11-16 13:39:10 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
b7962bf7
显示空白字符变更
内嵌
并排
正在显示
31 个修改的文件
包含
1937 行增加
和
1258 行删除
source/AssemblyLineClient/FrmBase.cs
source/AssemblyLineClient/FrmEquipBase.cs
source/AssemblyLineClient/FrmFeedingEquip.Designer.cs
source/AssemblyLineClient/FrmFeedingEquip.cs
source/AssemblyLineClient/FrmHYEquip.Designer.cs
source/AssemblyLineClient/FrmHYEquip.cs
source/AssemblyLineClient/FrmLineIO.Designer.cs
source/AssemblyLineClient/FrmLineIO.cs
source/AssemblyLineClient/FrmLineStore.Designer.cs
source/AssemblyLineClient/FrmLineStore.cs
source/AssemblyLineClient/FrmMoveEquip.Designer.cs
source/AssemblyLineClient/FrmMoveEquip.cs
source/AssemblyLineClient/useControl/AxisMoveControl.Designer.cs
source/AssemblyLineClient/useControl/AxisMoveControl.cs
source/AssemblyLineClient/useControl/EquipControl.cs
source/DeviceLibrary/LineConfig/Config_Line.csv
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
source/DeviceLibrary/assemblyLine/HY/HYEquipBase.cs
source/DeviceLibrary/assemblyLine/HY/HY_C1Line.cs
source/DeviceLibrary/assemblyLine/HY/HY_C1_SLStation.cs
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor.cs
source/DeviceLibrary/assemblyLine/HY/HY_OutLine.cs
source/DeviceLibrary/assemblyLine/MoveEquip.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/model/KTK_Store.cs
source/DeviceLibrary/model/LineMoveInfo.cs
source/DeviceLibrary/model/StoreStep.cs
source/LoadCVSLibrary/CSVReaderBase.cs
source/LoadCVSLibrary/FileEncoding.cs
source/LoadCVSLibrary/LoadCSVLibrary.csproj
source/AssemblyLineClient/FrmBase.cs
查看文件 @
90c6b43
...
...
@@ -15,6 +15,7 @@ namespace OnlineStore.AssemblyLine
{
internal
static
string
GetVersion
(
bool
IsShow
=
false
)
{
string
str
=
""
;
string
version
=
""
;
DateTime
newData
=
DateTime
.
Parse
(
"2000-01-01"
);
...
...
@@ -55,5 +56,6 @@ namespace OnlineStore.AssemblyLine
{
InitializeComponent
();
}
}
}
source/AssemblyLineClient/FrmEquipBase.cs
查看文件 @
90c6b43
...
...
@@ -137,5 +137,60 @@ namespace OnlineStore.AssemblyLine
internal
virtual
void
FormStatus
(
bool
status
)
{
}
protected
List
<
Control
>
doList
=
new
List
<
Control
>();
protected
void
LoadDOBtn
(
GroupBox
group
)
{
doList
=
new
List
<
Control
>();
foreach
(
Control
c
in
group
.
Controls
)
{
if
(
c
is
Button
)
{
if
(
equipBase
.
baseConfig
.
DOList
.
ContainsKey
(
c
.
Name
))
{
doList
.
Add
(
c
);
}
else
if
(
c
.
Name
.
ToUpper
().
StartsWith
(
"BTN"
))
{
c
.
Visible
=
true
;
}
else
{
c
.
Visible
=
false
;
}
}
}
}
protected
void
ReadBtnDO
()
{
foreach
(
Control
labl
in
doList
)
{
IO_VALUE
value
=
IOManager
.
DOValue
(
labl
.
Name
,
equipBase
.
DeviceID
);
if
(
value
.
Equals
(
IO_VALUE
.
HIGH
))
{
labl
.
BackColor
=
Color
.
Lime
;
}
else
//else if (value.Equals(IO_VALUE.LOW))
{
labl
.
BackColor
=
labl
.
Parent
.
BackColor
;
}
}
}
protected
void
DoBtnClick
(
object
sender
)
{
Control
c
=
(
Control
)
sender
;
string
ioType
=
c
.
Name
;
IO_VALUE
value
=
IOManager
.
IOValue
(
c
.
Name
,
equipBase
.
DeviceID
);
if
(
value
.
Equals
(
IO_VALUE
.
HIGH
))
{
equipBase
.
IOMove
(
ioType
,
IO_VALUE
.
LOW
);
c
.
BackColor
=
c
.
Parent
.
BackColor
;
}
else
{
equipBase
.
IOMove
(
ioType
,
IO_VALUE
.
HIGH
);
c
.
BackColor
=
Color
.
LawnGreen
;
}
}
}
}
source/AssemblyLineClient/FrmFeedingEquip.Designer.cs
查看文件 @
90c6b43
...
...
@@ -25,7 +25,6 @@
this
.
label14
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnOpenDo
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtSlaveId
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
chbAutoRead
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
cmbWriteIO
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnWriteSingleDO
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtWriteTime
=
new
System
.
Windows
.
Forms
.
TextBox
();
...
...
@@ -35,22 +34,29 @@
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox5
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnRollerRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTopUp
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnGuding
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOutStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOLine
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnBStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnEStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOSWRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnLSWRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnLineRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOutTopCylinder
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnLocationCylinder
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTrayLocationCylinder
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnFeedSideWayCylinder
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnFeedCylinder
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupDO
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
SL_TrayLocation_After
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_OutTopCylinder_Down
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_ClampCylinder_Work
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_MoveCylinder_Give
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_LocationCylinder_Down
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_FixedCylinder_Down
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_TopCylinder_Down
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_RollerLine_Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_TopCylinder_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_FixedCylinder_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_Out_StopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_TrayLocation_Before
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_OutLine_Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_OutSideWay_Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_LocationSideWay_Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_Buffer_StopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_Line_Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_OutTopCylinder_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_Entry_StopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_LocationCylinder_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_MoveCylinder_Take
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SL_ClampCylinder_Relax
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
chbDebug
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
lblThisSta
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblStoreStatus
=
new
System
.
Windows
.
Forms
.
Label
();
...
...
@@ -105,10 +111,11 @@
this
.
chbMoveStop
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
lblName
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnScan
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox10
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
group
Box5
.
SuspendLayout
();
this
.
group
DO
.
SuspendLayout
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabPage3
.
SuspendLayout
();
this
.
groupBox6
.
SuspendLayout
();
...
...
@@ -120,6 +127,7 @@
this
.
groupBox9
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
groupBox10
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// timer1
...
...
@@ -136,16 +144,14 @@
this
.
groupBox1
.
Controls
.
Add
(
this
.
label14
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnOpenDo
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtSlaveId
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
chbAutoRead
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
cmbWriteIO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnWriteSingleDO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtWriteTime
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label5
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnCloseAll
);
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
(
685
,
396
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
685
,
408
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
5
71
,
150
);
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
5
68
,
107
);
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
...
...
@@ -154,7 +160,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
(
178
,
56
);
this
.
txtDOIndex
.
Location
=
new
System
.
Drawing
.
Point
(
178
,
65
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
23
);
...
...
@@ -165,7 +171,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
(
72
,
56
);
this
.
txtDoName
.
Location
=
new
System
.
Drawing
.
Point
(
72
,
65
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
53
,
23
);
...
...
@@ -177,7 +183,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
(
17
,
59
);
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
68
);
this
.
label17
.
Name
=
"label17"
;
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
46
,
17
);
this
.
label17
.
TabIndex
=
258
;
...
...
@@ -189,7 +195,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
(
134
,
59
);
this
.
label14
.
Location
=
new
System
.
Drawing
.
Point
(
134
,
68
);
this
.
label14
.
Name
=
"label14"
;
this
.
label14
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label14
.
TabIndex
=
257
;
...
...
@@ -201,7 +207,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
(
167
,
99
);
this
.
btnOpenDo
.
Location
=
new
System
.
Drawing
.
Point
(
397
,
18
);
this
.
btnOpenDo
.
Name
=
"btnOpenDo"
;
this
.
btnOpenDo
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnOpenDo
.
TabIndex
=
256
;
...
...
@@ -212,7 +218,7 @@
// txtSlaveId
//
this
.
txtSlaveId
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtSlaveId
.
Location
=
new
System
.
Drawing
.
Point
(
379
,
18
);
this
.
txtSlaveId
.
Location
=
new
System
.
Drawing
.
Point
(
379
,
24
);
this
.
txtSlaveId
.
MaxLength
=
10
;
this
.
txtSlaveId
.
Name
=
"txtSlaveId"
;
this
.
txtSlaveId
.
Size
=
new
System
.
Drawing
.
Size
(
12
,
23
);
...
...
@@ -220,20 +226,6 @@
this
.
txtSlaveId
.
Text
=
"0"
;
this
.
txtSlaveId
.
Visible
=
false
;
//
// chbAutoRead
//
this
.
chbAutoRead
.
AutoSize
=
true
;
this
.
chbAutoRead
.
Checked
=
true
;
this
.
chbAutoRead
.
CheckState
=
System
.
Windows
.
Forms
.
CheckState
.
Checked
;
this
.
chbAutoRead
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbAutoRead
.
Location
=
new
System
.
Drawing
.
Point
(
186
,
105
);
this
.
chbAutoRead
.
Name
=
"chbAutoRead"
;
this
.
chbAutoRead
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
21
);
this
.
chbAutoRead
.
TabIndex
=
244
;
this
.
chbAutoRead
.
Text
=
"自动读取"
;
this
.
chbAutoRead
.
UseVisualStyleBackColor
=
true
;
this
.
chbAutoRead
.
Visible
=
false
;
//
// cmbWriteIO
//
this
.
cmbWriteIO
.
DisplayMember
=
"ProName"
;
...
...
@@ -242,7 +234,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
(
17
,
18
);
this
.
cmbWriteIO
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
21
);
this
.
cmbWriteIO
.
Name
=
"cmbWriteIO"
;
this
.
cmbWriteIO
.
Size
=
new
System
.
Drawing
.
Size
(
356
,
28
);
this
.
cmbWriteIO
.
TabIndex
=
234
;
...
...
@@ -255,7 +247,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
(
279
,
9
9
);
this
.
btnWriteSingleDO
.
Location
=
new
System
.
Drawing
.
Point
(
397
,
5
9
);
this
.
btnWriteSingleDO
.
Name
=
"btnWriteSingleDO"
;
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnWriteSingleDO
.
TabIndex
=
232
;
...
...
@@ -266,7 +258,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
(
303
,
56
);
this
.
txtWriteTime
.
Location
=
new
System
.
Drawing
.
Point
(
303
,
65
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
66
,
23
);
...
...
@@ -278,7 +270,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
(
234
,
59
);
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
234
,
68
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
17
);
this
.
label5
.
TabIndex
=
237
;
...
...
@@ -290,9 +282,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
(
8
,
9
9
);
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
33
9
);
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
34
);
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
34
);
this
.
btnCloseAll
.
TabIndex
=
259
;
this
.
btnCloseAll
.
Text
=
"关闭所有DO"
;
this
.
btnCloseAll
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -305,7 +297,7 @@
this
.
groupBox4
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
457
,
1
);
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
5
48
);
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
5
17
);
this
.
groupBox4
.
TabIndex
=
104
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"DO列表"
;
...
...
@@ -322,7 +314,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
,
528
);
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
209
,
497
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
// groupBox3
...
...
@@ -332,7 +324,7 @@
this
.
groupBox3
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
1
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
5
48
);
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
5
17
);
this
.
groupBox3
.
TabIndex
=
103
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"DI列表"
;
...
...
@@ -349,231 +341,329 @@
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
,
528
);
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
209
,
497
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// group
Box5
// group
DO
//
this
.
group
Box5
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
this
.
group
DO
.
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
.
btnRollerRun
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnTopUp
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnGuding
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnOutStopDown
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnOLine
);
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
.
btnOutTopCylinder
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnLocationCylinder
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnTrayLocationCylinder
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnFeedSideWayCylinder
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnFeedCylinder
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
685
,
2
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
543
,
388
);
this
.
groupBox5
.
TabIndex
=
255
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
Text
=
"IO操作测试"
;
//
// btnRollerRun
//
this
.
btnRollerRun
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnRollerRun
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnRollerRun
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnRollerRun
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
140
);
this
.
btnRollerRun
.
Name
=
"btnRollerRun"
;
this
.
btnRollerRun
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnRollerRun
.
TabIndex
=
275
;
this
.
btnRollerRun
.
Text
=
"SL过渡滚筒运转"
;
this
.
btnRollerRun
.
UseVisualStyleBackColor
=
false
;
this
.
btnRollerRun
.
Click
+=
new
System
.
EventHandler
(
this
.
btnRollerRun_Click
);
//
// btnTopUp
//
this
.
btnTopUp
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnTopUp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTopUp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopUp
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
218
);
this
.
btnTopUp
.
Name
=
"btnTopUp"
;
this
.
btnTopUp
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnTopUp
.
TabIndex
=
274
;
this
.
btnTopUp
.
Text
=
"SL顶升上升"
;
this
.
btnTopUp
.
UseVisualStyleBackColor
=
false
;
this
.
btnTopUp
.
Click
+=
new
System
.
EventHandler
(
this
.
btnTopUp_Click
);
//
// btnGuding
//
this
.
btnGuding
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnGuding
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnGuding
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnGuding
.
Location
=
new
System
.
Drawing
.
Point
(
167
,
179
);
this
.
btnGuding
.
Name
=
"btnGuding"
;
this
.
btnGuding
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnGuding
.
TabIndex
=
273
;
this
.
btnGuding
.
Text
=
"SL固定气缸上升"
;
this
.
btnGuding
.
UseVisualStyleBackColor
=
false
;
this
.
btnGuding
.
Click
+=
new
System
.
EventHandler
(
this
.
btnGuding_Click
);
//
// btnOutStopDown
//
this
.
btnOutStopDown
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnOutStopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOutStopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOutStopDown
.
Location
=
new
System
.
Drawing
.
Point
(
167
,
140
);
this
.
btnOutStopDown
.
Name
=
"btnOutStopDown"
;
this
.
btnOutStopDown
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnOutStopDown
.
TabIndex
=
272
;
this
.
btnOutStopDown
.
Text
=
"SL出料阻挡下降"
;
this
.
btnOutStopDown
.
UseVisualStyleBackColor
=
false
;
this
.
btnOutStopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOutStopDown_Click
);
//
// btnOLine
//
this
.
btnOLine
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnOLine
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOLine
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOLine
.
Location
=
new
System
.
Drawing
.
Point
(
167
,
23
);
this
.
btnOLine
.
Name
=
"btnOLine"
;
this
.
btnOLine
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnOLine
.
TabIndex
=
268
;
this
.
btnOLine
.
Text
=
"SL出料线体运转"
;
this
.
btnOLine
.
UseVisualStyleBackColor
=
false
;
this
.
btnOLine
.
Visible
=
false
;
this
.
btnOLine
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOLine_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
(
167
,
101
);
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
);
//
// 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
(
8
,
101
);
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
);
//
// 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
(
167
,
62
);
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
);
//
// 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
(
8
,
62
);
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
);
//
// 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
(
8
,
23
);
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
);
//
// btnOutTopCylinder
//
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
(
167
,
308
);
this
.
btnOutTopCylinder
.
Name
=
"btnOutTopCylinder"
;
this
.
btnOutTopCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnOutTopCylinder
.
TabIndex
=
258
;
this
.
btnOutTopCylinder
.
Text
=
"SL出口顶升上升"
;
this
.
btnOutTopCylinder
.
UseVisualStyleBackColor
=
false
;
this
.
btnOutTopCylinder
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOutTopCylinder_Click
);
//
// btnLocationCylinder
//
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
(
8
,
179
);
this
.
btnLocationCylinder
.
Name
=
"btnLocationCylinder"
;
this
.
btnLocationCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnLocationCylinder
.
TabIndex
=
256
;
this
.
btnLocationCylinder
.
Text
=
"SL定位气缸上升"
;
this
.
btnLocationCylinder
.
UseVisualStyleBackColor
=
false
;
this
.
btnLocationCylinder
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLocationCylinder_Click
);
//
// btnTrayLocationCylinder
//
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
(
167
,
218
);
this
.
btnTrayLocationCylinder
.
Name
=
"btnTrayLocationCylinder"
;
this
.
btnTrayLocationCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnTrayLocationCylinder
.
TabIndex
=
255
;
this
.
btnTrayLocationCylinder
.
Text
=
"SL升降盘定位气缸前进"
;
this
.
btnTrayLocationCylinder
.
UseVisualStyleBackColor
=
false
;
this
.
btnTrayLocationCylinder
.
Click
+=
new
System
.
EventHandler
(
this
.
btnTrayLocationCylinder_Click
);
//
// btnFeedSideWayCylinder
//
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
(
8
,
257
);
this
.
btnFeedSideWayCylinder
.
Name
=
"btnFeedSideWayCylinder"
;
this
.
btnFeedSideWayCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnFeedSideWayCylinder
.
TabIndex
=
252
;
this
.
btnFeedSideWayCylinder
.
Text
=
"上料横移气缸取料端"
;
this
.
btnFeedSideWayCylinder
.
UseVisualStyleBackColor
=
false
;
this
.
btnFeedSideWayCylinder
.
Click
+=
new
System
.
EventHandler
(
this
.
btnFeedSideWayCylinder_Click
);
//
// btnFeedCylinder
//
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
(
167
,
257
);
this
.
btnFeedCylinder
.
Name
=
"btnFeedCylinder"
;
this
.
btnFeedCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
34
);
this
.
btnFeedCylinder
.
TabIndex
=
249
;
this
.
btnFeedCylinder
.
Text
=
"夹料气缸放松"
;
this
.
btnFeedCylinder
.
UseVisualStyleBackColor
=
false
;
this
.
btnFeedCylinder
.
Click
+=
new
System
.
EventHandler
(
this
.
btnFeedCylinder_Click
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_TrayLocation_After
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_OutTopCylinder_Down
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_ClampCylinder_Work
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_MoveCylinder_Give
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_LocationCylinder_Down
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_FixedCylinder_Down
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_TopCylinder_Down
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_RollerLine_Run
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_TopCylinder_Up
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_FixedCylinder_Up
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_Out_StopDown
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_TrayLocation_Before
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_OutLine_Run
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_OutSideWay_Run
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_LocationSideWay_Run
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_Buffer_StopDown
);
this
.
groupDO
.
Controls
.
Add
(
this
.
btnCloseAll
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_Line_Run
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_OutTopCylinder_Up
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_Entry_StopDown
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_LocationCylinder_Up
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_MoveCylinder_Take
);
this
.
groupDO
.
Controls
.
Add
(
this
.
SL_ClampCylinder_Relax
);
this
.
groupDO
.
Location
=
new
System
.
Drawing
.
Point
(
685
,
4
);
this
.
groupDO
.
Name
=
"groupDO"
;
this
.
groupDO
.
Size
=
new
System
.
Drawing
.
Size
(
568
,
398
);
this
.
groupDO
.
TabIndex
=
255
;
this
.
groupDO
.
TabStop
=
false
;
this
.
groupDO
.
Text
=
"IO操作测试"
;
//
// SL_TrayLocation_After
//
this
.
SL_TrayLocation_After
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_TrayLocation_After
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_TrayLocation_After
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_TrayLocation_After
.
Location
=
new
System
.
Drawing
.
Point
(
183
,
339
);
this
.
SL_TrayLocation_After
.
Name
=
"SL_TrayLocation_After"
;
this
.
SL_TrayLocation_After
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_TrayLocation_After
.
TabIndex
=
282
;
this
.
SL_TrayLocation_After
.
Text
=
"升降盘定位气缸后退"
;
this
.
SL_TrayLocation_After
.
UseVisualStyleBackColor
=
false
;
this
.
SL_TrayLocation_After
.
Click
+=
new
System
.
EventHandler
(
this
.
SL_TrayLocation_After_Click
);
//
// SL_OutTopCylinder_Down
//
this
.
SL_OutTopCylinder_Down
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_OutTopCylinder_Down
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_OutTopCylinder_Down
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_OutTopCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
284
);
this
.
SL_OutTopCylinder_Down
.
Name
=
"SL_OutTopCylinder_Down"
;
this
.
SL_OutTopCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_OutTopCylinder_Down
.
TabIndex
=
281
;
this
.
SL_OutTopCylinder_Down
.
Text
=
"出口顶升下降 ↓"
;
this
.
SL_OutTopCylinder_Down
.
UseVisualStyleBackColor
=
false
;
this
.
SL_OutTopCylinder_Down
.
Click
+=
new
System
.
EventHandler
(
this
.
SL_OutTopCylinder_Down_Click
);
//
// SL_ClampCylinder_Work
//
this
.
SL_ClampCylinder_Work
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_ClampCylinder_Work
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_ClampCylinder_Work
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_ClampCylinder_Work
.
Location
=
new
System
.
Drawing
.
Point
(
183
,
284
);
this
.
SL_ClampCylinder_Work
.
Name
=
"SL_ClampCylinder_Work"
;
this
.
SL_ClampCylinder_Work
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_ClampCylinder_Work
.
TabIndex
=
280
;
this
.
SL_ClampCylinder_Work
.
Text
=
"夹料气缸夹紧"
;
this
.
SL_ClampCylinder_Work
.
UseVisualStyleBackColor
=
false
;
this
.
SL_ClampCylinder_Work
.
Click
+=
new
System
.
EventHandler
(
this
.
SL_ClampCylinder_Work_Click
);
//
// SL_MoveCylinder_Give
//
this
.
SL_MoveCylinder_Give
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_MoveCylinder_Give
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_MoveCylinder_Give
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_MoveCylinder_Give
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
284
);
this
.
SL_MoveCylinder_Give
.
Name
=
"SL_MoveCylinder_Give"
;
this
.
SL_MoveCylinder_Give
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_MoveCylinder_Give
.
TabIndex
=
279
;
this
.
SL_MoveCylinder_Give
.
Text
=
"横移气缸放料"
;
this
.
SL_MoveCylinder_Give
.
UseVisualStyleBackColor
=
false
;
this
.
SL_MoveCylinder_Give
.
Click
+=
new
System
.
EventHandler
(
this
.
SL_MoveCylinder_Give_Click
);
//
// SL_LocationCylinder_Down
//
this
.
SL_LocationCylinder_Down
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_LocationCylinder_Down
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_LocationCylinder_Down
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_LocationCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
193
);
this
.
SL_LocationCylinder_Down
.
Name
=
"SL_LocationCylinder_Down"
;
this
.
SL_LocationCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_LocationCylinder_Down
.
TabIndex
=
278
;
this
.
SL_LocationCylinder_Down
.
Text
=
"定位气缸下降 ↓"
;
this
.
SL_LocationCylinder_Down
.
UseVisualStyleBackColor
=
false
;
this
.
SL_LocationCylinder_Down
.
Click
+=
new
System
.
EventHandler
(
this
.
SL_LocationCylinder_Down_Click
);
//
// SL_FixedCylinder_Down
//
this
.
SL_FixedCylinder_Down
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_FixedCylinder_Down
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_FixedCylinder_Down
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_FixedCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
183
,
193
);
this
.
SL_FixedCylinder_Down
.
Name
=
"SL_FixedCylinder_Down"
;
this
.
SL_FixedCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_FixedCylinder_Down
.
TabIndex
=
277
;
this
.
SL_FixedCylinder_Down
.
Text
=
"固定气缸下降 ↓"
;
this
.
SL_FixedCylinder_Down
.
UseVisualStyleBackColor
=
false
;
this
.
SL_FixedCylinder_Down
.
Click
+=
new
System
.
EventHandler
(
this
.
SL_FixedCylinder_Down_Click
);
//
// SL_TopCylinder_Down
//
this
.
SL_TopCylinder_Down
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_TopCylinder_Down
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_TopCylinder_Down
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_TopCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
193
);
this
.
SL_TopCylinder_Down
.
Name
=
"SL_TopCylinder_Down"
;
this
.
SL_TopCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_TopCylinder_Down
.
TabIndex
=
276
;
this
.
SL_TopCylinder_Down
.
Text
=
"顶升下降 ↓"
;
this
.
SL_TopCylinder_Down
.
UseVisualStyleBackColor
=
false
;
this
.
SL_TopCylinder_Down
.
Click
+=
new
System
.
EventHandler
(
this
.
SL_TopCylinder_Down_Click
);
//
// SL_RollerLine_Run
//
this
.
SL_RollerLine_Run
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_RollerLine_Run
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_RollerLine_Run
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_RollerLine_Run
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
60
);
this
.
SL_RollerLine_Run
.
Name
=
"SL_RollerLine_Run"
;
this
.
SL_RollerLine_Run
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_RollerLine_Run
.
TabIndex
=
275
;
this
.
SL_RollerLine_Run
.
Text
=
"过渡滚筒运转->>"
;
this
.
SL_RollerLine_Run
.
UseVisualStyleBackColor
=
false
;
this
.
SL_RollerLine_Run
.
Click
+=
new
System
.
EventHandler
(
this
.
btnRollerRun_Click
);
//
// SL_TopCylinder_Up
//
this
.
SL_TopCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_TopCylinder_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_TopCylinder_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_TopCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
153
);
this
.
SL_TopCylinder_Up
.
Name
=
"SL_TopCylinder_Up"
;
this
.
SL_TopCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_TopCylinder_Up
.
TabIndex
=
274
;
this
.
SL_TopCylinder_Up
.
Text
=
"顶升上升 ↑"
;
this
.
SL_TopCylinder_Up
.
UseVisualStyleBackColor
=
false
;
this
.
SL_TopCylinder_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnTopUp_Click
);
//
// SL_FixedCylinder_Up
//
this
.
SL_FixedCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_FixedCylinder_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_FixedCylinder_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_FixedCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
183
,
153
);
this
.
SL_FixedCylinder_Up
.
Name
=
"SL_FixedCylinder_Up"
;
this
.
SL_FixedCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_FixedCylinder_Up
.
TabIndex
=
273
;
this
.
SL_FixedCylinder_Up
.
Text
=
"固定气缸上升 ↑"
;
this
.
SL_FixedCylinder_Up
.
UseVisualStyleBackColor
=
false
;
this
.
SL_FixedCylinder_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnGuding_Click
);
//
// SL_Out_StopDown
//
this
.
SL_Out_StopDown
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_Out_StopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_Out_StopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_Out_StopDown
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
102
);
this
.
SL_Out_StopDown
.
Name
=
"SL_Out_StopDown"
;
this
.
SL_Out_StopDown
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_Out_StopDown
.
TabIndex
=
272
;
this
.
SL_Out_StopDown
.
Text
=
"▉ 出料阻挡下降"
;
this
.
SL_Out_StopDown
.
UseVisualStyleBackColor
=
false
;
this
.
SL_Out_StopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOutStopDown_Click
);
//
// SL_TrayLocation_Before
//
this
.
SL_TrayLocation_Before
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_TrayLocation_Before
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_TrayLocation_Before
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_TrayLocation_Before
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
339
);
this
.
SL_TrayLocation_Before
.
Name
=
"SL_TrayLocation_Before"
;
this
.
SL_TrayLocation_Before
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_TrayLocation_Before
.
TabIndex
=
255
;
this
.
SL_TrayLocation_Before
.
Text
=
"升降盘定位气缸前进"
;
this
.
SL_TrayLocation_Before
.
UseVisualStyleBackColor
=
false
;
this
.
SL_TrayLocation_Before
.
Click
+=
new
System
.
EventHandler
(
this
.
btnTrayLocationCylinder_Click
);
//
// SL_OutLine_Run
//
this
.
SL_OutLine_Run
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_OutLine_Run
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_OutLine_Run
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_OutLine_Run
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
22
);
this
.
SL_OutLine_Run
.
Name
=
"SL_OutLine_Run"
;
this
.
SL_OutLine_Run
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_OutLine_Run
.
TabIndex
=
268
;
this
.
SL_OutLine_Run
.
Text
=
"出料线体运转->>"
;
this
.
SL_OutLine_Run
.
UseVisualStyleBackColor
=
false
;
this
.
SL_OutLine_Run
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOLine_Click
);
//
// SL_OutSideWay_Run
//
this
.
SL_OutSideWay_Run
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_OutSideWay_Run
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_OutSideWay_Run
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_OutSideWay_Run
.
Location
=
new
System
.
Drawing
.
Point
(
183
,
102
);
this
.
SL_OutSideWay_Run
.
Name
=
"SL_OutSideWay_Run"
;
this
.
SL_OutSideWay_Run
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_OutSideWay_Run
.
TabIndex
=
265
;
this
.
SL_OutSideWay_Run
.
Text
=
"出口横移电机运转->>"
;
this
.
SL_OutSideWay_Run
.
UseVisualStyleBackColor
=
false
;
this
.
SL_OutSideWay_Run
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOSWRun_Click
);
//
// SL_LocationSideWay_Run
//
this
.
SL_LocationSideWay_Run
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_LocationSideWay_Run
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_LocationSideWay_Run
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_LocationSideWay_Run
.
Location
=
new
System
.
Drawing
.
Point
(
183
,
62
);
this
.
SL_LocationSideWay_Run
.
Name
=
"SL_LocationSideWay_Run"
;
this
.
SL_LocationSideWay_Run
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_LocationSideWay_Run
.
TabIndex
=
264
;
this
.
SL_LocationSideWay_Run
.
Text
=
"定位横移电机运转->>"
;
this
.
SL_LocationSideWay_Run
.
UseVisualStyleBackColor
=
false
;
this
.
SL_LocationSideWay_Run
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLSWRun_Click
);
//
// SL_Buffer_StopDown
//
this
.
SL_Buffer_StopDown
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_Buffer_StopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_Buffer_StopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_Buffer_StopDown
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
62
);
this
.
SL_Buffer_StopDown
.
Name
=
"SL_Buffer_StopDown"
;
this
.
SL_Buffer_StopDown
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_Buffer_StopDown
.
TabIndex
=
267
;
this
.
SL_Buffer_StopDown
.
Text
=
"▉ 缓冲阻挡下降"
;
this
.
SL_Buffer_StopDown
.
UseVisualStyleBackColor
=
false
;
this
.
SL_Buffer_StopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnBStopDown_Click
);
//
// SL_Line_Run
//
this
.
SL_Line_Run
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_Line_Run
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_Line_Run
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_Line_Run
.
Location
=
new
System
.
Drawing
.
Point
(
183
,
22
);
this
.
SL_Line_Run
.
Name
=
"SL_Line_Run"
;
this
.
SL_Line_Run
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_Line_Run
.
TabIndex
=
263
;
this
.
SL_Line_Run
.
Text
=
"进料线体运转->>"
;
this
.
SL_Line_Run
.
UseVisualStyleBackColor
=
false
;
this
.
SL_Line_Run
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLineRun_Click
);
//
// SL_OutTopCylinder_Up
//
this
.
SL_OutTopCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_OutTopCylinder_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_OutTopCylinder_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_OutTopCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
244
);
this
.
SL_OutTopCylinder_Up
.
Name
=
"SL_OutTopCylinder_Up"
;
this
.
SL_OutTopCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_OutTopCylinder_Up
.
TabIndex
=
258
;
this
.
SL_OutTopCylinder_Up
.
Text
=
"出口顶升上升 ↑"
;
this
.
SL_OutTopCylinder_Up
.
UseVisualStyleBackColor
=
false
;
this
.
SL_OutTopCylinder_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOutTopCylinder_Click
);
//
// SL_Entry_StopDown
//
this
.
SL_Entry_StopDown
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_Entry_StopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_Entry_StopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_Entry_StopDown
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
22
);
this
.
SL_Entry_StopDown
.
Name
=
"SL_Entry_StopDown"
;
this
.
SL_Entry_StopDown
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_Entry_StopDown
.
TabIndex
=
266
;
this
.
SL_Entry_StopDown
.
Text
=
"▉ 进料阻挡下降"
;
this
.
SL_Entry_StopDown
.
UseVisualStyleBackColor
=
false
;
this
.
SL_Entry_StopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnEStopDown_Click
);
//
// SL_LocationCylinder_Up
//
this
.
SL_LocationCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_LocationCylinder_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_LocationCylinder_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_LocationCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
153
);
this
.
SL_LocationCylinder_Up
.
Name
=
"SL_LocationCylinder_Up"
;
this
.
SL_LocationCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_LocationCylinder_Up
.
TabIndex
=
256
;
this
.
SL_LocationCylinder_Up
.
Text
=
"定位气缸上升 ↑"
;
this
.
SL_LocationCylinder_Up
.
UseVisualStyleBackColor
=
false
;
this
.
SL_LocationCylinder_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLocationCylinder_Click
);
//
// SL_MoveCylinder_Take
//
this
.
SL_MoveCylinder_Take
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_MoveCylinder_Take
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_MoveCylinder_Take
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_MoveCylinder_Take
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
244
);
this
.
SL_MoveCylinder_Take
.
Name
=
"SL_MoveCylinder_Take"
;
this
.
SL_MoveCylinder_Take
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_MoveCylinder_Take
.
TabIndex
=
252
;
this
.
SL_MoveCylinder_Take
.
Text
=
"横移气缸取料"
;
this
.
SL_MoveCylinder_Take
.
UseVisualStyleBackColor
=
false
;
this
.
SL_MoveCylinder_Take
.
Click
+=
new
System
.
EventHandler
(
this
.
btnFeedSideWayCylinder_Click
);
//
// SL_ClampCylinder_Relax
//
this
.
SL_ClampCylinder_Relax
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_ClampCylinder_Relax
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
SL_ClampCylinder_Relax
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
SL_ClampCylinder_Relax
.
Location
=
new
System
.
Drawing
.
Point
(
183
,
244
);
this
.
SL_ClampCylinder_Relax
.
Name
=
"SL_ClampCylinder_Relax"
;
this
.
SL_ClampCylinder_Relax
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_ClampCylinder_Relax
.
TabIndex
=
249
;
this
.
SL_ClampCylinder_Relax
.
Text
=
"夹料气缸放松"
;
this
.
SL_ClampCylinder_Relax
.
UseVisualStyleBackColor
=
false
;
this
.
SL_ClampCylinder_Relax
.
Click
+=
new
System
.
EventHandler
(
this
.
btnFeedCylinder_Click
);
//
// chbDebug
//
...
...
@@ -648,10 +738,10 @@
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage3
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage1
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage2
);
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
52
);
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
78
);
this
.
tabControl1
.
Name
=
"tabControl1"
;
this
.
tabControl1
.
SelectedIndex
=
0
;
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
1270
,
5
83
);
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
1270
,
5
52
);
this
.
tabControl1
.
TabIndex
=
257
;
//
// tabPage3
...
...
@@ -659,7 +749,7 @@
this
.
tabPage3
.
Controls
.
Add
(
this
.
groupBox6
);
this
.
tabPage3
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage3
.
Name
=
"tabPage3"
;
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
1262
,
5
53
);
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
1262
,
5
22
);
this
.
tabPage3
.
TabIndex
=
2
;
this
.
tabPage3
.
Text
=
"状态信息"
;
this
.
tabPage3
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -753,7 +843,7 @@
// tabPage1
//
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
group
Box5
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
group
DO
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox7
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox8
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox3
);
...
...
@@ -761,7 +851,7 @@
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
(
1262
,
5
53
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
1262
,
5
22
);
this
.
tabPage1
.
TabIndex
=
0
;
this
.
tabPage1
.
Text
=
" IO列表 "
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -773,7 +863,7 @@
this
.
groupBox7
.
Controls
.
Add
(
this
.
tableLayoutPanel3
);
this
.
groupBox7
.
Location
=
new
System
.
Drawing
.
Point
(
232
,
1
);
this
.
groupBox7
.
Name
=
"groupBox7"
;
this
.
groupBox7
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
5
48
);
this
.
groupBox7
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
5
17
);
this
.
groupBox7
.
TabIndex
=
279
;
this
.
groupBox7
.
TabStop
=
false
;
this
.
groupBox7
.
Text
=
"DI列表"
;
...
...
@@ -790,7 +880,7 @@
this
.
tableLayoutPanel3
.
RowCount
=
2
;
this
.
tableLayoutPanel3
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel3
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel3
.
Size
=
new
System
.
Drawing
.
Size
(
209
,
528
);
this
.
tableLayoutPanel3
.
Size
=
new
System
.
Drawing
.
Size
(
209
,
497
);
this
.
tableLayoutPanel3
.
TabIndex
=
102
;
//
// groupBox8
...
...
@@ -800,7 +890,7 @@
this
.
groupBox8
.
Controls
.
Add
(
this
.
tableLayoutPanel4
);
this
.
groupBox8
.
Location
=
new
System
.
Drawing
.
Point
(
685
,
51
);
this
.
groupBox8
.
Name
=
"groupBox8"
;
this
.
groupBox8
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
3
96
);
this
.
groupBox8
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
3
65
);
this
.
groupBox8
.
TabIndex
=
280
;
this
.
groupBox8
.
TabStop
=
false
;
this
.
groupBox8
.
Text
=
"DO列表"
;
...
...
@@ -818,7 +908,7 @@
this
.
tableLayoutPanel4
.
RowCount
=
2
;
this
.
tableLayoutPanel4
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel4
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel4
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
3
76
);
this
.
tableLayoutPanel4
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
3
45
);
this
.
tableLayoutPanel4
.
TabIndex
=
103
;
//
// tabPage2
...
...
@@ -830,7 +920,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
(
1262
,
5
53
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
1262
,
5
22
);
this
.
tabPage2
.
TabIndex
=
1
;
this
.
tabPage2
.
Text
=
" 伺服信息 "
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -998,7 +1088,7 @@
this
.
btnBSave
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnBSave
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnBSave
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnBSave
.
Location
=
new
System
.
Drawing
.
Point
(
25
6
,
67
);
this
.
btnBSave
.
Location
=
new
System
.
Drawing
.
Point
(
25
8
,
67
);
this
.
btnBSave
.
Name
=
"btnBSave"
;
this
.
btnBSave
.
Size
=
new
System
.
Drawing
.
Size
(
163
,
34
);
this
.
btnBSave
.
TabIndex
=
310
;
...
...
@@ -1012,7 +1102,7 @@
this
.
txtBp1
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtBp1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtBp1
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtBp1
.
Location
=
new
System
.
Drawing
.
Point
(
180
,
30
);
this
.
txtBp1
.
Location
=
new
System
.
Drawing
.
Point
(
180
,
29
);
this
.
txtBp1
.
MaxLength
=
12
;
this
.
txtBp1
.
Name
=
"txtBp1"
;
this
.
txtBp1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1027,7 +1117,7 @@
this
.
btnBP1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnBP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnBP1
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnBP1
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
2
6
);
this
.
btnBP1
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
2
5
);
this
.
btnBP1
.
Name
=
"btnBP1"
;
this
.
btnBP1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnBP1
.
Size
=
new
System
.
Drawing
.
Size
(
163
,
34
);
...
...
@@ -1043,7 +1133,7 @@
this
.
btnBP2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnBP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnBP2
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnBP2
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
6
6
);
this
.
btnBP2
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
6
7
);
this
.
btnBP2
.
Name
=
"btnBP2"
;
this
.
btnBP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnBP2
.
Size
=
new
System
.
Drawing
.
Size
(
163
,
34
);
...
...
@@ -1058,7 +1148,7 @@
this
.
txtBP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtBP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtBP2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtBP2
.
Location
=
new
System
.
Drawing
.
Point
(
180
,
7
0
);
this
.
txtBP2
.
Location
=
new
System
.
Drawing
.
Point
(
180
,
7
1
);
this
.
txtBP2
.
MaxLength
=
12
;
this
.
txtBP2
.
Name
=
"txtBP2"
;
this
.
txtBP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1084,9 +1174,9 @@
this
.
groupBox2
.
Controls
.
Add
(
this
.
label4
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
btnMoveto
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
txtSizePosition
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
587
,
12
6
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
587
,
12
3
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
531
,
14
3
);
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
531
,
14
9
);
this
.
groupBox2
.
TabIndex
=
218
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
Text
=
"移栽升降轴位置配置"
;
...
...
@@ -1097,7 +1187,7 @@
this
.
txtUpdownP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpdownP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpdownP3
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpdownP3
.
Location
=
new
System
.
Drawing
.
Point
(
424
,
6
1
);
this
.
txtUpdownP3
.
Location
=
new
System
.
Drawing
.
Point
(
424
,
6
5
);
this
.
txtUpdownP3
.
MaxLength
=
12
;
this
.
txtUpdownP3
.
Name
=
"txtUpdownP3"
;
this
.
txtUpdownP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1112,7 +1202,7 @@
this
.
btnUpdownP3
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpdownP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpdownP3
.
ForeColor
=
System
.
Drawing
.
Color
.
Blue
;
this
.
btnUpdownP3
.
Location
=
new
System
.
Drawing
.
Point
(
258
,
57
);
this
.
btnUpdownP3
.
Location
=
new
System
.
Drawing
.
Point
(
258
,
61
);
this
.
btnUpdownP3
.
Name
=
"btnUpdownP3"
;
this
.
btnUpdownP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpdownP3
.
Size
=
new
System
.
Drawing
.
Size
(
163
,
34
);
...
...
@@ -1126,7 +1216,7 @@
this
.
btnSave
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnSave
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnSave
.
ForeColor
=
System
.
Drawing
.
Color
.
Blue
;
this
.
btnSave
.
Location
=
new
System
.
Drawing
.
Point
(
152
,
95
);
this
.
btnSave
.
Location
=
new
System
.
Drawing
.
Point
(
152
,
104
);
this
.
btnSave
.
Name
=
"btnSave"
;
this
.
btnSave
.
Size
=
new
System
.
Drawing
.
Size
(
163
,
34
);
this
.
btnSave
.
TabIndex
=
310
;
...
...
@@ -1194,7 +1284,7 @@
this
.
btnMoveto
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnMoveto
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnMoveto
.
ForeColor
=
System
.
Drawing
.
Color
.
Blue
;
this
.
btnMoveto
.
Location
=
new
System
.
Drawing
.
Point
(
16
,
57
);
this
.
btnMoveto
.
Location
=
new
System
.
Drawing
.
Point
(
16
,
61
);
this
.
btnMoveto
.
Name
=
"btnMoveto"
;
this
.
btnMoveto
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnMoveto
.
Size
=
new
System
.
Drawing
.
Size
(
163
,
34
);
...
...
@@ -1209,7 +1299,7 @@
this
.
txtSizePosition
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtSizePosition
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtSizePosition
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtSizePosition
.
Location
=
new
System
.
Drawing
.
Point
(
182
,
6
1
);
this
.
txtSizePosition
.
Location
=
new
System
.
Drawing
.
Point
(
182
,
6
5
);
this
.
txtSizePosition
.
MaxLength
=
12
;
this
.
txtSizePosition
.
Name
=
"txtSizePosition"
;
this
.
txtSizePosition
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1230,9 +1320,9 @@
this
.
panel1
.
Controls
.
Add
(
this
.
lblStoreStatus
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnStart
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnStop
);
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
2
,
1
);
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
14
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
126
9
,
47
);
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
126
5
,
47
);
this
.
panel1
.
TabIndex
=
258
;
//
// btnClose
...
...
@@ -1297,12 +1387,22 @@
this
.
btnScan
.
UseVisualStyleBackColor
=
false
;
this
.
btnScan
.
Click
+=
new
System
.
EventHandler
(
this
.
btnScan_Click
);
//
// groupBox10
//
this
.
groupBox10
.
Controls
.
Add
(
this
.
panel1
);
this
.
groupBox10
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
2
);
this
.
groupBox10
.
Name
=
"groupBox10"
;
this
.
groupBox10
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
groupBox10
.
Size
=
new
System
.
Drawing
.
Size
(
1270
,
71
);
this
.
groupBox10
.
TabIndex
=
0
;
this
.
groupBox10
.
TabStop
=
false
;
//
// FrmFeedingEquip
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1281
,
639
);
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
Controls
.
Add
(
this
.
groupBox10
);
this
.
Controls
.
Add
(
this
.
tabControl1
);
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
MaximizeBox
=
false
;
...
...
@@ -1316,7 +1416,7 @@
this
.
groupBox1
.
PerformLayout
();
this
.
groupBox4
.
ResumeLayout
(
false
);
this
.
groupBox3
.
ResumeLayout
(
false
);
this
.
group
Box5
.
ResumeLayout
(
false
);
this
.
group
DO
.
ResumeLayout
(
false
);
this
.
tabControl1
.
ResumeLayout
(
false
);
this
.
tabPage3
.
ResumeLayout
(
false
);
this
.
groupBox6
.
ResumeLayout
(
false
);
...
...
@@ -1333,6 +1433,7 @@
this
.
groupBox2
.
PerformLayout
();
this
.
panel1
.
ResumeLayout
(
false
);
this
.
panel1
.
PerformLayout
();
this
.
groupBox10
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
}
...
...
@@ -1349,19 +1450,18 @@
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
Button
btnWriteSingleDO
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbWriteIO
;
private
System
.
Windows
.
Forms
.
CheckBox
chbAutoRead
;
private
System
.
Windows
.
Forms
.
TextBox
txtSlaveId
;
private
System
.
Windows
.
Forms
.
GroupBox
group
Box5
;
private
System
.
Windows
.
Forms
.
Button
btnTrayLocationCylinder
;
private
System
.
Windows
.
Forms
.
Button
btnFeedSideWayCylinder
;
private
System
.
Windows
.
Forms
.
Button
btnFeedCylinder
;
private
System
.
Windows
.
Forms
.
GroupBox
group
DO
;
private
System
.
Windows
.
Forms
.
Button
SL_TrayLocation_Before
;
private
System
.
Windows
.
Forms
.
Button
SL_MoveCylinder_Take
;
private
System
.
Windows
.
Forms
.
Button
SL_ClampCylinder_Relax
;
private
System
.
Windows
.
Forms
.
Label
lblThisSta
;
private
System
.
Windows
.
Forms
.
Label
lblStoreStatus
;
private
System
.
Windows
.
Forms
.
Button
btnStart
;
private
System
.
Windows
.
Forms
.
Button
btnStop
;
private
System
.
Windows
.
Forms
.
CheckBox
chbDebug
;
private
System
.
Windows
.
Forms
.
Button
btnOutTopCylinder
;
private
System
.
Windows
.
Forms
.
Button
btnLocationCylinder
;
private
System
.
Windows
.
Forms
.
Button
SL_OutTopCylinder_Up
;
private
System
.
Windows
.
Forms
.
Button
SL_LocationCylinder_Up
;
private
System
.
Windows
.
Forms
.
TabControl
tabControl1
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage1
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage2
;
...
...
@@ -1387,11 +1487,11 @@
private
System
.
Windows
.
Forms
.
TextBox
txtDoName
;
private
System
.
Windows
.
Forms
.
Label
label17
;
private
System
.
Windows
.
Forms
.
Label
label14
;
private
System
.
Windows
.
Forms
.
Button
btnE
StopDown
;
private
System
.
Windows
.
Forms
.
Button
btnOSW
Run
;
private
System
.
Windows
.
Forms
.
Button
btnLine
Run
;
private
System
.
Windows
.
Forms
.
Button
btnLSW
Run
;
private
System
.
Windows
.
Forms
.
Button
btnB
StopDown
;
private
System
.
Windows
.
Forms
.
Button
SL_Entry_
StopDown
;
private
System
.
Windows
.
Forms
.
Button
SL_OutSideWay_
Run
;
private
System
.
Windows
.
Forms
.
Button
SL_Line_
Run
;
private
System
.
Windows
.
Forms
.
Button
SL_LocationSideWay_
Run
;
private
System
.
Windows
.
Forms
.
Button
SL_Buffer_
StopDown
;
private
AxisMoveControl
axisMoveControl1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox9
;
internal
System
.
Windows
.
Forms
.
Button
btnBP3
;
...
...
@@ -1407,11 +1507,11 @@
internal
System
.
Windows
.
Forms
.
TextBox
txtUpdownP3
;
internal
System
.
Windows
.
Forms
.
Button
btnUpdownP3
;
private
System
.
Windows
.
Forms
.
CheckBox
chbMoveStop
;
private
System
.
Windows
.
Forms
.
Button
btnOLine
;
private
System
.
Windows
.
Forms
.
Button
SL_OutLine_Run
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage3
;
private
System
.
Windows
.
Forms
.
Label
lblwidth
;
private
System
.
Windows
.
Forms
.
CheckBox
chbBoxSendShelf
;
private
System
.
Windows
.
Forms
.
Button
btnOut
StopDown
;
private
System
.
Windows
.
Forms
.
Button
SL_Out_
StopDown
;
private
System
.
Windows
.
Forms
.
Button
btnUpdateShelf
;
private
System
.
Windows
.
Forms
.
TextBox
txtShelfID
;
private
System
.
Windows
.
Forms
.
GroupBox
groupDetial
;
...
...
@@ -1424,9 +1524,17 @@
private
System
.
Windows
.
Forms
.
ComboBox
cmbDSize
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
Button
btnClose
;
private
System
.
Windows
.
Forms
.
Button
btnGuding
;
private
System
.
Windows
.
Forms
.
Button
btnTopUp
;
private
System
.
Windows
.
Forms
.
Button
btnRollerRun
;
private
System
.
Windows
.
Forms
.
Button
SL_FixedCylinder_Up
;
private
System
.
Windows
.
Forms
.
Button
SL_TopCylinder_Up
;
private
System
.
Windows
.
Forms
.
Button
SL_RollerLine_Run
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox10
;
private
System
.
Windows
.
Forms
.
Button
SL_LocationCylinder_Down
;
private
System
.
Windows
.
Forms
.
Button
SL_FixedCylinder_Down
;
private
System
.
Windows
.
Forms
.
Button
SL_TopCylinder_Down
;
private
System
.
Windows
.
Forms
.
Button
SL_MoveCylinder_Give
;
private
System
.
Windows
.
Forms
.
Button
SL_ClampCylinder_Work
;
private
System
.
Windows
.
Forms
.
Button
SL_OutTopCylinder_Down
;
private
System
.
Windows
.
Forms
.
Button
SL_TrayLocation_After
;
}
}
source/AssemblyLineClient/FrmFeedingEquip.cs
查看文件 @
90c6b43
...
...
@@ -111,9 +111,10 @@ namespace OnlineStore.AssemblyLine
{
return
;
}
if
(
chbAutoRead
.
Checked
&&
this
.
Visible
)
if
(
this
.
Visible
)
{
ReadIOList
();
ReadBtnDO
();
}
lblName
.
BackColor
=
equipBean
.
GetShowColor
();
if
(
equipBean
.
runStatus
>
LineRunStatus
.
Wait
)
...
...
@@ -245,25 +246,26 @@ namespace OnlineStore.AssemblyLine
cmbSizeList
.
Items
.
Clear
();
cmbSizeList
.
Items
.
Add
(
"0=默认位置"
);
foreach
(
int
heigth
in
LineManager
.
GetTrayList
())
foreach
(
int
heigth
in
LineManager
.
GetTrayList
())
{
cmbSizeList
.
Items
.
Add
(
heigth
);
}
cmbSizeList
.
SelectedIndex
=
0
;
lblStoreStatus
.
Text
=
KTK_Store
.
GetRunStr
(
equipBean
.
runStatus
);
lblStoreStatus
.
Text
=
KTK_Store
.
GetRunStr
(
equipBean
.
runStatus
);
lblThisSta
.
Text
=
equipBean
.
WarnMsg
;
txtP1
.
Text
=
equipBean
.
Config
.
UpDownAxisP1
.
ToString
();
txtUpdownP3
.
Text
=
equipBean
.
Config
.
UpDownAxisP3
.
ToString
();
if
(
equipBean
.
Config
.
DOList
.
ContainsKey
(
IO_Type
.
SL_RollerLine_Run
)
)
if
(
equipBean
.
Config
.
DOList
.
ContainsKey
(
IO_Type
.
SL_RollerLine_Run
))
{
btnRollerRun
.
Visible
=
true
;
SL_RollerLine_Run
.
Visible
=
true
;
}
else
{
btnRollerRun
.
Visible
=
false
;
SL_RollerLine_Run
.
Visible
=
false
;
}
LoadDP2
();
LoadDOBtn
(
groupDO
);
txtBp1
.
Text
=
equipBean
.
Config
.
BatchAxisP1
.
ToString
();
txtBP2
.
Text
=
equipBean
.
Config
.
BatchAxisP2
.
ToString
();
txtBP3
.
Text
=
equipBean
.
Config
.
BatchAxisP3
.
ToString
();
...
...
@@ -376,11 +378,11 @@ namespace OnlineStore.AssemblyLine
private
void
btnLocationCylinder_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnLocationCylinder
,
"SL定位气缸上升"
,
"SL定位气缸下降"
,
IO_Type
.
SL_LocationCylinder_Down
,
IO_Type
.
SL_LocationCylinder_Up
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_LocationCylinder_Down
,
IO_Type
.
SL_LocationCylinder_Up
);
}
private
void
btnOutTopCylinder_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnOutTopCylinder
,
"SL出口顶升上升"
,
"SL出口顶升下降"
,
IO_Type
.
SL_OutTopCylinder_Down
,
IO_Type
.
SL_OutTopCylinder_Up
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_OutTopCylinder_Down
,
IO_Type
.
SL_OutTopCylinder_Up
);
}
...
...
@@ -388,7 +390,7 @@ namespace OnlineStore.AssemblyLine
{
if
(
equipBean
.
UpdownIsUp
())
{
BtnMove
(
btnFeedSideWayCylinder
,
"上料横移气缸取料端"
,
"上料横移气缸放料端"
,
IO_Type
.
SL_MoveCylinder_Give
,
IO_Type
.
SL_MoveCylinder_Take
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_MoveCylinder_Give
,
IO_Type
.
SL_MoveCylinder_Take
);
}
else
{
...
...
@@ -397,19 +399,15 @@ namespace OnlineStore.AssemblyLine
}
private
void
btnTrayLocationCylinder_Click
(
object
sender
,
EventArgs
e
)
{
//判断伺服位置是否正确
//int currP = equipBean.BatchAxis.GetAclPosition();
//int chaz = equipBean.Config.BatchAxisP1 - currP;
//if (!(Math.Abs(chaz) < equipBean.Config.Height_ChangeValue*3))
if
(!
equipBean
.
TrayLCylinderCanAfter
())
{
DialogResult
result
=
MessageBox
.
Show
(
"提升轴当前不在待机点P2,是否确定"
+
btnTrayLocationCylinder
.
Text
+
"?"
,
"确认操作 "
,
MessageBoxButtons
.
YesNo
);
DialogResult
result
=
MessageBox
.
Show
(
"提升轴当前不在待机点P2,是否确定"
+
SL_TrayLocation_Before
.
Text
+
"?"
,
"确认操作 "
,
MessageBoxButtons
.
YesNo
);
if
(!
result
.
Equals
(
DialogResult
.
Yes
))
{
return
;
}
}
BtnMove
(
btnTrayLocationCylinder
,
"SL升降盘定位气缸前进"
,
"SL升降盘定位气缸后退"
,
IO_Type
.
SL_TrayLocation_After
,
IO_Type
.
SL_TrayLocation_Before
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_TrayLocation_After
,
IO_Type
.
SL_TrayLocation_Before
);
}
private
void
cmbSizeList_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
...
...
@@ -446,7 +444,7 @@ namespace OnlineStore.AssemblyLine
private
void
btnCloseAll_Click
(
object
sender
,
EventArgs
e
)
{
foreach
(
Control
con
in
group
Box5
.
Controls
)
foreach
(
Control
con
in
group
DO
.
Controls
)
{
if
(
con
is
Button
)
{
...
...
@@ -484,27 +482,27 @@ namespace OnlineStore.AssemblyLine
private
void
btnLineRun_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnLineRun
,
"SL进料线体运转"
,
"SL进料线体停止"
,
IO_Type
.
SL_Line_Run
);
DoBtnClick
(
sender
);
}
private
void
btnLSWRun_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnLSWRun
,
"SL定位横移电机运转"
,
"SL定位横移电机停止"
,
IO_Type
.
SL_LocationSideWay_Run
);
DoBtnClick
(
sender
);
}
private
void
btnOSWRun_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnOSWRun
,
"SL出口横移电机运转"
,
"SL出口横移电机停止"
,
IO_Type
.
SL_OutSideWay_Run
);
DoBtnClick
(
sender
);
}
private
void
btnEStopDown_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnEStopDown
,
"SL进料阻挡下降"
,
"SL进料阻挡上升"
,
IO_Type
.
SL_Entry_StopDown
);
DoBtnClick
(
sender
);
}
private
void
btnBStopDown_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnBStopDown
,
"SL缓冲阻挡下降"
,
"SL缓冲阻挡上升"
,
IO_Type
.
SL_Buffer_StopDown
);
DoBtnClick
(
sender
);
}
private
void
btnBP1_Click
(
object
sender
,
EventArgs
e
)
...
...
@@ -583,7 +581,7 @@ namespace OnlineStore.AssemblyLine
private
void
btnOLine_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnOLine
,
"SL出料线体运转"
,
"SL出料线体停止"
,
IO_Type
.
SL_OutLine_Run
);
DoBtnClick
(
sender
);
}
...
...
@@ -599,8 +597,7 @@ namespace OnlineStore.AssemblyLine
private
void
btnOutStopDown_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnOutStopDown
,
"SL出料阻挡下降"
,
"SL出料阻挡上升"
,
IO_Type
.
SL_Out_StopDown
);
DoBtnClick
(
sender
);
}
private
void
btnUpdateShelf_Click
(
object
sender
,
EventArgs
e
)
...
...
@@ -716,22 +713,72 @@ namespace OnlineStore.AssemblyLine
private
void
btnGuding_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnGuding
,
"SL固定气缸上升"
,
"SL固定气缸下降"
,
IO_Type
.
SL_FixedCylinder_Down
,
IO_Type
.
SL_FixedCylinder_Up
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_FixedCylinder_Down
,
IO_Type
.
SL_FixedCylinder_Up
);
}
private
void
btnTopUp_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnTopUp
,
"SL顶升上升"
,
"SL顶升下降"
,
IO_Type
.
SL_TopCylinder_Down
,
IO_Type
.
SL_TopCylinder_Up
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_TopCylinder_Down
,
IO_Type
.
SL_TopCylinder_Up
);
}
private
void
btnRollerRun_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnRollerRun
,
"SL过渡滚筒运转"
,
"SL过渡滚筒停止"
,
IO_Type
.
SL_RollerLine_Run
);
DoBtnClick
(
sender
);
}
private
void
btnFeedCylinder_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnFeedCylinder
,
"夹料气缸放松"
,
"夹料气缸夹紧"
,
IO_Type
.
SL_ClampCylinder_Relax
,
IO_Type
.
SL_ClampCylinder_Work
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_ClampCylinder_Relax
,
IO_Type
.
SL_ClampCylinder_Work
);
}
private
void
SL_TopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_OutTopCylinder_Up
,
IO_Type
.
SL_TopCylinder_Down
);
}
private
void
SL_FixedCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_FixedCylinder_Up
,
IO_Type
.
SL_FixedCylinder_Down
);
}
private
void
SL_LocationCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_LocationCylinder_Up
,
IO_Type
.
SL_LocationCylinder_Down
);
}
private
void
SL_MoveCylinder_Give_Click
(
object
sender
,
EventArgs
e
)
{
if
(
equipBean
.
UpdownIsUp
())
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_MoveCylinder_Take
,
IO_Type
.
SL_MoveCylinder_Give
);
}
else
{
MessageBox
.
Show
(
"升降轴不在P1位置"
,
"错误"
,
MessageBoxButtons
.
OK
,
MessageBoxIcon
.
Error
);
}
}
private
void
SL_ClampCylinder_Work_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_ClampCylinder_Work
,
IO_Type
.
SL_ClampCylinder_Relax
);
}
private
void
SL_OutTopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_OutTopCylinder_Up
,
IO_Type
.
SL_OutTopCylinder_Down
);
}
private
void
SL_TrayLocation_After_Click
(
object
sender
,
EventArgs
e
)
{
if
(!
equipBean
.
TrayLCylinderCanAfter
())
{
DialogResult
result
=
MessageBox
.
Show
(
"提升轴当前不在待机点P2,是否确定"
+
SL_TrayLocation_Before
.
Text
+
"?"
,
"确认操作 "
,
MessageBoxButtons
.
YesNo
);
if
(!
result
.
Equals
(
DialogResult
.
Yes
))
{
return
;
}
}
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_TrayLocation_After
,
IO_Type
.
SL_TrayLocation_After
);
}
}
...
...
source/AssemblyLineClient/FrmHYEquip.Designer.cs
查看文件 @
90c6b43
...
...
@@ -34,15 +34,25 @@
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox5
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnClampWork
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnMoveTake
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnFrontStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnLocation_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnLineRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTopCylinder_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnLineBackRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupDo
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
HY_LongL_StopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_OL_StopCylinder_Down
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_ShortL_StopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_OL_StopCylinder_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_StopCylinder_Down
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_StopCylinder_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_ClampCylinder_Relax
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_MoveCylinder_Give
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_LocationCylinder_Down
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_TopCylinder_Down
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_ClampCylinder_Work
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_MoveCylinder_Take
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_FrontStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_LocationCylinder_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_StopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_LineRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_TopCylinder_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_LineBackRun
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
chbDebug
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
lblThisSta
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblStoreStatus
=
new
System
.
Windows
.
Forms
.
Label
();
...
...
@@ -54,8 +64,8 @@
this
.
tabPage1
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
groupBox6
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
lblHyInfo
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblTrayNum
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblMoveInfo
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblTrayNum
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tabPage2
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
groupDetial
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnDSave
=
new
System
.
Windows
.
Forms
.
Button
();
...
...
@@ -83,7 +93,7 @@
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
group
Box5
.
SuspendLayout
();
this
.
group
Do
.
SuspendLayout
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabPage1
.
SuspendLayout
();
this
.
groupBox6
.
SuspendLayout
();
...
...
@@ -112,9 +122,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
(
6
,
396
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
497
,
392
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
485
,
111
);
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
731
,
111
);
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
...
...
@@ -124,9 +134,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
(
353
,
24
);
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
552
,
24
);
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
1
0
0
,
34
);
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
1
4
0
,
34
);
this
.
btnCloseAll
.
TabIndex
=
259
;
this
.
btnCloseAll
.
Text
=
"关闭所有DO"
;
this
.
btnCloseAll
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -136,7 +146,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
(
59
,
71
);
this
.
txtDOIndex
.
Location
=
new
System
.
Drawing
.
Point
(
160
,
71
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
23
);
...
...
@@ -147,10 +157,10 @@
//
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
(
59
,
54
);
this
.
txtDoName
.
Location
=
new
System
.
Drawing
.
Point
(
63
,
71
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
34
,
23
);
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
52
,
23
);
this
.
txtDoName
.
TabIndex
=
283
;
this
.
txtDoName
.
Text
=
"0"
;
this
.
txtDoName
.
Visible
=
false
;
...
...
@@ -160,7 +170,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
(
2
0
,
57
);
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
2
3
,
74
);
this
.
label17
.
Name
=
"label17"
;
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label17
.
TabIndex
=
282
;
...
...
@@ -173,7 +183,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
(
20
,
74
);
this
.
label14
.
Location
=
new
System
.
Drawing
.
Point
(
1
20
,
74
);
this
.
label14
.
Name
=
"label14"
;
this
.
label14
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label14
.
TabIndex
=
281
;
...
...
@@ -185,9 +195,9 @@
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
(
237
,
65
);
this
.
btnOpenDo
.
Location
=
new
System
.
Drawing
.
Point
(
386
,
22
);
this
.
btnOpenDo
.
Name
=
"btnOpenDo"
;
this
.
btnOpenDo
.
Size
=
new
System
.
Drawing
.
Size
(
1
0
0
,
34
);
this
.
btnOpenDo
.
Size
=
new
System
.
Drawing
.
Size
(
1
4
0
,
34
);
this
.
btnOpenDo
.
TabIndex
=
280
;
this
.
btnOpenDo
.
Text
=
"打开"
;
this
.
btnOpenDo
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -198,9 +208,9 @@
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
(
3
53
,
65
);
this
.
btnWriteSingleDO
.
Location
=
new
System
.
Drawing
.
Point
(
3
86
,
65
);
this
.
btnWriteSingleDO
.
Name
=
"btnWriteSingleDO"
;
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
1
0
0
,
34
);
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
1
4
0
,
34
);
this
.
btnWriteSingleDO
.
TabIndex
=
277
;
this
.
btnWriteSingleDO
.
Text
=
"关闭"
;
this
.
btnWriteSingleDO
.
UseVisualStyleBackColor
=
false
;
...
...
@@ -209,7 +219,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
(
165
,
71
);
this
.
txtWriteTime
.
Location
=
new
System
.
Drawing
.
Point
(
268
,
71
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
66
,
23
);
...
...
@@ -221,7 +231,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
(
101
,
74
);
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
203
,
74
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
17
);
this
.
label5
.
TabIndex
=
278
;
...
...
@@ -262,7 +272,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
,
387
);
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
503
);
this
.
groupBox4
.
TabIndex
=
104
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"DO列表"
;
...
...
@@ -279,7 +289,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
,
367
);
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
483
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
// groupBox3
...
...
@@ -289,7 +299,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
,
387
);
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
503
);
this
.
groupBox3
.
TabIndex
=
103
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"DI列表"
;
...
...
@@ -306,129 +316,269 @@
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
,
367
);
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
483
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// groupBox5
//
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnClampWork
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnMoveTake
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnFrontStopDown
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnLocation_Up
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnStopDown
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnLineRun
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnTopCylinder_Up
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnLineBackRun
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
497
,
190
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
400
,
317
);
this
.
groupBox5
.
TabIndex
=
255
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
Text
=
"IO操作测试"
;
//
// 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
(
173
,
140
);
this
.
btnClampWork
.
Name
=
"btnClampWork"
;
this
.
btnClampWork
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnClampWork
.
TabIndex
=
265
;
this
.
btnClampWork
.
Text
=
"夹料气缸夹紧"
;
this
.
btnClampWork
.
UseVisualStyleBackColor
=
false
;
this
.
btnClampWork
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClampWork_Click
);
//
// btnMoveTake
//
this
.
btnMoveTake
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnMoveTake
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnMoveTake
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnMoveTake
.
Location
=
new
System
.
Drawing
.
Point
(
173
,
101
);
this
.
btnMoveTake
.
Name
=
"btnMoveTake"
;
this
.
btnMoveTake
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnMoveTake
.
TabIndex
=
263
;
this
.
btnMoveTake
.
Text
=
"接驳台取料"
;
this
.
btnMoveTake
.
UseVisualStyleBackColor
=
false
;
this
.
btnMoveTake
.
Click
+=
new
System
.
EventHandler
(
this
.
btnMoveTake_Click
);
//
// btnFrontStopDown
//
this
.
btnFrontStopDown
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnFrontStopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnFrontStopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnFrontStopDown
.
Location
=
new
System
.
Drawing
.
Point
(
173
,
61
);
this
.
btnFrontStopDown
.
Name
=
"btnFrontStopDown"
;
this
.
btnFrontStopDown
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnFrontStopDown
.
TabIndex
=
261
;
this
.
btnFrontStopDown
.
Text
=
"托盘前阻挡下降"
;
this
.
btnFrontStopDown
.
UseVisualStyleBackColor
=
false
;
this
.
btnFrontStopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnFrontStopDown_Click
);
//
// btnLocation_Up
//
this
.
btnLocation_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnLocation_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLocation_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLocation_Up
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
140
);
this
.
btnLocation_Up
.
Name
=
"btnLocation_Up"
;
this
.
btnLocation_Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnLocation_Up
.
TabIndex
=
260
;
this
.
btnLocation_Up
.
Text
=
"横移定位上升"
;
this
.
btnLocation_Up
.
UseVisualStyleBackColor
=
false
;
this
.
btnLocation_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLocation_Up_Click
);
//
// btnStopDown
//
this
.
btnStopDown
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnStopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnStopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnStopDown
.
Location
=
new
System
.
Drawing
.
Point
(
173
,
22
);
this
.
btnStopDown
.
Name
=
"btnStopDown"
;
this
.
btnStopDown
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnStopDown
.
TabIndex
=
258
;
this
.
btnStopDown
.
Text
=
"阻挡下降"
;
this
.
btnStopDown
.
UseVisualStyleBackColor
=
false
;
this
.
btnStopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStopDown_Click
);
//
// 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
(
17
,
22
);
this
.
btnLineRun
.
Name
=
"btnLineRun"
;
this
.
btnLineRun
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnLineRun
.
TabIndex
=
256
;
this
.
btnLineRun
.
Text
=
"横移电机正转>>"
;
this
.
btnLineRun
.
UseVisualStyleBackColor
=
false
;
this
.
btnLineRun
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLineRun_Click
);
//
// btnTopCylinder_Up
//
this
.
btnTopCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnTopCylinder_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTopCylinder_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
101
);
this
.
btnTopCylinder_Up
.
Name
=
"btnTopCylinder_Up"
;
this
.
btnTopCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnTopCylinder_Up
.
TabIndex
=
255
;
this
.
btnTopCylinder_Up
.
Text
=
"横移顶升上升"
;
this
.
btnTopCylinder_Up
.
UseVisualStyleBackColor
=
false
;
this
.
btnTopCylinder_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnTopCylinder_Up_Click
);
//
// btnLineBackRun
//
this
.
btnLineBackRun
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnLineBackRun
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLineBackRun
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLineBackRun
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
61
);
this
.
btnLineBackRun
.
Name
=
"btnLineBackRun"
;
this
.
btnLineBackRun
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
btnLineBackRun
.
TabIndex
=
246
;
this
.
btnLineBackRun
.
Text
=
"横移电机反转<<"
;
this
.
btnLineBackRun
.
UseVisualStyleBackColor
=
false
;
this
.
btnLineBackRun
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLineBackRun_Click
);
// groupDo
//
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_LongL_StopDown
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_OL_StopCylinder_Down
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_ShortL_StopDown
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_OL_StopCylinder_Up
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_StopCylinder_Down
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_StopCylinder_Up
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_ClampCylinder_Relax
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_MoveCylinder_Give
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_LocationCylinder_Down
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_TopCylinder_Down
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_ClampCylinder_Work
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_MoveCylinder_Take
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_FrontStopDown
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_LocationCylinder_Up
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_StopDown
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_LineRun
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_TopCylinder_Up
);
this
.
groupDo
.
Controls
.
Add
(
this
.
HY_LineBackRun
);
this
.
groupDo
.
Location
=
new
System
.
Drawing
.
Point
(
497
,
188
);
this
.
groupDo
.
Name
=
"groupDo"
;
this
.
groupDo
.
Size
=
new
System
.
Drawing
.
Size
(
731
,
195
);
this
.
groupDo
.
TabIndex
=
255
;
this
.
groupDo
.
TabStop
=
false
;
this
.
groupDo
.
Text
=
"IO操作测试"
;
//
// HY_LongL_StopDown
//
this
.
HY_LongL_StopDown
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_LongL_StopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_LongL_StopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_LongL_StopDown
.
Location
=
new
System
.
Drawing
.
Point
(
329
,
61
);
this
.
HY_LongL_StopDown
.
Name
=
"HY_LongL_StopDown"
;
this
.
HY_LongL_StopDown
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_LongL_StopDown
.
TabIndex
=
280
;
this
.
HY_LongL_StopDown
.
Text
=
"▉ 长线前阻挡下降"
;
this
.
HY_LongL_StopDown
.
UseVisualStyleBackColor
=
false
;
this
.
HY_LongL_StopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
HY_LongL_StopDown_Click
);
//
// HY_OL_StopCylinder_Down
//
this
.
HY_OL_StopCylinder_Down
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_OL_StopCylinder_Down
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_OL_StopCylinder_Down
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_OL_StopCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
495
,
60
);
this
.
HY_OL_StopCylinder_Down
.
Name
=
"HY_OL_StopCylinder_Down"
;
this
.
HY_OL_StopCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_OL_StopCylinder_Down
.
TabIndex
=
273
;
this
.
HY_OL_StopCylinder_Down
.
Text
=
"出料线侧阻挡下降 ↓"
;
this
.
HY_OL_StopCylinder_Down
.
UseVisualStyleBackColor
=
false
;
this
.
HY_OL_StopCylinder_Down
.
Click
+=
new
System
.
EventHandler
(
this
.
HY_OL_StopCylinder_Down_Click
);
//
// HY_ShortL_StopDown
//
this
.
HY_ShortL_StopDown
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_ShortL_StopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_ShortL_StopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_ShortL_StopDown
.
Location
=
new
System
.
Drawing
.
Point
(
329
,
22
);
this
.
HY_ShortL_StopDown
.
Name
=
"HY_ShortL_StopDown"
;
this
.
HY_ShortL_StopDown
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_ShortL_StopDown
.
TabIndex
=
279
;
this
.
HY_ShortL_StopDown
.
Text
=
"▉ 短线前阻挡下降"
;
this
.
HY_ShortL_StopDown
.
UseVisualStyleBackColor
=
false
;
this
.
HY_ShortL_StopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
HY_ShortL_StopDown_Click
);
//
// HY_OL_StopCylinder_Up
//
this
.
HY_OL_StopCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_OL_StopCylinder_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_OL_StopCylinder_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_OL_StopCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
495
,
21
);
this
.
HY_OL_StopCylinder_Up
.
Name
=
"HY_OL_StopCylinder_Up"
;
this
.
HY_OL_StopCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_OL_StopCylinder_Up
.
TabIndex
=
272
;
this
.
HY_OL_StopCylinder_Up
.
Text
=
"出料线侧阻挡上升 ↑"
;
this
.
HY_OL_StopCylinder_Up
.
UseVisualStyleBackColor
=
false
;
this
.
HY_OL_StopCylinder_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
HY_OL_StopCylinder_Up_Click
);
//
// HY_StopCylinder_Down
//
this
.
HY_StopCylinder_Down
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_StopCylinder_Down
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_StopCylinder_Down
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_StopCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
337
,
61
);
this
.
HY_StopCylinder_Down
.
Name
=
"HY_StopCylinder_Down"
;
this
.
HY_StopCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_StopCylinder_Down
.
TabIndex
=
271
;
this
.
HY_StopCylinder_Down
.
Text
=
"阻挡气缸下降 ↓"
;
this
.
HY_StopCylinder_Down
.
UseVisualStyleBackColor
=
false
;
this
.
HY_StopCylinder_Down
.
Click
+=
new
System
.
EventHandler
(
this
.
HY_StopCylinder_Down_Click
);
//
// HY_StopCylinder_Up
//
this
.
HY_StopCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_StopCylinder_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_StopCylinder_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_StopCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
337
,
22
);
this
.
HY_StopCylinder_Up
.
Name
=
"HY_StopCylinder_Up"
;
this
.
HY_StopCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_StopCylinder_Up
.
TabIndex
=
270
;
this
.
HY_StopCylinder_Up
.
Text
=
"阻挡气缸上升 ↑"
;
this
.
HY_StopCylinder_Up
.
UseVisualStyleBackColor
=
false
;
this
.
HY_StopCylinder_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
HY_StopCylinder_Up_Click
);
//
// HY_ClampCylinder_Relax
//
this
.
HY_ClampCylinder_Relax
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_ClampCylinder_Relax
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_ClampCylinder_Relax
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_ClampCylinder_Relax
.
Location
=
new
System
.
Drawing
.
Point
(
495
,
146
);
this
.
HY_ClampCylinder_Relax
.
Name
=
"HY_ClampCylinder_Relax"
;
this
.
HY_ClampCylinder_Relax
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_ClampCylinder_Relax
.
TabIndex
=
269
;
this
.
HY_ClampCylinder_Relax
.
Text
=
"夹料气缸放松"
;
this
.
HY_ClampCylinder_Relax
.
UseVisualStyleBackColor
=
false
;
this
.
HY_ClampCylinder_Relax
.
Click
+=
new
System
.
EventHandler
(
this
.
HY_ClampCylinder_Relax_Click
);
//
// HY_MoveCylinder_Give
//
this
.
HY_MoveCylinder_Give
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_MoveCylinder_Give
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_MoveCylinder_Give
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_MoveCylinder_Give
.
Location
=
new
System
.
Drawing
.
Point
(
337
,
147
);
this
.
HY_MoveCylinder_Give
.
Name
=
"HY_MoveCylinder_Give"
;
this
.
HY_MoveCylinder_Give
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_MoveCylinder_Give
.
TabIndex
=
268
;
this
.
HY_MoveCylinder_Give
.
Text
=
"接驳台放料"
;
this
.
HY_MoveCylinder_Give
.
UseVisualStyleBackColor
=
false
;
this
.
HY_MoveCylinder_Give
.
Click
+=
new
System
.
EventHandler
(
this
.
HY_MoveCylinder_Give_Click
);
//
// HY_LocationCylinder_Down
//
this
.
HY_LocationCylinder_Down
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_LocationCylinder_Down
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_LocationCylinder_Down
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_LocationCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
173
,
147
);
this
.
HY_LocationCylinder_Down
.
Name
=
"HY_LocationCylinder_Down"
;
this
.
HY_LocationCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_LocationCylinder_Down
.
TabIndex
=
267
;
this
.
HY_LocationCylinder_Down
.
Text
=
"横移定位下降 ↓"
;
this
.
HY_LocationCylinder_Down
.
UseVisualStyleBackColor
=
false
;
this
.
HY_LocationCylinder_Down
.
Click
+=
new
System
.
EventHandler
(
this
.
HY_LocationCylinder_Down1_Click
);
//
// HY_TopCylinder_Down
//
this
.
HY_TopCylinder_Down
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_TopCylinder_Down
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_TopCylinder_Down
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_TopCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
60
);
this
.
HY_TopCylinder_Down
.
Name
=
"HY_TopCylinder_Down"
;
this
.
HY_TopCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_TopCylinder_Down
.
TabIndex
=
266
;
this
.
HY_TopCylinder_Down
.
Text
=
"横移顶升下降 ↓"
;
this
.
HY_TopCylinder_Down
.
UseVisualStyleBackColor
=
false
;
this
.
HY_TopCylinder_Down
.
Click
+=
new
System
.
EventHandler
(
this
.
HY_TopCylinder_Down_Click
);
//
// HY_ClampCylinder_Work
//
this
.
HY_ClampCylinder_Work
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_ClampCylinder_Work
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_ClampCylinder_Work
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_ClampCylinder_Work
.
Location
=
new
System
.
Drawing
.
Point
(
495
,
107
);
this
.
HY_ClampCylinder_Work
.
Name
=
"HY_ClampCylinder_Work"
;
this
.
HY_ClampCylinder_Work
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_ClampCylinder_Work
.
TabIndex
=
265
;
this
.
HY_ClampCylinder_Work
.
Text
=
"夹料气缸夹紧"
;
this
.
HY_ClampCylinder_Work
.
UseVisualStyleBackColor
=
false
;
this
.
HY_ClampCylinder_Work
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClampWork_Click
);
//
// HY_MoveCylinder_Take
//
this
.
HY_MoveCylinder_Take
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_MoveCylinder_Take
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_MoveCylinder_Take
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_MoveCylinder_Take
.
Location
=
new
System
.
Drawing
.
Point
(
337
,
108
);
this
.
HY_MoveCylinder_Take
.
Name
=
"HY_MoveCylinder_Take"
;
this
.
HY_MoveCylinder_Take
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_MoveCylinder_Take
.
TabIndex
=
263
;
this
.
HY_MoveCylinder_Take
.
Text
=
"接驳台取料"
;
this
.
HY_MoveCylinder_Take
.
UseVisualStyleBackColor
=
false
;
this
.
HY_MoveCylinder_Take
.
Click
+=
new
System
.
EventHandler
(
this
.
btnMoveTake_Click
);
//
// HY_FrontStopDown
//
this
.
HY_FrontStopDown
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_FrontStopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_FrontStopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_FrontStopDown
.
Location
=
new
System
.
Drawing
.
Point
(
173
,
60
);
this
.
HY_FrontStopDown
.
Name
=
"HY_FrontStopDown"
;
this
.
HY_FrontStopDown
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_FrontStopDown
.
TabIndex
=
261
;
this
.
HY_FrontStopDown
.
Text
=
"▉ 托盘前阻挡下降"
;
this
.
HY_FrontStopDown
.
UseVisualStyleBackColor
=
false
;
this
.
HY_FrontStopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnFrontStopDown_Click
);
//
// HY_LocationCylinder_Up
//
this
.
HY_LocationCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_LocationCylinder_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_LocationCylinder_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_LocationCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
173
,
108
);
this
.
HY_LocationCylinder_Up
.
Name
=
"HY_LocationCylinder_Up"
;
this
.
HY_LocationCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_LocationCylinder_Up
.
TabIndex
=
260
;
this
.
HY_LocationCylinder_Up
.
Text
=
"横移定位上升 ↑"
;
this
.
HY_LocationCylinder_Up
.
UseVisualStyleBackColor
=
false
;
this
.
HY_LocationCylinder_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLocation_Up_Click
);
//
// HY_StopDown
//
this
.
HY_StopDown
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_StopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_StopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_StopDown
.
Location
=
new
System
.
Drawing
.
Point
(
173
,
21
);
this
.
HY_StopDown
.
Name
=
"HY_StopDown"
;
this
.
HY_StopDown
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_StopDown
.
TabIndex
=
258
;
this
.
HY_StopDown
.
Text
=
"▉ 托盘阻挡下降"
;
this
.
HY_StopDown
.
UseVisualStyleBackColor
=
false
;
this
.
HY_StopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStopDown_Click
);
//
// HY_LineRun
//
this
.
HY_LineRun
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_LineRun
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_LineRun
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_LineRun
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
108
);
this
.
HY_LineRun
.
Name
=
"HY_LineRun"
;
this
.
HY_LineRun
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_LineRun
.
TabIndex
=
256
;
this
.
HY_LineRun
.
Text
=
"横移电机正转>>"
;
this
.
HY_LineRun
.
UseVisualStyleBackColor
=
false
;
this
.
HY_LineRun
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLineRun_Click
);
//
// HY_TopCylinder_Up
//
this
.
HY_TopCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_TopCylinder_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_TopCylinder_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_TopCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
21
);
this
.
HY_TopCylinder_Up
.
Name
=
"HY_TopCylinder_Up"
;
this
.
HY_TopCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_TopCylinder_Up
.
TabIndex
=
255
;
this
.
HY_TopCylinder_Up
.
Text
=
"横移顶升上升 ↑"
;
this
.
HY_TopCylinder_Up
.
UseVisualStyleBackColor
=
false
;
this
.
HY_TopCylinder_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnTopCylinder_Up_Click
);
//
// HY_LineBackRun
//
this
.
HY_LineBackRun
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
HY_LineBackRun
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_LineBackRun
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_LineBackRun
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
147
);
this
.
HY_LineBackRun
.
Name
=
"HY_LineBackRun"
;
this
.
HY_LineBackRun
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
HY_LineBackRun
.
TabIndex
=
246
;
this
.
HY_LineBackRun
.
Text
=
"横移电机反转<<"
;
this
.
HY_LineBackRun
.
UseVisualStyleBackColor
=
false
;
this
.
HY_LineBackRun
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLineBackRun_Click
);
//
// chbDebug
//
...
...
@@ -539,10 +689,9 @@
// tabPage1
//
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox6
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
lblMoveInfo
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox4
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
group
Box5
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
group
Do
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage1
.
Name
=
"tabPage1"
;
...
...
@@ -558,6 +707,7 @@
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblHyInfo
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblMoveInfo
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblTrayNum
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblThisSta
);
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
497
,
6
);
...
...
@@ -578,6 +728,17 @@
this
.
lblHyInfo
.
TabIndex
=
281
;
this
.
lblHyInfo
.
Text
=
"运动信息:"
;
//
// lblMoveInfo
//
this
.
lblMoveInfo
.
AutoSize
=
true
;
this
.
lblMoveInfo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblMoveInfo
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblMoveInfo
.
Location
=
new
System
.
Drawing
.
Point
(
16
,
96
);
this
.
lblMoveInfo
.
Name
=
"lblMoveInfo"
;
this
.
lblMoveInfo
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
lblMoveInfo
.
TabIndex
=
280
;
this
.
lblMoveInfo
.
Text
=
"运动信息:"
;
//
// lblTrayNum
//
this
.
lblTrayNum
.
AutoSize
=
true
;
...
...
@@ -589,17 +750,6 @@
this
.
lblTrayNum
.
TabIndex
=
276
;
this
.
lblTrayNum
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// lblMoveInfo
//
this
.
lblMoveInfo
.
AutoSize
=
true
;
this
.
lblMoveInfo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblMoveInfo
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblMoveInfo
.
Location
=
new
System
.
Drawing
.
Point
(
914
,
215
);
this
.
lblMoveInfo
.
Name
=
"lblMoveInfo"
;
this
.
lblMoveInfo
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
lblMoveInfo
.
TabIndex
=
280
;
this
.
lblMoveInfo
.
Text
=
"运动信息:"
;
//
// tabPage2
//
this
.
tabPage2
.
Controls
.
Add
(
this
.
groupDetial
);
...
...
@@ -937,10 +1087,9 @@
this
.
groupBox1
.
PerformLayout
();
this
.
groupBox4
.
ResumeLayout
(
false
);
this
.
groupBox3
.
ResumeLayout
(
false
);
this
.
group
Box5
.
ResumeLayout
(
false
);
this
.
group
Do
.
ResumeLayout
(
false
);
this
.
tabControl1
.
ResumeLayout
(
false
);
this
.
tabPage1
.
ResumeLayout
(
false
);
this
.
tabPage1
.
PerformLayout
();
this
.
groupBox6
.
ResumeLayout
(
false
);
this
.
groupBox6
.
PerformLayout
();
this
.
tabPage2
.
ResumeLayout
(
false
);
...
...
@@ -964,9 +1113,9 @@
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbWriteIO
;
private
System
.
Windows
.
Forms
.
TextBox
txtSlaveId
;
private
System
.
Windows
.
Forms
.
GroupBox
group
Box5
;
private
System
.
Windows
.
Forms
.
Button
btn
TopCylinder_Up
;
private
System
.
Windows
.
Forms
.
Button
btn
LineBackRun
;
private
System
.
Windows
.
Forms
.
GroupBox
group
Do
;
private
System
.
Windows
.
Forms
.
Button
HY_
TopCylinder_Up
;
private
System
.
Windows
.
Forms
.
Button
HY_
LineBackRun
;
private
System
.
Windows
.
Forms
.
Label
lblThisSta
;
private
System
.
Windows
.
Forms
.
Label
lblStoreStatus
;
private
System
.
Windows
.
Forms
.
Button
btnStart
;
...
...
@@ -974,8 +1123,8 @@
private
System
.
Windows
.
Forms
.
Button
btnReset
;
private
System
.
Windows
.
Forms
.
Button
btnOutStore
;
private
System
.
Windows
.
Forms
.
CheckBox
chbDebug
;
private
System
.
Windows
.
Forms
.
Button
btn
StopDown
;
private
System
.
Windows
.
Forms
.
Button
btn
LineRun
;
private
System
.
Windows
.
Forms
.
Button
HY_
StopDown
;
private
System
.
Windows
.
Forms
.
Button
HY_
LineRun
;
private
System
.
Windows
.
Forms
.
TabControl
tabControl1
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage1
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
...
...
@@ -1014,11 +1163,21 @@
private
System
.
Windows
.
Forms
.
ComboBox
cmbDSize
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
Button
btnClose
;
private
System
.
Windows
.
Forms
.
Button
btnLocation
_Up
;
private
System
.
Windows
.
Forms
.
Button
btn
FrontStopDown
;
private
System
.
Windows
.
Forms
.
Button
btnClamp
Work
;
private
System
.
Windows
.
Forms
.
Button
btnMove
Take
;
private
System
.
Windows
.
Forms
.
Button
HY_LocationCylinder
_Up
;
private
System
.
Windows
.
Forms
.
Button
HY_
FrontStopDown
;
private
System
.
Windows
.
Forms
.
Button
HY_ClampCylinder_
Work
;
private
System
.
Windows
.
Forms
.
Button
HY_MoveCylinder_
Take
;
private
System
.
Windows
.
Forms
.
Label
lblHyInfo
;
private
System
.
Windows
.
Forms
.
Button
HY_TopCylinder_Down
;
private
System
.
Windows
.
Forms
.
Button
HY_LocationCylinder_Down
;
private
System
.
Windows
.
Forms
.
Button
HY_ClampCylinder_Relax
;
private
System
.
Windows
.
Forms
.
Button
HY_MoveCylinder_Give
;
private
System
.
Windows
.
Forms
.
Button
HY_OL_StopCylinder_Down
;
private
System
.
Windows
.
Forms
.
Button
HY_OL_StopCylinder_Up
;
private
System
.
Windows
.
Forms
.
Button
HY_StopCylinder_Down
;
private
System
.
Windows
.
Forms
.
Button
HY_StopCylinder_Up
;
private
System
.
Windows
.
Forms
.
Button
HY_LongL_StopDown
;
private
System
.
Windows
.
Forms
.
Button
HY_ShortL_StopDown
;
}
}
source/AssemblyLineClient/FrmHYEquip.cs
查看文件 @
90c6b43
...
...
@@ -58,6 +58,7 @@ namespace OnlineStore.AssemblyLine
this
.
Text
=
equipBean
.
Name
;
txtP1
.
Text
=
equipBean
.
Config
.
UpDownAxisP1
.
ToString
();
lblHyInfo
.
Text
=
equipBean
.
GetHYDesc
();
LoadDOBtn
(
groupDo
);
IsLoad
=
true
;
}
...
...
@@ -116,7 +117,7 @@ namespace OnlineStore.AssemblyLine
if
(
this
.
Visible
)
{
ReadIOList
();
//lblTrayNum.Text = "托盘编码:" + TrayManager.GetTrayNum(equipBean.DeviceID
);
ReadBtnDO
(
);
}
lblName
.
BackColor
=
equipBean
.
GetShowColor
();
if
(
equipBean
.
runStatus
>
LineRunStatus
.
Wait
)
...
...
@@ -320,51 +321,10 @@ namespace OnlineStore.AssemblyLine
}
}
private
void
btnLineRun_Click
(
object
sender
,
EventArgs
e
)
{
if
(
equipBean
.
Config
.
DOList
.
ContainsKey
(
IO_Type
.
HY_LineBackRun
))
{
equipBean
.
IOMove
(
IO_Type
.
HY_LineBackRun
,
IO_VALUE
.
LOW
);
}
BtnMove
(
btnLineRun
,
"横移电机正转>>"
,
"横移电机停止"
,
IO_Type
.
HY_LineRun
);
}
private
void
btnStopDown_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnStopDown
,
"阻挡下降"
,
"阻挡上升"
,
IO_Type
.
HY_StopDown
);
}
private
void
btnLineBackRun_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
IOMove
(
IO_Type
.
HY_LineRun
,
IO_VALUE
.
LOW
);
BtnMove
(
btnLineBackRun
,
"横移电机反转<<"
,
"横移电机停止"
,
IO_Type
.
HY_LineBackRun
);
}
private
void
btnTopCylinder_Up_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnTopCylinder_Up
,
"横移顶升上升"
,
"横移顶升下降"
,
IO_Type
.
HY_TopCylinder_Down
,
IO_Type
.
HY_TopCylinder_Up
);
}
private
void
btnFrontStopDown_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnFrontStopDown
,
"托盘前阻挡下降"
,
"托盘前阻挡上升"
,
IO_Type
.
HY_FrontStopDown
);
}
private
void
btnLocation_Up_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnLocation_Up
,
"横移定位上升"
,
"横移定位下降"
,
IO_Type
.
HY_LocationCylinder_Down
,
IO_Type
.
HY_LocationCylinder_Up
);
}
private
void
btnMoveTake_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnMoveTake
,
"接驳台取料"
,
"接驳台放料"
,
IO_Type
.
HY_MoveCylinder_Give
,
IO_Type
.
HY_MoveCylinder_Take
);
}
private
void
btnClampWork_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnClampWork
,
"夹料气缸夹紧"
,
"夹料气缸放松"
,
IO_Type
.
HY_MoveCylinder_Give
,
IO_Type
.
HY_MoveCylinder_Take
);
}
private
void
btnCloseAll_Click
(
object
sender
,
EventArgs
e
)
{
foreach
(
Control
con
in
group
Box5
.
Controls
)
foreach
(
Control
con
in
group
Do
.
Controls
)
{
if
(
con
is
Button
)
{
...
...
@@ -538,6 +498,93 @@ namespace OnlineStore.AssemblyLine
{
this
.
Close
();
}
private
void
btnLineRun_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
LineRun
();
}
private
void
btnStopDown_Click
(
object
sender
,
EventArgs
e
)
{
DoBtnClick
(
sender
);
}
private
void
btnLineBackRun_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
LineStop
();
}
private
void
btnFrontStopDown_Click
(
object
sender
,
EventArgs
e
)
{
DoBtnClick
(
sender
);
}
private
void
btnTopCylinder_Up_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_TopCylinder_Down
,
IO_Type
.
HY_TopCylinder_Up
);
}
private
void
btnLocation_Up_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_LocationCylinder_Down
,
IO_Type
.
HY_LocationCylinder_Up
);
}
private
void
btnMoveTake_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_MoveCylinder_Give
,
IO_Type
.
HY_MoveCylinder_Take
);
}
private
void
btnClampWork_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_ClampCylinder_Relax
,
IO_Type
.
HY_ClampCylinder_Work
);
}
private
void
HY_ShortL_StopDown_Click
(
object
sender
,
EventArgs
e
)
{
DoBtnClick
(
sender
);
}
private
void
HY_LongL_StopDown_Click
(
object
sender
,
EventArgs
e
)
{
DoBtnClick
(
sender
);
}
private
void
HY_StopCylinder_Up_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_StopCylinder_Down
,
IO_Type
.
HY_StopCylinder_Up
);
}
private
void
HY_StopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_StopCylinder_Up
,
IO_Type
.
HY_StopCylinder_Down
);
}
private
void
HY_OL_StopCylinder_Up_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_OL_StopCylinder_Down
,
IO_Type
.
HY_OL_StopCylinder_Up
);
}
private
void
HY_OL_StopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_OL_StopCylinder_Up
,
IO_Type
.
HY_OL_StopCylinder_Down
);
}
private
void
HY_TopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_TopCylinder_Up
,
IO_Type
.
HY_TopCylinder_Down
);
}
private
void
HY_LocationCylinder_Down1_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_LocationCylinder_Up
,
IO_Type
.
HY_LocationCylinder_Down
);
}
private
void
HY_MoveCylinder_Give_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_MoveCylinder_Take
,
IO_Type
.
HY_MoveCylinder_Give
);
}
private
void
HY_ClampCylinder_Relax_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_ClampCylinder_Work
,
IO_Type
.
HY_ClampCylinder_Relax
);
}
}
}
...
...
source/AssemblyLineClient/FrmLineIO.Designer.cs
查看文件 @
90c6b43
...
...
@@ -21,7 +21,6 @@
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtDOIndex
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
chbAutoRead
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
txtDoName
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label17
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label14
=
new
System
.
Windows
.
Forms
.
Label
();
...
...
@@ -36,22 +35,19 @@
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel3
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox5
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnFrontStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblTrayNum
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnDriveMotor_Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnFrontStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCloseAll
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnDriveMotor_Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
groupBox6
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel4
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
groupBox5
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
groupBox6
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// timer1
...
...
@@ -63,7 +59,6 @@
//
this
.
groupBox1
.
Controls
.
Add
(
this
.
button1
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtDOIndex
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
chbAutoRead
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtDoName
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label17
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label14
);
...
...
@@ -72,9 +67,9 @@
this
.
groupBox1
.
Controls
.
Add
(
this
.
label5
);
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
(
5
81
,
3
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
5
73
,
3
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
383
,
120
);
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
400
,
120
);
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
...
...
@@ -83,9 +78,9 @@
//
this
.
button1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
238
,
78
);
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
138
,
80
);
this
.
button1
.
Name
=
"button1"
;
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
87
,
34
);
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
button1
.
TabIndex
=
256
;
this
.
button1
.
Text
=
"关闭"
;
this
.
button1
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -94,35 +89,20 @@
// txtDOIndex
//
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
(
277
,
50
);
this
.
txtDOIndex
.
Location
=
new
System
.
Drawing
.
Point
(
191
,
52
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
52
,
23
);
this
.
txtDOIndex
.
TabIndex
=
242
;
this
.
txtDOIndex
.
Text
=
"0"
;
//
// chbAutoRead
//
this
.
chbAutoRead
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
chbAutoRead
.
AutoSize
=
true
;
this
.
chbAutoRead
.
Checked
=
true
;
this
.
chbAutoRead
.
CheckState
=
System
.
Windows
.
Forms
.
CheckState
.
Checked
;
this
.
chbAutoRead
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbAutoRead
.
Location
=
new
System
.
Drawing
.
Point
(
314
,
20
);
this
.
chbAutoRead
.
Name
=
"chbAutoRead"
;
this
.
chbAutoRead
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
21
);
this
.
chbAutoRead
.
TabIndex
=
244
;
this
.
chbAutoRead
.
Text
=
"自动读取"
;
this
.
chbAutoRead
.
UseVisualStyleBackColor
=
true
;
this
.
chbAutoRead
.
Visible
=
false
;
//
// txtDoName
//
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
(
7
1
,
50
);
this
.
txtDoName
.
Location
=
new
System
.
Drawing
.
Point
(
7
5
,
52
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
133
,
23
);
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
52
,
23
);
this
.
txtDoName
.
TabIndex
=
241
;
this
.
txtDoName
.
Text
=
"0"
;
//
...
...
@@ -131,7 +111,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
(
19
,
5
3
);
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
19
,
5
5
);
this
.
label17
.
Name
=
"label17"
;
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
46
,
17
);
this
.
label17
.
TabIndex
=
240
;
...
...
@@ -143,7 +123,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
(
227
,
53
);
this
.
label14
.
Location
=
new
System
.
Drawing
.
Point
(
137
,
55
);
this
.
label14
.
Name
=
"label14"
;
this
.
label14
.
Size
=
new
System
.
Drawing
.
Size
(
44
,
17
);
this
.
label14
.
TabIndex
=
239
;
...
...
@@ -154,9 +134,9 @@
//
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
(
145
,
78
);
this
.
btnWriteSingleDO
.
Location
=
new
System
.
Drawing
.
Point
(
22
,
80
);
this
.
btnWriteSingleDO
.
Name
=
"btnWriteSingleDO"
;
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
87
,
34
);
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnWriteSingleDO
.
TabIndex
=
232
;
this
.
btnWriteSingleDO
.
Text
=
"打开"
;
this
.
btnWriteSingleDO
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -165,7 +145,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
,
84
);
this
.
txtWriteTime
.
Location
=
new
System
.
Drawing
.
Point
(
323
,
52
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
52
,
23
);
...
...
@@ -177,7 +157,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
(
19
,
87
);
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
253
,
55
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
17
);
this
.
label5
.
TabIndex
=
237
;
...
...
@@ -194,7 +174,7 @@
this
.
cmbWriteIO
.
ItemHeight
=
22
;
this
.
cmbWriteIO
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
18
);
this
.
cmbWriteIO
.
Name
=
"cmbWriteIO"
;
this
.
cmbWriteIO
.
Size
=
new
System
.
Drawing
.
Size
(
3
18
,
28
);
this
.
cmbWriteIO
.
Size
=
new
System
.
Drawing
.
Size
(
3
66
,
28
);
this
.
cmbWriteIO
.
TabIndex
=
234
;
this
.
cmbWriteIO
.
ValueMember
=
"ProName"
;
this
.
cmbWriteIO
.
DrawItem
+=
new
System
.
Windows
.
Forms
.
DrawItemEventHandler
(
this
.
cmbWriteIO_DrawItem
);
...
...
@@ -288,49 +268,24 @@
//
this
.
groupBox5
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox5
.
Controls
.
Add
(
this
.
lblTrayNum
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnDriveMotor_Run
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnFrontStopDown
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnCloseAll
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnStopDown
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnTopDown
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
5
81
,
12
9
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
5
73
,
13
9
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
383
,
206
);
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
400
,
208
);
this
.
groupBox5
.
TabIndex
=
246
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
Text
=
"IO操作测试"
;
//
// btnFrontStopDown
//
this
.
btnFrontStopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnFrontStopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnFrontStopDown
.
Location
=
new
System
.
Drawing
.
Point
(
32
,
22
);
this
.
btnFrontStopDown
.
Name
=
"btnFrontStopDown"
;
this
.
btnFrontStopDown
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
37
);
this
.
btnFrontStopDown
.
TabIndex
=
276
;
this
.
btnFrontStopDown
.
Text
=
"T3-C1前阻挡上升"
;
this
.
btnFrontStopDown
.
UseVisualStyleBackColor
=
true
;
this
.
btnFrontStopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSw4Location_Click
);
//
// btnStopDown
//
this
.
btnStopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnStopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnStopDown
.
Location
=
new
System
.
Drawing
.
Point
(
32
,
63
);
this
.
btnStopDown
.
Name
=
"btnStopDown"
;
this
.
btnStopDown
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
37
);
this
.
btnStopDown
.
TabIndex
=
269
;
this
.
btnStopDown
.
Text
=
"T3-C1阻挡上升"
;
this
.
btnStopDown
.
UseVisualStyleBackColor
=
true
;
this
.
btnStopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btn34Top_Click
);
//
// lblTrayNum
//
this
.
lblTrayNum
.
AutoSize
=
true
;
this
.
lblTrayNum
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblTrayNum
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblTrayNum
.
Location
=
new
System
.
Drawing
.
Point
(
29
,
156
);
this
.
lblTrayNum
.
Location
=
new
System
.
Drawing
.
Point
(
571
,
361
);
this
.
lblTrayNum
.
Name
=
"lblTrayNum"
;
this
.
lblTrayNum
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
lblTrayNum
.
TabIndex
=
275
;
...
...
@@ -338,48 +293,72 @@
this
.
lblTrayNum
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
BottomRight
;
this
.
lblTrayNum
.
Visible
=
false
;
//
// btnDriveMotor_Run
//
this
.
btnDriveMotor_Run
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnDriveMotor_Run
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnDriveMotor_Run
.
Location
=
new
System
.
Drawing
.
Point
(
194
,
32
);
this
.
btnDriveMotor_Run
.
Name
=
"btnDriveMotor_Run"
;
this
.
btnDriveMotor_Run
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
37
);
this
.
btnDriveMotor_Run
.
TabIndex
=
260
;
this
.
btnDriveMotor_Run
.
Text
=
"驱动电机正转"
;
this
.
btnDriveMotor_Run
.
UseVisualStyleBackColor
=
false
;
this
.
btnDriveMotor_Run
.
Click
+=
new
System
.
EventHandler
(
this
.
btnDriveMotor_Run_Click
);
//
// btnFrontStopDown
//
this
.
btnFrontStopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnFrontStopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnFrontStopDown
.
Location
=
new
System
.
Drawing
.
Point
(
22
,
32
);
this
.
btnFrontStopDown
.
Name
=
"btnFrontStopDown"
;
this
.
btnFrontStopDown
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
37
);
this
.
btnFrontStopDown
.
TabIndex
=
276
;
this
.
btnFrontStopDown
.
Text
=
"T3-C1前阻挡上升"
;
this
.
btnFrontStopDown
.
UseVisualStyleBackColor
=
true
;
this
.
btnFrontStopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSw4Location_Click
);
//
// btnCloseAll
//
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
(
204
,
10
4
);
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
194
,
11
4
);
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
37
);
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
37
);
this
.
btnCloseAll
.
TabIndex
=
274
;
this
.
btnCloseAll
.
Text
=
"关闭所有DO"
;
this
.
btnCloseAll
.
UseVisualStyleBackColor
=
false
;
this
.
btnCloseAll
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCloseAll_Click
);
//
// btnStopDown
//
this
.
btnStopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnStopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnStopDown
.
Location
=
new
System
.
Drawing
.
Point
(
22
,
73
);
this
.
btnStopDown
.
Name
=
"btnStopDown"
;
this
.
btnStopDown
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
37
);
this
.
btnStopDown
.
TabIndex
=
269
;
this
.
btnStopDown
.
Text
=
"T3-C1阻挡上升"
;
this
.
btnStopDown
.
UseVisualStyleBackColor
=
true
;
this
.
btnStopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btn34Top_Click
);
//
// btnTopDown
//
this
.
btnTopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopDown
.
Location
=
new
System
.
Drawing
.
Point
(
32
,
10
4
);
this
.
btnTopDown
.
Location
=
new
System
.
Drawing
.
Point
(
22
,
11
4
);
this
.
btnTopDown
.
Name
=
"btnTopDown"
;
this
.
btnTopDown
.
Size
=
new
System
.
Drawing
.
Size
(
1
53
,
37
);
this
.
btnTopDown
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
37
);
this
.
btnTopDown
.
TabIndex
=
262
;
this
.
btnTopDown
.
Text
=
"T3-C1顶升上升"
;
this
.
btnTopDown
.
UseVisualStyleBackColor
=
true
;
this
.
btnTopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSWRun_Click
);
//
// btnDriveMotor_Run
//
this
.
btnDriveMotor_Run
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnDriveMotor_Run
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnDriveMotor_Run
.
Location
=
new
System
.
Drawing
.
Point
(
204
,
22
);
this
.
btnDriveMotor_Run
.
Name
=
"btnDriveMotor_Run"
;
this
.
btnDriveMotor_Run
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
37
);
this
.
btnDriveMotor_Run
.
TabIndex
=
260
;
this
.
btnDriveMotor_Run
.
Text
=
"驱动电机正转"
;
this
.
btnDriveMotor_Run
.
UseVisualStyleBackColor
=
false
;
this
.
btnDriveMotor_Run
.
Click
+=
new
System
.
EventHandler
(
this
.
btnDriveMotor_Run_Click
);
//
// panel1
//
this
.
panel1
.
AutoScroll
=
true
;
this
.
panel1
.
Controls
.
Add
(
this
.
lblTrayNum
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox4
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox6
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox5
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox2
);
...
...
@@ -390,35 +369,6 @@
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
983
,
571
);
this
.
panel1
.
TabIndex
=
248
;
//
// groupBox6
//
this
.
groupBox6
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox6
.
Controls
.
Add
(
this
.
tableLayoutPanel4
);
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
693
,
499
);
this
.
groupBox6
.
Name
=
"groupBox6"
;
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
225
,
64
);
this
.
groupBox6
.
TabIndex
=
105
;
this
.
groupBox6
.
TabStop
=
false
;
this
.
groupBox6
.
Text
=
"DO列表"
;
this
.
groupBox6
.
Visible
=
false
;
//
// tableLayoutPanel4
//
this
.
tableLayoutPanel4
.
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
.
tableLayoutPanel4
.
AutoScroll
=
true
;
this
.
tableLayoutPanel4
.
ColumnCount
=
1
;
this
.
tableLayoutPanel4
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel4
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
14
);
this
.
tableLayoutPanel4
.
Name
=
"tableLayoutPanel4"
;
this
.
tableLayoutPanel4
.
RowCount
=
2
;
this
.
tableLayoutPanel4
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel4
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel4
.
Size
=
new
System
.
Drawing
.
Size
(
214
,
44
);
this
.
tableLayoutPanel4
.
TabIndex
=
103
;
//
// FrmLineIO
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
...
...
@@ -439,9 +389,8 @@
this
.
groupBox3
.
ResumeLayout
(
false
);
this
.
groupBox2
.
ResumeLayout
(
false
);
this
.
groupBox5
.
ResumeLayout
(
false
);
this
.
groupBox5
.
PerformLayout
();
this
.
panel1
.
ResumeLayout
(
false
);
this
.
groupBox6
.
ResumeLayout
(
false
);
this
.
panel1
.
PerformLayout
(
);
this
.
ResumeLayout
(
false
);
}
...
...
@@ -461,7 +410,6 @@
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
Button
btnWriteSingleDO
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbWriteIO
;
private
System
.
Windows
.
Forms
.
CheckBox
chbAutoRead
;
private
System
.
Windows
.
Forms
.
TextBox
txtDoName
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox2
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel3
;
...
...
@@ -474,8 +422,6 @@
private
System
.
Windows
.
Forms
.
Label
lblTrayNum
;
private
System
.
Windows
.
Forms
.
Button
btnFrontStopDown
;
private
System
.
Windows
.
Forms
.
Button
button1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox6
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel4
;
}
}
source/AssemblyLineClient/FrmLineIO.cs
查看文件 @
90c6b43
...
...
@@ -106,7 +106,7 @@ namespace OnlineStore.AssemblyLine
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
if
(
chbAutoRead
.
Checked
&&
this
.
Visible
)
if
(
this
.
Visible
)
{
ReadIOList
();
// lblTrayNum.Text = "托盘编码:" + TrayManager.GetTrayNum(0);
...
...
source/AssemblyLineClient/FrmLineStore.Designer.cs
查看文件 @
90c6b43
...
...
@@ -32,13 +32,30 @@
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
FrmLineStore
));
this
.
tabControl1
=
new
System
.
Windows
.
Forms
.
TabControl
();
this
.
tabPage1
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
listView1
=
new
System
.
Windows
.
Forms
.
ListView
();
this
.
logBox
=
new
System
.
Windows
.
Forms
.
RichTextBox
();
this
.
tabPage2
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
panel2
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
label8
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label7
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblCID
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label6
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tabPage3
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
panel3
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
tabPage4
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
lblMoveInfo
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
lblPosId
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnUpdateStatus
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtPosId
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
cmbBoxIndex
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnInStoreTset
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
chbInStoNG
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
cmbTrayType
=
new
System
.
Windows
.
Forms
.
ComboBox
();
...
...
@@ -50,16 +67,7 @@
this
.
txtTrayPosid
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
cmbTray
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnUpdateTray
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
cmbBoxIndex
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnInStoreTset
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
tabPage2
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
panel2
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
tabPage3
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
panel3
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
listView1
=
new
System
.
Windows
.
Forms
.
ListView
();
this
.
lblStatus
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblWarnMsg
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
notifyIcon1
=
new
System
.
Windows
.
Forms
.
NotifyIcon
(
this
.
components
);
...
...
@@ -107,6 +115,8 @@
this
.
toolStripSeparator17
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
contextMenuStrip_control
=
new
System
.
Windows
.
Forms
.
ContextMenuStrip
(
this
.
components
);
this
.
toolStripSeparator21
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
toolName
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator23
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
control_InDetial
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator18
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
control_StartDebug
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
...
...
@@ -115,25 +125,20 @@
this
.
toolStripSeparator20
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
control_Debug
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator22
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label7
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblCID
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label6
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabPage1
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
tabPage2
.
SuspendLayout
();
this
.
panel2
.
SuspendLayout
();
this
.
tableLayoutPanel1
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
tabPage3
.
SuspendLayout
();
this
.
panel3
.
SuspendLayout
();
this
.
tabPage4
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
contextMenuStrip1
.
SuspendLayout
();
this
.
menuStrip1
.
SuspendLayout
();
this
.
contextMenuStrip_control
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// tabControl1
...
...
@@ -144,7 +149,7 @@
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage1
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage2
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage3
);
this
.
tabControl1
.
DrawMode
=
System
.
Windows
.
Forms
.
TabDrawMode
.
OwnerDrawFixed
;
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage4
)
;
this
.
tabControl1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
81
);
this
.
tabControl1
.
Multiline
=
true
;
...
...
@@ -156,54 +161,205 @@
//
// tabPage1
//
this
.
tabPage1
.
Controls
.
Add
(
this
.
listView1
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
logBox
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
lblMoveInfo
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
29
);
this
.
tabPage1
.
Name
=
"tabPage1"
;
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
tabPage1
.
TabIndex
=
0
;
this
.
tabPage1
.
Text
=
"
状态信息
"
;
this
.
tabPage1
.
Text
=
"
运行日志
"
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
//
// listView1
//
this
.
listView1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
listView1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
listView1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
listView1
.
FullRowSelect
=
true
;
this
.
listView1
.
GridLines
=
true
;
this
.
listView1
.
HideSelection
=
false
;
this
.
listView1
.
Location
=
new
System
.
Drawing
.
Point
(
9
,
7
);
this
.
listView1
.
MultiSelect
=
false
;
this
.
listView1
.
Name
=
"listView1"
;
this
.
listView1
.
Size
=
new
System
.
Drawing
.
Size
(
725
,
599
);
this
.
listView1
.
TabIndex
=
191
;
this
.
listView1
.
UseCompatibleStateImageBehavior
=
false
;
this
.
listView1
.
View
=
System
.
Windows
.
Forms
.
View
.
Details
;
this
.
listView1
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
listView1_SelectedIndexChanged
);
//
// logBox
//
this
.
logBox
.
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
.
logBox
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
logBox
.
Location
=
new
System
.
Drawing
.
Point
(
740
,
113
);
this
.
logBox
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
5
);
this
.
logBox
.
Name
=
"logBox"
;
this
.
logBox
.
Size
=
new
System
.
Drawing
.
Size
(
580
,
493
);
this
.
logBox
.
Size
=
new
System
.
Drawing
.
Size
(
1317
,
599
);
this
.
logBox
.
TabIndex
=
106
;
this
.
logBox
.
Text
=
""
;
this
.
logBox
.
VisibleChanged
+=
new
System
.
EventHandler
(
this
.
logBox_VisibleChanged
);
//
// tabPage2
//
this
.
tabPage2
.
Controls
.
Add
(
this
.
panel2
);
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
29
);
this
.
tabPage2
.
Name
=
"tabPage2"
;
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
tabPage2
.
TabIndex
=
1
;
this
.
tabPage2
.
Text
=
" 进仓移栽 "
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
//
// panel2
//
this
.
panel2
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
panel2
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel2
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel2
.
Name
=
"panel2"
;
this
.
panel2
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
panel2
.
TabIndex
=
98
;
//
// tableLayoutPanel1
//
this
.
tableLayoutPanel1
.
ColumnCount
=
5
;
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
Controls
.
Add
(
this
.
panel1
,
4
,
4
);
this
.
tableLayoutPanel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
tableLayoutPanel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
tableLayoutPanel1
.
Name
=
"tableLayoutPanel1"
;
this
.
tableLayoutPanel1
.
RowCount
=
5
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
tableLayoutPanel1
.
TabIndex
=
10
;
//
// panel1
//
this
.
panel1
.
Controls
.
Add
(
this
.
label8
);
this
.
panel1
.
Controls
.
Add
(
this
.
label1
);
this
.
panel1
.
Controls
.
Add
(
this
.
label7
);
this
.
panel1
.
Controls
.
Add
(
this
.
lblCID
);
this
.
panel1
.
Controls
.
Add
(
this
.
label6
);
this
.
panel1
.
Controls
.
Add
(
this
.
label5
);
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
1063
,
487
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
262
,
119
);
this
.
panel1
.
TabIndex
=
202
;
//
// label8
//
this
.
label8
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
label8
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label8
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
label8
.
Location
=
new
System
.
Drawing
.
Point
(
150
,
97
);
this
.
label8
.
Name
=
"label8"
;
this
.
label8
.
Size
=
new
System
.
Drawing
.
Size
(
109
,
18
);
this
.
label8
.
TabIndex
=
201
;
this
.
label8
.
Text
=
"双击进入详情界面"
;
//
// label1
//
this
.
label1
.
BackColor
=
System
.
Drawing
.
Color
.
LightBlue
;
this
.
label1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label1
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
4
);
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
109
,
18
);
this
.
label1
.
TabIndex
=
197
;
this
.
label1
.
Text
=
"蓝色:正常待机中"
;
//
// label7
//
this
.
label7
.
BackColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
label7
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label7
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
label7
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
84
);
this
.
label7
.
Name
=
"label7"
;
this
.
label7
.
Size
=
new
System
.
Drawing
.
Size
(
109
,
18
);
this
.
label7
.
TabIndex
=
200
;
this
.
label7
.
Text
=
"红色:严重报警"
;
//
// lblCID
//
this
.
lblCID
.
BackColor
=
System
.
Drawing
.
Color
.
Orange
;
this
.
lblCID
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblCID
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
lblCID
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
44
);
this
.
lblCID
.
Name
=
"lblCID"
;
this
.
lblCID
.
Size
=
new
System
.
Drawing
.
Size
(
109
,
18
);
this
.
lblCID
.
TabIndex
=
95
;
this
.
lblCID
.
Text
=
"橘色:复位中"
;
//
// label6
//
this
.
label6
.
BackColor
=
System
.
Drawing
.
Color
.
LightCoral
;
this
.
label6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label6
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
label6
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
64
);
this
.
label6
.
Name
=
"label6"
;
this
.
label6
.
Size
=
new
System
.
Drawing
.
Size
(
109
,
18
);
this
.
label6
.
TabIndex
=
199
;
this
.
label6
.
Text
=
"珊瑚色:信号超时报警"
;
//
// label5
//
this
.
label5
.
BackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
label5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label5
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
24
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
109
,
18
);
this
.
label5
.
TabIndex
=
198
;
this
.
label5
.
Text
=
"绿色:忙碌中"
;
//
// tabPage3
//
this
.
tabPage3
.
Controls
.
Add
(
this
.
panel3
);
this
.
tabPage3
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
29
);
this
.
tabPage3
.
Name
=
"tabPage3"
;
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
tabPage3
.
TabIndex
=
2
;
this
.
tabPage3
.
Text
=
" 入料/横移 "
;
this
.
tabPage3
.
UseVisualStyleBackColor
=
true
;
//
// panel3
//
this
.
panel3
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
panel3
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel3
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel3
.
Name
=
"panel3"
;
this
.
panel3
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
panel3
.
TabIndex
=
0
;
//
// tableLayoutPanel2
//
this
.
tableLayoutPanel2
.
ColumnCount
=
5
;
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel2
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
tableLayoutPanel2
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
tableLayoutPanel2
.
Name
=
"tableLayoutPanel2"
;
this
.
tableLayoutPanel2
.
RowCount
=
6
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
16.66667F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
16.66667F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
16.66667F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
16.66667F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
16.66667F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
16.66667F
));
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
tableLayoutPanel2
.
TabIndex
=
11
;
//
// tabPage4
//
this
.
tabPage4
.
Controls
.
Add
(
this
.
lblMoveInfo
);
this
.
tabPage4
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
tabPage4
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
tabPage4
.
Controls
.
Add
(
this
.
listView1
);
this
.
tabPage4
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
29
);
this
.
tabPage4
.
Name
=
"tabPage4"
;
this
.
tabPage4
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
tabPage4
.
TabIndex
=
3
;
this
.
tabPage4
.
Text
=
" 设备状态 "
;
this
.
tabPage4
.
UseVisualStyleBackColor
=
true
;
//
// lblMoveInfo
//
this
.
lblMoveInfo
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
lblMoveInfo
.
AutoSize
=
true
;
this
.
lblMoveInfo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblMoveInfo
.
Location
=
new
System
.
Drawing
.
Point
(
935
,
7
);
this
.
lblMoveInfo
.
Location
=
new
System
.
Drawing
.
Point
(
1154
,
20
);
this
.
lblMoveInfo
.
Name
=
"lblMoveInfo"
;
this
.
lblMoveInfo
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
17
);
this
.
lblMoveInfo
.
TabIndex
=
196
;
...
...
@@ -216,12 +372,11 @@
this
.
groupBox1
.
Controls
.
Add
(
this
.
lblPosId
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnUpdateStatus
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtPosId
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
cmbBoxIndex
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnInStoreTset
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
button2
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
button1
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
4
48
,
167
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
4
06
,
59
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
872
,
61
);
this
.
groupBox1
.
TabIndex
=
195
;
...
...
@@ -232,7 +387,7 @@
// lblPosId
//
this
.
lblPosId
.
AutoSize
=
true
;
this
.
lblPosId
.
Location
=
new
System
.
Drawing
.
Point
(
366
,
35
);
this
.
lblPosId
.
Location
=
new
System
.
Drawing
.
Point
(
366
,
24
);
this
.
lblPosId
.
Name
=
"lblPosId"
;
this
.
lblPosId
.
Size
=
new
System
.
Drawing
.
Size
(
40
,
20
);
this
.
lblPosId
.
TabIndex
=
197
;
...
...
@@ -243,7 +398,7 @@
this
.
btnUpdateStatus
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnUpdateStatus
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnUpdateStatus
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpdateStatus
.
Location
=
new
System
.
Drawing
.
Point
(
641
,
1
1
);
this
.
btnUpdateStatus
.
Location
=
new
System
.
Drawing
.
Point
(
641
,
1
7
);
this
.
btnUpdateStatus
.
Name
=
"btnUpdateStatus"
;
this
.
btnUpdateStatus
.
Size
=
new
System
.
Drawing
.
Size
(
222
,
35
);
this
.
btnUpdateStatus
.
TabIndex
=
195
;
...
...
@@ -253,11 +408,56 @@
//
// txtPosId
//
this
.
txtPosId
.
Location
=
new
System
.
Drawing
.
Point
(
426
,
32
);
this
.
txtPosId
.
Location
=
new
System
.
Drawing
.
Point
(
426
,
21
);
this
.
txtPosId
.
Name
=
"txtPosId"
;
this
.
txtPosId
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
26
);
this
.
txtPosId
.
TabIndex
=
196
;
//
// cmbBoxIndex
//
this
.
cmbBoxIndex
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbBoxIndex
.
FormattingEnabled
=
true
;
this
.
cmbBoxIndex
.
Location
=
new
System
.
Drawing
.
Point
(
272
,
20
);
this
.
cmbBoxIndex
.
Name
=
"cmbBoxIndex"
;
this
.
cmbBoxIndex
.
Size
=
new
System
.
Drawing
.
Size
(
85
,
28
);
this
.
cmbBoxIndex
.
TabIndex
=
195
;
//
// btnInStoreTset
//
this
.
btnInStoreTset
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnInStoreTset
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnInStoreTset
.
Location
=
new
System
.
Drawing
.
Point
(
515
,
17
);
this
.
btnInStoreTset
.
Name
=
"btnInStoreTset"
;
this
.
btnInStoreTset
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
35
);
this
.
btnInStoreTset
.
TabIndex
=
194
;
this
.
btnInStoreTset
.
Text
=
"入库测试"
;
this
.
btnInStoreTset
.
UseVisualStyleBackColor
=
false
;
this
.
btnInStoreTset
.
Click
+=
new
System
.
EventHandler
(
this
.
btnInStoreTset_Click
);
//
// button2
//
this
.
button2
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
button2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button2
.
Location
=
new
System
.
Drawing
.
Point
(
118
,
17
);
this
.
button2
.
Name
=
"button2"
;
this
.
button2
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
35
);
this
.
button2
.
TabIndex
=
193
;
this
.
button2
.
Text
=
"停止服务"
;
this
.
button2
.
UseVisualStyleBackColor
=
false
;
this
.
button2
.
Click
+=
new
System
.
EventHandler
(
this
.
button2_Click
);
//
// button1
//
this
.
button1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
button1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
17
);
this
.
button1
.
Name
=
"button1"
;
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
35
);
this
.
button1
.
TabIndex
=
192
;
this
.
button1
.
Text
=
"启动服务"
;
this
.
button1
.
UseVisualStyleBackColor
=
false
;
this
.
button1
.
Click
+=
new
System
.
EventHandler
(
this
.
button1_Click
);
//
// groupBox3
//
this
.
groupBox3
.
Controls
.
Add
(
this
.
chbInStoNG
);
...
...
@@ -271,9 +471,9 @@
this
.
groupBox3
.
Controls
.
Add
(
this
.
cmbTray
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
btnUpdateTray
);
this
.
groupBox3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
292
,
11
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
406
,
126
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
567
,
61
);
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
670
,
61
);
this
.
groupBox3
.
TabIndex
=
197
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"操作信息"
;
...
...
@@ -376,130 +576,23 @@
this
.
btnUpdateTray
.
UseVisualStyleBackColor
=
false
;
this
.
btnUpdateTray
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpdateTray_Click
);
//
// cmbBoxIndex
//
this
.
cmbBoxIndex
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbBoxIndex
.
FormattingEnabled
=
true
;
this
.
cmbBoxIndex
.
Location
=
new
System
.
Drawing
.
Point
(
272
,
31
);
this
.
cmbBoxIndex
.
Name
=
"cmbBoxIndex"
;
this
.
cmbBoxIndex
.
Size
=
new
System
.
Drawing
.
Size
(
85
,
28
);
this
.
cmbBoxIndex
.
TabIndex
=
195
;
//
// btnInStoreTset
//
this
.
btnInStoreTset
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnInStoreTset
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnInStoreTset
.
Location
=
new
System
.
Drawing
.
Point
(
515
,
28
);
this
.
btnInStoreTset
.
Name
=
"btnInStoreTset"
;
this
.
btnInStoreTset
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
35
);
this
.
btnInStoreTset
.
TabIndex
=
194
;
this
.
btnInStoreTset
.
Text
=
"入库测试"
;
this
.
btnInStoreTset
.
UseVisualStyleBackColor
=
false
;
this
.
btnInStoreTset
.
Click
+=
new
System
.
EventHandler
(
this
.
btnInStoreTset_Click
);
//
// button2
//
this
.
button2
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
button2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button2
.
Location
=
new
System
.
Drawing
.
Point
(
118
,
28
);
this
.
button2
.
Name
=
"button2"
;
this
.
button2
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
35
);
this
.
button2
.
TabIndex
=
193
;
this
.
button2
.
Text
=
"停止服务"
;
this
.
button2
.
UseVisualStyleBackColor
=
false
;
this
.
button2
.
Click
+=
new
System
.
EventHandler
(
this
.
button2_Click
);
//
// button1
//
this
.
button1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
button1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
28
);
this
.
button1
.
Name
=
"button1"
;
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
35
);
this
.
button1
.
TabIndex
=
192
;
this
.
button1
.
Text
=
"启动服务"
;
this
.
button1
.
UseVisualStyleBackColor
=
false
;
this
.
button1
.
Click
+=
new
System
.
EventHandler
(
this
.
button1_Click
);
//
// tabPage2
//
this
.
tabPage2
.
Controls
.
Add
(
this
.
panel2
);
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
29
);
this
.
tabPage2
.
Name
=
"tabPage2"
;
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
tabPage2
.
TabIndex
=
1
;
this
.
tabPage2
.
Text
=
" 料仓移栽设备 "
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
//
// panel2
//
this
.
panel2
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
panel2
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel2
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel2
.
Name
=
"panel2"
;
this
.
panel2
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
panel2
.
TabIndex
=
98
;
//
// tableLayoutPanel1
//
this
.
tableLayoutPanel1
.
ColumnCount
=
5
;
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
Controls
.
Add
(
this
.
panel1
,
4
,
4
);
this
.
tableLayoutPanel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
tableLayoutPanel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
tableLayoutPanel1
.
Name
=
"tableLayoutPanel1"
;
this
.
tableLayoutPanel1
.
RowCount
=
5
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
tableLayoutPanel1
.
TabIndex
=
10
;
//
// tabPage3
//
this
.
tabPage3
.
Controls
.
Add
(
this
.
panel3
);
this
.
tabPage3
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
29
);
this
.
tabPage3
.
Name
=
"tabPage3"
;
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
tabPage3
.
TabIndex
=
2
;
this
.
tabPage3
.
Text
=
" 入料/横移设备 "
;
this
.
tabPage3
.
UseVisualStyleBackColor
=
true
;
//
// panel3
//
this
.
panel3
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
panel3
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel3
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel3
.
Name
=
"panel3"
;
this
.
panel3
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
panel3
.
TabIndex
=
0
;
//
// tableLayoutPanel2
// listView1
//
this
.
tableLayoutPanel2
.
ColumnCount
=
5
;
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
20F
));
this
.
tableLayoutPanel2
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
tableLayoutPanel2
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
tableLayoutPanel2
.
Name
=
"tableLayoutPanel2"
;
this
.
tableLayoutPanel2
.
RowCount
=
6
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
16.66667F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
16.66667F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
16.66667F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
16.66667F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
16.66667F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
16.66667F
));
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
1328
,
609
);
this
.
tableLayoutPanel2
.
TabIndex
=
11
;
this
.
listView1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
listView1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
listView1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
listView1
.
FullRowSelect
=
true
;
this
.
listView1
.
GridLines
=
true
;
this
.
listView1
.
HideSelection
=
false
;
this
.
listView1
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
7
);
this
.
listView1
.
MultiSelect
=
false
;
this
.
listView1
.
Name
=
"listView1"
;
this
.
listView1
.
Size
=
new
System
.
Drawing
.
Size
(
1319
,
582
);
this
.
listView1
.
TabIndex
=
191
;
this
.
listView1
.
UseCompatibleStateImageBehavior
=
false
;
this
.
listView1
.
View
=
System
.
Windows
.
Forms
.
View
.
Details
;
this
.
listView1
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
listView1_SelectedIndexChanged
);
//
// lblStatus
//
...
...
@@ -842,6 +935,8 @@
this
.
contextMenuStrip_control
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
contextMenuStrip_control
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
toolStripSeparator21
,
this
.
toolName
,
this
.
toolStripSeparator23
,
this
.
control_InDetial
,
this
.
toolStripSeparator18
,
this
.
control_StartDebug
,
...
...
@@ -851,12 +946,25 @@
this
.
control_Debug
,
this
.
toolStripSeparator22
});
this
.
contextMenuStrip_control
.
Name
=
"contextMenuStrip1"
;
this
.
contextMenuStrip_control
.
Size
=
new
System
.
Drawing
.
Size
(
163
,
1
3
0
);
this
.
contextMenuStrip_control
.
Size
=
new
System
.
Drawing
.
Size
(
163
,
1
6
0
);
//
// toolStripSeparator21
//
this
.
toolStripSeparator21
.
Name
=
"toolStripSeparator21"
;
this
.
toolStripSeparator21
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
6
);
this
.
toolStripSeparator21
.
Visible
=
false
;
//
// toolName
//
this
.
toolName
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
toolName
.
Name
=
"toolName"
;
this
.
toolName
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
24
);
this
.
toolName
.
Visible
=
false
;
//
// toolStripSeparator23
//
this
.
toolStripSeparator23
.
Name
=
"toolStripSeparator23"
;
this
.
toolStripSeparator23
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
6
);
//
// control_InDetial
//
...
...
@@ -906,73 +1014,6 @@
this
.
toolStripSeparator22
.
Name
=
"toolStripSeparator22"
;
this
.
toolStripSeparator22
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
6
);
//
// panel1
//
this
.
panel1
.
Controls
.
Add
(
this
.
label1
);
this
.
panel1
.
Controls
.
Add
(
this
.
label7
);
this
.
panel1
.
Controls
.
Add
(
this
.
lblCID
);
this
.
panel1
.
Controls
.
Add
(
this
.
label6
);
this
.
panel1
.
Controls
.
Add
(
this
.
label5
);
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
1063
,
487
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
165
,
105
);
this
.
panel1
.
TabIndex
=
202
;
//
// label1
//
this
.
label1
.
BackColor
=
System
.
Drawing
.
Color
.
LightBlue
;
this
.
label1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label1
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
4
);
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
109
,
18
);
this
.
label1
.
TabIndex
=
197
;
this
.
label1
.
Text
=
"蓝色:正常待机中"
;
//
// label7
//
this
.
label7
.
BackColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
label7
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label7
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
label7
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
84
);
this
.
label7
.
Name
=
"label7"
;
this
.
label7
.
Size
=
new
System
.
Drawing
.
Size
(
109
,
18
);
this
.
label7
.
TabIndex
=
200
;
this
.
label7
.
Text
=
"红色:严重报警"
;
//
// lblCID
//
this
.
lblCID
.
BackColor
=
System
.
Drawing
.
Color
.
Orange
;
this
.
lblCID
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblCID
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
lblCID
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
44
);
this
.
lblCID
.
Name
=
"lblCID"
;
this
.
lblCID
.
Size
=
new
System
.
Drawing
.
Size
(
109
,
18
);
this
.
lblCID
.
TabIndex
=
95
;
this
.
lblCID
.
Text
=
"橘色:复位中"
;
//
// label6
//
this
.
label6
.
BackColor
=
System
.
Drawing
.
Color
.
LightCoral
;
this
.
label6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label6
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
label6
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
64
);
this
.
label6
.
Name
=
"label6"
;
this
.
label6
.
Size
=
new
System
.
Drawing
.
Size
(
109
,
18
);
this
.
label6
.
TabIndex
=
199
;
this
.
label6
.
Text
=
"珊瑚色:信号超时报警"
;
//
// label5
//
this
.
label5
.
BackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
label5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label5
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
24
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
109
,
18
);
this
.
label5
.
TabIndex
=
198
;
this
.
label5
.
Text
=
"绿色:忙碌中"
;
//
// FrmLineStore
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
...
@@ -994,21 +1035,22 @@
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmMain_Load
);
this
.
tabControl1
.
ResumeLayout
(
false
);
this
.
tabPage1
.
ResumeLayout
(
false
);
this
.
tabPage1
.
PerformLayout
();
this
.
groupBox1
.
ResumeLayout
(
false
);
this
.
groupBox1
.
PerformLayout
();
this
.
groupBox3
.
ResumeLayout
(
false
);
this
.
groupBox3
.
PerformLayout
();
this
.
tabPage2
.
ResumeLayout
(
false
);
this
.
panel2
.
ResumeLayout
(
false
);
this
.
tableLayoutPanel1
.
ResumeLayout
(
false
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
tabPage3
.
ResumeLayout
(
false
);
this
.
panel3
.
ResumeLayout
(
false
);
this
.
tabPage4
.
ResumeLayout
(
false
);
this
.
tabPage4
.
PerformLayout
();
this
.
groupBox1
.
ResumeLayout
(
false
);
this
.
groupBox1
.
PerformLayout
();
this
.
groupBox3
.
ResumeLayout
(
false
);
this
.
groupBox3
.
PerformLayout
();
this
.
contextMenuStrip1
.
ResumeLayout
(
false
);
this
.
menuStrip1
.
ResumeLayout
(
false
);
this
.
menuStrip1
.
PerformLayout
();
this
.
contextMenuStrip_control
.
ResumeLayout
(
false
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
...
...
@@ -1107,6 +1149,10 @@
private
System
.
Windows
.
Forms
.
Label
lblCID
;
private
System
.
Windows
.
Forms
.
Label
label6
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage4
;
private
System
.
Windows
.
Forms
.
Label
label8
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
toolName
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator23
;
}
}
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
90c6b43
...
...
@@ -20,8 +20,6 @@ namespace OnlineStore.AssemblyLine
{
internal
partial
class
FrmLineStore
:
Form
{
//internal static readonly ILog LOGGER = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private
LineBean
lineBean
=
null
;
private
List
<
TabPage
>
tabPageList
=
new
List
<
TabPage
>();
private
bool
LoadOk
=
false
;
...
...
@@ -1104,20 +1102,20 @@ namespace OnlineStore.AssemblyLine
if
(
seleEquip
.
runStatus
>
LineRunStatus
.
Wait
)
{
control_StartDebug
.
Text
=
"复位["
+
seleEquip
.
Name
+
"]
"
;
control_StartDebug
.
Text
=
seleEquip
.
Name
+
"复位 "
+
"
"
;
}
else
{
control_StartDebug
.
Text
=
"启动调试["
+
seleEquip
.
Name
+
"]
"
;
control_StartDebug
.
Text
=
seleEquip
.
Name
+
"启动调试"
+
"
"
;
}
string
name
=
"打开["
+
seleEquip
.
Name
+
"]
"
;
string
name
=
seleEquip
.
Name
+
"打开详情
"
;
if
(
control_InDetial
.
Text
.
Equals
(
name
))
{
return
;
}
control_InDetial
.
Text
=
name
;
control_Stop
.
Text
=
"停止["
+
seleEquip
.
Name
+
"]
"
;
control_Stop
.
Text
=
seleEquip
.
Name
+
"停止
"
;
if
(
seleEquip
.
IsDebug
)
{
control_Debug
.
Text
=
"✘ 未启用"
;
...
...
@@ -1160,7 +1158,7 @@ namespace OnlineStore.AssemblyLine
{
if
(
seleEquip
.
runStatus
>
LineRunStatus
.
Wait
)
{
LogUtil
.
info
(
Name
+
"点击:复位["
+
seleEquip
.
Name
+
"]"
);
LogUtil
.
info
(
Name
+
"点击:
模块
复位["
+
seleEquip
.
Name
+
"]"
);
bool
result
=
seleEquip
.
Reset
();
if
(!
result
)
{
...
...
@@ -1185,7 +1183,7 @@ namespace OnlineStore.AssemblyLine
{
if
(
seleEquip
.
runStatus
>
LineRunStatus
.
Wait
)
{
LogUtil
.
info
(
Name
+
"点击:停止["
+
seleEquip
.
Name
+
"]"
);
LogUtil
.
info
(
Name
+
"点击:停止
运行
["
+
seleEquip
.
Name
+
"]"
);
seleEquip
.
Reset
();
}
}
...
...
source/AssemblyLineClient/FrmMoveEquip.Designer.cs
查看文件 @
90c6b43
...
...
@@ -34,13 +34,17 @@
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox5
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnStop2Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnStop1Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnClampSlack
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownUp
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnBeforeAfterBefore
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTopUp
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupDO
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ClampCylinder_Work
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
BeforeAfterCylinder_After
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
UpDownCylinder_Down
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
TopCylinder_Down
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
StopDown2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
StopDown1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
ClampCylinder_Relax
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
UpDownCylinder_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
BeforeAfterCylinder_Before
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
TopCylinder_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
chbDebug
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
lblThisSta
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblStoreStatus
=
new
System
.
Windows
.
Forms
.
Label
();
...
...
@@ -81,7 +85,7 @@
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
group
Box5
.
SuspendLayout
();
this
.
group
DO
.
SuspendLayout
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabPage1
.
SuspendLayout
();
this
.
groupBox6
.
SuspendLayout
();
...
...
@@ -110,9 +114,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
8
,
6
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
49
6
,
411
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
375
,
149
);
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
661
,
102
);
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
...
...
@@ -122,7 +126,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
(
17
,
94
);
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
479
,
18
);
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnCloseAll
.
TabIndex
=
259
;
...
...
@@ -134,7 +138,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
(
1
98
,
60
);
this
.
txtDOIndex
.
Location
=
new
System
.
Drawing
.
Point
(
1
50
,
64
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
40
,
23
);
...
...
@@ -145,10 +149,10 @@
//
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
(
55
,
60
);
this
.
txtDoName
.
Location
=
new
System
.
Drawing
.
Point
(
66
,
64
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
92
,
23
);
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
27
,
23
);
this
.
txtDoName
.
TabIndex
=
275
;
this
.
txtDoName
.
Text
=
"0"
;
//
...
...
@@ -157,7 +161,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
(
12
,
63
);
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
67
);
this
.
label17
.
Name
=
"label17"
;
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label17
.
TabIndex
=
274
;
...
...
@@ -169,7 +173,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
(
1
55
,
63
);
this
.
label14
.
Location
=
new
System
.
Drawing
.
Point
(
1
04
,
67
);
this
.
label14
.
Name
=
"label14"
;
this
.
label14
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label14
.
TabIndex
=
273
;
...
...
@@ -181,7 +185,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
(
135
,
94
);
this
.
btnOpenDo
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
18
);
this
.
btnOpenDo
.
Name
=
"btnOpenDo"
;
this
.
btnOpenDo
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnOpenDo
.
TabIndex
=
272
;
...
...
@@ -194,7 +198,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
(
251
,
94
);
this
.
btnWriteSingleDO
.
Location
=
new
System
.
Drawing
.
Point
(
348
,
58
);
this
.
btnWriteSingleDO
.
Name
=
"btnWriteSingleDO"
;
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnWriteSingleDO
.
TabIndex
=
269
;
...
...
@@ -205,7 +209,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
(
321
,
60
);
this
.
txtWriteTime
.
Location
=
new
System
.
Drawing
.
Point
(
272
,
64
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
40
,
23
);
...
...
@@ -217,7 +221,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
(
2
53
,
63
);
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
2
01
,
67
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
17
);
this
.
label5
.
TabIndex
=
270
;
...
...
@@ -227,7 +231,7 @@
// txtSlaveId
//
this
.
txtSlaveId
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtSlaveId
.
Location
=
new
System
.
Drawing
.
Point
(
417
,
26
);
this
.
txtSlaveId
.
Location
=
new
System
.
Drawing
.
Point
(
322
,
24
);
this
.
txtSlaveId
.
MaxLength
=
10
;
this
.
txtSlaveId
.
Name
=
"txtSlaveId"
;
this
.
txtSlaveId
.
Size
=
new
System
.
Drawing
.
Size
(
12
,
23
);
...
...
@@ -243,9 +247,9 @@
this
.
cmbWriteIO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
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
(
17
,
19
);
this
.
cmbWriteIO
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
24
);
this
.
cmbWriteIO
.
Name
=
"cmbWriteIO"
;
this
.
cmbWriteIO
.
Size
=
new
System
.
Drawing
.
Size
(
344
,
28
);
this
.
cmbWriteIO
.
Size
=
new
System
.
Drawing
.
Size
(
299
,
28
);
this
.
cmbWriteIO
.
TabIndex
=
234
;
this
.
cmbWriteIO
.
ValueMember
=
"ProName"
;
this
.
cmbWriteIO
.
DrawItem
+=
new
System
.
Windows
.
Forms
.
DrawItemEventHandler
(
this
.
cmbWriteIO_DrawItem
);
...
...
@@ -307,100 +311,156 @@
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
487
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// group
Box5
// group
DO
//
this
.
group
Box5
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
this
.
group
DO
.
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
.
btnStop2Up
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnStop1Up
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnClampSlack
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnUpDownUp
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnBeforeAfterBefore
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnTopUp
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
879
,
6
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
271
,
149
);
this
.
groupBox5
.
TabIndex
=
255
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
Text
=
"IO操作测试"
;
//
// btnStop2Up
//
this
.
btnStop2Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnStop2Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnStop2Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnStop2Up
.
Location
=
new
System
.
Drawing
.
Point
(
134
,
21
);
this
.
btnStop2Up
.
Name
=
"btnStop2Up"
;
this
.
btnStop2Up
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnStop2Up
.
TabIndex
=
258
;
this
.
btnStop2Up
.
Text
=
"阻挡2下降"
;
this
.
btnStop2Up
.
UseVisualStyleBackColor
=
false
;
this
.
btnStop2Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStop2Up_Click
);
//
// btnStop1Up
//
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
(
18
,
21
);
this
.
btnStop1Up
.
Name
=
"btnStop1Up"
;
this
.
btnStop1Up
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnStop1Up
.
TabIndex
=
256
;
this
.
btnStop1Up
.
Text
=
"阻挡1下降"
;
this
.
btnStop1Up
.
UseVisualStyleBackColor
=
false
;
this
.
btnStop1Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStop1Up_Click
);
//
// btnClampSlack
//
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
(
18
,
99
);
this
.
btnClampSlack
.
Name
=
"btnClampSlack"
;
this
.
btnClampSlack
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnClampSlack
.
TabIndex
=
255
;
this
.
btnClampSlack
.
Text
=
"夹料夹紧"
;
this
.
btnClampSlack
.
UseVisualStyleBackColor
=
false
;
this
.
btnClampSlack
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClampSlack_Click
);
//
// btnUpDownUp
//
this
.
btnUpDownUp
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnUpDownUp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpDownUp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownUp
.
Location
=
new
System
.
Drawing
.
Point
(
134
,
99
);
this
.
btnUpDownUp
.
Name
=
"btnUpDownUp"
;
this
.
btnUpDownUp
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnUpDownUp
.
TabIndex
=
252
;
this
.
btnUpDownUp
.
Text
=
"升降上升"
;
this
.
btnUpDownUp
.
UseVisualStyleBackColor
=
false
;
this
.
btnUpDownUp
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownUp_Click
);
//
// btnBeforeAfterBefore
//
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
(
134
,
60
);
this
.
btnBeforeAfterBefore
.
Name
=
"btnBeforeAfterBefore"
;
this
.
btnBeforeAfterBefore
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnBeforeAfterBefore
.
TabIndex
=
249
;
this
.
btnBeforeAfterBefore
.
Text
=
"横移前进"
;
this
.
btnBeforeAfterBefore
.
UseVisualStyleBackColor
=
false
;
this
.
btnBeforeAfterBefore
.
Click
+=
new
System
.
EventHandler
(
this
.
btnBeforeAfterBefore_Click
);
//
// btnTopUp
//
this
.
btnTopUp
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnTopUp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTopUp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopUp
.
Location
=
new
System
.
Drawing
.
Point
(
18
,
60
);
this
.
btnTopUp
.
Name
=
"btnTopUp"
;
this
.
btnTopUp
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnTopUp
.
TabIndex
=
246
;
this
.
btnTopUp
.
Text
=
"顶升上升"
;
this
.
btnTopUp
.
UseVisualStyleBackColor
=
false
;
this
.
btnTopUp
.
Click
+=
new
System
.
EventHandler
(
this
.
btnTopUp_Click
);
this
.
groupDO
.
Controls
.
Add
(
this
.
ClampCylinder_Work
);
this
.
groupDO
.
Controls
.
Add
(
this
.
BeforeAfterCylinder_After
);
this
.
groupDO
.
Controls
.
Add
(
this
.
UpDownCylinder_Down
);
this
.
groupDO
.
Controls
.
Add
(
this
.
TopCylinder_Down
);
this
.
groupDO
.
Controls
.
Add
(
this
.
StopDown2
);
this
.
groupDO
.
Controls
.
Add
(
this
.
StopDown1
);
this
.
groupDO
.
Controls
.
Add
(
this
.
ClampCylinder_Relax
);
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
,
280
);
this
.
groupDO
.
Name
=
"groupDO"
;
this
.
groupDO
.
Size
=
new
System
.
Drawing
.
Size
(
661
,
125
);
this
.
groupDO
.
TabIndex
=
255
;
this
.
groupDO
.
TabStop
=
false
;
this
.
groupDO
.
Text
=
"IO操作测试"
;
//
// ClampCylinder_Work
//
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
(
262
,
30
);
this
.
ClampCylinder_Work
.
Name
=
"ClampCylinder_Work"
;
this
.
ClampCylinder_Work
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
ClampCylinder_Work
.
TabIndex
=
262
;
this
.
ClampCylinder_Work
.
Text
=
"夹料气缸夹紧"
;
this
.
ClampCylinder_Work
.
UseVisualStyleBackColor
=
false
;
this
.
ClampCylinder_Work
.
Click
+=
new
System
.
EventHandler
(
this
.
ClampCylinder_Check_Click
);
//
// BeforeAfterCylinder_After
//
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
(
394
,
70
);
this
.
BeforeAfterCylinder_After
.
Name
=
"BeforeAfterCylinder_After"
;
this
.
BeforeAfterCylinder_After
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
BeforeAfterCylinder_After
.
TabIndex
=
261
;
this
.
BeforeAfterCylinder_After
.
Text
=
"横移后退<<-"
;
this
.
BeforeAfterCylinder_After
.
UseVisualStyleBackColor
=
false
;
this
.
BeforeAfterCylinder_After
.
Click
+=
new
System
.
EventHandler
(
this
.
BeforeAfterCylinder_After_Click
);
//
// UpDownCylinder_Down
//
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
(
524
,
70
);
this
.
UpDownCylinder_Down
.
Name
=
"UpDownCylinder_Down"
;
this
.
UpDownCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
UpDownCylinder_Down
.
TabIndex
=
260
;
this
.
UpDownCylinder_Down
.
Text
=
"↓ 升降下降"
;
this
.
UpDownCylinder_Down
.
UseVisualStyleBackColor
=
false
;
this
.
UpDownCylinder_Down
.
Click
+=
new
System
.
EventHandler
(
this
.
button4_Click
);
//
// TopCylinder_Down
//
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
(
136
,
70
);
this
.
TopCylinder_Down
.
Name
=
"TopCylinder_Down"
;
this
.
TopCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
TopCylinder_Down
.
TabIndex
=
259
;
this
.
TopCylinder_Down
.
Text
=
"↓ 顶升下降"
;
this
.
TopCylinder_Down
.
UseVisualStyleBackColor
=
false
;
this
.
TopCylinder_Down
.
Click
+=
new
System
.
EventHandler
(
this
.
TopCylinder_Down_Click
);
//
// StopDown2
//
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
(
8
,
70
);
this
.
StopDown2
.
Name
=
"StopDown2"
;
this
.
StopDown2
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
StopDown2
.
TabIndex
=
258
;
this
.
StopDown2
.
Text
=
"▉ 阻挡2下降"
;
this
.
StopDown2
.
UseVisualStyleBackColor
=
false
;
this
.
StopDown2
.
Click
+=
new
System
.
EventHandler
(
this
.
StopCheck2_Click
);
//
// StopDown1
//
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
(
8
,
30
);
this
.
StopDown1
.
Name
=
"StopDown1"
;
this
.
StopDown1
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
StopDown1
.
TabIndex
=
256
;
this
.
StopDown1
.
Text
=
"▉ 阻挡1下降"
;
this
.
StopDown1
.
UseVisualStyleBackColor
=
false
;
this
.
StopDown1
.
Click
+=
new
System
.
EventHandler
(
this
.
StopCheck1_Click
);
//
// ClampCylinder_Relax
//
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
(
262
,
70
);
this
.
ClampCylinder_Relax
.
Name
=
"ClampCylinder_Relax"
;
this
.
ClampCylinder_Relax
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
ClampCylinder_Relax
.
TabIndex
=
255
;
this
.
ClampCylinder_Relax
.
Text
=
"夹料气缸放松"
;
this
.
ClampCylinder_Relax
.
UseVisualStyleBackColor
=
false
;
this
.
ClampCylinder_Relax
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClampSlack_Click
);
//
// UpDownCylinder_Up
//
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
(
524
,
30
);
this
.
UpDownCylinder_Up
.
Name
=
"UpDownCylinder_Up"
;
this
.
UpDownCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
UpDownCylinder_Up
.
TabIndex
=
252
;
this
.
UpDownCylinder_Up
.
Text
=
"↑ 升降上升"
;
this
.
UpDownCylinder_Up
.
UseVisualStyleBackColor
=
false
;
this
.
UpDownCylinder_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownUp_Click
);
//
// BeforeAfterCylinder_Before
//
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
(
394
,
30
);
this
.
BeforeAfterCylinder_Before
.
Name
=
"BeforeAfterCylinder_Before"
;
this
.
BeforeAfterCylinder_Before
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
BeforeAfterCylinder_Before
.
TabIndex
=
249
;
this
.
BeforeAfterCylinder_Before
.
Text
=
"横移前进->>"
;
this
.
BeforeAfterCylinder_Before
.
UseVisualStyleBackColor
=
false
;
this
.
BeforeAfterCylinder_Before
.
Click
+=
new
System
.
EventHandler
(
this
.
btnBeforeAfterBefore_Click
);
//
// TopCylinder_Up
//
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
(
135
,
30
);
this
.
TopCylinder_Up
.
Name
=
"TopCylinder_Up"
;
this
.
TopCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
TopCylinder_Up
.
TabIndex
=
246
;
this
.
TopCylinder_Up
.
Text
=
"↑ 顶升上升"
;
this
.
TopCylinder_Up
.
UseVisualStyleBackColor
=
false
;
this
.
TopCylinder_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
btnTopUp_Click
);
//
// chbDebug
//
...
...
@@ -421,9 +481,9 @@
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
(
274
,
64
);
this
.
lblThisSta
.
Location
=
new
System
.
Drawing
.
Point
(
147
,
58
);
this
.
lblThisSta
.
Name
=
"lblThisSta"
;
this
.
lblThisSta
.
Size
=
new
System
.
Drawing
.
Size
(
372
,
13
2
);
this
.
lblThisSta
.
Size
=
new
System
.
Drawing
.
Size
(
511
,
6
2
);
this
.
lblThisSta
.
TabIndex
=
246
;
this
.
lblThisSta
.
Text
=
"等待启动"
;
this
.
lblThisSta
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
...
...
@@ -508,10 +568,10 @@
//
// tabPage1
//
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
.
groupBox5
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage1
.
Name
=
"tabPage1"
;
...
...
@@ -530,9 +590,9 @@
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblMoveInfo
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblInstoreList
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblThisSta
);
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
49
8
,
161
);
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
49
6
,
6
);
this
.
groupBox6
.
Name
=
"groupBox6"
;
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
6
52
,
352
);
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
6
61
,
268
);
this
.
groupBox6
.
TabIndex
=
278
;
this
.
groupBox6
.
TabStop
=
false
;
this
.
groupBox6
.
Text
=
"消息"
;
...
...
@@ -542,9 +602,9 @@
this
.
lblInoutInfo
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
lblInoutInfo
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblInoutInfo
.
Location
=
new
System
.
Drawing
.
Point
(
1
3
,
16
);
this
.
lblInoutInfo
.
Location
=
new
System
.
Drawing
.
Point
(
1
6
,
16
);
this
.
lblInoutInfo
.
Name
=
"lblInoutInfo"
;
this
.
lblInoutInfo
.
Size
=
new
System
.
Drawing
.
Size
(
6
33
,
42
);
this
.
lblInoutInfo
.
Size
=
new
System
.
Drawing
.
Size
(
6
42
,
40
);
this
.
lblInoutInfo
.
TabIndex
=
281
;
this
.
lblInoutInfo
.
Text
=
"当前出入库:"
;
//
...
...
@@ -553,7 +613,7 @@
this
.
lblMoveInfo
.
AutoSize
=
true
;
this
.
lblMoveInfo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblMoveInfo
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblMoveInfo
.
Location
=
new
System
.
Drawing
.
Point
(
1
1
,
62
);
this
.
lblMoveInfo
.
Location
=
new
System
.
Drawing
.
Point
(
1
4
,
58
);
this
.
lblMoveInfo
.
Name
=
"lblMoveInfo"
;
this
.
lblMoveInfo
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
lblMoveInfo
.
TabIndex
=
280
;
...
...
@@ -566,10 +626,11 @@
this
.
lblInstoreList
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblInstoreList
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblInstoreList
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblInstoreList
.
Location
=
new
System
.
Drawing
.
Point
(
274
,
180
);
this
.
lblInstoreList
.
Location
=
new
System
.
Drawing
.
Point
(
149
,
123
);
this
.
lblInstoreList
.
Name
=
"lblInstoreList"
;
this
.
lblInstoreList
.
Size
=
new
System
.
Drawing
.
Size
(
372
,
115
);
this
.
lblInstoreList
.
Size
=
new
System
.
Drawing
.
Size
(
507
,
139
);
this
.
lblInstoreList
.
TabIndex
=
277
;
this
.
lblInstoreList
.
Click
+=
new
System
.
EventHandler
(
this
.
lblInstoreList_Click
);
//
// tabPage2
//
...
...
@@ -728,10 +789,10 @@
this
.
btnP3
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnP3
.
ForeColor
=
System
.
Drawing
.
Color
.
Blue
;
this
.
btnP3
.
Location
=
new
System
.
Drawing
.
Point
(
275
,
6
6
);
this
.
btnP3
.
Location
=
new
System
.
Drawing
.
Point
(
275
,
6
3
);
this
.
btnP3
.
Name
=
"btnP3"
;
this
.
btnP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnP3
.
Size
=
new
System
.
Drawing
.
Size
(
15
6
,
34
);
this
.
btnP3
.
Size
=
new
System
.
Drawing
.
Size
(
15
4
,
34
);
this
.
btnP3
.
TabIndex
=
312
;
this
.
btnP3
.
Text
=
"料仓门口位置P3"
;
this
.
btnP3
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -743,7 +804,7 @@
this
.
txtP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtP3
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtP3
.
Location
=
new
System
.
Drawing
.
Point
(
441
,
70
);
this
.
txtP3
.
Location
=
new
System
.
Drawing
.
Point
(
441
,
67
);
this
.
txtP3
.
MaxLength
=
12
;
this
.
txtP3
.
Name
=
"txtP3"
;
this
.
txtP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -755,9 +816,9 @@
//
this
.
btnSave
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnSave
.
ForeColor
=
System
.
Drawing
.
Color
.
Blue
;
this
.
btnSave
.
Location
=
new
System
.
Drawing
.
Point
(
2
09
,
115
);
this
.
btnSave
.
Location
=
new
System
.
Drawing
.
Point
(
2
75
,
106
);
this
.
btnSave
.
Name
=
"btnSave"
;
this
.
btnSave
.
Size
=
new
System
.
Drawing
.
Size
(
1
10
,
34
);
this
.
btnSave
.
Size
=
new
System
.
Drawing
.
Size
(
1
54
,
34
);
this
.
btnSave
.
TabIndex
=
310
;
this
.
btnSave
.
Text
=
"保存位置"
;
this
.
btnSave
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -787,7 +848,7 @@
this
.
btnMoveToP1
.
Location
=
new
System
.
Drawing
.
Point
(
275
,
22
);
this
.
btnMoveToP1
.
Name
=
"btnMoveToP1"
;
this
.
btnMoveToP1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnMoveToP1
.
Size
=
new
System
.
Drawing
.
Size
(
15
6
,
34
);
this
.
btnMoveToP1
.
Size
=
new
System
.
Drawing
.
Size
(
15
4
,
34
);
this
.
btnMoveToP1
.
TabIndex
=
307
;
this
.
btnMoveToP1
.
Text
=
"移栽升降轴待机位置P1:"
;
this
.
btnMoveToP1
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -823,7 +884,7 @@
this
.
btnP2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnP2
.
ForeColor
=
System
.
Drawing
.
Color
.
Blue
;
this
.
btnP2
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
6
6
);
this
.
btnP2
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
6
3
);
this
.
btnP2
.
Name
=
"btnP2"
;
this
.
btnP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnP2
.
Size
=
new
System
.
Drawing
.
Size
(
154
,
34
);
...
...
@@ -838,7 +899,7 @@
this
.
txtP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtP2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtP2
.
Location
=
new
System
.
Drawing
.
Point
(
179
,
70
);
this
.
txtP2
.
Location
=
new
System
.
Drawing
.
Point
(
179
,
67
);
this
.
txtP2
.
MaxLength
=
12
;
this
.
txtP2
.
Name
=
"txtP2"
;
this
.
txtP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -907,7 +968,7 @@
this
.
groupBox1
.
PerformLayout
();
this
.
groupBox4
.
ResumeLayout
(
false
);
this
.
groupBox3
.
ResumeLayout
(
false
);
this
.
group
Box5
.
ResumeLayout
(
false
);
this
.
group
DO
.
ResumeLayout
(
false
);
this
.
tabControl1
.
ResumeLayout
(
false
);
this
.
tabPage1
.
ResumeLayout
(
false
);
this
.
groupBox6
.
ResumeLayout
(
false
);
...
...
@@ -933,11 +994,11 @@
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbWriteIO
;
private
System
.
Windows
.
Forms
.
TextBox
txtSlaveId
;
private
System
.
Windows
.
Forms
.
GroupBox
group
Box5
;
private
System
.
Windows
.
Forms
.
Button
btnClampSlack
;
private
System
.
Windows
.
Forms
.
Button
btnUpDown
Up
;
private
System
.
Windows
.
Forms
.
Button
btnBeforeAfter
Before
;
private
System
.
Windows
.
Forms
.
Button
btnTop
Up
;
private
System
.
Windows
.
Forms
.
GroupBox
group
DO
;
private
System
.
Windows
.
Forms
.
Button
ClampCylinder_Relax
;
private
System
.
Windows
.
Forms
.
Button
UpDownCylinder_
Up
;
private
System
.
Windows
.
Forms
.
Button
BeforeAfterCylinder_
Before
;
private
System
.
Windows
.
Forms
.
Button
TopCylinder_
Up
;
private
System
.
Windows
.
Forms
.
Label
lblThisSta
;
private
System
.
Windows
.
Forms
.
Label
lblStoreStatus
;
private
System
.
Windows
.
Forms
.
Button
btnStart
;
...
...
@@ -945,8 +1006,8 @@
private
System
.
Windows
.
Forms
.
Button
btnInStore
;
private
System
.
Windows
.
Forms
.
Button
btnOutStore
;
private
System
.
Windows
.
Forms
.
CheckBox
chbDebug
;
private
System
.
Windows
.
Forms
.
Button
btnStop2Up
;
private
System
.
Windows
.
Forms
.
Button
btnStop1Up
;
private
System
.
Windows
.
Forms
.
Button
StopDown2
;
private
System
.
Windows
.
Forms
.
Button
StopDown1
;
private
System
.
Windows
.
Forms
.
TabControl
tabControl1
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage1
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage2
;
...
...
@@ -986,6 +1047,10 @@
private
System
.
Windows
.
Forms
.
Button
btnDSave
;
private
System
.
Windows
.
Forms
.
Label
lblInoutInfo
;
private
System
.
Windows
.
Forms
.
Button
btnClose
;
private
System
.
Windows
.
Forms
.
Button
ClampCylinder_Work
;
private
System
.
Windows
.
Forms
.
Button
BeforeAfterCylinder_After
;
private
System
.
Windows
.
Forms
.
Button
UpDownCylinder_Down
;
private
System
.
Windows
.
Forms
.
Button
TopCylinder_Down
;
}
}
source/AssemblyLineClient/FrmMoveEquip.cs
查看文件 @
90c6b43
...
...
@@ -39,12 +39,12 @@ namespace OnlineStore.AssemblyLine
if
(
equipBean
.
UseAxis
)
{
axisMoveControl1
.
LoadData
(
equipBean
,
new
AxisBean
[]
{
equipBean
.
UpdownAxis
});
btnUpDown
Up
.
Visible
=
false
;
UpDownCylinder_
Up
.
Visible
=
false
;
}
else
{
tabControl1
.
TabPages
.
Remove
(
tabPage2
);
btnUpDown
Up
.
Visible
=
true
;
UpDownCylinder_
Up
.
Visible
=
true
;
}
cmbSizeList
.
Items
.
Clear
();
cmbSizeList
.
Items
.
Add
(
"0=默认位置"
);
...
...
@@ -59,6 +59,7 @@ namespace OnlineStore.AssemblyLine
lblName
.
Text
=
equipBean
.
Name
;
this
.
Text
=
equipBean
.
Name
;
LoadDP2
();
LoadDOBtn
(
groupDO
);
IsLoad
=
true
;
}
...
...
@@ -118,6 +119,7 @@ namespace OnlineStore.AssemblyLine
if
(
this
.
Visible
)
{
ReadIOList
();
ReadBtnDO
();
}
lblName
.
BackColor
=
equipBean
.
GetShowColor
();
if
(
equipBean
.
runStatus
>
LineRunStatus
.
Wait
)
...
...
@@ -387,40 +389,7 @@ namespace OnlineStore.AssemblyLine
}
private
void
btnStop1Up_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnStop1Up
,
"阻挡1下降"
,
"阻挡1上升"
,
IO_Type
.
StopDown1
);
}
private
void
btnStop2Up_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnStop2Up
,
"阻挡2下降"
,
"阻挡2上升"
,
IO_Type
.
StopDown2
);
}
private
void
btnTopUp_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnTopUp
,
"顶升上升"
,
"顶升下降"
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_Up
);
}
private
void
btnBeforeAfterBefore_Click
(
object
sender
,
EventArgs
e
)
{
if
(
equipBean
.
CanBeforeAfter
())
{
BtnMove
(
btnBeforeAfterBefore
,
"横移前进"
,
"横移后退"
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
}
else
{
MessageBox
.
Show
(
"升降气缸不在上升端 或 升降轴不在待机点P1"
,
"错误"
,
MessageBoxButtons
.
OK
,
MessageBoxIcon
.
Error
);
}
}
private
void
btnUpDownUp_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnUpDownUp
,
"升降上升"
,
"升降下降"
,
IO_Type
.
UpDownCylinder_Down
,
IO_Type
.
UpDownCylinder_Up
);
}
private
void
btnClampSlack_Click
(
object
sender
,
EventArgs
e
)
{
BtnMove
(
btnClampSlack
,
"夹料夹紧"
,
"夹料放松"
,
IO_Type
.
ClampCylinder_Relax
,
IO_Type
.
ClampCylinder_Work
);
}
private
void
cmbSizeList_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -464,7 +433,7 @@ namespace OnlineStore.AssemblyLine
private
void
btnCloseAll_Click
(
object
sender
,
EventArgs
e
)
{
foreach
(
Control
con
in
group
Box5
.
Controls
)
foreach
(
Control
con
in
group
DO
.
Controls
)
{
if
(
con
is
Button
)
{
...
...
@@ -613,6 +582,75 @@ namespace OnlineStore.AssemblyLine
{
this
.
Close
();
}
private
void
StopCheck1_Click
(
object
sender
,
EventArgs
e
)
{
DoBtnClick
(
sender
);
}
private
void
StopCheck2_Click
(
object
sender
,
EventArgs
e
)
{
DoBtnClick
(
sender
);
}
private
void
TopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
TopCylinder_Up
,
IO_Type
.
TopCylinder_Down
);
}
private
void
btnTopUp_Click
(
object
sender
,
EventArgs
e
)
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_Up
);
}
private
void
btnBeforeAfterBefore_Click
(
object
sender
,
EventArgs
e
)
{
if
(
equipBean
.
CanBeforeAfter
())
{
equipBase
.
CylinderMove
(
null
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
}
else
{
MessageBox
.
Show
(
"升降气缸不在上升端 或 升降轴不在待机点P1"
,
"错误"
,
MessageBoxButtons
.
OK
,
MessageBoxIcon
.
Error
);
}
}
private
void
btnUpDownUp_Click
(
object
sender
,
EventArgs
e
)
{
equipBase
.
CylinderMove
(
null
,
IO_Type
.
UpDownCylinder_Down
,
IO_Type
.
UpDownCylinder_Up
);
}
private
void
button4_Click
(
object
sender
,
EventArgs
e
)
{
equipBase
.
CylinderMove
(
null
,
IO_Type
.
UpDownCylinder_Up
,
IO_Type
.
UpDownCylinder_Down
);
}
private
void
BeforeAfterCylinder_After_Click
(
object
sender
,
EventArgs
e
)
{
if
(
equipBean
.
CanBeforeAfter
())
{
equipBase
.
CylinderMove
(
null
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
}
else
{
MessageBox
.
Show
(
"升降气缸不在上升端 或 升降轴不在待机点P1"
,
"错误"
,
MessageBoxButtons
.
OK
,
MessageBoxIcon
.
Error
);
}
}
private
void
ClampCylinder_Check_Click
(
object
sender
,
EventArgs
e
)
{
equipBase
.
CylinderMove
(
null
,
IO_Type
.
ClampCylinder_Work
,
IO_Type
.
ClampCylinder_Relax
);
}
private
void
btnClampSlack_Click
(
object
sender
,
EventArgs
e
)
{
equipBase
.
CylinderMove
(
null
,
IO_Type
.
ClampCylinder_Relax
,
IO_Type
.
ClampCylinder_Work
);
}
private
void
lblInstoreList_Click
(
object
sender
,
EventArgs
e
)
{
}
}
}
...
...
source/AssemblyLineClient/useControl/AxisMoveControl.Designer.cs
查看文件 @
90c6b43
...
...
@@ -31,6 +31,7 @@
this
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
groupAxis
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
lblAlarmcode
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label4
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblhomeSts
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
...
...
@@ -75,7 +76,6 @@
this
.
btnAxisStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnAxisReturnHome
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
cmbAxis
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnMCopy
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnDelMove
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOpenAxis
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtMiddleSpeed
=
new
System
.
Windows
.
Forms
.
TextBox
();
...
...
@@ -99,7 +99,7 @@
this
.
txtAxisDeviceName
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lblServerOn
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
l
blAlarmcode
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
l
inkLabel1
=
new
System
.
Windows
.
Forms
.
Link
Label
();
this
.
groupAxis
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
...
...
@@ -112,9 +112,12 @@
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupAxis
.
Controls
.
Add
(
this
.
groupBox2
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
btnComAlarmClear
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
panel1
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
lblServerOn
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
btnAxisVMove
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
btnReadPosition
);
this
.
groupAxis
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupAxis
.
Location
=
new
System
.
Drawing
.
Point
(
9
,
4
);
this
.
groupAxis
.
Name
=
"groupAxis"
;
...
...
@@ -149,7 +152,7 @@
this
.
groupBox2
.
Controls
.
Add
(
this
.
lblAxPrfPos
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
lblAxisPrfMode
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
label50
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
9
,
2
93
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
9
,
2
65
);
this
.
groupBox2
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
2
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
2
);
...
...
@@ -158,6 +161,17 @@
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
Text
=
"轴状态监控"
;
//
// lblAlarmcode
//
this
.
lblAlarmcode
.
AutoSize
=
true
;
this
.
lblAlarmcode
.
Location
=
new
System
.
Drawing
.
Point
(
422
,
65
);
this
.
lblAlarmcode
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
2
,
0
,
2
,
0
);
this
.
lblAlarmcode
.
Name
=
"lblAlarmcode"
;
this
.
lblAlarmcode
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
lblAlarmcode
.
TabIndex
=
20
;
this
.
lblAlarmcode
.
Text
=
"错误码:160"
;
this
.
lblAlarmcode
.
Visible
=
false
;
//
// label4
//
this
.
label4
.
AutoSize
=
true
;
...
...
@@ -548,11 +562,10 @@
//
// panel1
//
this
.
panel1
.
Controls
.
Add
(
this
.
btnComAlarmClear
);
this
.
panel1
.
Controls
.
Add
(
this
.
linkLabel1
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnAxisStop
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnAxisReturnHome
);
this
.
panel1
.
Controls
.
Add
(
this
.
cmbAxis
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnMCopy
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnDelMove
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnOpenAxis
);
this
.
panel1
.
Controls
.
Add
(
this
.
txtMiddleSpeed
);
...
...
@@ -561,8 +574,6 @@
this
.
panel1
.
Controls
.
Add
(
this
.
txtASpeed
);
this
.
panel1
.
Controls
.
Add
(
this
.
label1
);
this
.
panel1
.
Controls
.
Add
(
this
.
label47
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnReadPosition
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnAxisVMove
);
this
.
panel1
.
Controls
.
Add
(
this
.
label8
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnAxisRMove
);
this
.
panel1
.
Controls
.
Add
(
this
.
lblCountPulse
);
...
...
@@ -575,20 +586,21 @@
this
.
panel1
.
Controls
.
Add
(
this
.
txtAxisValue
);
this
.
panel1
.
Controls
.
Add
(
this
.
txtAxisDeviceName
);
this
.
panel1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
1
7
);
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
1
8
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
540
,
2
73
);
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
540
,
2
41
);
this
.
panel1
.
TabIndex
=
219
;
//
// btnComAlarmClear
//
this
.
btnComAlarmClear
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnComAlarmClear
.
Location
=
new
System
.
Drawing
.
Point
(
307
,
169
);
this
.
btnComAlarmClear
.
Location
=
new
System
.
Drawing
.
Point
(
563
,
297
);
this
.
btnComAlarmClear
.
Name
=
"btnComAlarmClear"
;
this
.
btnComAlarmClear
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnComAlarmClear
.
TabIndex
=
50
;
this
.
btnComAlarmClear
.
Text
=
"清除报警"
;
this
.
btnComAlarmClear
.
UseVisualStyleBackColor
=
true
;
this
.
btnComAlarmClear
.
Visible
=
false
;
this
.
btnComAlarmClear
.
Click
+=
new
System
.
EventHandler
(
this
.
btnComAlarmClear_Click
);
//
// btnAxisStop
...
...
@@ -598,7 +610,7 @@
this
.
btnAxisStop
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnAxisStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnAxisStop
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
ControlText
;
this
.
btnAxisStop
.
Location
=
new
System
.
Drawing
.
Point
(
427
,
9
0
);
this
.
btnAxisStop
.
Location
=
new
System
.
Drawing
.
Point
(
427
,
5
0
);
this
.
btnAxisStop
.
Name
=
"btnAxisStop"
;
this
.
btnAxisStop
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisStop
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
114
);
...
...
@@ -634,23 +646,12 @@
this
.
cmbAxis
.
TabIndex
=
301
;
this
.
cmbAxis
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
comboBox1_SelectedIndexChanged
);
//
// btnMCopy
//
this
.
btnMCopy
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnMCopy
.
Location
=
new
System
.
Drawing
.
Point
(
468
,
225
);
this
.
btnMCopy
.
Name
=
"btnMCopy"
;
this
.
btnMCopy
.
Size
=
new
System
.
Drawing
.
Size
(
69
,
28
);
this
.
btnMCopy
.
TabIndex
=
334
;
this
.
btnMCopy
.
Text
=
"复制"
;
this
.
btnMCopy
.
UseVisualStyleBackColor
=
true
;
this
.
btnMCopy
.
Visible
=
false
;
//
// btnDelMove
//
this
.
btnDelMove
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnDelMove
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnDelMove
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnDelMove
.
Location
=
new
System
.
Drawing
.
Point
(
3
21
,
217
);
this
.
btnDelMove
.
Location
=
new
System
.
Drawing
.
Point
(
3
44
,
184
);
this
.
btnDelMove
.
Name
=
"btnDelMove"
;
this
.
btnDelMove
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
45
);
this
.
btnDelMove
.
TabIndex
=
332
;
...
...
@@ -678,7 +679,7 @@
// txtMiddleSpeed
//
this
.
txtMiddleSpeed
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtMiddleSpeed
.
Location
=
new
System
.
Drawing
.
Point
(
74
,
226
);
this
.
txtMiddleSpeed
.
Location
=
new
System
.
Drawing
.
Point
(
85
,
194
);
this
.
txtMiddleSpeed
.
MaxLength
=
6
;
this
.
txtMiddleSpeed
.
Name
=
"txtMiddleSpeed"
;
this
.
txtMiddleSpeed
.
Size
=
new
System
.
Drawing
.
Size
(
73
,
26
);
...
...
@@ -706,11 +707,11 @@
this
.
btnAddMove
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnAddMove
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnAddMove
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnAddMove
.
Location
=
new
System
.
Drawing
.
Point
(
1
72
,
217
);
this
.
btnAddMove
.
Location
=
new
System
.
Drawing
.
Point
(
1
95
,
184
);
this
.
btnAddMove
.
Name
=
"btnAddMove"
;
this
.
btnAddMove
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
45
);
this
.
btnAddMove
.
TabIndex
=
330
;
this
.
btnAddMove
.
Text
=
"点动+(
上升
)"
;
this
.
btnAddMove
.
Text
=
"点动+(
下降
)"
;
this
.
btnAddMove
.
UseVisualStyleBackColor
=
false
;
this
.
btnAddMove
.
MouseDown
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
btnAddMove_MouseDown
);
this
.
btnAddMove
.
MouseUp
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
btnAddMove_MouseUp
);
...
...
@@ -733,7 +734,7 @@
// label1
//
this
.
label1
.
AutoSize
=
true
;
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
9
,
231
);
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
199
);
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
label1
.
TabIndex
=
329
;
...
...
@@ -760,13 +761,14 @@
this
.
btnReadPosition
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnReadPosition
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnReadPosition
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
ControlText
;
this
.
btnReadPosition
.
Location
=
new
System
.
Drawing
.
Point
(
188
,
140
);
this
.
btnReadPosition
.
Location
=
new
System
.
Drawing
.
Point
(
563
,
374
);
this
.
btnReadPosition
.
Name
=
"btnReadPosition"
;
this
.
btnReadPosition
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnReadPosition
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnReadPosition
.
TabIndex
=
278
;
this
.
btnReadPosition
.
Text
=
"读取位置"
;
this
.
btnReadPosition
.
UseVisualStyleBackColor
=
true
;
this
.
btnReadPosition
.
Visible
=
false
;
this
.
btnReadPosition
.
Click
+=
new
System
.
EventHandler
(
this
.
btnReadPosition_Click
);
//
// btnAxisVMove
...
...
@@ -776,13 +778,14 @@
this
.
btnAxisVMove
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnAxisVMove
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnAxisVMove
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
ControlText
;
this
.
btnAxisVMove
.
Location
=
new
System
.
Drawing
.
Point
(
307
,
89
);
this
.
btnAxisVMove
.
Location
=
new
System
.
Drawing
.
Point
(
563
,
337
);
this
.
btnAxisVMove
.
Name
=
"btnAxisVMove"
;
this
.
btnAxisVMove
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisVMove
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnAxisVMove
.
TabIndex
=
249
;
this
.
btnAxisVMove
.
Text
=
"匀速运动"
;
this
.
btnAxisVMove
.
UseVisualStyleBackColor
=
true
;
this
.
btnAxisVMove
.
Visible
=
false
;
this
.
btnAxisVMove
.
Click
+=
new
System
.
EventHandler
(
this
.
btnAxisVMove_Click
);
//
// label8
...
...
@@ -802,7 +805,7 @@
this
.
btnAxisRMove
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnAxisRMove
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnAxisRMove
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
ControlText
;
this
.
btnAxisRMove
.
Location
=
new
System
.
Drawing
.
Point
(
427
,
48
);
this
.
btnAxisRMove
.
Location
=
new
System
.
Drawing
.
Point
(
307
,
89
);
this
.
btnAxisRMove
.
Name
=
"btnAxisRMove"
;
this
.
btnAxisRMove
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisRMove
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
...
...
@@ -937,16 +940,16 @@
//
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer1_Tick
);
//
// l
blAlarmcode
// l
inkLabel1
//
this
.
l
blAlarmcode
.
AutoSize
=
true
;
this
.
l
blAlarmcode
.
Location
=
new
System
.
Drawing
.
Point
(
422
,
65
);
this
.
l
blAlarmcode
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
2
,
0
,
2
,
0
)
;
this
.
l
blAlarmcode
.
Name
=
"lblAlarmcode"
;
this
.
l
blAlarmcode
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
)
;
this
.
l
blAlarmcode
.
TabIndex
=
20
;
this
.
l
blAlarmcode
.
Text
=
"错误码:160
"
;
this
.
l
blAlarmcode
.
Visible
=
false
;
this
.
l
inkLabel1
.
AutoSize
=
true
;
this
.
l
inkLabel1
.
Location
=
new
System
.
Drawing
.
Point
(
192
,
150
);
this
.
l
inkLabel1
.
Name
=
"linkLabel1"
;
this
.
l
inkLabel1
.
Size
=
new
System
.
Drawing
.
Size
(
32
,
17
)
;
this
.
l
inkLabel1
.
TabIndex
=
333
;
this
.
l
inkLabel1
.
TabStop
=
true
;
this
.
l
inkLabel1
.
Text
=
"复制
"
;
this
.
l
inkLabel1
.
LinkClicked
+=
new
System
.
Windows
.
Forms
.
LinkLabelLinkClickedEventHandler
(
this
.
linkLabel1_LinkClicked
)
;
//
// AxisMoveControl
//
...
...
@@ -1008,7 +1011,6 @@
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
TextBox
txtServoStatue
;
private
System
.
Windows
.
Forms
.
Button
btnMCopy
;
private
System
.
Windows
.
Forms
.
Button
btnDelMove
;
private
System
.
Windows
.
Forms
.
TextBox
txtMiddleSpeed
;
private
System
.
Windows
.
Forms
.
Button
btnAddMove
;
...
...
@@ -1040,5 +1042,6 @@
private
System
.
Windows
.
Forms
.
Label
label50
;
private
System
.
Windows
.
Forms
.
Timer
timer1
;
private
System
.
Windows
.
Forms
.
Label
lblAlarmcode
;
private
System
.
Windows
.
Forms
.
LinkLabel
linkLabel1
;
}
}
source/AssemblyLineClient/useControl/AxisMoveControl.cs
查看文件 @
90c6b43
...
...
@@ -12,6 +12,7 @@ using OnlineStore.Common;
using
System.Threading
;
using
OnlineStore.LoadCSVLibrary
;
using
HuichuanLibrary
;
using
System.Net.Sockets
;
namespace
OnlineStore.AssemblyLine
{
...
...
@@ -353,5 +354,9 @@ namespace OnlineStore.AssemblyLine
{
this
.
timer1
.
Stop
();
}
private
void
linkLabel1_LinkClicked
(
object
sender
,
LinkLabelLinkClickedEventArgs
e
)
{
Clipboard
.
SetText
(
lblCountPulse
.
Text
);
}
}
}
source/AssemblyLineClient/useControl/EquipControl.cs
查看文件 @
90c6b43
...
...
@@ -105,7 +105,7 @@ namespace OnlineStore.AssemblyLine
}
if
(
box
.
SAlarmType
.
Equals
(
LineAlarm
.
None
))
{
lblBox
.
Text
=
"BOX["
+
box
.
CId
.
ToString
()
+
"]:"
+
online
+
" "
+
box
.
ToShowStr
();
lblBox
.
Text
=
"BOX["
+
box
.
CId
.
ToString
()
+
"]:"
+
online
+
" "
+
box
.
ToShowStr
();
lblBox
.
BackColor
=
Color
.
Green
;
}
else
...
...
@@ -124,8 +124,15 @@ namespace OnlineStore.AssemblyLine
}
else
{
if
(
equip
.
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
CheckFixture
))
{
lblMoveInfo
.
Text
=
"托盘["
+
equip
.
currTrayNum
+
"]处理中"
;
}
else
{
lblMoveInfo
.
Text
=
"暂无托盘横移"
;
}
}
this
.
BackColor
=
equip
.
GetShowColor
();
//SetItemColor(equip.runStatus, equip.alarmType);
}
...
...
source/DeviceLibrary/LineConfig/Config_Line.csv
查看文件 @
90c6b43
此文件的差异太大,无法显示。
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
90c6b43
...
...
@@ -14,12 +14,14 @@ namespace OnlineStore.DeviceLibrary
public
abstract
class
EquipBase
:
KTK_Store
{
public
LineMoveInfo
SecondMoveInfo
=
null
;
public
bool
IsDebug
=
false
;
public
bool
UseAxis
=
false
;
public
ConcurrentQueue
<
InOutParam
>
waitOutStoreList
=
new
ConcurrentQueue
<
InOutParam
>();
public
List
<
InOutParam
>
waitInStoreList
=
new
List
<
InOutParam
>();
internal
object
waitInListLock
=
""
;
public
LineMoveInfo
SecondMoveInfo
=
null
;
protected
int
trayCount
=
0
;
/// <summary>
/// 上一个盘号
...
...
@@ -35,9 +37,6 @@ namespace OnlineStore.DeviceLibrary
public
AxisBean
UpdownAxis
=
null
;
public
delegate
void
TrayProcessEnd
(
int
swNum
,
int
trayNum
);
protected
virtual
void
StopMoveProcess
()
{
}
protected
abstract
void
BaseTimerProcess
();
protected
abstract
void
CheckFixtureProcess
();
...
...
@@ -75,38 +74,7 @@ namespace OnlineStore.DeviceLibrary
}
public
bool
MoveStop
=
false
;
protected
override
void
BusyMoveProcess
()
{
if
(
MoveStop
)
{
return
;
}
if
(
SecondMoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
CheckFixture
))
{
CheckFixtureProcess
();
}
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
InStore
)
||
this
.
SecondMoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
InStore
))
{
InStoreProcess
();
}
else
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
||
SecondMoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
))
{
OutStoreProcess
();
}
else
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
ReturnHome
))
{
ResetProcess
();
}
else
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
Reset
))
{
ResetProcess
();
}
else
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
StopMove
))
{
StopMoveProcess
();
}
}
private
DateTime
lastProTimer
=
DateTime
.
Now
;
protected
int
TimerMaxSeconds
=
3
;
...
...
@@ -187,7 +155,7 @@ namespace OnlineStore.DeviceLibrary
string
canResult
=
LineManager
.
Line
.
CanStart
();
if
(
String
.
IsNullOrEmpty
(
canResult
).
Equals
(
false
))
{
SetWarnMsg
(
canResult
);
SetWarnMsg
(
Name
+
canResult
);
return
false
;
}
return
true
;
...
...
@@ -613,32 +581,20 @@ namespace OnlineStore.DeviceLibrary
}
}
}
protected
void
SInOutLog
(
string
msg
)
{
string
posId
=
SecondMoveInfo
.
MoveParam
!=
null
?
SecondMoveInfo
.
MoveParam
.
PosId
:
""
;
if
(
String
.
IsNullOrEmpty
(
posId
))
{
LogUtil
.
info
(
Name
+
" "
+
msg
);
}
else
{
LogUtil
.
info
(
Name
+
" "
+
"["
+
posId
+
"] "
+
msg
);
}
}
protected
string
RFIDIP
=
""
;
public
virtual
string
GetMoveStr
()
{
string
msg
=
""
;
int
tLength
=
15
;
if
(!
String
.
IsNullOrEmpty
(
RFIDIP
))
{
msg
+=
"上个托盘:"
+
preTrayNum
+
"\n"
;
msg
+=
"当前托盘:"
+
currTrayNum
+
"\n"
;
}
msg
+=
"runS: "
+
runStatus
+
"\n"
;
msg
+=
"alarm: "
+
alarmType
+
" "
+
LastAlarmTime
.
ToLongTimeString
()+
"\n"
;
msg
+=
"MoveT:"
+
MoveInfo
.
MoveType
+
"\n"
;
msg
+=
"MoveS :"
+
MoveInfo
.
SLog
+
"\n"
;
msg
+=
"SMoveT:"
+
SecondMoveInfo
.
MoveType
+
"\n"
;
msg
+=
"SMoveS:"
+
SecondMoveInfo
.
MoveStep
+
""
;
msg
+=
"Move:"
+
MoveInfo
.
MoveType
+
" "
+
MoveInfo
.
SLog
+
"\n"
;
msg
+=
"SMove:"
+
SecondMoveInfo
.
MoveType
+
" "
+
SecondMoveInfo
.
MoveStep
+
"\n"
;
return
msg
;
}
internal
void
MoveEndS
()
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
查看文件 @
90c6b43
...
...
@@ -28,7 +28,7 @@ namespace OnlineStore.DeviceLibrary
baseConfig
=
config
;
this
.
Config
=
config
;
IsDebug
=
config
.
IsDebug
.
Equals
(
1
);
Name
=
(
" "
+
"
_入料_
T"
+
DeviceID
%
100
+
" "
).
ToUpper
();
Name
=
(
" "
+
"
入料
T"
+
DeviceID
%
100
+
" "
).
ToUpper
();
Init
();
UseAxis
=
true
;
...
...
@@ -36,6 +36,7 @@ namespace OnlineStore.DeviceLibrary
BatchAxis
=
new
AxisBean
(
config
.
Batch_Axis
,
Name
);
MoveInfo
=
new
LineMoveInfo
(
DeviceID
,
"["
+
Name
.
Trim
()
+
"-Move]"
);
SecondMoveInfo
=
new
LineMoveInfo
(
DeviceID
,
"["
+
Name
.
Trim
()
+
"-SMove]"
);
RFIDIP
=
RFIDManager
.
GetRFIP
(
DeviceID
);
}
...
...
@@ -396,17 +397,17 @@ namespace OnlineStore.DeviceLibrary
StartOutStoreP
();
}
}
if
(
SecondMoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
)
&&
NoErrorAlarm
())
{
if
(
Config
.
IsCanOut
.
Equals
(
0
))
{
StartCheckFixture
();
}
else
if
(
LineManager
.
Line
.
runStatus
<=
LineRunStatus
.
Wait
)
{
StartCheckFixture
();
}
}
//
if (SecondMoveInfo.MoveType.Equals(LineMoveType.None) && NoErrorAlarm())
//
{
//
if (Config.IsCanOut.Equals(0))
//
{
//
StartCheckFixture();
//
}
//
else if (LineManager.Line.runStatus <= LineRunStatus.Wait)
//
{
//
StartCheckFixture();
//
}
//
}
if
(
NoErrorAlarm
())
{
if
(
IOValue
(
IO_Type
.
SL_Out_Check
).
Equals
(
IO_VALUE
.
HIGH
))
...
...
@@ -964,8 +965,8 @@ namespace OnlineStore.DeviceLibrary
msg
+=
"alarm: "
+
alarmType
+
"\n"
;
msg
+=
"MoveT:"
+
MoveInfo
.
MoveType
+
"\n"
;
msg
+=
"MoveS :"
+
MoveInfo
.
SLog
+
"\n"
;
msg
+=
"SMoveT:"
+
SecondMoveInfo
.
MoveType
+
"\n"
;
msg
+=
"SMoveS:"
+
SecondMoveInfo
.
MoveStep
+
"\n"
;
//
msg += "SMoveT:" + SecondMoveInfo.MoveType + "\n";
//
msg += "SMoveS:" + SecondMoveInfo.MoveStep + "\n";
// msg += "" + LastWidth + "X" + LastHeight + "="+ lastcode + "";
return
msg
;
...
...
source/DeviceLibrary/assemblyLine/HY/HYEquipBase.cs
查看文件 @
90c6b43
...
...
@@ -51,7 +51,7 @@ namespace OnlineStore.DeviceLibrary
this
.
Config
=
config
;
baseConfig
=
config
;
IsDebug
=
config
.
IsDebug
.
Equals
(
1
);
Name
=
(
"
_HY"
+
(
DeviceID
%
100
).
ToString
().
PadLeft
(
2
,
'0'
)
+
"_
"
).
ToUpper
();
Name
=
(
"
HY"
+
(
DeviceID
%
100
).
ToString
().
PadLeft
(
2
,
'0'
)
+
"
"
).
ToUpper
();
Init
();
MoveInfo
=
new
LineMoveInfo
(
DeviceID
,
"["
+
Name
.
Trim
()
+
"-Move]"
);
...
...
@@ -115,6 +115,7 @@ namespace OnlineStore.DeviceLibrary
{
HyInDeviceId
=
218
;
}
RFIDIP
=
RFIDManager
.
GetRFIP
(
DeviceID
);
}
...
...
source/DeviceLibrary/assemblyLine/HY/HY_C1Line.cs
查看文件 @
90c6b43
...
...
@@ -20,7 +20,7 @@ namespace OnlineStore.DeviceLibrary
{
public
HY_C1Line
(
string
cid
,
HYEquip_Config
config
)
:
base
(
cid
,
config
)
{
Name
=
(
"
_C1线HY"
+
(
DeviceID
%
100
).
ToString
().
PadLeft
(
2
,
'0'
)
+
"_
"
).
ToUpper
();
Name
=
(
"
C1HY"
+
(
DeviceID
%
100
).
ToString
().
PadLeft
(
2
,
'0'
)
+
"
"
).
ToUpper
();
}
public
override
bool
StartRun
(
bool
isDebug
=
false
)
...
...
source/DeviceLibrary/assemblyLine/HY/HY_C1_SLStation.cs
查看文件 @
90c6b43
...
...
@@ -17,7 +17,7 @@ namespace OnlineStore.DeviceLibrary
{
public
HY_C1_SLStation
(
string
cid
,
HYEquip_Config
config
)
:
base
(
cid
,
config
)
{
Name
=
(
"
_C1线THY"
+
(
DeviceID
%
100
).
ToString
().
PadLeft
(
2
,
'0'
)
+
"_
"
).
ToUpper
();
Name
=
(
"
C1THY"
+
(
DeviceID
%
100
).
ToString
().
PadLeft
(
2
,
'0'
)
+
"
"
).
ToUpper
();
}
public
override
bool
StartRun
(
bool
isDebug
=
false
)
...
...
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor.cs
查看文件 @
90c6b43
...
...
@@ -7,11 +7,14 @@ using System.Threading.Tasks;
namespace
OnlineStore.DeviceLibrary
{
/// <summary>
/// 接驳台横移
/// </summary>
public
class
HY_Coveryor
:
HYEquipBase
{
public
HY_Coveryor
(
string
cid
,
HYEquip_Config
config
)
:
base
(
cid
,
config
)
{
Name
=
(
"
_接驳台HY"
+
(
DeviceID
%
100
).
ToString
().
PadLeft
(
2
,
'0'
)
+
"_
"
).
ToUpper
();
Name
=
(
"
JHY"
+
(
DeviceID
%
100
).
ToString
().
PadLeft
(
2
,
'0'
)
+
"
"
).
ToUpper
();
}
...
...
@@ -46,7 +49,6 @@ namespace OnlineStore.DeviceLibrary
return
false
;
}
LogInfo
(
"开始重置: 升降轴回原点,阻挡气缸上升 "
);
runStatus
=
LineRunStatus
.
Reset
;
SecondMoveInfo
.
EndMove
();
MoveInfo
.
NewMove
(
LineMoveType
.
Reset
);
...
...
source/DeviceLibrary/assemblyLine/HY/HY_OutLine.cs
查看文件 @
90c6b43
...
...
@@ -14,10 +14,8 @@ namespace OnlineStore.DeviceLibrary
{
public
HY_OutLine
(
string
cid
,
HYEquip_Config
config
)
:
base
(
cid
,
config
)
{
Name
=
(
"
_"
+
config
.
LineName
+
"线HY"
+
(
DeviceID
%
100
).
ToString
().
PadLeft
(
2
,
'0'
)
+
"_
"
).
ToUpper
();
Name
=
(
"
"
+
config
.
LineName
+
"HY"
+
(
DeviceID
%
100
).
ToString
().
PadLeft
(
2
,
'0'
)
+
"
"
).
ToUpper
();
}
public
override
bool
StartRun
(
bool
isDebug
=
false
)
{
if
(
CanStartRun
().
Equals
(
false
))
...
...
@@ -309,9 +307,6 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
HY_TrayCheck
,
IO_VALUE
.
LOW
));
}
#
endregion
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
OHY21_WaitTrayLeave
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
OHY22_TrayLeave
);
...
...
source/DeviceLibrary/assemblyLine/MoveEquip.cs
查看文件 @
90c6b43
...
...
@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
this
.
Config
=
config
;
baseConfig
=
config
;
IsDebug
=
config
.
IsDebug
.
Equals
(
1
);
Name
=
(
" "
+
"
_"
+
GetNByID
()
+
"_进仓"
+
DeviceID
.
ToString
().
PadLeft
(
2
,
'0'
)
+
"_
"
).
ToUpper
();
Name
=
(
" "
+
"
"
+
GetNByID
()
+
"进仓"
+
DeviceID
.
ToString
().
PadLeft
(
2
,
'0'
)
+
"
"
).
ToUpper
();
Init
();
...
...
@@ -32,6 +32,7 @@ namespace OnlineStore.DeviceLibrary
UseAxis
=
config
.
UpDownUseAxis
.
Equals
(
1
);
UpdownAxis
=
new
AxisBean
(
config
.
UpDown_Axis
,
Name
);
RFIDIP
=
RFIDManager
.
GetRFIP
(
DeviceID
);
}
private
string
GetNByID
()
{
...
...
@@ -221,8 +222,34 @@ namespace OnlineStore.DeviceLibrary
CheckAndMove
(
IO_Type
.
ClampCylinder_Relax
,
IO_VALUE
.
LOW
);
runStatus
=
LineRunStatus
.
Wait
;
}
protected
override
void
BusyMoveProcess
()
{
if
(
MoveStop
)
{
return
;
}
if
(
SecondMoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
CheckFixture
))
{
CheckFixtureProcess
();
}
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
InStore
)
||
this
.
SecondMoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
InStore
))
{
InStoreProcess
();
}
else
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
||
SecondMoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
))
{
OutStoreProcess
();
}
else
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
ReturnHome
))
{
ResetProcess
();
}
else
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
Reset
))
{
ResetProcess
();
}
}
protected
override
void
BaseTimerProcess
()
{
if
(
isInSuddenDown
||
isNoAirCheck
)
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
90c6b43
...
...
@@ -200,7 +200,7 @@ namespace OnlineStore.DeviceLibrary
{
// 减去需要的盘数
// TrayManager.DelNeedEmptyTrayNum();
SIn
OutLog
(
"出库 :移栽完成,放行托盘"
);
OutLog
(
"出库 :移栽完成,放行托盘"
);
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_TopDown
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_Up
,
IO_Type
.
TopCylinder_Down
);
...
...
@@ -330,9 +330,10 @@ namespace OnlineStore.DeviceLibrary
{
int
num
=
MoveInfo
.
MoveParam
.
TrayNumber
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_10_WaitBox
);
LogInfo
(
"入库【"
+
posId
+
"】 "
+
MoveInfo
.
SLog
+
": 等待box可入库,更新托盘【"
+
num
+
"】为空盘"
);
LogInfo
(
"入库【"
+
posId
+
"】 "
+
MoveInfo
.
SLog
+
": 等待box可入库,更新托盘【"
+
num
+
"】为空盘
,删除入库任务
"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitBoxCanReviceTray
());
TrayManager
.
UpdateTrayInfo
(
num
);
RemoveInStore
(
MoveInfo
.
MoveParam
);
InLog
(
"放托盘(放开阻挡): "
+
MoveInfo
.
SLog
+
" 物品已移走,顶升气缸1下降"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_TopDown
);
...
...
@@ -572,7 +573,7 @@ namespace OnlineStore.DeviceLibrary
{
LogUtil
.
error
(
Name
+
"托盘号【"
+
currTrayNum
+
"】入库信息【"
+
currCode
.
ToStr
()
+
"】料仓未验证成功,不拦截托盘,更新此托盘为NG,从waitInStoreList中删除,取消入库任务"
);
TrayManager
.
UpdateInStoreNG
(
currTrayNum
,
true
,
"Box验证入库失败"
);
waitInStoreList
.
RemoveAt
(
reIndex
);
//
waitInStoreList.RemoveAt(reIndex);
SServerManager
.
cancelPutInTask
(
Name
,
currCode
.
WareCode
);
return
false
;
}
...
...
@@ -584,6 +585,35 @@ namespace OnlineStore.DeviceLibrary
return
false
;
}
private
bool
RemoveInStore
(
InOutParam
param
)
{
if
(
waitInStoreList
.
Count
>
0
)
{
lock
(
waitInListLock
)
{
//判断是否是自己排队列表中的入库信息
int
reIndex
=
-
1
;
for
(
int
i
=
0
;
i
<
waitInStoreList
.
Count
;
i
++)
{
InOutParam
cc
=
waitInStoreList
[
i
];
//托盘号一致,二维码一致,库位号一致
if
(
cc
.
TrayNumber
.
Equals
(
param
.
TrayNumber
)
&&
cc
.
PosId
.
Equals
(
param
.
PosId
)
&&
cc
.
WareCode
.
Equals
(
param
.
WareCode
))
{
reIndex
=
i
;
break
;
}
}
if
(
reIndex
>=
0
)
{
waitInStoreList
.
RemoveAt
(
reIndex
);
LogInfo
(
"*******料盘已移走,清理入库任务:【"
+
param
.
ToStr
()
+
"】"
);
return
true
;
}
}
}
return
false
;
}
#
endregion
#
region
托盘检测
...
...
source/DeviceLibrary/model/KTK_Store.cs
查看文件 @
90c6b43
...
...
@@ -270,6 +270,10 @@ namespace OnlineStore.DeviceLibrary
{
if
(
String
.
IsNullOrEmpty
(
msg
).
Equals
(
false
))
{
if
(!
msg
.
StartsWith
(
Name
))
{
msg
=
Name
+
msg
;
}
if
(
WarnMsg
.
Equals
(
msg
))
{
if
(
msg
.
StartsWith
(
Name
))
...
...
source/DeviceLibrary/model/LineMoveInfo.cs
查看文件 @
90c6b43
...
...
@@ -576,17 +576,5 @@ namespace OnlineStore.DeviceLibrary
/// 夹具检测处理
/// </summary>
CheckFixture
=
5
,
/// <summary>
/// 移栽装置的停止,需要先远点返回,然后停止
/// </summary>
StopMove
=
6
,
/// <summary>
/// 夹具横移处理
/// </summary>
HY
=
7
,
///// <summary>
///// 移栽检测托盘
///// </summary>
//CheckFixture=6,
}
}
source/DeviceLibrary/model/StoreStep.cs
查看文件 @
90c6b43
...
...
@@ -107,14 +107,8 @@ namespace OnlineStore.DeviceLibrary
ResetMove
=
13
,
}
/// <summary>
/// 料仓运动状态(当料仓状态=busy时,才会有此运动状态)
/// </summary>
public
enum
LineMoveStep
{
/// <summary>
/// 无操作,等待状态
/// </summary>
Wait
=
0
,
...
...
@@ -1251,7 +1245,7 @@ namespace OnlineStore.DeviceLibrary
#
endregion
#
region
横移模块
50000
开始
#
region
C1
线
横移模块
50000
开始
#
region
横移模块复位,
50001
/// <summary>
...
...
@@ -1305,7 +1299,7 @@ namespace OnlineStore.DeviceLibrary
#
endregion
#
region
横移
C1
->
C1
分流入口横移操作
,
51011
#
region
横移
C1
->
C1
分流入口横移操作
,
51011
-
51019
/// <summary>
/// 横移C1->C1分流入口:开始横移,顶升上升,定位下降
/// </summary>
...
...
@@ -1343,7 +1337,7 @@ namespace OnlineStore.DeviceLibrary
#
endregion
#
region
横移
C1
线
->
出料线
横移处理
51031
#
region
横移
C1
线
->
出料线
横移处理
51031
-
51039
/// <summary>
/// C1线->出料线:开始横移,顶升上升
/// </summary>
...
...
@@ -1522,6 +1516,8 @@ namespace OnlineStore.DeviceLibrary
HY95_StopDownUp
,
#
endregion
#
endregion
#
region
出料线横移,
52001
/// <summary>
...
...
@@ -1587,8 +1583,52 @@ namespace OnlineStore.DeviceLibrary
OHY22_TrayLeave
,
#
endregion
#
region
接驳台横移
,
53001
#
region
接驳台横移复位
//升降轴回待机点
//升降轴回P1
//电机停止,阻挡上升,定位下降,顶升下降,接驳台取料端
//,接驳台夹料气缸放松
//等待夹爪无料
/// <summary>
/// 接驳台横移复位:升降轴回原点
/// </summary>
JHY_R01_UpdownHome
=
53001
,
/// <summary>
/// 接驳台横移复位:升降轴到P1
/// </summary>
JHY_R02_UpdownUp
,
/// <summary>
/// 接驳台横移复位:电机停止,阻挡上升,定位气缸下降,接驳台取料端
/// </summary>
JHY_R03_LocationDown
,
/// <summary>
/// 接驳台横移复位:升降气缸下降,夹紧气缸放松
/// </summary>
JHY_R04_TopDown
,
/// <summary>
/// 接驳台横移复位:等待夹爪无信号
/// </summary>
JHY_R05_ClampCheck
,
#
endregion
#
region
接驳台横移托盘处理
#
endregion
#
endregion
}
public
enum
LineAlarmType
...
...
source/LoadCVSLibrary/CSVReaderBase.cs
查看文件 @
90c6b43
...
...
@@ -74,7 +74,12 @@ namespace OnlineStore.LoadCSVLibrary
{
throw
new
FileNotFoundException
(
"未找到文件:"
+
filePath
);
}
string
[]
lines
=
File
.
ReadAllLines
(
filePath
,
Encoding
.
UTF8
);
Encoding
encoding
=
Encoding
.
UTF8
;
if
(!
FileEncoding
.
GetType
(
filePath
).
Equals
(
Encoding
.
UTF8
))
{
encoding
=
Encoding
.
GetEncoding
(
"gb2312"
);
}
string
[]
lines
=
File
.
ReadAllLines
(
filePath
,
encoding
);
return
lines
;
}
/// <summary>
...
...
source/LoadCVSLibrary/FileEncoding.cs
0 → 100644
查看文件 @
90c6b43
using
System
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Linq
;
using
System.Text
;
namespace
OnlineStore.LoadCSVLibrary
{
public
class
FileEncoding
{
/// <summary>
/// 给定文件的路径,读取文件的二进制数据,判断文件的编码类型
/// </summary>
/// <param name=“FILE_NAME“>文件路径</param>
/// <returns>文件的编码类型</returns>
public
static
System
.
Text
.
Encoding
GetType
(
string
FILE_NAME
)
{
FileStream
fs
=
new
FileStream
(
FILE_NAME
,
FileMode
.
Open
,
FileAccess
.
Read
);
Encoding
r
=
GetType
(
fs
);
fs
.
Close
();
return
r
;
}
/// <summary>
/// 通过给定的文件流,判断文件的编码类型
/// </summary>
/// <param name=“fs“>文件流</param>
/// <returns>文件的编码类型</returns>
public
static
System
.
Text
.
Encoding
GetType
(
FileStream
fs
)
{
byte
[]
Unicode
=
new
byte
[]
{
0xFF
,
0xFE
,
0x41
};
byte
[]
UnicodeBIG
=
new
byte
[]
{
0xFE
,
0xFF
,
0x00
};
byte
[]
UTF8
=
new
byte
[]
{
0xEF
,
0xBB
,
0xBF
};
//带BOM
Encoding
reVal
=
Encoding
.
Default
;
BinaryReader
r
=
new
BinaryReader
(
fs
,
System
.
Text
.
Encoding
.
Default
);
int
i
;
int
.
TryParse
(
fs
.
Length
.
ToString
(),
out
i
);
byte
[]
ss
=
r
.
ReadBytes
(
i
);
if
(
IsUTF8Bytes
(
ss
)
||
(
ss
[
0
]
==
0xEF
&&
ss
[
1
]
==
0xBB
&&
ss
[
2
]
==
0xBF
))
{
reVal
=
Encoding
.
UTF8
;
}
else
if
(
ss
[
0
]
==
0xFE
&&
ss
[
1
]
==
0xFF
&&
ss
[
2
]
==
0x00
)
{
reVal
=
Encoding
.
BigEndianUnicode
;
}
else
if
(
ss
[
0
]
==
0xFF
&&
ss
[
1
]
==
0xFE
&&
ss
[
2
]
==
0x41
)
{
reVal
=
Encoding
.
Unicode
;
}
r
.
Close
();
return
reVal
;
}
/// <summary>
/// 判断是否是不带 BOM 的 UTF8 格式
/// </summary>
/// <param name=“data“></param>
/// <returns></returns>
private
static
bool
IsUTF8Bytes
(
byte
[]
data
)
{
int
charByteCounter
=
1
;
//计算当前正分析的字符应还有的字节数
byte
curByte
;
//当前分析的字节.
for
(
int
i
=
0
;
i
<
data
.
Length
;
i
++)
{
curByte
=
data
[
i
];
if
(
charByteCounter
==
1
)
{
if
(
curByte
>=
0x80
)
{
//判断当前
while
(((
curByte
<<=
1
)
&
0x80
)
!=
0
)
{
charByteCounter
++;
}
//标记位首位若为非0 则至少以2个1开始 如:110XXXXX...........1111110X
if
(
charByteCounter
==
1
||
charByteCounter
>
6
)
{
return
false
;
}
}
}
else
{
//若是UTF-8 此时第一位必须为1
if
((
curByte
&
0xC0
)
!=
0x80
)
{
return
false
;
}
charByteCounter
--;
}
}
if
(
charByteCounter
>
1
)
{
throw
new
Exception
(
"非预期的byte格式"
);
}
return
true
;
}
}
}
source/LoadCVSLibrary/LoadCSVLibrary.csproj
查看文件 @
90c6b43
...
...
@@ -47,6 +47,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="CSVExection.cs" />
<Compile Include="FileEncoding.cs" />
<Compile Include="storeConfig\ConfigItemBase.cs" />
<Compile Include="storeConfig\ConfigProAttribute.cs" />
<Compile Include="storeConfig\config\Line_Config.cs" />
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论