Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 003634a7
由
LN
编写于
2019-12-12 09:44:44 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
5bf70668
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
31 行增加
和
13 行删除
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/baan/AxisBean.cs
source/DeviceLibrary/deviceLibrary/IO/IOManager.cs
source/DeviceLibrary/model/KTK_Store.cs
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
003634a
...
@@ -186,8 +186,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -186,8 +186,7 @@ namespace OnlineStore.DeviceLibrary
string
canResult
=
LineManager
.
Line
.
CanStart
();
string
canResult
=
LineManager
.
Line
.
CanStart
();
if
(
String
.
IsNullOrEmpty
(
canResult
).
Equals
(
false
))
if
(
String
.
IsNullOrEmpty
(
canResult
).
Equals
(
false
))
{
{
LogUtil
.
error
(
Name
+
""
+
canResult
);
SetWarnMsg
(
canResult
);
WarnMsg
=
canResult
;
return
false
;
return
false
;
}
}
return
true
;
return
true
;
...
@@ -350,8 +349,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -350,8 +349,10 @@ namespace OnlineStore.DeviceLibrary
if
(!
msg
.
Equals
(
""
))
if
(!
msg
.
Equals
(
""
))
{
{
isOk
=
false
;
isOk
=
false
;
WarnMsg
=
msg
;
WarnMsg
=
Name
+
msg
;
Alarm
(
LineAlarmType
.
AxisMoveError
);
Alarm
(
LineAlarmType
.
AxisMoveError
);
LogUtil
.
error
(
WarnMsg
,
DeviceID
+
18
);
break
;
break
;
}
}
}
}
...
...
source/DeviceLibrary/baan/AxisBean.cs
查看文件 @
003634a
...
@@ -156,7 +156,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -156,7 +156,7 @@ namespace OnlineStore.DeviceLibrary
}
}
else
else
{
{
msg
=
"
storeMoveStep="
+
MoveInfo
.
SLog
+
axis
.
DisplayStr
+
"
目标位置["
+
targetPosition
+
"]当前位置["
+
outCount
msg
=
"
"
+
MoveInfo
.
SLog
+
axis
.
DisplayStr
+
",
目标位置["
+
targetPosition
+
"]当前位置["
+
outCount
+
"],误差过大,需要报警"
;
+
"],误差过大,需要报警"
;
LogUtil
.
error
(
msg
,
1034
);
LogUtil
.
error
(
msg
,
1034
);
}
}
...
@@ -185,7 +185,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -185,7 +185,7 @@ namespace OnlineStore.DeviceLibrary
}
}
else
else
{
{
msg
=
"
storeMoveStep="
+
MoveInfo
.
SLog
+
axis
.
DisplayStr
+
"
收到原点完成信号,当前位置["
+
outCount
+
"],误差过大,需要报警"
;
msg
=
"
"
+
MoveInfo
.
SLog
+
axis
.
DisplayStr
+
",
收到原点完成信号,当前位置["
+
outCount
+
"],误差过大,需要报警"
;
LogUtil
.
error
(
msg
);
LogUtil
.
error
(
msg
);
}
}
}
}
...
...
source/DeviceLibrary/deviceLibrary/IO/IOManager.cs
查看文件 @
003634a
...
@@ -22,9 +22,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -22,9 +22,8 @@ namespace OnlineStore.DeviceLibrary
ConfigIO
configIo
=
GetDO
(
ioType
,
subType
);
ConfigIO
configIo
=
GetDO
(
ioType
,
subType
);
if
(
configIo
!=
null
)
if
(
configIo
!=
null
)
{
{
instance
.
WriteSingleDO
(
configIo
.
IO_IP
,
configIo
.
SlaveID
,
configIo
.
GetIOAddr
(),
ioValue
);
instance
.
WriteSingleDO
(
configIo
.
IO_IP
,
configIo
.
SlaveID
,
configIo
.
GetIOAddr
(),
ioValue
);
Thread
.
Sleep
(
10
);
Thread
.
Sleep
(
30
);
}
}
else
else
{
{
...
...
source/DeviceLibrary/model/KTK_Store.cs
查看文件 @
003634a
...
@@ -273,12 +273,30 @@ namespace OnlineStore.DeviceLibrary
...
@@ -273,12 +273,30 @@ namespace OnlineStore.DeviceLibrary
{
{
if
(
String
.
IsNullOrEmpty
(
WarnMsg
).
Equals
(
false
))
if
(
String
.
IsNullOrEmpty
(
WarnMsg
).
Equals
(
false
))
{
{
LogUtil
.
error
(
msg
);
if
(
WarnMsg
.
Equals
(
msg
))
}
{
if
(
WarnMsg
.
Equals
(
msg
))
if
(
msg
.
StartsWith
(
Name
))
{
{
LogUtil
.
error
(
msg
,
105
);
LogUtil
.
error
(
msg
,
105
);
}
else
{
LogUtil
.
error
(
Name
+
msg
,
105
);
}
}
else
{
if
(
msg
.
StartsWith
(
Name
))
{
LogUtil
.
error
(
msg
);
}
else
{
LogUtil
.
error
(
Name
+
msg
);
}
}
}
}
WarnMsg
=
msg
;
WarnMsg
=
msg
;
}
}
public
static
string
GetRunStr
(
LineStatus
ls
,
LineRunStatus
runs
)
public
static
string
GetRunStr
(
LineStatus
ls
,
LineRunStatus
runs
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论