Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 575b1e51
由
LN
编写于
2019-11-29 17:58:32 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
39059f5b
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
46 行增加
和
17 行删除
source/DeviceLibrary/assemblyLine/DischargeLine.cs
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_Partial.cs
source/DeviceLibrary/assemblyLine/LineBean.cs
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
source/DeviceLibrary/assemblymanager/StoreServerManager.cs
source/DeviceLibrary/assemblymanager/TrayManager.cs
source/DeviceLibrary/model/KTK_Store.cs
source/DeviceLibrary/assemblyLine/DischargeLine.cs
查看文件 @
575b1e5
...
...
@@ -158,8 +158,8 @@ namespace OnlineStore.DeviceLibrary
{
if
(
IOValue
(
IO_Type
.
DLine_SuddenStop
).
Equals
(
IO_VALUE
.
LOW
))
{
WarnMsg
=
Name
+
"收到急停信号"
;
LogUtil
.
error
(
WarnMsg
);
SetWarnMsg
(
Name
+
"收到急停信号"
)
;
Alarm
(
LineAlarmType
.
SuddenStop
);
return
;
}
...
...
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
575b1e5
...
...
@@ -157,7 +157,7 @@ namespace OnlineStore.DeviceLibrary
{
LogUtil
.
info
(
Name
+
"清理信号超时报警【"
+
WarnMsg
+
"】 "
);
alarmType
=
LineAlarmType
.
None
;
WarnMsg
=
""
;
SetWarnMsg
(
""
)
;
}
}
}
...
...
@@ -179,7 +179,7 @@ namespace OnlineStore.DeviceLibrary
}
protected
void
ResetClearData
()
{
WarnMsg
=
""
;
SetWarnMsg
(
""
)
;
alarmType
=
LineAlarmType
.
None
;
preTrayNum
=
0
;
currTrayNum
=
0
;
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
查看文件 @
575b1e5
...
...
@@ -225,8 +225,8 @@ namespace OnlineStore.DeviceLibrary
{
if
(
IOValue
(
IO_Type
.
SL_SuddenStop_BTN
).
Equals
(
IO_VALUE
.
LOW
))
{
WarnMsg
=
Name
+
"收到急停信号"
;
LogUtil
.
error
(
WarnMsg
);
SetWarnMsg
(
Name
+
"收到急停信号"
)
;
Alarm
(
LineAlarmType
.
SuddenStop
);
return
;
}
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_Partial.cs
查看文件 @
575b1e5
...
...
@@ -751,6 +751,10 @@ namespace OnlineStore.DeviceLibrary
/// <returns></returns>
internal
bool
NeedCurrTray
(
bool
checkAndMove
=
false
)
{
if
(
IsDebug
||
runStatus
<=
LineRunStatus
.
Wait
)
{
return
false
;
}
int
trayNum
=
TrayManager
.
GetTrayNum
(
Config
.
Id
);
bool
isFull
=
TrayManager
.
TrayIsFull
(
trayNum
);
TrayInfo
info
=
TrayManager
.
GetTrayInfo
(
trayNum
);
...
...
source/DeviceLibrary/assemblyLine/LineBean.cs
查看文件 @
575b1e5
...
...
@@ -240,7 +240,7 @@ namespace OnlineStore.DeviceLibrary
isNoAirCheck
=
false
;
alarmType
=
LineAlarmType
.
None
;
TrayManager
.
TrayErrorMsg
=
""
;
WarnMsg
=
""
;
SetWarnMsg
(
""
);
PreIsHasProcess
=
true
;
if
(
TrayManager
.
ErrorStoreId
>
0
)
...
...
@@ -802,7 +802,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
WarnMsg
=
moveEquip
.
Name
+
"在复位过程中报警,需要重新复位"
;
SetWarnMsg
(
moveEquip
.
Name
+
"在复位过程中报警,需要重新复位"
)
;
}
}
}
...
...
@@ -838,10 +838,5 @@ namespace OnlineStore.DeviceLibrary
}
private
void
SetWarnMsg
(
string
msg
)
{
WarnMsg
=
msg
;
LogUtil
.
error
(
Name
+
WarnMsg
);
}
}
}
\ No newline at end of file
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
查看文件 @
575b1e5
...
...
@@ -146,7 +146,7 @@ namespace OnlineStore.DeviceLibrary
{
LogUtil
.
info
(
Name
+
"清理信号超时报警【"
+
WarnMsg
+
"】 "
);
alarmType
=
LineAlarmType
.
None
;
WarnMsg
=
""
;
SetWarnMsg
(
""
)
;
}
}
}
...
...
source/DeviceLibrary/assemblymanager/StoreServerManager.cs
查看文件 @
575b1e5
...
...
@@ -72,8 +72,8 @@ namespace OnlineStore.DeviceLibrary
InOutParam
param
=
new
InOutParam
(
trayNum
,
wareNum
,
posId
,
plateH
,
plateW
);
if
(
LineManager
.
Line
.
IsReviceInPosId
(
moveEquip
,
posId
))
{
LineManager
.
Line
.
WarnMsg
=
"入库库位重复: "
+
param
.
ToStr
()
+
" ,入库失败!"
;
moveEquip
.
WarnMsg
=
"入库库位重复: "
+
param
.
ToStr
()
+
" ,入库失败!"
;
LineManager
.
Line
.
SetWarnMsg
(
"入库库位重复: "
+
param
.
ToStr
()
+
" ,入库失败!"
)
;
moveEquip
.
SetWarnMsg
(
"入库库位重复: "
+
param
.
ToStr
()
+
" ,入库失败!"
)
;
return
msg
=
(
"收到服务器入库命令 "
+
"入库库位重复: "
+
param
.
ToStr
()
+
" ,入库失败!"
);
}
LogUtil
.
info
(
"更新盘空满信息,托盘号【"
+
trayNum
+
"】,是否有料盘【"
+
true
+
"】,出库入库【"
+
1
+
"】"
);
...
...
source/DeviceLibrary/assemblymanager/TrayManager.cs
查看文件 @
575b1e5
...
...
@@ -247,8 +247,30 @@ namespace OnlineStore.DeviceLibrary
}
}
}
//若此横移对应的设备未启动,直接可处理
foreach
(
FeedingEquip
equip
in
LineManager
.
Line
.
FeedingEquipMap
.
Values
)
{
if
(
equip
.
Config
.
SidesWayNum
.
Equals
(
swNum
))
{
if
(
equip
.
IsDebug
||
equip
.
runStatus
<=
LineRunStatus
.
Wait
)
{
return
true
;
}
}
}
foreach
(
ProvidingEquip
equip
in
LineManager
.
Line
.
ProvidingEquipMap
.
Values
)
{
if
(
equip
.
Config
.
SidesWayNum
.
Equals
(
swNum
))
{
if
(
equip
.
IsDebug
||
equip
.
runStatus
<=
LineRunStatus
.
Wait
)
{
return
true
;
}
}
}
return
false
;
}
/// <summary>
/// 更新横移托盘的处理状态
/// </summary>
...
...
source/DeviceLibrary/model/KTK_Store.cs
查看文件 @
575b1e5
...
...
@@ -246,7 +246,15 @@ namespace OnlineStore.DeviceLibrary
public
abstract
bool
StartInStoreMove
(
InOutParam
param
);
protected
abstract
void
InStoreProcess
();
#
endregion
public
void
SetWarnMsg
(
string
msg
=
""
)
{
WarnMsg
=
msg
;
if
(
String
.
IsNullOrEmpty
(
WarnMsg
).
Equals
(
false
))
{
LogUtil
.
error
(
Name
+
WarnMsg
);
}
}
public
static
string
GetRunStr
(
LineStatus
ls
,
LineRunStatus
runs
)
{
string
sta
=
"运行中"
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论