Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-ACPackingStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit bb5699df
由
LN
编写于
2020-01-12 11:59:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
623747df
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
13 行删除
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Partial.cs
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Shelf.cs
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Partial.cs
查看文件 @
bb5699d
...
@@ -281,16 +281,17 @@ namespace OnlineStore.DeviceLibrary
...
@@ -281,16 +281,17 @@ namespace OnlineStore.DeviceLibrary
{
{
//读取RFID
//读取RFID
RFIDData
data
=
RFIDManager
.
ReadRFID
(
Config
.
RFID_IP
,
true
);
RFIDData
data
=
RFIDManager
.
ReadRFID
(
Config
.
RFID_IP
,
true
);
LogUtil
.
info
(
Name
+
"更新当前料架号【"
+
data
.
NumStr
()
+
"】"
);
//TODO 判断料架是否正确
//TODO 判断料架是否正确
if
(
data
.
RFType
.
Equals
(
"A"
))
if
(
data
.
RFType
.
Equals
(
"A"
))
{
{
CurrShelfID
=
data
.
NumStr
();
CurrShelfID
=
data
.
NumStr
();
AgvClient
.
SendRFID
(
Config
.
AgvNodeName
,
CurrShelfID
);
AgvClient
.
SendRFID
(
Config
.
AgvNodeName
,
CurrShelfID
);
}
}
else
//
else
{
//
{
LogUtil
.
error
(
Name
+
"检测到入料口有料架,读取RFID数据错误:"
+
data
.
NumStr
());
//
LogUtil.error(Name + "检测到入料口有料架,读取RFID数据错误:" + data.NumStr());
}
//
}
}
}
private
void
StartMoveToBag
()
private
void
StartMoveToBag
()
...
@@ -388,8 +389,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -388,8 +389,8 @@ namespace OnlineStore.DeviceLibrary
LastHeight
=
Config
.
GetComP2PlateH
(
targetP
);
LastHeight
=
Config
.
GetComP2PlateH
(
targetP
);
MoveInfo
.
MoveParam
.
MoveP
.
ComPress_P2
=
targetP
;
MoveInfo
.
MoveParam
.
MoveP
.
ComPress_P2
=
targetP
;
MoveInfo
.
MoveParam
.
MoveP
.
ComPress_P3
=
targetP
+
Config
.
CompAxis_P3_P2_Value
;
MoveInfo
.
MoveParam
.
MoveP
.
ComPress_P3
=
targetP
+
Config
.
CompAxis_P3_P2_Value
;
InOutStoreLog
(
"料架取料 "
+
MoveInfo
.
SLog
+
":检测到
料叉压紧确认信号,向下压紧["
+
Config
.
CompAxis_Down_Position
+
"]目标
["
+
targetP
+
InOutStoreLog
(
"料架取料 "
+
MoveInfo
.
SLog
+
":检测到
Compress_Check,盘高【"
+
LastHeight
+
"】,向下压紧 ["
+
Config
.
CompAxis_Down_Position
+
"] 目标
["
+
targetP
+
"]
,盘高【"
+
LastHeight
+
"】,
ComP2["
+
targetP
+
"]ComP3["
+
MoveInfo
.
MoveParam
.
MoveP
.
ComPress_P3
+
"]"
);
"]
记录
ComP2["
+
targetP
+
"]ComP3["
+
MoveInfo
.
MoveParam
.
MoveP
.
ComPress_P3
+
"]"
);
ACAxisMove
(
Config
.
Comp_Axis
,
targetP
,
Config
.
CompAxis_P1_Speed
);
ACAxisMove
(
Config
.
Comp_Axis
,
targetP
,
Config
.
CompAxis_P1_Speed
);
...
@@ -453,11 +454,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -453,11 +454,11 @@ namespace OnlineStore.DeviceLibrary
else
else
{
{
LastWidth
=
0
;
LastWidth
=
0
;
LogUtil
.
info
(
"未检测到识别区料盘检测信号, 设置默认宽度=0"
);
LogUtil
.
debug
(
"未检测到识别区料盘检测信号, 设置默认宽度=0"
);
}
}
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_25_ScanCode
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_25_ScanCode
);
InOutStoreLog
(
"扫码 "
+
MoveInfo
.
SLog
+
":
记录宽度【"
+
LastWidth
+
"】,料盘识别信号值 ["
+
io1
+
"] ["
+
io2
+
"] ["
+
io3
+
"] ["
+
io4
+
"]
,开始扫码"
);
InOutStoreLog
(
"扫码 "
+
MoveInfo
.
SLog
+
":
料盘识别 ["
+
io1
+
"] ["
+
io2
+
"] ["
+
io3
+
"] ["
+
io4
+
"] ,宽度【"
+
LastWidth
+
"】
,开始扫码"
);
MoveInfo
.
OneWaitCanEndStep
=
true
;
MoveInfo
.
OneWaitCanEndStep
=
true
;
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
6000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
6000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitCode
());
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitCode
());
...
@@ -474,7 +475,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -474,7 +475,7 @@ namespace OnlineStore.DeviceLibrary
{
{
storeStatus
=
StoreStatus
.
InStoreExecute
;
storeStatus
=
StoreStatus
.
InStoreExecute
;
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_10_StartGetTray
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_10_StartGetTray
);
InOutStoreLog
(
"
扫码失败,且尺寸为"
+
LastWidth
+
"*"
+
LastHeight
+
",认为没拿到料盘,判断是否有下个料盘,扫码入库
"
);
InOutStoreLog
(
"
扫码 "
+
MoveInfo
.
SLog
+
": 扫码失败,尺寸"
+
LastWidth
+
"*"
+
LastHeight
+
",认为没拿到料盘,继续循环料架取料盘
"
);
}
}
else
else
{
{
...
@@ -578,7 +579,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -578,7 +579,7 @@ namespace OnlineStore.DeviceLibrary
{
{
storeStatus
=
StoreStatus
.
InStoreExecute
;
storeStatus
=
StoreStatus
.
InStoreExecute
;
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_10_StartGetTray
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_10_StartGetTray
);
InOutStoreLog
(
"料架入库 "
+
MoveInfo
.
SLog
+
":上一盘入库结束, 耗时【"
+
FormUtil
.
GetSpanStr
(
span
)
+
"】
判断是否有下个料盘,扫码入库
"
);
InOutStoreLog
(
"料架入库 "
+
MoveInfo
.
SLog
+
":上一盘入库结束, 耗时【"
+
FormUtil
.
GetSpanStr
(
span
)
+
"】
继续循环料架取料盘
"
);
}
}
}
}
#
endregion
#
endregion
...
@@ -628,7 +629,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -628,7 +629,7 @@ namespace OnlineStore.DeviceLibrary
{
{
IOMove
(
IO_Type
.
NGLine_Run
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
NGLine_Run
,
IO_VALUE
.
LOW
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_10_StartGetTray
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_10_StartGetTray
);
InOutStoreLog
(
"料架入库 "
+
MoveInfo
.
SLog
+
":停止NG线体转动,
开始循环逐个取料盘,扫码入库
"
);
InOutStoreLog
(
"料架入库 "
+
MoveInfo
.
SLog
+
":停止NG线体转动,
继续循环料架取料盘
"
);
}
}
#
endregion
#
endregion
...
@@ -743,7 +744,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -743,7 +744,7 @@ namespace OnlineStore.DeviceLibrary
if
((
IOValue
(
IO_Type
.
LineTake_Check
).
Equals
(
IO_VALUE
.
LOW
)
&&
MoveInfo
.
MoveParam
.
NeedEnterShelf
)
||
MoveInfo
.
MoveParam
.
ShelfPosID
.
Equals
(
""
))
if
((
IOValue
(
IO_Type
.
LineTake_Check
).
Equals
(
IO_VALUE
.
LOW
)
&&
MoveInfo
.
MoveParam
.
NeedEnterShelf
)
||
MoveInfo
.
MoveParam
.
ShelfPosID
.
Equals
(
""
))
{
{
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_01_ReadyShelf
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_01_ReadyShelf
);
InOutStoreLog
(
"出库 "
+
MoveInfo
.
SLog
+
":
ReadyShelf:
通知agv调度准备带料架的agv,等待agv到达或检测到料架信号,进出轴到P1"
);
InOutStoreLog
(
"出库 "
+
MoveInfo
.
SLog
+
":
通知agv调度准备带料架的agv,等待agv到达或检测到料架信号,进出轴到P1"
);
InOutBackToP1
(
MoveInfo
.
MoveParam
.
MoveP
.
InOut_P1
);
InOutBackToP1
(
MoveInfo
.
MoveParam
.
MoveP
.
InOut_P1
);
//需要先叫agv到达
//需要先叫agv到达
AgvClient
.
ReadyShelf
(
Config
.
AgvNodeName
);
AgvClient
.
ReadyShelf
(
Config
.
AgvNodeName
);
...
...
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Shelf.cs
查看文件 @
bb5699d
...
@@ -142,7 +142,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -142,7 +142,7 @@ namespace OnlineStore.DeviceLibrary
if
(
instoreShelf
)
if
(
instoreShelf
)
{
{
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_10_StartGetTray
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_10_StartGetTray
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"开始循环
从第一个空位逐个取料盘,扫码入库
"
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"开始循环
料架取料盘
"
);
}
}
else
else
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论