Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
RC1250-FeederLineClient
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c7fc3263
由
张东亮
编写于
2021-01-11 09:41:35 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
料架切换状态不切换问题
1 个父辈
0c638219
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
8 行删除
source/DeviceLibrary/acFeederLine/FeederLineBean.cs
source/DeviceLibrary/agvClient/AgvClient.cs
source/DeviceLibrary/acFeederLine/FeederLineBean.cs
查看文件 @
c7fc326
...
...
@@ -262,6 +262,7 @@ namespace OnlineStore.DeviceLibrary
private
Stopwatch
ol_noshelfWatch
=
new
Stopwatch
();
private
Stopwatch
ol_noshelfWatch1
=
new
Stopwatch
();
private
Stopwatch
rfidWatch
=
new
Stopwatch
();
private
Stopwatch
rfidNoWatch
=
new
Stopwatch
();
private
DateTime
ol_lastSendShelfTime
=
DateTime
.
Now
;
private
int
StopDownMS
=
1500
;
/// <summary>
...
...
@@ -284,7 +285,6 @@ namespace OnlineStore.DeviceLibrary
IOManager
.
CIOMove
(
IO_Type
.
L2_OutStopDown
,
IO_VALUE
.
LOW
);
LogUtil
.
info
(
" Feeder2线体出口无料架,下降 ["
+
IO_Type
.
L2_StopDown
+
"] ["
+
StopDownMS
+
"] 秒"
);
ol_lastSendShelfTime
=
DateTime
.
Now
;
agvClient
.
OutLine_RFID
=
""
;
StopIOMove
(
IO_Type
.
L2_StopDown
,
StopDownMS
);
}
}
...
...
@@ -309,10 +309,16 @@ namespace OnlineStore.DeviceLibrary
IOManager
.
CIOMove
(
IO_Type
.
L1_StopDown
,
IO_VALUE
.
LOW
);
IOManager
.
CIOMove
(
IO_Type
.
L1_OutStopDown
,
IO_VALUE
.
LOW
);
}
if
(
IOManager
.
IOValue
(
IO_Type
.
L2_OutCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
LineManager
.
checkWatch
(
rfidWatch
,
2000
))
{
agvClient
.
OutLine_NeedLeave
(
LastOutShelfId
);
}
if
(
IOManager
.
IOValue
(
IO_Type
.
L2_OutCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
LineManager
.
checkWatch
(
rfidNoWatch
,
2000
))
{
agvClient
.
OutLine_RFID
=
""
;
agvClient
.
OutLine_None
(
LastOutShelfId
);
}
}
private
Task
TranverseTask
;
private
static
void
TranverseProcess
()
...
...
@@ -323,7 +329,7 @@ namespace OnlineStore.DeviceLibrary
IOManager
.
CIOMove
(
IO_Type
.
Tranverse_Down_SOL
,
IO_VALUE
.
LOW
);
Thread
.
Sleep
(
1000
);
IOManager
.
IOMove
(
IO_Type
.
Tranverse_Up_SOL
,
IO_VALUE
.
HIGH
);
Thread
.
Sleep
(
1000
);
Thread
.
Sleep
(
1000
);
LogUtil
.
info
(
" 横移机构上升"
);
if
(
IOManager
.
IOValue
(
IO_Type
.
L1_Updown_Up_Sig
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOManager
.
IOValue
(
IO_Type
.
L2_Updown_Up_Sig
).
Equals
(
IO_VALUE
.
HIGH
))
{
...
...
@@ -357,6 +363,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
" 横移电机停止"
);
IOManager
.
CIOMove
(
IO_Type
.
Tranverse_Up_SOL
,
IO_VALUE
.
LOW
);
Thread
.
Sleep
(
1000
);
IOManager
.
CIOMove
(
IO_Type
.
Tranverse_Up_SOL
,
IO_VALUE
.
LOW
);
IOManager
.
CIOMove
(
IO_Type
.
Tranverse_Down_SOL
,
IO_VALUE
.
HIGH
);
Thread
.
Sleep
(
1000
);
LogUtil
.
info
(
" 横移机构下降"
);
...
...
source/DeviceLibrary/agvClient/AgvClient.cs
查看文件 @
c7fc326
...
...
@@ -30,14 +30,14 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
public
void
InLine_None
()
{
SetStatus
(
InLine_Name
,
""
,
ClientAction
.
None
);
SetStatus
(
InLine_Name
,
"
000
"
,
ClientAction
.
None
);
}
/// <summary>
/// 可以进入状态
/// </summary>
public
void
InLine_NeedEnter
()
{
SetStatus
(
InLine_Name
,
""
,
ClientAction
.
NeedEnter
);
SetStatus
(
InLine_Name
,
"
000
"
,
ClientAction
.
NeedEnter
);
}
#
endregion
...
...
@@ -306,17 +306,17 @@ namespace OnlineStore.DeviceLibrary
if
(
actionMap
.
ContainsKey
(
name
))
{
ClientAction
currA
=
actionMap
[
name
];
//相同状态就设置一次
if
(
currA
.
Equals
(
action
)
&&
shelfId
==
""
)
if
(
currA
.
Equals
(
action
)
&&
(
shelfId
==
"000"
)
)
{
return
false
;
}
//
actionMap[name] = action;
//
agvClient.SetStatus(name, shelfId, action, level);
actionMap
[
name
]
=
action
;
agvClient
.
SetStatus
(
name
,
shelfId
,
action
,
level
);
LogUtil
.
info
(
"设置 "
+
name
+
" ["
+
shelfId
+
"] "
+
action
.
ToString
());
return
true
;
}
agvClient
.
SetStatus
(
name
,
shelfId
,
action
,
level
);
//
actionMap.Add(name, action);
actionMap
.
Add
(
name
,
action
);
LogUtil
.
info
(
"设置 "
+
name
+
" ["
+
shelfId
+
"] "
+
action
.
ToString
());
return
true
;
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论