Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 34f6e3a2
由
LN
编写于
2020-03-08 16:09:15 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加托盘顺序检测功能NeedCheckTray的开关选项。
1 个父辈
12c6c25a
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
37 行增加
和
10 行删除
source/AssemblyLineClient/FrmLineStore.Designer.cs
source/AssemblyLineClient/FrmLineStore.cs
source/AssemblyLineClient/记录.txt
source/Common/Setting_Init.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/assemblymanager/TrayManager.cs
source/AssemblyLineClient/FrmLineStore.Designer.cs
查看文件 @
34f6e3a
此文件的差异被折叠,
点击展开。
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
34f6e3a
...
...
@@ -114,7 +114,7 @@ namespace OnlineStore.AssemblyLine
this
.
notifyIcon1
.
Text
=
title
;
int
autoValue
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
App_AutoRun
);
chbAutoRun
.
Checked
=
autoValue
.
Equals
(
1
);
chbTrayCheck
.
Checked
=
TrayManager
.
NeedCheckTray
;
LoadStoreData
();
LoadListView
();
...
...
@@ -271,14 +271,14 @@ namespace OnlineStore.AssemblyLine
//如果料仓还在运行状态,先关闭料仓
if
(!
lineBean
.
runStatus
.
Equals
(
LineRunStatus
.
Wait
))
{
LogUtil
.
info
(
LOGGER
,
"即将退出程序,停止"
+
lineBean
.
Name
+
"运行 "
);
LogUtil
.
info
(
"即将退出程序,停止"
+
lineBean
.
Name
+
"运行 "
);
lineBean
.
StopRun
();
}
foreach
(
EquipBase
equip
in
lineBean
.
AllEquipMap
.
Values
)
{
if
(
equip
.
runStatus
>
LineRunStatus
.
Wait
)
{
LogUtil
.
info
(
LOGGER
,
"即将退出程序,停止"
+
equip
.
Name
+
"运行 "
);
LogUtil
.
info
(
"即将退出程序,停止"
+
equip
.
Name
+
"运行 "
);
equip
.
StopRun
();
}
}
...
...
@@ -328,7 +328,7 @@ namespace OnlineStore.AssemblyLine
MessageBox
.
Show
(
lineBean
.
Name
+
"当前状态:"
+
lineBean
.
runStatus
+
",不能启动!"
);
return
;
}
LogUtil
.
info
(
LOGGER
,
"
开始启动"
);
LogUtil
.
info
(
"点击
开始启动"
);
startTimer
.
Interval
=
300
;
startTimer
.
Elapsed
+=
timer_Elapsed
;
startTimer
.
AutoReset
=
false
;
...
...
@@ -955,5 +955,20 @@ namespace OnlineStore.AssemblyLine
LogUtil
.
info
(
"勾选:UseBuzzer ="
+
LineManager
.
UseBuzzer
);
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
UseBuzzer
,
(
LineManager
.
UseBuzzer
?
1
:
0
));
}
private
void
chbTrayCheck_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
if
(!
LoadOk
)
{
return
;
}
if
(
chbTrayCheck
.
Checked
.
Equals
(
TrayManager
.
NeedCheckTray
))
{
return
;
}
TrayManager
.
NeedCheckTray
=
chbTrayCheck
.
Checked
;
LogUtil
.
info
(
"勾选:启用托盘顺序检测 NeedCheckTray ="
+
TrayManager
.
NeedCheckTray
);
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
NeedCheckTray
,
(
TrayManager
.
NeedCheckTray
?
1
:
0
));
}
}
}
source/AssemblyLineClient/记录.txt
查看文件 @
34f6e3a
...
...
@@ -272,7 +272,8 @@ PRO,0,移栽上下轴流水线取放料详细位置P2,UpDownP2DetialList,0X0=800
上料模块夹走料盘后,需要判断信号是否消失
20200308
增加托盘顺序检测功能NeedCheckTray的开关选项。
...
...
source/Common/Setting_Init.cs
查看文件 @
34f6e3a
...
...
@@ -88,5 +88,6 @@ namespace OnlineStore.Common
public
static
string
MaxTrayNum
=
"MaxTrayNum"
;
public
static
string
UseBuzzer
=
"UseBuzzer"
;
public
static
string
NeedCheckTray
=
"NeedCheckTray"
;
}
}
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
34f6e3a
...
...
@@ -395,14 +395,16 @@ namespace OnlineStore.DeviceLibrary
/// <returns></returns>
private
bool
CheckIsNeedOutStore
()
{
if
(
currTrayNum
<=
0
)
{
return
false
;
}
bool
isFull
=
TrayManager
.
TrayIsFull
(
currTrayNum
);
bool
moveOk
=
(
IsBigStore
()
&&
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_55_CylinderUp
)
||
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_56_CylinderAfter
;
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
moveOk
&&
(!
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_60_CylinderUp
)))
{
{
if
(
isFull
.
Equals
(
false
))
{
LogInfo
(
" 出库中,拦截空托盘【 "
+
currTrayNum
+
"】~"
);
...
...
@@ -417,6 +419,10 @@ namespace OnlineStore.DeviceLibrary
/// <returns></returns>
private
bool
CheckIsNeedInStore
()
{
if
(
currTrayNum
<=
0
)
{
return
false
;
}
bool
isfull
=
TrayManager
.
TrayIsFull
(
currTrayNum
);
//LogInfo("***************入库*****验证入库编号,托盘号【" + currTrayNum + "】,isfull【" + isfull + "】");
//FixtureCodeInfo code = GetBox().currInOutFixture;
...
...
source/DeviceLibrary/assemblymanager/TrayManager.cs
查看文件 @
34f6e3a
...
...
@@ -139,9 +139,13 @@ namespace OnlineStore.DeviceLibrary
}
return
false
;
}
internal
static
bool
CheckIsRightNum
(
int
trayNum
,
int
preTrayNum
,
bool
isCanUpdateMax
=
true
)
public
static
bool
NeedCheckTray
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
NeedCheckTray
).
Equals
(
1
);
internal
static
bool
CheckIsRightNum
(
int
trayNum
,
int
preTrayNum
,
bool
isCanUpdateMax
=
true
)
{
return
true
;
if
(!
NeedCheckTray
)
{
return
true
;
}
int
defNext
=
preTrayNum
+
1
;
if
(
preTrayNum
.
Equals
(
0
)
||
MaxTrayNum
.
Equals
(
0
)
||
trayNum
.
Equals
(
defNext
))
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论