Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1053_CycleLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit afbbb753
由
刘韬
编写于
2022-08-19 13:46:18 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
bd6dcba0
显示空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
129 行增加
和
74 行删除
1053环形线IO设备配置(更新版).xlsx
DeviceLibrary/theMachine/DeviceBase.cs
DeviceLibrary/theMachine/RobotManage.cs
DeviceLibrary/theMachine/sub/SideMove.cs
DeviceLibrary/theMachine/sub/TransplantMove.cs
DeviceLibrary/theMachine/sub/TrayStop.cs
LoadCVSLibrary/storeConfig/config/Robot_Config.cs
TheMachine/AxisControl.cs
TheMachine/Form1.cs
TheMachine/SettingControl.cs
TheMachine/UC/ConfigControl.cs
TheMachine/UC/CylinderButton.cs
TheMachine/device/TransplantControl.Designer.cs
TheMachine/device/TransplantControl.cs
TheMachine/device/TrayStopControl.Designer.cs
TheMachine/device/TrayStopControl.cs
1053环形线IO设备配置(更新版).xlsx
0 → 100644
查看文件 @
afbbb75
此文件类型无法预览
DeviceLibrary/theMachine/DeviceBase.cs
查看文件 @
afbbb75
...
@@ -20,10 +20,12 @@ namespace DeviceLibrary
...
@@ -20,10 +20,12 @@ namespace DeviceLibrary
{
{
//runStatus = RunStatus.Stop;
//runStatus = RunStatus.Stop;
MoveInfo
.
List
.
ForEach
((
m
)=>
{
m
.
EndMove
();
});
MoveInfo
.
List
.
ForEach
((
m
)=>
{
m
.
EndMove
();
});
if
(
AxisBean
.
List
.
ContainsKey
(
GroupName
))
AxisBean
.
StopMultiAxis
(
AxisBean
.
List
[
GroupName
]);
AxisBean
.
StopMultiAxis
(
AxisBean
.
List
[
GroupName
]);
if
(
ServoOff
)
if
(
ServoOff
)
{
{
if
(
AxisBean
.
List
.
ContainsKey
(
GroupName
))
AxisBean
.
CloseMultiAxis
(
AxisBean
.
List
[
GroupName
]);
AxisBean
.
CloseMultiAxis
(
AxisBean
.
List
[
GroupName
]);
}
}
}
}
...
...
DeviceLibrary/theMachine/RobotManage.cs
查看文件 @
afbbb75
...
@@ -54,7 +54,7 @@ namespace DeviceLibrary
...
@@ -54,7 +54,7 @@ namespace DeviceLibrary
msg
+=
m
;
msg
+=
m
;
}
}
//Thread.Sleep(5000);
//Thread.Sleep(5000);
if
(
true
||
!
IOManager
.
ConnectionIOList
(
new
List
<
string
>()))
if
(!
IOManager
.
ConnectionIOList
(
new
List
<
string
>()))
{
{
IsLoadOk
=
false
;
IsLoadOk
=
false
;
msg
+=
crc
.
GetString
(
"Res0181"
,
"IO板卡初始化失败"
)+
"\n"
;
msg
+=
crc
.
GetString
(
"Res0181"
,
"IO板卡初始化失败"
)+
"\n"
;
...
@@ -62,7 +62,7 @@ namespace DeviceLibrary
...
@@ -62,7 +62,7 @@ namespace DeviceLibrary
//IsLoadOk = true;
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
LoadFinishEvent
?.
Invoke
(
false
,
ex
.
Message
);
LoadFinishEvent
?.
Invoke
(
false
,
ex
.
Message
);
...
...
DeviceLibrary/theMachine/sub/SideMove.cs
查看文件 @
afbbb75
...
@@ -44,7 +44,7 @@ namespace DeviceLibrary
...
@@ -44,7 +44,7 @@ namespace DeviceLibrary
{
{
RFID_1
=
new
PuYueRFID_C2S
(
DeviceGroup
.
RFID_1
);
RFID_1
=
new
PuYueRFID_C2S
(
DeviceGroup
.
RFID_1
);
if
(!
RFID_1
.
Open
())
{
if
(!
RFID_1
.
Open
())
{
msg
+=
DeviceGroup
.
DeviceTyp
e
+
" RFID 1:"
+
DeviceGroup
.
RFID_1
+
","
+
crc
.
GetString
(
"Res0183"
,
"打开失败"
)+
"\r\n"
;
msg
+=
DeviceGroup
.
GroupNam
e
+
" RFID 1:"
+
DeviceGroup
.
RFID_1
+
","
+
crc
.
GetString
(
"Res0183"
,
"打开失败"
)+
"\r\n"
;
}
}
}
}
if
(!
string
.
IsNullOrEmpty
(
DeviceGroup
.
RFID_2
))
if
(!
string
.
IsNullOrEmpty
(
DeviceGroup
.
RFID_2
))
...
@@ -52,7 +52,7 @@ namespace DeviceLibrary
...
@@ -52,7 +52,7 @@ namespace DeviceLibrary
RFID_2
=
new
PuYueRFID_C2S
(
DeviceGroup
.
RFID_2
);
RFID_2
=
new
PuYueRFID_C2S
(
DeviceGroup
.
RFID_2
);
if
(!
RFID_2
.
Open
())
if
(!
RFID_2
.
Open
())
{
{
msg
+=
DeviceGroup
.
DeviceTyp
e
+
" RFID 2:"
+
DeviceGroup
.
RFID_2
+
","
+
crc
.
GetString
(
"Res0183"
,
"打开失败"
)
+
"\r\n"
;
msg
+=
DeviceGroup
.
GroupNam
e
+
" RFID 2:"
+
DeviceGroup
.
RFID_2
+
","
+
crc
.
GetString
(
"Res0183"
,
"打开失败"
)
+
"\r\n"
;
}
}
}
}
if
(
RobotManage
.
Config
.
DOList
[
device
.
GroupName
].
ContainsKey
(
IO_Type
.
Ls_A_LineRwd
))
if
(
RobotManage
.
Config
.
DOList
[
device
.
GroupName
].
ContainsKey
(
IO_Type
.
Ls_A_LineRwd
))
...
...
DeviceLibrary/theMachine/sub/TransplantMove.cs
查看文件 @
afbbb75
...
@@ -43,7 +43,7 @@ namespace DeviceLibrary
...
@@ -43,7 +43,7 @@ namespace DeviceLibrary
{
{
RFID_1
=
new
PuYueRFID_C2S
(
DeviceGroup
.
RFID_1
);
RFID_1
=
new
PuYueRFID_C2S
(
DeviceGroup
.
RFID_1
);
if
(!
RFID_1
.
Open
())
{
if
(!
RFID_1
.
Open
())
{
msg
+=
DeviceGroup
.
DeviceTyp
e
+
" RFID 1:"
+
DeviceGroup
.
RFID_1
+
","
+
crc
.
GetString
(
"Res0183"
,
"打开失败"
)+
"\r\n"
;
msg
+=
DeviceGroup
.
GroupNam
e
+
" RFID 1:"
+
DeviceGroup
.
RFID_1
+
","
+
crc
.
GetString
(
"Res0183"
,
"打开失败"
)+
"\r\n"
;
}
}
}
}
if
(!
string
.
IsNullOrEmpty
(
DeviceGroup
.
RFID_2
))
if
(!
string
.
IsNullOrEmpty
(
DeviceGroup
.
RFID_2
))
...
@@ -51,7 +51,7 @@ namespace DeviceLibrary
...
@@ -51,7 +51,7 @@ namespace DeviceLibrary
RFID_2
=
new
PuYueRFID_C2S
(
DeviceGroup
.
RFID_2
);
RFID_2
=
new
PuYueRFID_C2S
(
DeviceGroup
.
RFID_2
);
if
(!
RFID_2
.
Open
())
if
(!
RFID_2
.
Open
())
{
{
msg
+=
DeviceGroup
.
DeviceTyp
e
+
" RFID 2:"
+
DeviceGroup
.
RFID_2
+
","
+
crc
.
GetString
(
"Res0183"
,
"打开失败"
)
+
"\r\n"
;
msg
+=
DeviceGroup
.
GroupNam
e
+
" RFID 2:"
+
DeviceGroup
.
RFID_2
+
","
+
crc
.
GetString
(
"Res0183"
,
"打开失败"
)
+
"\r\n"
;
}
}
}
}
var
axisc
=
RobotManage
.
Config
.
moveAxisList
.
Find
(
ma
=>
ma
.
GetAxisValue
()
==
RobotManage
.
DeviceGroup
[
GroupName
].
AxisID
);
var
axisc
=
RobotManage
.
Config
.
moveAxisList
.
Find
(
ma
=>
ma
.
GetAxisValue
()
==
RobotManage
.
DeviceGroup
[
GroupName
].
AxisID
);
...
...
DeviceLibrary/theMachine/sub/TrayStop.cs
查看文件 @
afbbb75
...
@@ -43,7 +43,7 @@ namespace DeviceLibrary
...
@@ -43,7 +43,7 @@ namespace DeviceLibrary
{
{
RFID_1
=
new
PuYueRFID_C2S
(
DeviceGroup
.
RFID_1
);
RFID_1
=
new
PuYueRFID_C2S
(
DeviceGroup
.
RFID_1
);
if
(!
RFID_1
.
Open
())
{
if
(!
RFID_1
.
Open
())
{
msg
+=
DeviceGroup
.
DeviceTyp
e
+
" RFID 1:"
+
DeviceGroup
.
RFID_1
+
","
+
crc
.
GetString
(
"Res0183"
,
"打开失败"
)+
"\r\n"
;
msg
+=
DeviceGroup
.
GroupNam
e
+
" RFID 1:"
+
DeviceGroup
.
RFID_1
+
","
+
crc
.
GetString
(
"Res0183"
,
"打开失败"
)+
"\r\n"
;
}
}
}
}
if
(!
string
.
IsNullOrEmpty
(
DeviceGroup
.
RFID_2
))
if
(!
string
.
IsNullOrEmpty
(
DeviceGroup
.
RFID_2
))
...
@@ -51,7 +51,7 @@ namespace DeviceLibrary
...
@@ -51,7 +51,7 @@ namespace DeviceLibrary
RFID_2
=
new
PuYueRFID_C2S
(
DeviceGroup
.
RFID_2
);
RFID_2
=
new
PuYueRFID_C2S
(
DeviceGroup
.
RFID_2
);
if
(!
RFID_2
.
Open
())
if
(!
RFID_2
.
Open
())
{
{
msg
+=
DeviceGroup
.
DeviceTyp
e
+
" RFID 2:"
+
DeviceGroup
.
RFID_2
+
","
+
crc
.
GetString
(
"Res0183"
,
"打开失败"
)
+
"\r\n"
;
msg
+=
DeviceGroup
.
GroupNam
e
+
" RFID 2:"
+
DeviceGroup
.
RFID_2
+
","
+
crc
.
GetString
(
"Res0183"
,
"打开失败"
)
+
"\r\n"
;
}
}
}
}
var
axisc
=
RobotManage
.
Config
.
moveAxisList
.
Find
(
ma
=>
ma
.
GetAxisValue
()
==
RobotManage
.
DeviceGroup
[
device
.
GroupName
].
AxisID
);
var
axisc
=
RobotManage
.
Config
.
moveAxisList
.
Find
(
ma
=>
ma
.
GetAxisValue
()
==
RobotManage
.
DeviceGroup
[
device
.
GroupName
].
AxisID
);
...
...
LoadCVSLibrary/storeConfig/config/Robot_Config.cs
查看文件 @
afbbb75
...
@@ -116,7 +116,11 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -116,7 +116,11 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"AMH_RoboComp_P1_speed"
)]
[
ConfigProAttribute
(
"AMH_RoboComp_P1_speed"
)]
public
int
AMH_RoboComp_P1_speed
{
get
;
set
;
}
public
int
AMH_RoboComp_P1_speed
{
get
;
set
;
}
/// <summary>
/// PRO,50,托盘旋转轴每度脉冲,AMH_Route_PoToMM,1000,,,,,,,,,,,,
/// </summary>
[
ConfigProAttribute
(
"AMH_Route_PoToMM"
)]
public
int
AMH_Route_PoToMM
{
get
;
set
;
}
public
ConfigIO
GetWaitIO
(
string
ioType
,
string
device
=
"root"
)
public
ConfigIO
GetWaitIO
(
string
ioType
,
string
device
=
"root"
)
{
{
if
(
DIList
[
device
].
ContainsKey
(
ioType
))
if
(
DIList
[
device
].
ContainsKey
(
ioType
))
...
...
TheMachine/AxisControl.cs
查看文件 @
afbbb75
...
@@ -40,8 +40,8 @@ namespace TheMachine
...
@@ -40,8 +40,8 @@ namespace TheMachine
return
;
return
;
}
}
if
(!
state
)
//
if (!state)
return
;
//
return;
if
(!
AxisBean
.
List
.
ContainsKey
(
"root"
))
if
(!
AxisBean
.
List
.
ContainsKey
(
"root"
))
AxisBean
.
List
.
Add
(
"root"
,
new
List
<
AxisBean
>());
AxisBean
.
List
.
Add
(
"root"
,
new
List
<
AxisBean
>());
axisMoveControl1
.
LoadData
(
AxisBean
.
List
[
"root"
]);
axisMoveControl1
.
LoadData
(
AxisBean
.
List
[
"root"
]);
...
...
TheMachine/Form1.cs
查看文件 @
afbbb75
...
@@ -75,9 +75,9 @@ namespace TheMachine
...
@@ -75,9 +75,9 @@ namespace TheMachine
this
.
Height
=
Screen
.
PrimaryScreen
.
WorkingArea
.
Height
;
//获取主显⽰设备的桌⾯⾼度
this
.
Height
=
Screen
.
PrimaryScreen
.
WorkingArea
.
Height
;
//获取主显⽰设备的桌⾯⾼度
if
(
this
.
Width
>
1366
)
if
(
this
.
Width
>
1366
)
this
.
Width
=
1
366
;
this
.
Width
=
1
024
;
if
(
this
.
Height
>
900
)
if
(
this
.
Height
>
900
)
this
.
Height
=
900
;
this
.
Height
=
748
;
List
<
CodeInfo
>
codeInfos
=
new
List
<
CodeInfo
>();
List
<
CodeInfo
>
codeInfos
=
new
List
<
CodeInfo
>();
//codeInfos.Add(new CodeInfo("", 528, 406));
//codeInfos.Add(new CodeInfo("", 528, 406));
...
@@ -161,7 +161,7 @@ namespace TheMachine
...
@@ -161,7 +161,7 @@ namespace TheMachine
e
.
NewWidth
=
(
sender
as
ListView
).
Columns
[
e
.
ColumnIndex
].
Width
;
e
.
NewWidth
=
(
sender
as
ListView
).
Columns
[
e
.
ColumnIndex
].
Width
;
e
.
Cancel
=
true
;
e
.
Cancel
=
true
;
}
}
const
int
tabpagecount
=
4
;
const
int
tabpagecount
=
5
;
void
addTablePage
()
{
void
addTablePage
()
{
AddForm
(
"tab_io"
,
"I/O"
,
ioc
);
AddForm
(
"tab_io"
,
"I/O"
,
ioc
);
AddForm
(
"tab_sidemove"
,
hy
.
DeviceName
,
hy
);
AddForm
(
"tab_sidemove"
,
hy
.
DeviceName
,
hy
);
...
@@ -263,7 +263,8 @@ namespace TheMachine
...
@@ -263,7 +263,8 @@ namespace TheMachine
});
});
return
;
return
;
}
}
启用调试模式
ToolStripMenuItem
.
Enabled
=
true
;
pnl
.
Enabled
=
true
;
pnl
.
Enabled
=
true
;
if
(
state
)
if
(
state
)
{
{
...
@@ -272,10 +273,13 @@ namespace TheMachine
...
@@ -272,10 +273,13 @@ namespace TheMachine
RobotManage
.
mainMachine
.
ProcessMsgEvent
+=
MainMachine_ProcessMsgEvent
;
RobotManage
.
mainMachine
.
ProcessMsgEvent
+=
MainMachine_ProcessMsgEvent
;
}
}
ioc
.
Config
=
RobotManage
.
Config
;
hy
.
Init
(
"LS"
);
hy
.
Init
(
"LS"
);
yz
.
Init
(
"SISO"
);
yz
.
Init
(
"SISO"
);
ts
.
Init
(
"RT"
);
ts
.
Init
(
"RT"
);
ioc
.
Config
=
RobotManage
.
Config
;
addTablePage
();
var
lm
=
new
List
<
Msg
>();
var
lm
=
new
List
<
Msg
>();
foreach
(
string
ms
in
msg
.
Split
(
new
char
[]
{
'\n'
},
StringSplitOptions
.
RemoveEmptyEntries
))
foreach
(
string
ms
in
msg
.
Split
(
new
char
[]
{
'\n'
},
StringSplitOptions
.
RemoveEmptyEntries
))
{
{
...
@@ -286,6 +290,18 @@ namespace TheMachine
...
@@ -286,6 +290,18 @@ namespace TheMachine
lm
.
Add
(
m
);
lm
.
Add
(
m
);
}
}
SetMsg
(
lm
);
SetMsg
(
lm
);
//启用调试模式ToolStripMenuItem.Enabled = true;
//启用调试模式ToolStripMenuItem_Click(启用调试模式ToolStripMenuItem, EventArgs.Empty);
//RobotManage.LoadDebug();
Task
.
Run
(()=>
{
Task
.
Delay
(
100
).
Wait
();
this
.
Invoke
((
EventHandler
)
delegate
{
});
});
}
}
void
SetMsg
(
List
<
Msg
>
msgs
)
void
SetMsg
(
List
<
Msg
>
msgs
)
{
{
...
...
TheMachine/SettingControl.cs
查看文件 @
afbbb75
...
@@ -31,8 +31,8 @@ namespace TheMachine
...
@@ -31,8 +31,8 @@ namespace TheMachine
private
void
RobotManage_LoadFinishEvent
(
bool
state
,
string
msg
)
private
void
RobotManage_LoadFinishEvent
(
bool
state
,
string
msg
)
{
{
if
(!
state
)
//
if (!state)
return
;
//
return;
uC_LedConfig1
.
Config
=
RobotManage
.
Config
;
uC_LedConfig1
.
Config
=
RobotManage
.
Config
;
}
}
...
...
TheMachine/UC/ConfigControl.cs
查看文件 @
afbbb75
...
@@ -48,8 +48,8 @@ namespace TheMachine
...
@@ -48,8 +48,8 @@ namespace TheMachine
void
LoadPosList
()
void
LoadPosList
()
{
{
if
(!
this
.
Created
)
//
if (!this.Created)
return
;
//
return;
if
(
this
.
InvokeRequired
)
if
(
this
.
InvokeRequired
)
{
{
...
...
TheMachine/UC/CylinderButton.cs
查看文件 @
afbbb75
...
@@ -93,11 +93,12 @@ namespace TheMachine
...
@@ -93,11 +93,12 @@ namespace TheMachine
set
set
{
{
devicetype
=
value
;
devicetype
=
value
;
DataUpdate
();
}
}
}
}
void
DataUpdate
()
{
void
DataUpdate
()
{
if
(
string
.
IsNullOrEmpty
(
io_high
)
&&
!
RobotManage
.
Config
.
DOList
[
devicetype
].
ContainsKey
(
io_high
))
if
(
string
.
IsNullOrEmpty
(
io_high
)
||
!
RobotManage
.
Config
.
DOList
[
devicetype
].
ContainsKey
(
io_high
))
this
.
Text
=
$
"IO {io_high} Not Find"
;
this
.
Text
=
$
"IO {io_high} Not Find"
;
else
else
{
{
...
@@ -121,6 +122,9 @@ namespace TheMachine
...
@@ -121,6 +122,9 @@ namespace TheMachine
}
}
void
StateUpdate
()
void
StateUpdate
()
{
{
if
(
configio_high
==
null
)
return
;
io_state
=
IOManager
.
GetDOValue
(
configio_high
.
DeviceName
,
configio_high
.
SlaveID
,
configio_high
.
GetIOAddr
());
io_state
=
IOManager
.
GetDOValue
(
configio_high
.
DeviceName
,
configio_high
.
SlaveID
,
configio_high
.
GetIOAddr
());
if
(
configio_low
!=
null
)
if
(
configio_low
!=
null
)
{
{
...
...
TheMachine/device/TransplantControl.Designer.cs
查看文件 @
afbbb75
...
@@ -42,18 +42,21 @@ namespace TheMachine
...
@@ -42,18 +42,21 @@ namespace TheMachine
this
.
cylinderButton6
=
new
TheMachine
.
CylinderButton
();
this
.
cylinderButton6
=
new
TheMachine
.
CylinderButton
();
this
.
cylinderButton1
=
new
TheMachine
.
CylinderButton
();
this
.
cylinderButton1
=
new
TheMachine
.
CylinderButton
();
this
.
ioControl1
=
new
TheMachine
.
IOControl
();
this
.
ioControl1
=
new
TheMachine
.
IOControl
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panel1
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// axisMoveControl1
// axisMoveControl1
//
//
this
.
axisMoveControl1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
226
);
this
.
axisMoveControl1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
227
);
this
.
axisMoveControl1
.
Name
=
"axisMoveControl1"
;
this
.
axisMoveControl1
.
Name
=
"axisMoveControl1"
;
this
.
axisMoveControl1
.
Size
=
new
System
.
Drawing
.
Size
(
558
,
402
);
this
.
axisMoveControl1
.
Size
=
new
System
.
Drawing
.
Size
(
558
,
402
);
this
.
axisMoveControl1
.
TabIndex
=
6
;
this
.
axisMoveControl1
.
TabIndex
=
6
;
this
.
axisMoveControl1
.
Tag
=
"not"
;
//
//
// button_save
// button_save
//
//
this
.
button_save
.
Location
=
new
System
.
Drawing
.
Point
(
7
61
,
55
1
);
this
.
button_save
.
Location
=
new
System
.
Drawing
.
Point
(
7
58
,
57
1
);
this
.
button_save
.
Name
=
"button_save"
;
this
.
button_save
.
Name
=
"button_save"
;
this
.
button_save
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
23
);
this
.
button_save
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
23
);
this
.
button_save
.
TabIndex
=
7
;
this
.
button_save
.
TabIndex
=
7
;
...
@@ -63,21 +66,21 @@ namespace TheMachine
...
@@ -63,21 +66,21 @@ namespace TheMachine
//
//
// textBox_p2
// textBox_p2
//
//
this
.
textBox_p2
.
Location
=
new
System
.
Drawing
.
Point
(
761
,
4
86
);
this
.
textBox_p2
.
Location
=
new
System
.
Drawing
.
Point
(
761
,
4
92
);
this
.
textBox_p2
.
Name
=
"textBox_p2"
;
this
.
textBox_p2
.
Name
=
"textBox_p2"
;
this
.
textBox_p2
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
21
);
this
.
textBox_p2
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
21
);
this
.
textBox_p2
.
TabIndex
=
8
;
this
.
textBox_p2
.
TabIndex
=
8
;
//
//
// textBox_p3
// textBox_p3
//
//
this
.
textBox_p3
.
Location
=
new
System
.
Drawing
.
Point
(
7
61
,
51
5
);
this
.
textBox_p3
.
Location
=
new
System
.
Drawing
.
Point
(
7
58
,
53
5
);
this
.
textBox_p3
.
Name
=
"textBox_p3"
;
this
.
textBox_p3
.
Name
=
"textBox_p3"
;
this
.
textBox_p3
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
21
);
this
.
textBox_p3
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
21
);
this
.
textBox_p3
.
TabIndex
=
8
;
this
.
textBox_p3
.
TabIndex
=
8
;
//
//
// button_p2
// button_p2
//
//
this
.
button_p2
.
Location
=
new
System
.
Drawing
.
Point
(
584
,
4
84
);
this
.
button_p2
.
Location
=
new
System
.
Drawing
.
Point
(
584
,
4
90
);
this
.
button_p2
.
Name
=
"button_p2"
;
this
.
button_p2
.
Name
=
"button_p2"
;
this
.
button_p2
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
23
);
this
.
button_p2
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
23
);
this
.
button_p2
.
TabIndex
=
9
;
this
.
button_p2
.
TabIndex
=
9
;
...
@@ -87,7 +90,7 @@ namespace TheMachine
...
@@ -87,7 +90,7 @@ namespace TheMachine
//
//
// button_p3
// button_p3
//
//
this
.
button_p3
.
Location
=
new
System
.
Drawing
.
Point
(
58
4
,
51
3
);
this
.
button_p3
.
Location
=
new
System
.
Drawing
.
Point
(
58
1
,
53
3
);
this
.
button_p3
.
Name
=
"button_p3"
;
this
.
button_p3
.
Name
=
"button_p3"
;
this
.
button_p3
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
23
);
this
.
button_p3
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
23
);
this
.
button_p3
.
TabIndex
=
9
;
this
.
button_p3
.
TabIndex
=
9
;
...
@@ -97,7 +100,7 @@ namespace TheMachine
...
@@ -97,7 +100,7 @@ namespace TheMachine
//
//
// button_p1
// button_p1
//
//
this
.
button_p1
.
Location
=
new
System
.
Drawing
.
Point
(
584
,
4
55
);
this
.
button_p1
.
Location
=
new
System
.
Drawing
.
Point
(
584
,
4
61
);
this
.
button_p1
.
Name
=
"button_p1"
;
this
.
button_p1
.
Name
=
"button_p1"
;
this
.
button_p1
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
23
);
this
.
button_p1
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
23
);
this
.
button_p1
.
TabIndex
=
9
;
this
.
button_p1
.
TabIndex
=
9
;
...
@@ -112,7 +115,7 @@ namespace TheMachine
...
@@ -112,7 +115,7 @@ namespace TheMachine
this
.
cylinderButton8
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton8
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton8
.
IO_HIGH
=
"AMH_Front_Stop"
;
this
.
cylinderButton8
.
IO_HIGH
=
"AMH_Front_Stop"
;
this
.
cylinderButton8
.
IO_LOW
=
""
;
this
.
cylinderButton8
.
IO_LOW
=
""
;
this
.
cylinderButton8
.
Location
=
new
System
.
Drawing
.
Point
(
618
,
3
54
);
this
.
cylinderButton8
.
Location
=
new
System
.
Drawing
.
Point
(
618
,
3
60
);
this
.
cylinderButton8
.
Name
=
"cylinderButton8"
;
this
.
cylinderButton8
.
Name
=
"cylinderButton8"
;
this
.
cylinderButton8
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton8
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton8
.
TabIndex
=
2
;
this
.
cylinderButton8
.
TabIndex
=
2
;
...
@@ -127,7 +130,7 @@ namespace TheMachine
...
@@ -127,7 +130,7 @@ namespace TheMachine
this
.
cylinderButton2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton2
.
IO_HIGH
=
"AMH_Sucker"
;
this
.
cylinderButton2
.
IO_HIGH
=
"AMH_Sucker"
;
this
.
cylinderButton2
.
IO_LOW
=
""
;
this
.
cylinderButton2
.
IO_LOW
=
""
;
this
.
cylinderButton2
.
Location
=
new
System
.
Drawing
.
Point
(
618
,
398
);
this
.
cylinderButton2
.
Location
=
new
System
.
Drawing
.
Point
(
618
,
404
);
this
.
cylinderButton2
.
Name
=
"cylinderButton2"
;
this
.
cylinderButton2
.
Name
=
"cylinderButton2"
;
this
.
cylinderButton2
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton2
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton2
.
TabIndex
=
3
;
this
.
cylinderButton2
.
TabIndex
=
3
;
...
@@ -142,7 +145,7 @@ namespace TheMachine
...
@@ -142,7 +145,7 @@ namespace TheMachine
this
.
cylinderButton7
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton7
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton7
.
IO_HIGH
=
"AMH_Sucker"
;
this
.
cylinderButton7
.
IO_HIGH
=
"AMH_Sucker"
;
this
.
cylinderButton7
.
IO_LOW
=
""
;
this
.
cylinderButton7
.
IO_LOW
=
""
;
this
.
cylinderButton7
.
Location
=
new
System
.
Drawing
.
Point
(
618
,
31
3
);
this
.
cylinderButton7
.
Location
=
new
System
.
Drawing
.
Point
(
618
,
31
9
);
this
.
cylinderButton7
.
Name
=
"cylinderButton7"
;
this
.
cylinderButton7
.
Name
=
"cylinderButton7"
;
this
.
cylinderButton7
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton7
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton7
.
TabIndex
=
3
;
this
.
cylinderButton7
.
TabIndex
=
3
;
...
@@ -157,7 +160,7 @@ namespace TheMachine
...
@@ -157,7 +160,7 @@ namespace TheMachine
this
.
cylinderButton6
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton6
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton6
.
IO_HIGH
=
"AMH_Trans_Fwd"
;
this
.
cylinderButton6
.
IO_HIGH
=
"AMH_Trans_Fwd"
;
this
.
cylinderButton6
.
IO_LOW
=
"AMH_Trans_Bwd"
;
this
.
cylinderButton6
.
IO_LOW
=
"AMH_Trans_Bwd"
;
this
.
cylinderButton6
.
Location
=
new
System
.
Drawing
.
Point
(
618
,
2
69
);
this
.
cylinderButton6
.
Location
=
new
System
.
Drawing
.
Point
(
618
,
2
75
);
this
.
cylinderButton6
.
Name
=
"cylinderButton6"
;
this
.
cylinderButton6
.
Name
=
"cylinderButton6"
;
this
.
cylinderButton6
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton6
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton6
.
TabIndex
=
4
;
this
.
cylinderButton6
.
TabIndex
=
4
;
...
@@ -172,7 +175,7 @@ namespace TheMachine
...
@@ -172,7 +175,7 @@ namespace TheMachine
this
.
cylinderButton1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton1
.
IO_HIGH
=
"AMH_Location_Up"
;
this
.
cylinderButton1
.
IO_HIGH
=
"AMH_Location_Up"
;
this
.
cylinderButton1
.
IO_LOW
=
"AMH_Location_Down"
;
this
.
cylinderButton1
.
IO_LOW
=
"AMH_Location_Down"
;
this
.
cylinderButton1
.
Location
=
new
System
.
Drawing
.
Point
(
618
,
2
25
);
this
.
cylinderButton1
.
Location
=
new
System
.
Drawing
.
Point
(
618
,
2
31
);
this
.
cylinderButton1
.
Name
=
"cylinderButton1"
;
this
.
cylinderButton1
.
Name
=
"cylinderButton1"
;
this
.
cylinderButton1
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton1
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton1
.
TabIndex
=
5
;
this
.
cylinderButton1
.
TabIndex
=
5
;
...
@@ -182,33 +185,44 @@ namespace TheMachine
...
@@ -182,33 +185,44 @@ namespace TheMachine
//
//
// ioControl1
// ioControl1
//
//
this
.
ioControl1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
ioControl1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
-
1
);
this
.
ioControl1
.
Name
=
"ioControl1"
;
this
.
ioControl1
.
Name
=
"ioControl1"
;
this
.
ioControl1
.
Size
=
new
System
.
Drawing
.
Size
(
936
,
22
0
);
this
.
ioControl1
.
Size
=
new
System
.
Drawing
.
Size
(
936
,
22
8
);
this
.
ioControl1
.
TabIndex
=
1
;
this
.
ioControl1
.
TabIndex
=
1
;
this
.
ioControl1
.
Tag
=
"not"
;
this
.
ioControl1
.
Tag
=
"not"
;
//
//
// panel1
//
this
.
panel1
.
AutoScroll
=
true
;
this
.
panel1
.
Controls
.
Add
(
this
.
button_p3
);
this
.
panel1
.
Controls
.
Add
(
this
.
ioControl1
);
this
.
panel1
.
Controls
.
Add
(
this
.
button_p1
);
this
.
panel1
.
Controls
.
Add
(
this
.
axisMoveControl1
);
this
.
panel1
.
Controls
.
Add
(
this
.
button_p2
);
this
.
panel1
.
Controls
.
Add
(
this
.
cylinderButton2
);
this
.
panel1
.
Controls
.
Add
(
this
.
textBox_p3
);
this
.
panel1
.
Controls
.
Add
(
this
.
cylinderButton1
);
this
.
panel1
.
Controls
.
Add
(
this
.
textBox_p2
);
this
.
panel1
.
Controls
.
Add
(
this
.
cylinderButton6
);
this
.
panel1
.
Controls
.
Add
(
this
.
button_save
);
this
.
panel1
.
Controls
.
Add
(
this
.
cylinderButton7
);
this
.
panel1
.
Controls
.
Add
(
this
.
cylinderButton8
);
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
1021
,
621
);
this
.
panel1
.
TabIndex
=
10
;
//
// TransplantControl
// TransplantControl
//
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
Controls
.
Add
(
this
.
button_p3
);
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
Controls
.
Add
(
this
.
button_p1
);
this
.
Controls
.
Add
(
this
.
button_p2
);
this
.
Controls
.
Add
(
this
.
textBox_p3
);
this
.
Controls
.
Add
(
this
.
textBox_p2
);
this
.
Controls
.
Add
(
this
.
button_save
);
this
.
Controls
.
Add
(
this
.
axisMoveControl1
);
this
.
Controls
.
Add
(
this
.
cylinderButton8
);
this
.
Controls
.
Add
(
this
.
cylinderButton2
);
this
.
Controls
.
Add
(
this
.
cylinderButton7
);
this
.
Controls
.
Add
(
this
.
cylinderButton6
);
this
.
Controls
.
Add
(
this
.
cylinderButton1
);
this
.
Controls
.
Add
(
this
.
ioControl1
);
this
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Name
=
"TransplantControl"
;
this
.
Name
=
"TransplantControl"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
1021
,
621
);
this
.
Size
=
new
System
.
Drawing
.
Size
(
1021
,
621
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
panel1
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
}
}
...
@@ -227,5 +241,6 @@ namespace TheMachine
...
@@ -227,5 +241,6 @@ namespace TheMachine
private
System
.
Windows
.
Forms
.
Button
button_p2
;
private
System
.
Windows
.
Forms
.
Button
button_p2
;
private
System
.
Windows
.
Forms
.
Button
button_p3
;
private
System
.
Windows
.
Forms
.
Button
button_p3
;
private
System
.
Windows
.
Forms
.
Button
button_p1
;
private
System
.
Windows
.
Forms
.
Button
button_p1
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
}
}
}
}
TheMachine/device/TransplantControl.cs
查看文件 @
afbbb75
...
@@ -28,7 +28,7 @@ namespace TheMachine
...
@@ -28,7 +28,7 @@ namespace TheMachine
{
{
this
.
DeviceGroupName
=
deviceGroupName
;
this
.
DeviceGroupName
=
deviceGroupName
;
foreach
(
var
c
in
this
.
Controls
)
foreach
(
var
c
in
panel1
.
Controls
)
{
{
if
(!(
c
is
CylinderButton
))
if
(!(
c
is
CylinderButton
))
continue
;
continue
;
...
...
TheMachine/device/TrayStopControl.Designer.cs
查看文件 @
afbbb75
...
@@ -39,6 +39,8 @@ namespace TheMachine
...
@@ -39,6 +39,8 @@ namespace TheMachine
this
.
textBox_p3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
textBox_p3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
button_p3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button_p3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button_p1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button_p1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panel1
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// cylinderButton8
// cylinderButton8
...
@@ -48,7 +50,7 @@ namespace TheMachine
...
@@ -48,7 +50,7 @@ namespace TheMachine
this
.
cylinderButton8
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton8
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton8
.
IO_HIGH
=
"MI_Robot_Light"
;
this
.
cylinderButton8
.
IO_HIGH
=
"MI_Robot_Light"
;
this
.
cylinderButton8
.
IO_LOW
=
""
;
this
.
cylinderButton8
.
IO_LOW
=
""
;
this
.
cylinderButton8
.
Location
=
new
System
.
Drawing
.
Point
(
6
18
,
354
);
this
.
cylinderButton8
.
Location
=
new
System
.
Drawing
.
Point
(
6
24
,
375
);
this
.
cylinderButton8
.
Name
=
"cylinderButton8"
;
this
.
cylinderButton8
.
Name
=
"cylinderButton8"
;
this
.
cylinderButton8
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton8
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton8
.
TabIndex
=
2
;
this
.
cylinderButton8
.
TabIndex
=
2
;
...
@@ -63,7 +65,7 @@ namespace TheMachine
...
@@ -63,7 +65,7 @@ namespace TheMachine
this
.
cylinderButton7
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton7
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton7
.
IO_HIGH
=
"AMH_Tray_Stop"
;
this
.
cylinderButton7
.
IO_HIGH
=
"AMH_Tray_Stop"
;
this
.
cylinderButton7
.
IO_LOW
=
""
;
this
.
cylinderButton7
.
IO_LOW
=
""
;
this
.
cylinderButton7
.
Location
=
new
System
.
Drawing
.
Point
(
6
18
,
313
);
this
.
cylinderButton7
.
Location
=
new
System
.
Drawing
.
Point
(
6
24
,
334
);
this
.
cylinderButton7
.
Name
=
"cylinderButton7"
;
this
.
cylinderButton7
.
Name
=
"cylinderButton7"
;
this
.
cylinderButton7
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton7
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton7
.
TabIndex
=
3
;
this
.
cylinderButton7
.
TabIndex
=
3
;
...
@@ -78,7 +80,7 @@ namespace TheMachine
...
@@ -78,7 +80,7 @@ namespace TheMachine
this
.
cylinderButton6
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton6
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton6
.
IO_HIGH
=
"AMH_Front_Stop"
;
this
.
cylinderButton6
.
IO_HIGH
=
"AMH_Front_Stop"
;
this
.
cylinderButton6
.
IO_LOW
=
""
;
this
.
cylinderButton6
.
IO_LOW
=
""
;
this
.
cylinderButton6
.
Location
=
new
System
.
Drawing
.
Point
(
6
18
,
269
);
this
.
cylinderButton6
.
Location
=
new
System
.
Drawing
.
Point
(
6
24
,
290
);
this
.
cylinderButton6
.
Name
=
"cylinderButton6"
;
this
.
cylinderButton6
.
Name
=
"cylinderButton6"
;
this
.
cylinderButton6
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton6
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton6
.
TabIndex
=
4
;
this
.
cylinderButton6
.
TabIndex
=
4
;
...
@@ -93,7 +95,7 @@ namespace TheMachine
...
@@ -93,7 +95,7 @@ namespace TheMachine
this
.
cylinderButton1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton1
.
IO_HIGH
=
"MI_Location_Up"
;
this
.
cylinderButton1
.
IO_HIGH
=
"MI_Location_Up"
;
this
.
cylinderButton1
.
IO_LOW
=
"MI_Location_Down"
;
this
.
cylinderButton1
.
IO_LOW
=
"MI_Location_Down"
;
this
.
cylinderButton1
.
Location
=
new
System
.
Drawing
.
Point
(
6
18
,
225
);
this
.
cylinderButton1
.
Location
=
new
System
.
Drawing
.
Point
(
6
24
,
246
);
this
.
cylinderButton1
.
Name
=
"cylinderButton1"
;
this
.
cylinderButton1
.
Name
=
"cylinderButton1"
;
this
.
cylinderButton1
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton1
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
38
);
this
.
cylinderButton1
.
TabIndex
=
5
;
this
.
cylinderButton1
.
TabIndex
=
5
;
...
@@ -103,15 +105,15 @@ namespace TheMachine
...
@@ -103,15 +105,15 @@ namespace TheMachine
//
//
// ioControl1
// ioControl1
//
//
this
.
ioControl1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
ioControl1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
ioControl1
.
Name
=
"ioControl1"
;
this
.
ioControl1
.
Name
=
"ioControl1"
;
this
.
ioControl1
.
Size
=
new
System
.
Drawing
.
Size
(
936
,
2
20
);
this
.
ioControl1
.
Size
=
new
System
.
Drawing
.
Size
(
936
,
2
13
);
this
.
ioControl1
.
TabIndex
=
1
;
this
.
ioControl1
.
TabIndex
=
1
;
this
.
ioControl1
.
Tag
=
"not"
;
this
.
ioControl1
.
Tag
=
"not"
;
//
//
// axisMoveControl1
// axisMoveControl1
//
//
this
.
axisMoveControl1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
226
);
this
.
axisMoveControl1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
222
);
this
.
axisMoveControl1
.
Name
=
"axisMoveControl1"
;
this
.
axisMoveControl1
.
Name
=
"axisMoveControl1"
;
this
.
axisMoveControl1
.
Size
=
new
System
.
Drawing
.
Size
(
558
,
402
);
this
.
axisMoveControl1
.
Size
=
new
System
.
Drawing
.
Size
(
558
,
402
);
this
.
axisMoveControl1
.
TabIndex
=
6
;
this
.
axisMoveControl1
.
TabIndex
=
6
;
...
@@ -119,7 +121,7 @@ namespace TheMachine
...
@@ -119,7 +121,7 @@ namespace TheMachine
//
//
// button_save
// button_save
//
//
this
.
button_save
.
Location
=
new
System
.
Drawing
.
Point
(
76
1
,
522
);
this
.
button_save
.
Location
=
new
System
.
Drawing
.
Point
(
76
7
,
543
);
this
.
button_save
.
Name
=
"button_save"
;
this
.
button_save
.
Name
=
"button_save"
;
this
.
button_save
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
23
);
this
.
button_save
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
23
);
this
.
button_save
.
TabIndex
=
7
;
this
.
button_save
.
TabIndex
=
7
;
...
@@ -129,14 +131,14 @@ namespace TheMachine
...
@@ -129,14 +131,14 @@ namespace TheMachine
//
//
// textBox_p3
// textBox_p3
//
//
this
.
textBox_p3
.
Location
=
new
System
.
Drawing
.
Point
(
76
1
,
486
);
this
.
textBox_p3
.
Location
=
new
System
.
Drawing
.
Point
(
76
7
,
507
);
this
.
textBox_p3
.
Name
=
"textBox_p3"
;
this
.
textBox_p3
.
Name
=
"textBox_p3"
;
this
.
textBox_p3
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
21
);
this
.
textBox_p3
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
21
);
this
.
textBox_p3
.
TabIndex
=
8
;
this
.
textBox_p3
.
TabIndex
=
8
;
//
//
// button_p3
// button_p3
//
//
this
.
button_p3
.
Location
=
new
System
.
Drawing
.
Point
(
5
84
,
484
);
this
.
button_p3
.
Location
=
new
System
.
Drawing
.
Point
(
5
90
,
505
);
this
.
button_p3
.
Name
=
"button_p3"
;
this
.
button_p3
.
Name
=
"button_p3"
;
this
.
button_p3
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
23
);
this
.
button_p3
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
23
);
this
.
button_p3
.
TabIndex
=
9
;
this
.
button_p3
.
TabIndex
=
9
;
...
@@ -146,7 +148,7 @@ namespace TheMachine
...
@@ -146,7 +148,7 @@ namespace TheMachine
//
//
// button_p1
// button_p1
//
//
this
.
button_p1
.
Location
=
new
System
.
Drawing
.
Point
(
5
84
,
455
);
this
.
button_p1
.
Location
=
new
System
.
Drawing
.
Point
(
5
90
,
476
);
this
.
button_p1
.
Name
=
"button_p1"
;
this
.
button_p1
.
Name
=
"button_p1"
;
this
.
button_p1
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
23
);
this
.
button_p1
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
23
);
this
.
button_p1
.
TabIndex
=
9
;
this
.
button_p1
.
TabIndex
=
9
;
...
@@ -154,24 +156,35 @@ namespace TheMachine
...
@@ -154,24 +156,35 @@ namespace TheMachine
this
.
button_p1
.
UseVisualStyleBackColor
=
true
;
this
.
button_p1
.
UseVisualStyleBackColor
=
true
;
this
.
button_p1
.
Click
+=
new
System
.
EventHandler
(
this
.
button_p1_Click
);
this
.
button_p1
.
Click
+=
new
System
.
EventHandler
(
this
.
button_p1_Click
);
//
//
// panel1
//
this
.
panel1
.
AutoScroll
=
true
;
this
.
panel1
.
Controls
.
Add
(
this
.
button_p3
);
this
.
panel1
.
Controls
.
Add
(
this
.
ioControl1
);
this
.
panel1
.
Controls
.
Add
(
this
.
button_p1
);
this
.
panel1
.
Controls
.
Add
(
this
.
axisMoveControl1
);
this
.
panel1
.
Controls
.
Add
(
this
.
textBox_p3
);
this
.
panel1
.
Controls
.
Add
(
this
.
cylinderButton7
);
this
.
panel1
.
Controls
.
Add
(
this
.
button_save
);
this
.
panel1
.
Controls
.
Add
(
this
.
cylinderButton1
);
this
.
panel1
.
Controls
.
Add
(
this
.
cylinderButton8
);
this
.
panel1
.
Controls
.
Add
(
this
.
cylinderButton6
);
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
1020
,
621
);
this
.
panel1
.
TabIndex
=
10
;
//
// TrayStopControl
// TrayStopControl
//
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
Controls
.
Add
(
this
.
ioControl1
);
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
Controls
.
Add
(
this
.
button_p3
);
this
.
Controls
.
Add
(
this
.
button_p1
);
this
.
Controls
.
Add
(
this
.
textBox_p3
);
this
.
Controls
.
Add
(
this
.
button_save
);
this
.
Controls
.
Add
(
this
.
axisMoveControl1
);
this
.
Controls
.
Add
(
this
.
cylinderButton8
);
this
.
Controls
.
Add
(
this
.
cylinderButton7
);
this
.
Controls
.
Add
(
this
.
cylinderButton6
);
this
.
Controls
.
Add
(
this
.
cylinderButton1
);
this
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Name
=
"TrayStopControl"
;
this
.
Name
=
"TrayStopControl"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
1021
,
621
);
this
.
Size
=
new
System
.
Drawing
.
Size
(
1020
,
621
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
panel1
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
}
}
...
@@ -187,5 +200,6 @@ namespace TheMachine
...
@@ -187,5 +200,6 @@ namespace TheMachine
private
System
.
Windows
.
Forms
.
TextBox
textBox_p3
;
private
System
.
Windows
.
Forms
.
TextBox
textBox_p3
;
private
System
.
Windows
.
Forms
.
Button
button_p3
;
private
System
.
Windows
.
Forms
.
Button
button_p3
;
private
System
.
Windows
.
Forms
.
Button
button_p1
;
private
System
.
Windows
.
Forms
.
Button
button_p1
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
}
}
}
}
TheMachine/device/TrayStopControl.cs
查看文件 @
afbbb75
...
@@ -28,7 +28,7 @@ namespace TheMachine
...
@@ -28,7 +28,7 @@ namespace TheMachine
{
{
this
.
DeviceGroupName
=
deviceGroupName
;
this
.
DeviceGroupName
=
deviceGroupName
;
foreach
(
var
c
in
this
.
Controls
)
foreach
(
var
c
in
panel1
.
Controls
)
{
{
if
(!(
c
is
CylinderButton
))
if
(!(
c
is
CylinderButton
))
continue
;
continue
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论