Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
RC1271-DUOStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 141fe8a5
由
LN
编写于
2020-10-28 12:49:59 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
bug修改
1 个父辈
052b0a7e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
4 行删除
source/DeviceLibrary/duoStore/AxisBean.cs
source/DeviceLibrary/duoStore/EquipBase.cs
source/DeviceLibrary/duoStore/StoreManager.cs
source/DeviceLibrary/duoStore/AxisBean.cs
查看文件 @
141fe8a
...
...
@@ -27,7 +27,7 @@ namespace OnlineStore.DeviceLibrary
private
bool
IsIntSlvBlock
=
false
;
public
bool
Open
(
bool
isCheck
,
out
string
Msg
)
{
Msg
=
""
;
Msg
=
""
;
string
portName
=
Config
.
DeviceName
;
int
slvAddr
=
Config
.
GetAxisValue
();
//打开所有轴
...
...
source/DeviceLibrary/duoStore/EquipBase.cs
查看文件 @
141fe8a
...
...
@@ -221,6 +221,8 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W002_IOValue
))
{
ConfigIO
io
=
baseConfig
.
getWaitIO
(
wait
.
IoType
);
NotOkMsg
=
" 等待【"
+
io
.
DisplayStr
+
"】=【"
+
wait
.
IoValue
+
"】"
;
wait
.
IsEnd
=
IOValue
(
wait
.
IoType
).
Equals
(
wait
.
IoValue
);
int
timeOutMs
=
StoreManager
.
Config
.
IOSingle_TimerOut
;
if
(!
wait
.
IsEnd
)
...
...
@@ -231,7 +233,7 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
span
.
TotalMilliseconds
>
timeOutMs
&&
NoAlarm
())
{
ConfigIO
io
=
baseConfig
.
getWaitIO
(
wait
.
IoType
);
WarnMsg
=
Name
+
"["
+
MoveInfo
.
MoveType
+
"]["
+
MoveInfo
.
MoveStep
+
"] 等待("
+
io
.
DisplayStr
+
"="
+
wait
.
IoValue
+
") 超时"
;
Alarm
(
AlarmType
.
IoSingleTimeOut
,
io
.
ElectricalDefinition
,
WarnMsg
,
MoveInfo
.
MoveType
);
LogUtil
.
error
(
Name
+
"["
+
MoveInfo
.
MoveType
+
"]["
+
MoveInfo
.
MoveStep
+
"] 等待("
+
io
.
DisplayStr
+
"="
+
wait
.
IoValue
+
") 超时"
,
logType
+
14
);
...
...
source/DeviceLibrary/duoStore/StoreManager.cs
查看文件 @
141fe8a
using
log4net
;
using
DeviceLib
;
using
log4net
;
using
OnlineStore.Common
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
...
...
@@ -107,7 +108,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
"加载料仓完成!"
);
}
ACServerManager
.
LogEvent
+=
ACServerManager_LogEvent
;
Store
=
new
DUOStoreBean
(
Config
,
storeConfig
);
}
}
...
...
@@ -175,6 +176,21 @@ namespace OnlineStore.DeviceLibrary
}
return
false
;
}
private
static
void
ACServerManager_LogEvent
(
InfoType
type
,
string
msg
)
{
if
(
type
.
Equals
(
InfoType
.
Error
))
{
LogUtil
.
error
(
msg
);
}
else
if
(
type
.
Equals
(
InfoType
.
Info
))
{
LogUtil
.
info
(
msg
);
}
else
{
LogUtil
.
debug
(
msg
);
}
}
#
endregion
#
region
位置加载
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论