Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 886fb3cc
由
LN
编写于
2020-03-17 13:22:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
188f217a
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
4 行增加
和
4 行删除
source/Common/util/AcSerialBean.cs
source/Common/util/LogUtil.cs
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/Common/util/AcSerialBean.cs
查看文件 @
886fb3c
...
...
@@ -12,7 +12,7 @@ namespace OnlineStore.Common
public
class
AcSerialBean
{
#
region
全部变量
public
static
readonly
ILog
LOGGER
=
LogManager
.
GetLogger
(
System
.
Reflection
.
MethodBase
.
GetCurrentMethod
().
DeclaringType
);
//
public static readonly ILog LOGGER = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
private
SerialPort
_serialPort
=
null
;
private
object
lockObj
=
new
object
();
...
...
@@ -177,7 +177,7 @@ namespace OnlineStore.Common
}
catch
(
Exception
Ex
)
{
LogUtil
.
error
(
LOGGER
,
Ex
.
ToString
());
LogUtil
.
error
(
Ex
.
ToString
());
//throw Ex;
}
return
ok
;
...
...
source/Common/util/LogUtil.cs
查看文件 @
886fb3c
...
...
@@ -81,7 +81,7 @@ namespace OnlineStore.Common
}
public
static
void
error
(
ILog
log
,
string
errorMsg
,
Exception
ex
=
null
)
{
if
(
errorMsg
.
Trim
().
Equals
(
""
))
if
(
errorMsg
.
Trim
().
Equals
(
""
)
&&(
ex
==
null
)
)
{
return
;
}
...
...
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
886fb3c
...
...
@@ -436,7 +436,7 @@ namespace OnlineStore.DeviceLibrary
CheckAlarmProcess
(
moveInfo
,
LineAlarmType
.
IoSingleTimeOut
);
}
}
else
if
(
rwSpan
.
TotalSeconds
>
5
&&
span
.
TotalSeconds
>
6
&&
span
.
TotalSeconds
<
LineManager
.
Config
.
IOSingle_TimerOut
*
2
)
else
if
(
rwSpan
.
TotalSeconds
>
8
&&
span
.
TotalSeconds
>
6
&&
span
.
TotalSeconds
<
LineManager
.
Config
.
IOSingle_TimerOut
*
2
)
{
preRWTime
=
DateTime
.
Now
;
string
msg
=
moveInfo
.
Name
+
" ["
+
moveInfo
.
MoveType
+
"]["
+
moveInfo
.
MoveStep
+
"] "
+
NotOkMsg
+
"已等待 "
+
Math
.
Round
(
span
.
TotalSeconds
,
1
)
+
"秒,重写DO:"
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论