Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 709fde5a
由
LN
编写于
2021-03-29 15:05:45 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加夹爪是否有料检测功能。进仓界面增加忽略料叉信号功能
1 个父辈
e4b585f4
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
71 行增加
和
13 行删除
source/AssemblyLineClient/FrmMoveEquip.Designer.cs
source/AssemblyLineClient/FrmMoveEquip.cs
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/baan/ClampJawBean.cs
source/DeviceLibrary/model/StoreStep.cs
source/AssemblyLineClient/FrmMoveEquip.Designer.cs
查看文件 @
709fde5
...
...
@@ -51,6 +51,7 @@
this
.
btnClear
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
clampJawControl1
=
new
OnlineStore
.
AssemblyLine
.
useControl
.
ClampJawControl
();
this
.
groupBox6
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnHlhasReel
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblInoutInfo
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblMoveInfo
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblInstoreList
=
new
System
.
Windows
.
Forms
.
Label
();
...
...
@@ -477,7 +478,7 @@
this
.
lblThisSta
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblThisSta
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lblThisSta
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblThisSta
.
Location
=
new
System
.
Drawing
.
Point
(
244
,
12
6
);
this
.
lblThisSta
.
Location
=
new
System
.
Drawing
.
Point
(
244
,
12
9
);
this
.
lblThisSta
.
Name
=
"lblThisSta"
;
this
.
lblThisSta
.
Size
=
new
System
.
Drawing
.
Size
(
724
,
28
);
this
.
lblThisSta
.
TabIndex
=
246
;
...
...
@@ -568,6 +569,7 @@
this
.
groupBox6
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupBox6
.
Controls
.
Add
(
this
.
btnHlhasReel
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblInoutInfo
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblMoveInfo
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
lblInstoreList
);
...
...
@@ -579,6 +581,19 @@
this
.
groupBox6
.
TabStop
=
false
;
this
.
groupBox6
.
Text
=
"当前状态"
;
//
// btnHlhasReel
//
this
.
btnHlhasReel
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnHlhasReel
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnHlhasReel
.
Location
=
new
System
.
Drawing
.
Point
(
843
,
14
);
this
.
btnHlhasReel
.
Name
=
"btnHlhasReel"
;
this
.
btnHlhasReel
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
35
);
this
.
btnHlhasReel
.
TabIndex
=
287
;
this
.
btnHlhasReel
.
Text
=
"忽略夹爪有料信号"
;
this
.
btnHlhasReel
.
UseVisualStyleBackColor
=
false
;
this
.
btnHlhasReel
.
Visible
=
false
;
this
.
btnHlhasReel
.
Click
+=
new
System
.
EventHandler
(
this
.
btnHlhasReel_Click
);
//
// lblInoutInfo
//
this
.
lblInoutInfo
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
...
...
@@ -608,9 +623,9 @@
this
.
lblInstoreList
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblInstoreList
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblInstoreList
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblInstoreList
.
Location
=
new
System
.
Drawing
.
Point
(
244
,
44
);
this
.
lblInstoreList
.
Location
=
new
System
.
Drawing
.
Point
(
244
,
57
);
this
.
lblInstoreList
.
Name
=
"lblInstoreList"
;
this
.
lblInstoreList
.
Size
=
new
System
.
Drawing
.
Size
(
724
,
77
);
this
.
lblInstoreList
.
Size
=
new
System
.
Drawing
.
Size
(
724
,
66
);
this
.
lblInstoreList
.
TabIndex
=
277
;
//
// tabPage2
...
...
@@ -1139,6 +1154,7 @@
private
System
.
Windows
.
Forms
.
Label
label8
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbP3Width
;
private
System
.
Windows
.
Forms
.
Label
label9
;
private
System
.
Windows
.
Forms
.
Button
btnHlhasReel
;
}
}
source/AssemblyLineClient/FrmMoveEquip.cs
查看文件 @
709fde5
...
...
@@ -157,7 +157,7 @@ namespace OnlineStore.AssemblyLine
lblInoutInfo
.
Text
=
(
equipBean
.
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
InStore
)
?
"入库:"
:
"出库:"
)
+
equipBean
.
MoveInfo
.
MoveParam
.
ToStr
();
}
else
{
{
lblInoutInfo
.
Text
=
"出料:"
+
equipBean
.
MoveInfo
.
MoveParam
.
ToStr
();
}
}
...
...
@@ -165,7 +165,7 @@ namespace OnlineStore.AssemblyLine
{
lblInoutInfo
.
Text
=
""
;
}
lblMoveInfo
.
Text
=
equipBean
.
GetMoveStr
()
+
"料仓类型:"
+
(
equipBean
.
Config
.
IsBigTray
.
Equals
(
1
)
?
"大料盘"
:
"小料盘"
);
lblMoveInfo
.
Text
=
equipBean
.
GetMoveStr
()
+
"料仓类型:"
+
(
equipBean
.
Config
.
IsBigTray
.
Equals
(
1
)
?
"大料盘"
:
"小料盘"
);
string
canOut
=
LineManager
.
Line
.
CanOutStore
(
equipBean
.
DeviceID
)
?
"可出库"
:
"不可出库"
;
lblStoreStatus
.
Text
=
KTK_Store
.
GetRunStr
(
equipBean
.
runStatus
)
+
"("
+
canOut
+
")"
;
lblThisSta
.
Text
=
equipBean
.
WarnMsg
;
...
...
@@ -198,6 +198,14 @@ namespace OnlineStore.AssemblyLine
{
lblInstoreList
.
Text
=
text
;
}
if
(
equipBean
.
IsNoReelAlarm
()
&&
(!
equipBean
.
ClampEmptyMove
))
{
btnHlhasReel
.
Visible
=
true
;
}
else
{
btnHlhasReel
.
Visible
=
false
;
}
}
catch
(
Exception
ex
)
{
...
...
@@ -777,6 +785,15 @@ namespace OnlineStore.AssemblyLine
}
}
}
private
void
btnHlhasReel_Click
(
object
sender
,
EventArgs
e
)
{
if
(
equipBean
.
IsNoReelAlarm
())
{
equipBean
.
ClampEmptyMove
=
true
;
LogUtil
.
info
(
equipBean
.
Name
+
"界面点击:"
+
btnHlhasReel
.
Text
+
",设置ClampEmptyMove=true "
);
}
}
}
}
...
...
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
709fde5
...
...
@@ -572,6 +572,12 @@ namespace OnlineStore.DeviceLibrary
if
(
ClampJwa
!=
null
)
{
wait
.
IsEnd
=
ClampJwa
.
HasReel
();
if
((!
wait
.
IsEnd
)
&&
IsNoReelAlarm
()
&&
ClampEmptyMove
)
{
LogUtil
.
info
(
Name
+
" 用户点击了:忽略夹爪有料信号,继续出入库动作"
);
wait
.
IsEnd
=
true
;
}
}
}
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W008_InStoreCheckOK
))
...
...
@@ -772,5 +778,22 @@ namespace OnlineStore.DeviceLibrary
}
return
Color
.
White
;
}
public
bool
ClampEmptyMove
=
false
;
public
bool
IsNoReelAlarm
()
{
if
(
runStatus
.
Equals
(
LineRunStatus
.
Busy
))
{
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
InStore
)
&&
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_07_WaitHasReel
))
{
return
true
;
}
else
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_57_WaitHasReel
))
{
return
true
;
}
}
return
false
;
}
}
}
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
709fde5
...
...
@@ -385,9 +385,9 @@ namespace OnlineStore.DeviceLibrary
if
(
UpdownIsInP1
())
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_25_CheckTray
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":等待 SL_AxisLocationCheck=LOW"
);
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_ClampCylinder_Check, IO_VALUE.HIGH));
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":等待 SL_AxisLocationCheck=LOW 且夹爪有料"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_AxisLocationCheck
,
IO_VALUE
.
LOW
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampHasReel
());
}
else
{
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
709fde5
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/baan/ClampJawBean.cs
查看文件 @
709fde5
...
...
@@ -61,9 +61,9 @@ namespace OnlineStore.DeviceLibrary
if
(
checkHasReel
)
{
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampHasReel
());
//有一个到位就算到位
moveInfo
.
OneWaitCanEndStep
=
true
;
}
//有一个到位就算到位
moveInfo
.
OneWaitCanEndStep
=
true
;
}
}
...
...
source/DeviceLibrary/model/StoreStep.cs
查看文件 @
709fde5
...
...
@@ -156,15 +156,17 @@ namespace OnlineStore.DeviceLibrary
///移载装置入库处理,夹料气缸1夹紧
/// </summary>
MI_05_CylinderOpen
,
/// <summary>
///移载装置入库处理,上下气缸1上升
/// </summary>
MI_06_CylinderUp
,
/// <summary>
/// 移载装置入库处理,
检测夹爪料盘检测信号
/// 移载装置入库处理,
等待夹爪有料
/// </summary>
MI_07_
ClampCheck
,
MI_07_
WaitHasReel
,
/// <summary>
/// 移载装置入库处理,等待box等待状态才能继续操作
...
...
@@ -332,9 +334,9 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
MO_56_ResetClamp
,
/// <summary>
/// 移栽出库。
夹料气缸检测
/// 移栽出库。
等待夹爪有料
/// </summary>
MO_57_
ClampCheck
,
MO_57_
WaitHasReel
,
/// <summary>
/// 移栽出库:开始等待托盘
/// </summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论