Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit dd128ff7
由
刘韬
编写于
2022-11-01 09:23:10 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
2e627ea5
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
103 行增加
和
43 行删除
DeviceLibrary/DeviceLibrary.csproj
DeviceLibrary/DeviceLibrary/CodeManager.cs
DeviceLibrary/theMachine/BoxTransport.cs
DeviceLibrary/theMachine/LabelParam.cs
DeviceLibrary/theMachine/MainMachine _AutoInOutTest.cs
DeviceLibrary/userControl/AxisMoveControl.Designer.cs
DeviceLibrary/userControl/ToucDownBtn.cs
TheMachine/Form1.Designer.cs
TheMachine/IOControls.Designer.cs
TheMachine/IOControls.cs
TheMachine/UC/uc_boxdebug.cs
DeviceLibrary/DeviceLibrary.csproj
查看文件 @
dd128ff
...
@@ -124,6 +124,9 @@
...
@@ -124,6 +124,9 @@
<Compile Include="userControl\AxisTipControl.Designer.cs">
<Compile Include="userControl\AxisTipControl.Designer.cs">
<DependentUpon>AxisTipControl.cs</DependentUpon>
<DependentUpon>AxisTipControl.cs</DependentUpon>
</Compile>
</Compile>
<Compile Include="userControl\ToucDownBtn.cs">
<SubType>Component</SubType>
</Compile>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<EmbeddedResource Include="userControl\AxisMoveControl.resx">
<EmbeddedResource Include="userControl\AxisMoveControl.resx">
...
...
DeviceLibrary/DeviceLibrary/CodeManager.cs
查看文件 @
dd128ff
...
@@ -156,7 +156,7 @@ namespace DeviceLibrary
...
@@ -156,7 +156,7 @@ namespace DeviceLibrary
if
(
retrytime
>
2
)
if
(
retrytime
>
2
)
return
;
return
;
retrytime
++;
retrytime
++;
CloseCamera
(
cameraNam
e
);
LoadCamera
(
tru
e
);
LogUtil
.
info
(
$
"bitmap为空重试第{retrytime}次"
);
LogUtil
.
info
(
$
"bitmap为空重试第{retrytime}次"
);
Task
.
Delay
(
1500
).
Wait
();
Task
.
Delay
(
1500
).
Wait
();
goto
retry
;
goto
retry
;
...
@@ -165,7 +165,7 @@ namespace DeviceLibrary
...
@@ -165,7 +165,7 @@ namespace DeviceLibrary
if
(
ho_Image
==
null
&&
!
nohalcon
)
if
(
ho_Image
==
null
&&
!
nohalcon
)
{
{
LogUtil
.
error
(
" 【"
+
cameraName
+
"】取图片失败["
+
Camera
.
_cam
.
ErrInfo
+
"],关闭相机"
);
LogUtil
.
error
(
" 【"
+
cameraName
+
"】取图片失败["
+
Camera
.
_cam
.
ErrInfo
+
"],关闭相机"
);
CloseCamera
(
cameraNam
e
);
LoadCamera
(
tru
e
);
return
;
return
;
}
}
if
(
idx
==
0
)
if
(
idx
==
0
)
...
...
DeviceLibrary/theMachine/BoxTransport.cs
查看文件 @
dd128ff
...
@@ -178,10 +178,9 @@ namespace DeviceLibrary
...
@@ -178,10 +178,9 @@ namespace DeviceLibrary
}
}
else
else
{
{
Msg
.
add
(
""
,
MsgLevel
.
info
,
ErrInfo
.
X09_Clear
);
Msg
.
add
(
""
,
MsgLevel
.
info
,
ErrInfo
.
X09_Clear
);
IgnoreX09
=
false
;
IgnoreX09
=
false
;
if
(
!
RobotManage
.
mainMachine
.
AutoInOutTest
&&
To
.
posid
==
BoxStorePosition
.
strings
&&
ConfigHelper
.
Config
.
Get
(
"Device_Use_Fixpos"
,
false
)
&&
Fix
!=
null
)
if
(
To
.
posid
==
BoxStorePosition
.
strings
&&
ConfigHelper
.
Config
.
Get
(
"Device_Use_Fixpos"
,
false
)
&&
Fix
!=
null
)
MoveInfo
.
NextMoveStep
(
MoveStep
.
StoreFIX01
);
MoveInfo
.
NextMoveStep
(
MoveStep
.
StoreFIX01
);
else
else
MoveInfo
.
NextMoveStep
(
MoveStep
.
StoreTS10
);
MoveInfo
.
NextMoveStep
(
MoveStep
.
StoreTS10
);
...
...
DeviceLibrary/theMachine/LabelParam.cs
查看文件 @
dd128ff
...
@@ -182,7 +182,7 @@ namespace DeviceLibrary
...
@@ -182,7 +182,7 @@ namespace DeviceLibrary
if
(
reel
.
PlateW
>
7
&&
Config
.
InOut_P4
>
0
)
if
(
reel
.
PlateW
>
7
&&
Config
.
InOut_P4
>
0
)
InOut_P2
=
Config
.
InOut_P4
;
InOut_P2
=
Config
.
InOut_P4
;
}
}
Comp_PH
=
Config
.
Comp_P2
-
Config
.
Comp_PoToMM
*
(
reel
.
PlateH
-
8
+
Config
.
Comp_PH_MM
);
Comp_PH
=
Config
.
Comp_P2
-
Config
.
Comp_PoToMM
*
(
reel
.
PlateH
-
8
+
Config
.
Comp_PH_MM
+
20
);
Comp_PL
=
Config
.
Comp_P2
-
Config
.
Comp_PoToMM
*
(
reel
.
PlateH
-
8
)
-
(
reel
.
PlateH
>
8
?
Config
.
Comp_PoToMM
*
Config
.
Comp_PL_MM
:
0
);
Comp_PL
=
Config
.
Comp_P2
-
Config
.
Comp_PoToMM
*
(
reel
.
PlateH
-
8
)
-
(
reel
.
PlateH
>
8
?
Config
.
Comp_PoToMM
*
Config
.
Comp_PL_MM
:
0
);
Comp_PH
=
Comp_PH
<
0
?
0
:
Comp_PH
;
Comp_PH
=
Comp_PH
<
0
?
0
:
Comp_PH
;
Comp_PL
=
Comp_PL
<
0
?
0
:
Comp_PL
;
Comp_PL
=
Comp_PL
<
0
?
0
:
Comp_PL
;
...
...
DeviceLibrary/theMachine/MainMachine _AutoInOutTest.cs
查看文件 @
dd128ff
...
@@ -13,7 +13,7 @@ namespace DeviceLibrary
...
@@ -13,7 +13,7 @@ namespace DeviceLibrary
{
{
partial
class
MainMachine
partial
class
MainMachine
{
{
public
bool
StartAutoInOutTest
(
int
posindex
,
out
string
errmsg
)
public
bool
StartAutoInOutTest
(
string
posname
,
out
string
errmsg
)
{
{
errmsg
=
""
;
errmsg
=
""
;
if
(!
boxTransport
.
IsComplateOrFree
)
if
(!
boxTransport
.
IsComplateOrFree
)
...
@@ -27,9 +27,10 @@ namespace DeviceLibrary
...
@@ -27,9 +27,10 @@ namespace DeviceLibrary
return
false
;
return
false
;
}
}
poslist
=
RobotManage
.
PositionNumList
.
Select
(
a
=>
{
return
CSVPositionReader
<
ACStorePosition
>.
allPositionMap
[
a
];
}).
ToList
();
//CSVPositionReader<ACStorePosition>.getPositionList();
poslist
=
RobotManage
.
PositionNumList
.
Select
(
a
=>
{
return
CSVPositionReader
<
ACStorePosition
>.
allPositionMap
[
a
];
}).
ToList
();
//CSVPositionReader<ACStorePosition>.getPositionList();
poslist
.
RemoveAll
(
x
=>
{
return
x
.
PositionNum
.
StartsWith
(
"fix#"
);
});
CurrentPosIndex
=
poslist
.
FindIndex
(
x
=>
x
.
PositionNum
==
posname
);
AutoInOutTest
=
true
;
AutoInOutTest
=
true
;
StopAutoInOut
=
false
;
StopAutoInOut
=
false
;
CurrentPosIndex
=
posindex
;
//AIOTMoveInfo.NewMove(MoveStep.Wait);
//AIOTMoveInfo.NewMove(MoveStep.Wait);
return
true
;
return
true
;
}
}
...
...
DeviceLibrary/userControl/AxisMoveControl.Designer.cs
查看文件 @
dd128ff
...
@@ -78,10 +78,10 @@
...
@@ -78,10 +78,10 @@
this
.
btnAxisStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnAxisStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnAxisReturnHome
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnAxisReturnHome
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
cmbAxis
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
cmbAxis
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnDelMove
=
new
System
.
Windows
.
Forms
.
Butto
n
();
this
.
btnDelMove
=
new
ToucDownBt
n
();
this
.
btnOpenAxis
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOpenAxis
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCloseAxis
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCloseAxis
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnAddMove
=
new
System
.
Windows
.
Forms
.
Butto
n
();
this
.
btnAddMove
=
new
ToucDownBt
n
();
this
.
txtASpeed
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtASpeed
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label47
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label47
=
new
System
.
Windows
.
Forms
.
Label
();
...
@@ -1005,8 +1005,8 @@
...
@@ -1005,8 +1005,8 @@
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
TextBox
txtServoStatue
;
private
System
.
Windows
.
Forms
.
TextBox
txtServoStatue
;
private
System
.
Windows
.
Forms
.
Butto
n
btnDelMove
;
private
ToucDownBt
n
btnDelMove
;
private
System
.
Windows
.
Forms
.
Butto
n
btnAddMove
;
private
ToucDownBt
n
btnAddMove
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
ComboBox
comjSpeed
;
private
System
.
Windows
.
Forms
.
ComboBox
comjSpeed
;
...
...
DeviceLibrary/userControl/ToucDownBtn.cs
0 → 100644
查看文件 @
dd128ff
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Security.Permissions
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
class
ToucDownBtn
:
System
.
Windows
.
Forms
.
Button
{
public
const
int
WM_POINTERDOWN
=
0x246
;
public
const
int
WM_POINTERUP
=
0x247
;
[
PermissionSet
(
SecurityAction
.
Demand
,
Name
=
"FullTrust"
)]
protected
override
void
WndProc
(
ref
Message
m
)
{
switch
(
m
.
Msg
)
{
case
WM_POINTERDOWN
:
{
MouseEventArgs
args
=
new
MouseEventArgs
(
MouseButtons
.
Left
,
1
,
1
,
1
,
0
);
OnMouseDown
(
args
);
//Console.WriteLine("WM_POINTERDOWN");
break
;
}
case
WM_POINTERUP
:
{
MouseEventArgs
args
=
new
MouseEventArgs
(
MouseButtons
.
Left
,
1
,
1
,
1
,
0
);
OnMouseUp
(
args
);
//Console.WriteLine("WM_POINTERUP");
break
;
}
}
base
.
WndProc
(
ref
m
);
}
}
TheMachine/Form1.Designer.cs
查看文件 @
dd128ff
...
@@ -179,7 +179,7 @@ namespace TheMachine
...
@@ -179,7 +179,7 @@ namespace TheMachine
this
.
tabc
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
119
);
this
.
tabc
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
119
);
this
.
tabc
.
Name
=
"tabc"
;
this
.
tabc
.
Name
=
"tabc"
;
this
.
tabc
.
SelectedIndex
=
0
;
this
.
tabc
.
SelectedIndex
=
0
;
this
.
tabc
.
Size
=
new
System
.
Drawing
.
Size
(
1008
,
6
1
0
);
this
.
tabc
.
Size
=
new
System
.
Drawing
.
Size
(
1008
,
6
0
0
);
this
.
tabc
.
TabIndex
=
1
;
this
.
tabc
.
TabIndex
=
1
;
//
//
// tabP1
// tabP1
...
@@ -187,7 +187,7 @@ namespace TheMachine
...
@@ -187,7 +187,7 @@ namespace TheMachine
this
.
tabP1
.
Controls
.
Add
(
this
.
pnl
);
this
.
tabP1
.
Controls
.
Add
(
this
.
pnl
);
this
.
tabP1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
30
);
this
.
tabP1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
30
);
this
.
tabP1
.
Name
=
"tabP1"
;
this
.
tabP1
.
Name
=
"tabP1"
;
this
.
tabP1
.
Size
=
new
System
.
Drawing
.
Size
(
1000
,
5
7
6
);
this
.
tabP1
.
Size
=
new
System
.
Drawing
.
Size
(
1000
,
5
6
6
);
this
.
tabP1
.
TabIndex
=
0
;
this
.
tabP1
.
TabIndex
=
0
;
this
.
tabP1
.
Text
=
"信息"
;
this
.
tabP1
.
Text
=
"信息"
;
this
.
tabP1
.
UseVisualStyleBackColor
=
true
;
this
.
tabP1
.
UseVisualStyleBackColor
=
true
;
...
@@ -206,7 +206,7 @@ namespace TheMachine
...
@@ -206,7 +206,7 @@ namespace TheMachine
this
.
pnl
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
pnl
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
pnl
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
pnl
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
pnl
.
Name
=
"pnl"
;
this
.
pnl
.
Name
=
"pnl"
;
this
.
pnl
.
Size
=
new
System
.
Drawing
.
Size
(
1000
,
5
7
6
);
this
.
pnl
.
Size
=
new
System
.
Drawing
.
Size
(
1000
,
5
6
6
);
this
.
pnl
.
TabIndex
=
273
;
this
.
pnl
.
TabIndex
=
273
;
//
//
// groupBox1
// groupBox1
...
@@ -214,7 +214,7 @@ namespace TheMachine
...
@@ -214,7 +214,7 @@ namespace TheMachine
this
.
groupBox1
.
Controls
.
Add
(
this
.
stateView
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
stateView
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
4
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
4
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
598
,
2
92
);
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
598
,
2
48
);
this
.
groupBox1
.
TabIndex
=
1
;
this
.
groupBox1
.
TabIndex
=
1
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"运行状态"
;
this
.
groupBox1
.
Text
=
"运行状态"
;
...
@@ -228,13 +228,13 @@ namespace TheMachine
...
@@ -228,13 +228,13 @@ namespace TheMachine
this
.
stateView
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
25
);
this
.
stateView
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
25
);
this
.
stateView
.
MultiSelect
=
false
;
this
.
stateView
.
MultiSelect
=
false
;
this
.
stateView
.
Name
=
"stateView"
;
this
.
stateView
.
Name
=
"stateView"
;
this
.
stateView
.
Size
=
new
System
.
Drawing
.
Size
(
592
,
2
64
);
this
.
stateView
.
Size
=
new
System
.
Drawing
.
Size
(
592
,
2
20
);
this
.
stateView
.
TabIndex
=
0
;
this
.
stateView
.
TabIndex
=
0
;
this
.
stateView
.
UseCompatibleStateImageBehavior
=
false
;
this
.
stateView
.
UseCompatibleStateImageBehavior
=
false
;
//
//
// btn_releasestring
// btn_releasestring
//
//
this
.
btn_releasestring
.
Location
=
new
System
.
Drawing
.
Point
(
607
,
2
25
);
this
.
btn_releasestring
.
Location
=
new
System
.
Drawing
.
Point
(
607
,
2
12
);
this
.
btn_releasestring
.
Name
=
"btn_releasestring"
;
this
.
btn_releasestring
.
Name
=
"btn_releasestring"
;
this
.
btn_releasestring
.
Size
=
new
System
.
Drawing
.
Size
(
301
,
40
);
this
.
btn_releasestring
.
Size
=
new
System
.
Drawing
.
Size
(
301
,
40
);
this
.
btn_releasestring
.
TabIndex
=
272
;
this
.
btn_releasestring
.
TabIndex
=
272
;
...
@@ -257,7 +257,7 @@ namespace TheMachine
...
@@ -257,7 +257,7 @@ namespace TheMachine
// pictureBox2
// pictureBox2
//
//
this
.
pictureBox2
.
BackColor
=
System
.
Drawing
.
Color
.
Gainsboro
;
this
.
pictureBox2
.
BackColor
=
System
.
Drawing
.
Color
.
Gainsboro
;
this
.
pictureBox2
.
Location
=
new
System
.
Drawing
.
Point
(
472
,
302
);
this
.
pictureBox2
.
Location
=
new
System
.
Drawing
.
Point
(
472
,
258
);
this
.
pictureBox2
.
Name
=
"pictureBox2"
;
this
.
pictureBox2
.
Name
=
"pictureBox2"
;
this
.
pictureBox2
.
Size
=
new
System
.
Drawing
.
Size
(
436
,
271
);
this
.
pictureBox2
.
Size
=
new
System
.
Drawing
.
Size
(
436
,
271
);
this
.
pictureBox2
.
SizeMode
=
System
.
Windows
.
Forms
.
PictureBoxSizeMode
.
Zoom
;
this
.
pictureBox2
.
SizeMode
=
System
.
Windows
.
Forms
.
PictureBoxSizeMode
.
Zoom
;
...
@@ -281,7 +281,7 @@ namespace TheMachine
...
@@ -281,7 +281,7 @@ namespace TheMachine
// pictureBox1
// pictureBox1
//
//
this
.
pictureBox1
.
BackColor
=
System
.
Drawing
.
Color
.
Gainsboro
;
this
.
pictureBox1
.
BackColor
=
System
.
Drawing
.
Color
.
Gainsboro
;
this
.
pictureBox1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
302
);
this
.
pictureBox1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
258
);
this
.
pictureBox1
.
Name
=
"pictureBox1"
;
this
.
pictureBox1
.
Name
=
"pictureBox1"
;
this
.
pictureBox1
.
Size
=
new
System
.
Drawing
.
Size
(
451
,
271
);
this
.
pictureBox1
.
Size
=
new
System
.
Drawing
.
Size
(
451
,
271
);
this
.
pictureBox1
.
SizeMode
=
System
.
Windows
.
Forms
.
PictureBoxSizeMode
.
Zoom
;
this
.
pictureBox1
.
SizeMode
=
System
.
Windows
.
Forms
.
PictureBoxSizeMode
.
Zoom
;
...
@@ -370,7 +370,7 @@ namespace TheMachine
...
@@ -370,7 +370,7 @@ namespace TheMachine
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
14F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
14F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1008
,
7
2
9
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1008
,
7
1
9
);
this
.
Controls
.
Add
(
this
.
tabc
);
this
.
Controls
.
Add
(
this
.
tabc
);
this
.
Controls
.
Add
(
this
.
listView1
);
this
.
Controls
.
Add
(
this
.
listView1
);
this
.
Controls
.
Add
(
this
.
btn_stop
);
this
.
Controls
.
Add
(
this
.
btn_stop
);
...
...
TheMachine/IOControls.Designer.cs
查看文件 @
dd128ff
...
@@ -37,12 +37,13 @@ namespace TheMachine
...
@@ -37,12 +37,13 @@ namespace TheMachine
this
.
cylinderButton2
=
new
TheMachine
.
CylinderButton
();
this
.
cylinderButton2
=
new
TheMachine
.
CylinderButton
();
this
.
cylinderButton7
=
new
TheMachine
.
CylinderButton
();
this
.
cylinderButton7
=
new
TheMachine
.
CylinderButton
();
this
.
cylinderButton6
=
new
TheMachine
.
CylinderButton
();
this
.
cylinderButton6
=
new
TheMachine
.
CylinderButton
();
this
.
cylinderButton1
=
new
TheMachine
.
CylinderButton
();
this
.
ioControl1
=
new
TheMachine
.
IOControl
();
this
.
ioControl1
=
new
TheMachine
.
IOControl
();
this
.
btn_flipopen
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_flipopen
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_flipclose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_flipclose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_stringdooropen
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_stringdooropen
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_stringdoorclose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_stringdoorclose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_ngdooropen
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_ngdoorclose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// btn_linerun
// btn_linerun
...
@@ -81,7 +82,7 @@ namespace TheMachine
...
@@ -81,7 +82,7 @@ namespace TheMachine
this
.
cylinderButton5
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton5
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton5
.
IO_HIGH
=
"StringPosChecker_Work"
;
this
.
cylinderButton5
.
IO_HIGH
=
"StringPosChecker_Work"
;
this
.
cylinderButton5
.
IO_LOW
=
"StringPosChecker_Home"
;
this
.
cylinderButton5
.
IO_LOW
=
"StringPosChecker_Home"
;
this
.
cylinderButton5
.
Location
=
new
System
.
Drawing
.
Point
(
566
,
327
);
this
.
cylinderButton5
.
Location
=
new
System
.
Drawing
.
Point
(
566
,
293
);
this
.
cylinderButton5
.
Name
=
"cylinderButton5"
;
this
.
cylinderButton5
.
Name
=
"cylinderButton5"
;
this
.
cylinderButton5
.
Size
=
new
System
.
Drawing
.
Size
(
224
,
32
);
this
.
cylinderButton5
.
Size
=
new
System
.
Drawing
.
Size
(
224
,
32
);
this
.
cylinderButton5
.
TabIndex
=
1
;
this
.
cylinderButton5
.
TabIndex
=
1
;
...
@@ -95,7 +96,7 @@ namespace TheMachine
...
@@ -95,7 +96,7 @@ namespace TheMachine
this
.
cylinderButton4
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton4
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton4
.
IO_HIGH
=
"Clamping_Work"
;
this
.
cylinderButton4
.
IO_HIGH
=
"Clamping_Work"
;
this
.
cylinderButton4
.
IO_LOW
=
"Clamping_Relax"
;
this
.
cylinderButton4
.
IO_LOW
=
"Clamping_Relax"
;
this
.
cylinderButton4
.
Location
=
new
System
.
Drawing
.
Point
(
566
,
2
90
);
this
.
cylinderButton4
.
Location
=
new
System
.
Drawing
.
Point
(
566
,
2
55
);
this
.
cylinderButton4
.
Name
=
"cylinderButton4"
;
this
.
cylinderButton4
.
Name
=
"cylinderButton4"
;
this
.
cylinderButton4
.
Size
=
new
System
.
Drawing
.
Size
(
224
,
32
);
this
.
cylinderButton4
.
Size
=
new
System
.
Drawing
.
Size
(
224
,
32
);
this
.
cylinderButton4
.
TabIndex
=
1
;
this
.
cylinderButton4
.
TabIndex
=
1
;
...
@@ -109,7 +110,7 @@ namespace TheMachine
...
@@ -109,7 +110,7 @@ namespace TheMachine
this
.
cylinderButton2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton2
.
IO_HIGH
=
"StringFix_Top"
;
this
.
cylinderButton2
.
IO_HIGH
=
"StringFix_Top"
;
this
.
cylinderButton2
.
IO_LOW
=
"StringFix_Bottom"
;
this
.
cylinderButton2
.
IO_LOW
=
"StringFix_Bottom"
;
this
.
cylinderButton2
.
Location
=
new
System
.
Drawing
.
Point
(
566
,
2
53
);
this
.
cylinderButton2
.
Location
=
new
System
.
Drawing
.
Point
(
566
,
2
17
);
this
.
cylinderButton2
.
Name
=
"cylinderButton2"
;
this
.
cylinderButton2
.
Name
=
"cylinderButton2"
;
this
.
cylinderButton2
.
Size
=
new
System
.
Drawing
.
Size
(
224
,
32
);
this
.
cylinderButton2
.
Size
=
new
System
.
Drawing
.
Size
(
224
,
32
);
this
.
cylinderButton2
.
TabIndex
=
1
;
this
.
cylinderButton2
.
TabIndex
=
1
;
...
@@ -145,20 +146,6 @@ namespace TheMachine
...
@@ -145,20 +146,6 @@ namespace TheMachine
this
.
cylinderButton6
.
Text
=
"Camera_Led"
;
this
.
cylinderButton6
.
Text
=
"Camera_Led"
;
this
.
cylinderButton6
.
UseVisualStyleBackColor
=
false
;
this
.
cylinderButton6
.
UseVisualStyleBackColor
=
false
;
//
//
// cylinderButton1
//
this
.
cylinderButton1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
cylinderButton1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
cylinderButton1
.
IO_HIGH
=
"NGDoor_Open"
;
this
.
cylinderButton1
.
IO_LOW
=
"NGDoor_Close"
;
this
.
cylinderButton1
.
Location
=
new
System
.
Drawing
.
Point
(
566
,
216
);
this
.
cylinderButton1
.
Name
=
"cylinderButton1"
;
this
.
cylinderButton1
.
Size
=
new
System
.
Drawing
.
Size
(
224
,
32
);
this
.
cylinderButton1
.
TabIndex
=
1
;
this
.
cylinderButton1
.
Tag
=
"not"
;
this
.
cylinderButton1
.
Text
=
"NGDoor_Open"
;
this
.
cylinderButton1
.
UseVisualStyleBackColor
=
false
;
//
// ioControl1
// ioControl1
//
//
this
.
ioControl1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ioControl1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
...
@@ -211,6 +198,26 @@ namespace TheMachine
...
@@ -211,6 +198,26 @@ namespace TheMachine
this
.
btn_stringdoorclose
.
UseVisualStyleBackColor
=
true
;
this
.
btn_stringdoorclose
.
UseVisualStyleBackColor
=
true
;
this
.
btn_stringdoorclose
.
Click
+=
new
System
.
EventHandler
(
this
.
btn_stringdoorclose_Click
);
this
.
btn_stringdoorclose
.
Click
+=
new
System
.
EventHandler
(
this
.
btn_stringdoorclose_Click
);
//
//
// btn_ngdooropen
//
this
.
btn_ngdooropen
.
Location
=
new
System
.
Drawing
.
Point
(
566
,
331
);
this
.
btn_ngdooropen
.
Name
=
"btn_ngdooropen"
;
this
.
btn_ngdooropen
.
Size
=
new
System
.
Drawing
.
Size
(
113
,
32
);
this
.
btn_ngdooropen
.
TabIndex
=
2
;
this
.
btn_ngdooropen
.
Text
=
"单料门打开"
;
this
.
btn_ngdooropen
.
UseVisualStyleBackColor
=
true
;
this
.
btn_ngdooropen
.
Click
+=
new
System
.
EventHandler
(
this
.
btn_ngdooropen_Click
);
//
// btn_ngdoorclose
//
this
.
btn_ngdoorclose
.
Location
=
new
System
.
Drawing
.
Point
(
685
,
331
);
this
.
btn_ngdoorclose
.
Name
=
"btn_ngdoorclose"
;
this
.
btn_ngdoorclose
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
32
);
this
.
btn_ngdoorclose
.
TabIndex
=
2
;
this
.
btn_ngdoorclose
.
Text
=
"单料门关闭"
;
this
.
btn_ngdoorclose
.
UseVisualStyleBackColor
=
true
;
this
.
btn_ngdoorclose
.
Click
+=
new
System
.
EventHandler
(
this
.
btn_ngdoorclose_Click
);
//
// IOControls
// IOControls
//
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
@@ -218,15 +225,16 @@ namespace TheMachine
...
@@ -218,15 +225,16 @@ namespace TheMachine
this
.
Controls
.
Add
(
this
.
btn_stringdooropen
);
this
.
Controls
.
Add
(
this
.
btn_stringdooropen
);
this
.
Controls
.
Add
(
this
.
btn_flipclose
);
this
.
Controls
.
Add
(
this
.
btn_flipclose
);
this
.
Controls
.
Add
(
this
.
btn_flipopen
);
this
.
Controls
.
Add
(
this
.
btn_flipopen
);
this
.
Controls
.
Add
(
this
.
btn_ngdoorclose
);
this
.
Controls
.
Add
(
this
.
btn_linerev
);
this
.
Controls
.
Add
(
this
.
btn_linerev
);
this
.
Controls
.
Add
(
this
.
btn_linestop
);
this
.
Controls
.
Add
(
this
.
btn_linestop
);
this
.
Controls
.
Add
(
this
.
btn_ngdooropen
);
this
.
Controls
.
Add
(
this
.
btn_linerun
);
this
.
Controls
.
Add
(
this
.
btn_linerun
);
this
.
Controls
.
Add
(
this
.
cylinderButton5
);
this
.
Controls
.
Add
(
this
.
cylinderButton5
);
this
.
Controls
.
Add
(
this
.
cylinderButton4
);
this
.
Controls
.
Add
(
this
.
cylinderButton4
);
this
.
Controls
.
Add
(
this
.
cylinderButton2
);
this
.
Controls
.
Add
(
this
.
cylinderButton2
);
this
.
Controls
.
Add
(
this
.
cylinderButton7
);
this
.
Controls
.
Add
(
this
.
cylinderButton7
);
this
.
Controls
.
Add
(
this
.
cylinderButton6
);
this
.
Controls
.
Add
(
this
.
cylinderButton6
);
this
.
Controls
.
Add
(
this
.
cylinderButton1
);
this
.
Controls
.
Add
(
this
.
ioControl1
);
this
.
Controls
.
Add
(
this
.
ioControl1
);
this
.
Font
=
new
System
.
Drawing
.
Font
(
"新宋体"
,
9F
);
this
.
Font
=
new
System
.
Drawing
.
Font
(
"新宋体"
,
9F
);
this
.
Name
=
"IOControls"
;
this
.
Name
=
"IOControls"
;
...
@@ -238,7 +246,6 @@ namespace TheMachine
...
@@ -238,7 +246,6 @@ namespace TheMachine
#
endregion
#
endregion
private
IOControl
ioControl1
;
private
IOControl
ioControl1
;
private
CylinderButton
cylinderButton1
;
private
CylinderButton
cylinderButton2
;
private
CylinderButton
cylinderButton2
;
private
CylinderButton
cylinderButton4
;
private
CylinderButton
cylinderButton4
;
private
CylinderButton
cylinderButton5
;
private
CylinderButton
cylinderButton5
;
...
@@ -251,5 +258,7 @@ namespace TheMachine
...
@@ -251,5 +258,7 @@ namespace TheMachine
private
System
.
Windows
.
Forms
.
Button
btn_flipclose
;
private
System
.
Windows
.
Forms
.
Button
btn_flipclose
;
private
System
.
Windows
.
Forms
.
Button
btn_stringdooropen
;
private
System
.
Windows
.
Forms
.
Button
btn_stringdooropen
;
private
System
.
Windows
.
Forms
.
Button
btn_stringdoorclose
;
private
System
.
Windows
.
Forms
.
Button
btn_stringdoorclose
;
private
System
.
Windows
.
Forms
.
Button
btn_ngdooropen
;
private
System
.
Windows
.
Forms
.
Button
btn_ngdoorclose
;
}
}
}
}
TheMachine/IOControls.cs
查看文件 @
dd128ff
...
@@ -73,5 +73,15 @@ namespace TheMachine
...
@@ -73,5 +73,15 @@ namespace TheMachine
LogUtil
.
info
(
"手动控制:折叠门门关闭"
);
LogUtil
.
info
(
"手动控制:折叠门门关闭"
);
RobotManage
.
mainMachine
.
StringDoorClose
(
null
);
RobotManage
.
mainMachine
.
StringDoorClose
(
null
);
}
}
private
void
btn_ngdooropen_Click
(
object
sender
,
EventArgs
e
)
{
RobotManage
.
mainMachine
.
SingleDoor
.
ToHigh
(
null
);
}
private
void
btn_ngdoorclose_Click
(
object
sender
,
EventArgs
e
)
{
RobotManage
.
mainMachine
.
SingleDoor
.
ToLow
(
null
);
}
}
}
}
}
TheMachine/UC/uc_boxdebug.cs
查看文件 @
dd128ff
...
@@ -441,8 +441,7 @@ namespace TheMachine
...
@@ -441,8 +441,7 @@ namespace TheMachine
DialogResult
res
=
MessageBox
.
Show
(
crc
.
GetString
(
L
.
autotest_msg_02
,
"确定开始自动库位测试?\n请确保料仓库位全部为空."
),
crc
.
GetString
(
L
.
tips
,
"提示"
),
MessageBoxButtons
.
YesNo
);
DialogResult
res
=
MessageBox
.
Show
(
crc
.
GetString
(
L
.
autotest_msg_02
,
"确定开始自动库位测试?\n请确保料仓库位全部为空."
),
crc
.
GetString
(
L
.
tips
,
"提示"
),
MessageBoxButtons
.
YesNo
);
if
(
res
==
DialogResult
.
No
)
if
(
res
==
DialogResult
.
No
)
return
;
return
;
int
posindex
=
RobotManage
.
PositionNumList
.
IndexOf
(
cmbPosition
.
Text
);
if
(!
RobotManage
.
mainMachine
.
StartAutoInOutTest
(
cmbPosition
.
Text
,
out
string
errmsg
))
if
(!
RobotManage
.
mainMachine
.
StartAutoInOutTest
(
posindex
,
out
string
errmsg
))
{
{
MessageBox
.
Show
(
errmsg
);
MessageBox
.
Show
(
errmsg
);
return
;
return
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论