Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e9464f01
由
LN
编写于
2020-03-19 09:01:32 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
伺服发送数据增加休眠
1 个父辈
a9e1bee3
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
16 行增加
和
4 行删除
source/Common/util/AcSerialBean.cs
source/DeviceLibrary/assemblyLine/DischargeLine_Partial.cs
source/Common/util/AcSerialBean.cs
查看文件 @
e9464f0
...
...
@@ -339,7 +339,7 @@ namespace OnlineStore.Common
return
-
1
;
}
private
byte
PreSlvAddr
=
0
;
/// <summary>
/// 发送命令
/// </summary>
...
...
@@ -363,6 +363,17 @@ namespace OnlineStore.Common
//Monitor.Enter(lockObj);
try
{
//判断是否需要休眠
if
(
SendData
!=
null
&&
SendData
.
Length
>
0
)
{
if
(!
SendData
[
0
].
Equals
(
PreSlvAddr
))
{
Thread
.
Sleep
(
50
);
PreSlvAddr
=
SendData
[
0
];
}
}
_serialPort
.
DiscardInBuffer
();
//清空接收缓冲区
_serialPort
.
Write
(
SendData
,
0
,
SendData
.
Length
);
int
num
=
0
,
ret
=
0
;
...
...
source/DeviceLibrary/assemblyLine/DischargeLine_Partial.cs
查看文件 @
e9464f0
...
...
@@ -375,8 +375,8 @@ namespace OnlineStore.DeviceLibrary
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DON_14_NGCylinderBack
))
{
MoveEndS
();
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"NG处理结束
,清理NG工位
"
);
StationInfo_NG
=
new
StationTrayInfo
();
LogUtil
.
info
(
hengyiName
+
MoveInfo
.
SLog
+
"NG处理结束 "
);
//
StationInfo_NG = new StationTrayInfo();
}
#
endregion
...
...
@@ -394,7 +394,8 @@ namespace OnlineStore.DeviceLibrary
runStatus
=
LineRunStatus
.
Busy
;
MoveInfo
.
MoveParam
=
param
;
MoveInfo
.
NewMove
(
LineMoveType
.
OutStore
);
LogUtil
.
info
(
hengyiName
+
"NG工位有料,NG气缸后退,等待100后获取尺寸"
);
LogUtil
.
info
(
hengyiName
+
"NG工位有料,NG气缸后退,等待100后获取尺寸,清理NG工位"
);
StationInfo_NG
=
new
StationTrayInfo
();
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DON_01_WaitTime
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
ScanNgBack
(
MoveInfo
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论