Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 850d2d5e
由
LN
编写于
2020-12-03 10:02:27 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
界面按钮增加日志
1 个父辈
5075635d
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
101 行增加
和
66 行删除
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.cs
source/AssemblyLineClient/FrmEquipBase.cs
查看文件 @
850d2d5
...
@@ -187,12 +187,14 @@ namespace OnlineStore.AssemblyLine
...
@@ -187,12 +187,14 @@ namespace OnlineStore.AssemblyLine
if
(
value
.
Equals
(
IO_VALUE
.
HIGH
))
if
(
value
.
Equals
(
IO_VALUE
.
HIGH
))
{
{
equipBase
.
IOMove
(
ioType
,
IO_VALUE
.
LOW
);
equipBase
.
IOMove
(
ioType
,
IO_VALUE
.
LOW
);
c
.
BackColor
=
c
.
Parent
.
BackColor
;
c
.
BackColor
=
c
.
Parent
.
BackColor
;
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
c
.
Text
+
",写入DO"
+
ioType
+
"=LOW"
);
}
}
else
else
{
{
equipBase
.
IOMove
(
ioType
,
IO_VALUE
.
HIGH
);
equipBase
.
IOMove
(
ioType
,
IO_VALUE
.
HIGH
);
c
.
BackColor
=
Color
.
LawnGreen
;
c
.
BackColor
=
Color
.
LawnGreen
;
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
c
.
Text
+
",写入DO"
+
ioType
+
"=HIGH"
);
}
}
}
}
}
}
...
...
source/AssemblyLineClient/FrmFeedingEquip.Designer.cs
查看文件 @
850d2d5
...
@@ -515,7 +515,7 @@
...
@@ -515,7 +515,7 @@
this
.
SL_RollerLine_Run
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_RollerLine_Run
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
SL_RollerLine_Run
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
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
.
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
,
6
0
);
this
.
SL_RollerLine_Run
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
6
2
);
this
.
SL_RollerLine_Run
.
Name
=
"SL_RollerLine_Run"
;
this
.
SL_RollerLine_Run
.
Name
=
"SL_RollerLine_Run"
;
this
.
SL_RollerLine_Run
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_RollerLine_Run
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
34
);
this
.
SL_RollerLine_Run
.
TabIndex
=
275
;
this
.
SL_RollerLine_Run
.
TabIndex
=
275
;
...
...
source/AssemblyLineClient/FrmFeedingEquip.cs
查看文件 @
850d2d5
...
@@ -369,24 +369,24 @@ namespace OnlineStore.AssemblyLine
...
@@ -369,24 +369,24 @@ namespace OnlineStore.AssemblyLine
}
}
}
}
}
}
}
}
private
void
btnLocationCylinder_Click
(
object
sender
,
EventArgs
e
)
private
void
btnLocationCylinder_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_LocationCylinder_Up
.
Text
);
equipBean
.
CylinderMove
(
null
,
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
)
private
void
btnOutTopCylinder_Click
(
object
sender
,
EventArgs
e
)
{
{
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_OutTopCylinder_Down
,
IO_Type
.
SL_OutTopCylinder_Up
);
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_OutTopCylinder_Up
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_OutTopCylinder_Down
,
IO_Type
.
SL_OutTopCylinder_Up
);
}
}
private
void
btnFeedSideWayCylinder_Click
(
object
sender
,
EventArgs
e
)
private
void
btnFeedSideWayCylinder_Click
(
object
sender
,
EventArgs
e
)
{
{
if
(
equipBean
.
UpdownIsInP1
())
if
(
equipBean
.
UpdownIsInP1
())
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_MoveCylinder_Take
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_MoveCylinder_Give
,
IO_Type
.
SL_MoveCylinder_Take
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_MoveCylinder_Give
,
IO_Type
.
SL_MoveCylinder_Take
);
}
}
else
else
...
@@ -404,6 +404,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -404,6 +404,7 @@ namespace OnlineStore.AssemblyLine
return
;
return
;
}
}
}
}
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_TrayLocation_Before
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_TrayLocation_After
,
IO_Type
.
SL_TrayLocation_Before
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_TrayLocation_After
,
IO_Type
.
SL_TrayLocation_Before
);
}
}
...
@@ -586,7 +587,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -586,7 +587,7 @@ namespace OnlineStore.AssemblyLine
private
void
chbBoxSendShelf_CheckedChanged
(
object
sender
,
EventArgs
e
)
private
void
chbBoxSendShelf_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
{
IsInCheck
=
true
;
IsInCheck
=
true
;
LogUtil
.
info
(
equipBean
.
Name
+
"
用户
点击:出库完成送出料架="
+
chbBoxSendShelf
.
Checked
);
LogUtil
.
info
(
equipBean
.
Name
+
"
界面
点击:出库完成送出料架="
+
chbBoxSendShelf
.
Checked
);
equipBean
.
OutEndSendShelfOut
=
chbBoxSendShelf
.
Checked
;
equipBean
.
OutEndSendShelfOut
=
chbBoxSendShelf
.
Checked
;
IsInCheck
=
false
;
IsInCheck
=
false
;
}
}
...
@@ -710,11 +711,13 @@ namespace OnlineStore.AssemblyLine
...
@@ -710,11 +711,13 @@ namespace OnlineStore.AssemblyLine
private
void
btnGuding_Click
(
object
sender
,
EventArgs
e
)
private
void
btnGuding_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_FixedCylinder_Up
.
Text
);
equipBean
.
CylinderMove
(
null
,
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
)
private
void
btnTopUp_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_TopCylinder_Up
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_TopCylinder_Down
,
IO_Type
.
SL_TopCylinder_Up
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_TopCylinder_Down
,
IO_Type
.
SL_TopCylinder_Up
);
}
}
...
@@ -724,17 +727,20 @@ namespace OnlineStore.AssemblyLine
...
@@ -724,17 +727,20 @@ namespace OnlineStore.AssemblyLine
}
}
private
void
btnFeedCylinder_Click
(
object
sender
,
EventArgs
e
)
private
void
btnFeedCylinder_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_ClampCylinder_Work
.
Text
);
equipBean
.
CylinderMove
(
null
,
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
)
private
void
SL_TopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_TopCylinder_Down
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_OutTopCylinder_Up
,
IO_Type
.
SL_TopCylinder_Down
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_OutTopCylinder_Up
,
IO_Type
.
SL_TopCylinder_Down
);
}
}
private
void
SL_FixedCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
private
void
SL_FixedCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_FixedCylinder_Down
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_FixedCylinder_Up
,
IO_Type
.
SL_FixedCylinder_Down
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_FixedCylinder_Up
,
IO_Type
.
SL_FixedCylinder_Down
);
}
}
...
@@ -747,6 +753,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -747,6 +753,7 @@ namespace OnlineStore.AssemblyLine
{
{
if
(
equipBean
.
UpdownIsInP1
())
if
(
equipBean
.
UpdownIsInP1
())
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_MoveCylinder_Give
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_MoveCylinder_Take
,
IO_Type
.
SL_MoveCylinder_Give
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_MoveCylinder_Take
,
IO_Type
.
SL_MoveCylinder_Give
);
}
}
else
else
...
@@ -756,12 +763,14 @@ namespace OnlineStore.AssemblyLine
...
@@ -756,12 +763,14 @@ namespace OnlineStore.AssemblyLine
}
}
private
void
SL_ClampCylinder_Work_Click
(
object
sender
,
EventArgs
e
)
private
void
SL_ClampCylinder_Work_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_ClampCylinder_Relax
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_ClampCylinder_Work
,
IO_Type
.
SL_ClampCylinder_Relax
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_ClampCylinder_Work
,
IO_Type
.
SL_ClampCylinder_Relax
);
}
}
private
void
SL_OutTopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
private
void
SL_OutTopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_OutTopCylinder_Down
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_OutTopCylinder_Up
,
IO_Type
.
SL_OutTopCylinder_Down
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_OutTopCylinder_Up
,
IO_Type
.
SL_OutTopCylinder_Down
);
}
}
...
@@ -775,6 +784,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -775,6 +784,7 @@ namespace OnlineStore.AssemblyLine
return
;
return
;
}
}
}
}
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
SL_TrayLocation_After
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_TrayLocation_After
,
IO_Type
.
SL_TrayLocation_After
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
SL_TrayLocation_After
,
IO_Type
.
SL_TrayLocation_After
);
}
}
}
}
...
...
source/AssemblyLineClient/FrmHYEquip.Designer.cs
查看文件 @
850d2d5
此文件的差异被折叠,
点击展开。
source/AssemblyLineClient/FrmHYEquip.cs
查看文件 @
850d2d5
...
@@ -503,6 +503,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -503,6 +503,7 @@ namespace OnlineStore.AssemblyLine
}
}
private
void
btnLineRun_Click
(
object
sender
,
EventArgs
e
)
private
void
btnLineRun_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_LineRun
.
Text
);
equipBean
.
LineRun
();
equipBean
.
LineRun
();
}
}
private
void
btnStopDown_Click
(
object
sender
,
EventArgs
e
)
private
void
btnStopDown_Click
(
object
sender
,
EventArgs
e
)
...
@@ -512,6 +513,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -512,6 +513,7 @@ namespace OnlineStore.AssemblyLine
private
void
btnLineBackRun_Click
(
object
sender
,
EventArgs
e
)
private
void
btnLineBackRun_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_LineBackRun
.
Text
);
equipBean
.
LineStop
();
equipBean
.
LineStop
();
}
}
...
@@ -522,20 +524,25 @@ namespace OnlineStore.AssemblyLine
...
@@ -522,20 +524,25 @@ namespace OnlineStore.AssemblyLine
}
}
private
void
btnTopCylinder_Up_Click
(
object
sender
,
EventArgs
e
)
private
void
btnTopCylinder_Up_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_TopCylinder_Up
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_TopCylinder_Down
,
IO_Type
.
HY_TopCylinder_Up
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_TopCylinder_Down
,
IO_Type
.
HY_TopCylinder_Up
);
}
}
private
void
btnLocation_Up_Click
(
object
sender
,
EventArgs
e
)
private
void
btnLocation_Up_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_LocationCylinder_Up
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_LocationCylinder_Down
,
IO_Type
.
HY_LocationCylinder_Up
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_LocationCylinder_Down
,
IO_Type
.
HY_LocationCylinder_Up
);
}
}
private
void
btnMoveTake_Click
(
object
sender
,
EventArgs
e
)
private
void
btnMoveTake_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_MoveCylinder_Take
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_MoveCylinder_Give
,
IO_Type
.
HY_MoveCylinder_Take
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_MoveCylinder_Give
,
IO_Type
.
HY_MoveCylinder_Take
);
}
}
private
void
btnClampWork_Click
(
object
sender
,
EventArgs
e
)
private
void
btnClampWork_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_ClampCylinder_Work
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_ClampCylinder_Relax
,
IO_Type
.
HY_ClampCylinder_Work
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_ClampCylinder_Relax
,
IO_Type
.
HY_ClampCylinder_Work
);
}
}
...
@@ -551,41 +558,49 @@ namespace OnlineStore.AssemblyLine
...
@@ -551,41 +558,49 @@ namespace OnlineStore.AssemblyLine
private
void
HY_StopCylinder_Up_Click
(
object
sender
,
EventArgs
e
)
private
void
HY_StopCylinder_Up_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_StopCylinder_Up
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_StopCylinder_Down
,
IO_Type
.
HY_StopCylinder_Up
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_StopCylinder_Down
,
IO_Type
.
HY_StopCylinder_Up
);
}
}
private
void
HY_StopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
private
void
HY_StopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_StopCylinder_Down
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_StopCylinder_Up
,
IO_Type
.
HY_StopCylinder_Down
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_StopCylinder_Up
,
IO_Type
.
HY_StopCylinder_Down
);
}
}
private
void
HY_OL_StopCylinder_Up_Click
(
object
sender
,
EventArgs
e
)
private
void
HY_OL_StopCylinder_Up_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_OL_StopCylinder_Up
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_OL_StopCylinder_Down
,
IO_Type
.
HY_OL_StopCylinder_Up
);
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
)
private
void
HY_OL_StopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_OL_StopCylinder_Down
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_OL_StopCylinder_Up
,
IO_Type
.
HY_OL_StopCylinder_Down
);
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
)
private
void
HY_TopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_TopCylinder_Down
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_TopCylinder_Up
,
IO_Type
.
HY_TopCylinder_Down
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_TopCylinder_Up
,
IO_Type
.
HY_TopCylinder_Down
);
}
}
private
void
HY_LocationCylinder_Down1_Click
(
object
sender
,
EventArgs
e
)
private
void
HY_LocationCylinder_Down1_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_LocationCylinder_Down
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_LocationCylinder_Up
,
IO_Type
.
HY_LocationCylinder_Down
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_LocationCylinder_Up
,
IO_Type
.
HY_LocationCylinder_Down
);
}
}
private
void
HY_MoveCylinder_Give_Click
(
object
sender
,
EventArgs
e
)
private
void
HY_MoveCylinder_Give_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_MoveCylinder_Give
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_MoveCylinder_Take
,
IO_Type
.
HY_MoveCylinder_Give
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_MoveCylinder_Take
,
IO_Type
.
HY_MoveCylinder_Give
);
}
}
private
void
HY_ClampCylinder_Relax_Click
(
object
sender
,
EventArgs
e
)
private
void
HY_ClampCylinder_Relax_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
HY_ClampCylinder_Relax
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_ClampCylinder_Work
,
IO_Type
.
HY_ClampCylinder_Relax
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
HY_ClampCylinder_Work
,
IO_Type
.
HY_ClampCylinder_Relax
);
}
}
...
...
source/AssemblyLineClient/FrmLineIO.Designer.cs
查看文件 @
850d2d5
...
@@ -37,11 +37,11 @@
...
@@ -37,11 +37,11 @@
this
.
tableLayoutPanel3
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
tableLayoutPanel3
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox5
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox5
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnLineStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnLineStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_TopCylinder_Down
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnDriveMotor_Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnDriveMotor_Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnFrontStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnFrontStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnStopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTopDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
HY_TopCylinder_Up
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblTrayNum
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblTrayNum
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
chbTray
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
chbTray
=
new
System
.
Windows
.
Forms
.
CheckBox
();
...
@@ -307,11 +307,11 @@
...
@@ -307,11 +307,11 @@
// groupBox5
// groupBox5
//
//
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnLineStop
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnLineStop
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
button2
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
HY_TopCylinder_Down
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnDriveMotor_Run
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnDriveMotor_Run
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnFrontStopDown
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnFrontStopDown
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnStopDown
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnStopDown
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnTopDown
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
HY_TopCylinder_Up
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
573
,
134
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
573
,
134
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
475
,
130
);
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
475
,
130
);
...
@@ -331,17 +331,17 @@
...
@@ -331,17 +331,17 @@
this
.
btnLineStop
.
UseVisualStyleBackColor
=
false
;
this
.
btnLineStop
.
UseVisualStyleBackColor
=
false
;
this
.
btnLineStop
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLineStop_Click
);
this
.
btnLineStop
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLineStop_Click
);
//
//
//
button2
//
HY_TopCylinder_Down
//
//
this
.
button2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_TopCylinder_Down
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
HY_TopCylinder_Down
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
button2
.
Location
=
new
System
.
Drawing
.
Point
(
317
,
69
);
this
.
HY_TopCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
317
,
69
);
this
.
button2
.
Name
=
"button2
"
;
this
.
HY_TopCylinder_Down
.
Name
=
"HY_TopCylinder_Down
"
;
this
.
button2
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
37
);
this
.
HY_TopCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
37
);
this
.
button2
.
TabIndex
=
277
;
this
.
HY_TopCylinder_Down
.
TabIndex
=
277
;
this
.
button2
.
Text
=
"T3-C1顶升下降 ↓ "
;
this
.
HY_TopCylinder_Down
.
Text
=
"T3-C1顶升下降 ↓ "
;
this
.
button2
.
UseVisualStyleBackColor
=
true
;
this
.
HY_TopCylinder_Down
.
UseVisualStyleBackColor
=
true
;
this
.
button2
.
Click
+=
new
System
.
EventHandler
(
this
.
button2
_Click
);
this
.
HY_TopCylinder_Down
.
Click
+=
new
System
.
EventHandler
(
this
.
HY_TopCylinder_Down
_Click
);
//
//
// btnDriveMotor_Run
// btnDriveMotor_Run
//
//
...
@@ -379,24 +379,24 @@
...
@@ -379,24 +379,24 @@
this
.
btnStopDown
.
UseVisualStyleBackColor
=
true
;
this
.
btnStopDown
.
UseVisualStyleBackColor
=
true
;
this
.
btnStopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btn34Top_Click
);
this
.
btnStopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btn34Top_Click
);
//
//
//
btnTopDown
//
HY_TopCylinder_Up
//
//
this
.
btnTopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
HY_TopCylinder_Up
.
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
.
HY_TopCylinder_Up
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopDown
.
Location
=
new
System
.
Drawing
.
Point
(
317
,
22
);
this
.
HY_TopCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
317
,
22
);
this
.
btnTopDown
.
Name
=
"btnTopDown
"
;
this
.
HY_TopCylinder_Up
.
Name
=
"HY_TopCylinder_Up
"
;
this
.
btnTopDown
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
37
);
this
.
HY_TopCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
37
);
this
.
btnTopDown
.
TabIndex
=
262
;
this
.
HY_TopCylinder_Up
.
TabIndex
=
262
;
this
.
btnTopDown
.
Text
=
"T3-C1顶升上升 ↑"
;
this
.
HY_TopCylinder_Up
.
Text
=
"T3-C1顶升上升 ↑"
;
this
.
btnTopDown
.
UseVisualStyleBackColor
=
true
;
this
.
HY_TopCylinder_Up
.
UseVisualStyleBackColor
=
true
;
this
.
btnTopDown
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSWRun
_Click
);
this
.
HY_TopCylinder_Up
.
Click
+=
new
System
.
EventHandler
(
this
.
HY_TopCylinder_Up
_Click
);
//
//
// lblTrayNum
// lblTrayNum
//
//
this
.
lblTrayNum
.
AutoSize
=
true
;
this
.
lblTrayNum
.
AutoSize
=
true
;
this
.
lblTrayNum
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
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
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblTrayNum
.
Location
=
new
System
.
Drawing
.
Point
(
827
,
4
78
);
this
.
lblTrayNum
.
Location
=
new
System
.
Drawing
.
Point
(
827
,
4
81
);
this
.
lblTrayNum
.
Name
=
"lblTrayNum"
;
this
.
lblTrayNum
.
Name
=
"lblTrayNum"
;
this
.
lblTrayNum
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
lblTrayNum
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
lblTrayNum
.
TabIndex
=
275
;
this
.
lblTrayNum
.
TabIndex
=
275
;
...
@@ -483,7 +483,7 @@
...
@@ -483,7 +483,7 @@
// chbSmall
// chbSmall
//
//
this
.
chbSmall
.
AutoSize
=
true
;
this
.
chbSmall
.
AutoSize
=
true
;
this
.
chbSmall
.
Location
=
new
System
.
Drawing
.
Point
(
316
,
58
);
this
.
chbSmall
.
Location
=
new
System
.
Drawing
.
Point
(
316
,
60
);
this
.
chbSmall
.
Name
=
"chbSmall"
;
this
.
chbSmall
.
Name
=
"chbSmall"
;
this
.
chbSmall
.
Size
=
new
System
.
Drawing
.
Size
(
63
,
21
);
this
.
chbSmall
.
Size
=
new
System
.
Drawing
.
Size
(
63
,
21
);
this
.
chbSmall
.
TabIndex
=
279
;
this
.
chbSmall
.
TabIndex
=
279
;
...
@@ -562,7 +562,7 @@
...
@@ -562,7 +562,7 @@
// label7
// label7
//
//
this
.
label7
.
AutoSize
=
true
;
this
.
label7
.
AutoSize
=
true
;
this
.
label7
.
Location
=
new
System
.
Drawing
.
Point
(
155
,
6
0
);
this
.
label7
.
Location
=
new
System
.
Drawing
.
Point
(
155
,
6
2
);
this
.
label7
.
Name
=
"label7"
;
this
.
label7
.
Name
=
"label7"
;
this
.
label7
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label7
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label7
.
TabIndex
=
209
;
this
.
label7
.
TabIndex
=
209
;
...
@@ -570,7 +570,7 @@
...
@@ -570,7 +570,7 @@
//
//
// txtTrayCode
// txtTrayCode
//
//
this
.
txtTrayCode
.
Location
=
new
System
.
Drawing
.
Point
(
195
,
5
7
);
this
.
txtTrayCode
.
Location
=
new
System
.
Drawing
.
Point
(
195
,
5
9
);
this
.
txtTrayCode
.
Name
=
"txtTrayCode"
;
this
.
txtTrayCode
.
Name
=
"txtTrayCode"
;
this
.
txtTrayCode
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
23
);
this
.
txtTrayCode
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
23
);
this
.
txtTrayCode
.
TabIndex
=
208
;
this
.
txtTrayCode
.
TabIndex
=
208
;
...
@@ -587,7 +587,7 @@
...
@@ -587,7 +587,7 @@
// label1
// label1
//
//
this
.
label1
.
AutoSize
=
true
;
this
.
label1
.
AutoSize
=
true
;
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
6
0
);
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
6
2
);
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
17
);
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
17
);
this
.
label1
.
TabIndex
=
206
;
this
.
label1
.
TabIndex
=
206
;
...
@@ -596,7 +596,7 @@
...
@@ -596,7 +596,7 @@
// chbInStoNG
// chbInStoNG
//
//
this
.
chbInStoNG
.
AutoSize
=
true
;
this
.
chbInStoNG
.
AutoSize
=
true
;
this
.
chbInStoNG
.
Location
=
new
System
.
Drawing
.
Point
(
398
,
58
);
this
.
chbInStoNG
.
Location
=
new
System
.
Drawing
.
Point
(
398
,
60
);
this
.
chbInStoNG
.
Name
=
"chbInStoNG"
;
this
.
chbInStoNG
.
Name
=
"chbInStoNG"
;
this
.
chbInStoNG
.
Size
=
new
System
.
Drawing
.
Size
(
70
,
21
);
this
.
chbInStoNG
.
Size
=
new
System
.
Drawing
.
Size
(
70
,
21
);
this
.
chbInStoNG
.
TabIndex
=
205
;
this
.
chbInStoNG
.
TabIndex
=
205
;
...
@@ -611,7 +611,7 @@
...
@@ -611,7 +611,7 @@
"无"
,
"无"
,
"入库"
,
"入库"
,
"出库"
});
"出库"
});
this
.
cmbTrayType
.
Location
=
new
System
.
Drawing
.
Point
(
65
,
5
6
);
this
.
cmbTrayType
.
Location
=
new
System
.
Drawing
.
Point
(
65
,
5
8
);
this
.
cmbTrayType
.
Name
=
"cmbTrayType"
;
this
.
cmbTrayType
.
Name
=
"cmbTrayType"
;
this
.
cmbTrayType
.
Size
=
new
System
.
Drawing
.
Size
(
78
,
25
);
this
.
cmbTrayType
.
Size
=
new
System
.
Drawing
.
Size
(
78
,
25
);
this
.
cmbTrayType
.
TabIndex
=
204
;
this
.
cmbTrayType
.
TabIndex
=
204
;
...
@@ -658,7 +658,7 @@
...
@@ -658,7 +658,7 @@
//
//
this
.
lblMoveInfo
.
AutoSize
=
true
;
this
.
lblMoveInfo
.
AutoSize
=
true
;
this
.
lblMoveInfo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
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
(
577
,
4
78
);
this
.
lblMoveInfo
.
Location
=
new
System
.
Drawing
.
Point
(
577
,
4
81
);
this
.
lblMoveInfo
.
Name
=
"lblMoveInfo"
;
this
.
lblMoveInfo
.
Name
=
"lblMoveInfo"
;
this
.
lblMoveInfo
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
17
);
this
.
lblMoveInfo
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
17
);
this
.
lblMoveInfo
.
TabIndex
=
276
;
this
.
lblMoveInfo
.
TabIndex
=
276
;
...
@@ -711,7 +711,7 @@
...
@@ -711,7 +711,7 @@
private
System
.
Windows
.
Forms
.
GroupBox
groupBox2
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox2
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel3
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel3
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox5
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox5
;
private
System
.
Windows
.
Forms
.
Button
btnTopDown
;
private
System
.
Windows
.
Forms
.
Button
HY_TopCylinder_Up
;
private
System
.
Windows
.
Forms
.
Button
btnDriveMotor_Run
;
private
System
.
Windows
.
Forms
.
Button
btnDriveMotor_Run
;
private
System
.
Windows
.
Forms
.
Button
btnStopDown
;
private
System
.
Windows
.
Forms
.
Button
btnStopDown
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
...
@@ -719,7 +719,7 @@
...
@@ -719,7 +719,7 @@
private
System
.
Windows
.
Forms
.
Label
lblTrayNum
;
private
System
.
Windows
.
Forms
.
Label
lblTrayNum
;
private
System
.
Windows
.
Forms
.
Button
btnFrontStopDown
;
private
System
.
Windows
.
Forms
.
Button
btnFrontStopDown
;
private
System
.
Windows
.
Forms
.
Button
button1
;
private
System
.
Windows
.
Forms
.
Button
button1
;
private
System
.
Windows
.
Forms
.
Button
button2
;
private
System
.
Windows
.
Forms
.
Button
HY_TopCylinder_Down
;
private
System
.
Windows
.
Forms
.
Button
btnLineStop
;
private
System
.
Windows
.
Forms
.
Button
btnLineStop
;
private
System
.
Windows
.
Forms
.
Label
lblMoveInfo
;
private
System
.
Windows
.
Forms
.
Label
lblMoveInfo
;
private
System
.
Windows
.
Forms
.
GroupBox
groupTray
;
private
System
.
Windows
.
Forms
.
GroupBox
groupTray
;
...
...
source/AssemblyLineClient/FrmLineIO.cs
查看文件 @
850d2d5
此文件的差异被折叠,
点击展开。
source/AssemblyLineClient/FrmLineStore.Designer.cs
查看文件 @
850d2d5
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
// chbRightDis
// chbRightDis
//
//
this
.
chbRightDis
.
AutoSize
=
true
;
this
.
chbRightDis
.
AutoSize
=
true
;
this
.
chbRightDis
.
Location
=
new
System
.
Drawing
.
Point
(
176
,
14
);
this
.
chbRightDis
.
Location
=
new
System
.
Drawing
.
Point
(
339
,
14
);
this
.
chbRightDis
.
Name
=
"chbRightDis"
;
this
.
chbRightDis
.
Name
=
"chbRightDis"
;
this
.
chbRightDis
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
24
);
this
.
chbRightDis
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
24
);
this
.
chbRightDis
.
TabIndex
=
197
;
this
.
chbRightDis
.
TabIndex
=
197
;
...
...
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
850d2d5
...
@@ -179,7 +179,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -179,7 +179,7 @@ namespace OnlineStore.AssemblyLine
private
void
FrmMain_FormClosing
(
object
sender
,
FormClosingEventArgs
e
)
private
void
FrmMain_FormClosing
(
object
sender
,
FormClosingEventArgs
e
)
{
{
if
(
e
.
CloseReason
==
CloseReason
.
UserClosing
)
//当
用户
点击窗体右上角X按钮或(Alt + F4)时 发生
if
(
e
.
CloseReason
==
CloseReason
.
UserClosing
)
//当
界面
点击窗体右上角X按钮或(Alt + F4)时 发生
{
{
e
.
Cancel
=
true
;
e
.
Cancel
=
true
;
HideForm
();
HideForm
();
...
@@ -1094,7 +1094,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -1094,7 +1094,7 @@ namespace OnlineStore.AssemblyLine
return
;
return
;
}
}
LineManager
.
DisLeftOutLine
=
chbLeftDis
.
Checked
;
LineManager
.
DisLeftOutLine
=
chbLeftDis
.
Checked
;
LogUtil
.
error
(
"
用户
点击勾选:"
+
chbLeftDis
.
Text
+
"="
+
LineManager
.
DisLeftOutLine
);
LogUtil
.
error
(
"
界面
点击勾选:"
+
chbLeftDis
.
Text
+
"="
+
LineManager
.
DisLeftOutLine
);
}
}
private
void
chbRightDis_CheckedChanged
(
object
sender
,
EventArgs
e
)
private
void
chbRightDis_CheckedChanged
(
object
sender
,
EventArgs
e
)
...
@@ -1108,7 +1108,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -1108,7 +1108,7 @@ namespace OnlineStore.AssemblyLine
return
;
return
;
}
}
LineManager
.
DisRightOutLine
=
chbRightDis
.
Checked
;
LineManager
.
DisRightOutLine
=
chbRightDis
.
Checked
;
LogUtil
.
error
(
"
用户
点击勾选:"
+
chbRightDis
.
Text
+
"="
+
LineManager
.
DisRightOutLine
);
LogUtil
.
error
(
"
界面
点击勾选:"
+
chbRightDis
.
Text
+
"="
+
LineManager
.
DisRightOutLine
);
}
}
}
}
}
}
source/AssemblyLineClient/FrmMoveEquip.Designer.cs
查看文件 @
850d2d5
...
@@ -357,7 +357,7 @@
...
@@ -357,7 +357,7 @@
this
.
ClampCylinder_Work
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClampCylinder_Work
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClampCylinder_Work
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
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
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ClampCylinder_Work
.
Location
=
new
System
.
Drawing
.
Point
(
26
2
,
30
);
this
.
ClampCylinder_Work
.
Location
=
new
System
.
Drawing
.
Point
(
26
6
,
30
);
this
.
ClampCylinder_Work
.
Name
=
"ClampCylinder_Work"
;
this
.
ClampCylinder_Work
.
Name
=
"ClampCylinder_Work"
;
this
.
ClampCylinder_Work
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
ClampCylinder_Work
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
ClampCylinder_Work
.
TabIndex
=
262
;
this
.
ClampCylinder_Work
.
TabIndex
=
262
;
...
@@ -370,7 +370,7 @@
...
@@ -370,7 +370,7 @@
this
.
BeforeAfterCylinder_After
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
BeforeAfterCylinder_After
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
BeforeAfterCylinder_After
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
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
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
BeforeAfterCylinder_After
.
Location
=
new
System
.
Drawing
.
Point
(
39
4
,
70
);
this
.
BeforeAfterCylinder_After
.
Location
=
new
System
.
Drawing
.
Point
(
39
5
,
70
);
this
.
BeforeAfterCylinder_After
.
Name
=
"BeforeAfterCylinder_After"
;
this
.
BeforeAfterCylinder_After
.
Name
=
"BeforeAfterCylinder_After"
;
this
.
BeforeAfterCylinder_After
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
BeforeAfterCylinder_After
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
BeforeAfterCylinder_After
.
TabIndex
=
261
;
this
.
BeforeAfterCylinder_After
.
TabIndex
=
261
;
...
@@ -396,7 +396,7 @@
...
@@ -396,7 +396,7 @@
this
.
TopCylinder_Down
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
TopCylinder_Down
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
TopCylinder_Down
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
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
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
TopCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
13
6
,
70
);
this
.
TopCylinder_Down
.
Location
=
new
System
.
Drawing
.
Point
(
13
7
,
70
);
this
.
TopCylinder_Down
.
Name
=
"TopCylinder_Down"
;
this
.
TopCylinder_Down
.
Name
=
"TopCylinder_Down"
;
this
.
TopCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
TopCylinder_Down
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
TopCylinder_Down
.
TabIndex
=
259
;
this
.
TopCylinder_Down
.
TabIndex
=
259
;
...
@@ -435,7 +435,7 @@
...
@@ -435,7 +435,7 @@
this
.
ClampCylinder_Relax
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClampCylinder_Relax
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClampCylinder_Relax
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
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
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ClampCylinder_Relax
.
Location
=
new
System
.
Drawing
.
Point
(
26
2
,
70
);
this
.
ClampCylinder_Relax
.
Location
=
new
System
.
Drawing
.
Point
(
26
6
,
70
);
this
.
ClampCylinder_Relax
.
Name
=
"ClampCylinder_Relax"
;
this
.
ClampCylinder_Relax
.
Name
=
"ClampCylinder_Relax"
;
this
.
ClampCylinder_Relax
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
ClampCylinder_Relax
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
ClampCylinder_Relax
.
TabIndex
=
255
;
this
.
ClampCylinder_Relax
.
TabIndex
=
255
;
...
@@ -448,7 +448,7 @@
...
@@ -448,7 +448,7 @@
this
.
BeforeAfterCylinder_Before
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
BeforeAfterCylinder_Before
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
BeforeAfterCylinder_Before
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
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
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
BeforeAfterCylinder_Before
.
Location
=
new
System
.
Drawing
.
Point
(
39
4
,
30
);
this
.
BeforeAfterCylinder_Before
.
Location
=
new
System
.
Drawing
.
Point
(
39
5
,
30
);
this
.
BeforeAfterCylinder_Before
.
Name
=
"BeforeAfterCylinder_Before"
;
this
.
BeforeAfterCylinder_Before
.
Name
=
"BeforeAfterCylinder_Before"
;
this
.
BeforeAfterCylinder_Before
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
BeforeAfterCylinder_Before
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
BeforeAfterCylinder_Before
.
TabIndex
=
249
;
this
.
BeforeAfterCylinder_Before
.
TabIndex
=
249
;
...
@@ -461,7 +461,7 @@
...
@@ -461,7 +461,7 @@
this
.
TopCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
TopCylinder_Up
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
TopCylinder_Up
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
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
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
TopCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
13
5
,
30
);
this
.
TopCylinder_Up
.
Location
=
new
System
.
Drawing
.
Point
(
13
7
,
30
);
this
.
TopCylinder_Up
.
Name
=
"TopCylinder_Up"
;
this
.
TopCylinder_Up
.
Name
=
"TopCylinder_Up"
;
this
.
TopCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
TopCylinder_Up
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
34
);
this
.
TopCylinder_Up
.
TabIndex
=
246
;
this
.
TopCylinder_Up
.
TabIndex
=
246
;
...
...
source/AssemblyLineClient/FrmMoveEquip.cs
查看文件 @
850d2d5
...
@@ -581,11 +581,13 @@ namespace OnlineStore.AssemblyLine
...
@@ -581,11 +581,13 @@ namespace OnlineStore.AssemblyLine
}
}
private
void
TopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
private
void
TopCylinder_Down_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
TopCylinder_Down
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
TopCylinder_Up
,
IO_Type
.
TopCylinder_Down
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
TopCylinder_Up
,
IO_Type
.
TopCylinder_Down
);
}
}
private
void
btnTopUp_Click
(
object
sender
,
EventArgs
e
)
private
void
btnTopUp_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
TopCylinder_Up
.
Text
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_Up
);
equipBean
.
CylinderMove
(
null
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_Up
);
}
}
...
@@ -593,6 +595,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -593,6 +595,7 @@ namespace OnlineStore.AssemblyLine
{
{
if
(
equipBean
.
CanBeforeAfter
())
if
(
equipBean
.
CanBeforeAfter
())
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
BeforeAfterCylinder_Before
.
Text
);
equipBase
.
CylinderMove
(
null
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
equipBase
.
CylinderMove
(
null
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
}
}
else
else
...
@@ -603,12 +606,14 @@ namespace OnlineStore.AssemblyLine
...
@@ -603,12 +606,14 @@ namespace OnlineStore.AssemblyLine
}
}
private
void
btnUpDownUp_Click
(
object
sender
,
EventArgs
e
)
private
void
btnUpDownUp_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
UpDownCylinder_Up
.
Text
);
equipBase
.
CylinderMove
(
null
,
IO_Type
.
UpDownCylinder_Down
,
IO_Type
.
UpDownCylinder_Up
);
equipBase
.
CylinderMove
(
null
,
IO_Type
.
UpDownCylinder_Down
,
IO_Type
.
UpDownCylinder_Up
);
}
}
private
void
button4_Click
(
object
sender
,
EventArgs
e
)
private
void
button4_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
UpDownCylinder_Down
.
Text
);
equipBase
.
CylinderMove
(
null
,
IO_Type
.
UpDownCylinder_Up
,
IO_Type
.
UpDownCylinder_Down
);
equipBase
.
CylinderMove
(
null
,
IO_Type
.
UpDownCylinder_Up
,
IO_Type
.
UpDownCylinder_Down
);
}
}
...
@@ -616,6 +621,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -616,6 +621,7 @@ namespace OnlineStore.AssemblyLine
{
{
if
(
equipBean
.
CanBeforeAfter
())
if
(
equipBean
.
CanBeforeAfter
())
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
BeforeAfterCylinder_After
.
Text
);
equipBase
.
CylinderMove
(
null
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
equipBase
.
CylinderMove
(
null
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
}
}
else
else
...
@@ -627,10 +633,12 @@ namespace OnlineStore.AssemblyLine
...
@@ -627,10 +633,12 @@ namespace OnlineStore.AssemblyLine
private
void
ClampCylinder_Check_Click
(
object
sender
,
EventArgs
e
)
private
void
ClampCylinder_Check_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
ClampCylinder_Relax
.
Text
);
equipBase
.
CylinderMove
(
null
,
IO_Type
.
ClampCylinder_Work
,
IO_Type
.
ClampCylinder_Relax
);
equipBase
.
CylinderMove
(
null
,
IO_Type
.
ClampCylinder_Work
,
IO_Type
.
ClampCylinder_Relax
);
}
}
private
void
btnClampSlack_Click
(
object
sender
,
EventArgs
e
)
private
void
btnClampSlack_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击:"
+
ClampCylinder_Work
.
Text
);
equipBase
.
CylinderMove
(
null
,
IO_Type
.
ClampCylinder_Relax
,
IO_Type
.
ClampCylinder_Work
);
equipBase
.
CylinderMove
(
null
,
IO_Type
.
ClampCylinder_Relax
,
IO_Type
.
ClampCylinder_Work
);
}
}
...
...
source/AssemblyLineClient/useControl/AxisMoveControl.cs
查看文件 @
850d2d5
...
@@ -64,13 +64,13 @@ namespace OnlineStore.AssemblyLine
...
@@ -64,13 +64,13 @@ namespace OnlineStore.AssemblyLine
}
}
private
void
btnOpenAxis_Click
(
object
sender
,
EventArgs
e
)
private
void
btnOpenAxis_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
"
点击【打开伺服】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 "
);
LogUtil
.
info
(
equipBase
.
Name
+
"界面
点击【打开伺服】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 "
);
equipBase
.
RunAxis
(
false
,
axisList
[
cmbAxis
.
SelectedIndex
]);
equipBase
.
RunAxis
(
false
,
axisList
[
cmbAxis
.
SelectedIndex
]);
}
}
private
void
btnCloseAxis_Click
(
object
sender
,
EventArgs
e
)
private
void
btnCloseAxis_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
"
点击【关闭伺服】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 "
);
LogUtil
.
info
(
equipBase
.
Name
+
"界面
点击【关闭伺服】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 "
);
// AxisManager.instance.ServoOff(PortName, SlvAddr);
// AxisManager.instance.ServoOff(PortName, SlvAddr);
equipBase
.
CloseAxis
(
axisList
[
cmbAxis
.
SelectedIndex
]);
equipBase
.
CloseAxis
(
axisList
[
cmbAxis
.
SelectedIndex
]);
}
}
...
@@ -79,7 +79,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -79,7 +79,7 @@ namespace OnlineStore.AssemblyLine
{
{
int
position
=
FormUtil
.
GetIntValue
(
txtAPosition
);
int
position
=
FormUtil
.
GetIntValue
(
txtAPosition
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
LogUtil
.
info
(
"
点击【绝对运动】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】位置【"
+
position
+
"】速度【"
+
speed
+
"】"
);
LogUtil
.
info
(
equipBase
.
Name
+
"界面
点击【绝对运动】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】位置【"
+
position
+
"】速度【"
+
speed
+
"】"
);
AxisManager
.
instance
.
AbsMove
(
PortName
,
SlvAddr
,
position
,
speed
,
currSelAxis
.
AddSpeed
,
currSelAxis
.
DelSpeed
);
AxisManager
.
instance
.
AbsMove
(
PortName
,
SlvAddr
,
position
,
speed
,
currSelAxis
.
AddSpeed
,
currSelAxis
.
DelSpeed
);
}
}
...
@@ -87,20 +87,20 @@ namespace OnlineStore.AssemblyLine
...
@@ -87,20 +87,20 @@ namespace OnlineStore.AssemblyLine
{
{
int
position
=
FormUtil
.
GetIntValue
(
txtAPosition
);
int
position
=
FormUtil
.
GetIntValue
(
txtAPosition
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
LogUtil
.
info
(
"
点击【相对运动】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】位置【"
+
position
+
"】速度【"
+
speed
+
"】"
);
LogUtil
.
info
(
equipBase
.
Name
+
"界面
点击【相对运动】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】位置【"
+
position
+
"】速度【"
+
speed
+
"】"
);
AxisManager
.
instance
.
RelMove
(
PortName
,
SlvAddr
,
position
,
speed
,
currSelAxis
.
AddSpeed
,
currSelAxis
.
DelSpeed
);
AxisManager
.
instance
.
RelMove
(
PortName
,
SlvAddr
,
position
,
speed
,
currSelAxis
.
AddSpeed
,
currSelAxis
.
DelSpeed
);
}
}
private
void
btnAxisVMove_Click
(
object
sender
,
EventArgs
e
)
private
void
btnAxisVMove_Click
(
object
sender
,
EventArgs
e
)
{
{
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
LogUtil
.
info
(
"
点击【匀速运动】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 速度【"
+
speed
+
"】"
);
LogUtil
.
info
(
equipBase
.
Name
+
"界面
点击【匀速运动】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 速度【"
+
speed
+
"】"
);
AxisManager
.
instance
.
SpeedMove
(
PortName
,
SlvAddr
,
speed
);
AxisManager
.
instance
.
SpeedMove
(
PortName
,
SlvAddr
,
speed
);
}
}
private
void
btnAxisStop_Click
(
object
sender
,
EventArgs
e
)
private
void
btnAxisStop_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
"
点击【停止运动】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 "
);
LogUtil
.
info
(
equipBase
.
Name
+
"界面
点击【停止运动】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 "
);
AxisManager
.
instance
.
SuddenStop
(
PortName
,
SlvAddr
);
AxisManager
.
instance
.
SuddenStop
(
PortName
,
SlvAddr
);
if
(
btnAddMove
.
BackColor
==
Color
.
Green
)
if
(
btnAddMove
.
BackColor
==
Color
.
Green
)
{
{
...
@@ -116,7 +116,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -116,7 +116,7 @@ namespace OnlineStore.AssemblyLine
private
void
btnComAlarmClear_Click
(
object
sender
,
EventArgs
e
)
private
void
btnComAlarmClear_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
"
点击【清理报警】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 "
);
LogUtil
.
info
(
equipBase
.
Name
+
"界面
点击【清理报警】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 "
);
AxisManager
.
instance
.
AlarmClear
(
PortName
,
SlvAddr
);
AxisManager
.
instance
.
AlarmClear
(
PortName
,
SlvAddr
);
Thread
.
Sleep
(
100
);
Thread
.
Sleep
(
100
);
AxisManager
.
instance
.
ServoOn
(
PortName
,
SlvAddr
);
AxisManager
.
instance
.
ServoOn
(
PortName
,
SlvAddr
);
...
@@ -127,7 +127,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -127,7 +127,7 @@ namespace OnlineStore.AssemblyLine
if
(
currSelAxis
!=
null
)
if
(
currSelAxis
!=
null
)
{
{
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
LogUtil
.
info
(
"
点击【原点返回】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 速度【"
+
speed
+
"】"
);
LogUtil
.
info
(
equipBase
.
Name
+
"界面
点击【原点返回】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 速度【"
+
speed
+
"】"
);
AxisManager
.
instance
.
HomeMove
(
PortName
,
SlvAddr
,
speed
,
currSelAxis
.
HomeLowSpeed
,
currSelAxis
.
HomeAddSpeed
);
AxisManager
.
instance
.
HomeMove
(
PortName
,
SlvAddr
,
speed
,
currSelAxis
.
HomeLowSpeed
,
currSelAxis
.
HomeAddSpeed
);
}
}
}
}
...
@@ -200,7 +200,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -200,7 +200,7 @@ namespace OnlineStore.AssemblyLine
}
}
private
void
AxisMove
(
int
speed
)
private
void
AxisMove
(
int
speed
)
{
{
LogUtil
.
info
(
"
【"
+
PortName
+
"_"
+
SlvAddr
+
"】点动: 速度:"
+
speed
);
LogUtil
.
info
(
equipBase
.
Name
+
"界面点击
【"
+
PortName
+
"_"
+
SlvAddr
+
"】点动: 速度:"
+
speed
);
AxisManager
.
instance
.
SpeedMove
(
PortName
,
SlvAddr
,
speed
);
AxisManager
.
instance
.
SpeedMove
(
PortName
,
SlvAddr
,
speed
);
}
}
private
void
btnAddMove_MouseDown
(
object
sender
,
MouseEventArgs
e
)
private
void
btnAddMove_MouseDown
(
object
sender
,
MouseEventArgs
e
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论