Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO908-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 148e3fdb
由
张东亮
编写于
2021-06-01 16:10:34 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
存储机构-0601最新
1 个父辈
56ad2460
全部展开
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
109 行增加
和
8 行删除
source/DeviceLibrary/manager/StoreManager.cs
source/DeviceLibrary/manager/model/DeviceStep.cs
source/DeviceLibrary/manager/model/InOutParam.cs
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean_Partial.cs
source/DeviceLibrary/manager/StoreManager.cs
查看文件 @
148e3fd
...
@@ -97,14 +97,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -97,14 +97,14 @@ namespace OnlineStore.DeviceLibrary
string
inputConfigPath
=
appPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
ConfigPath_Input
);
string
inputConfigPath
=
appPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
ConfigPath_Input
);
InputEquip_Config
inputConfig
=
CSVConfigReader
.
LoadInputConfig
(
1
,
DeviceType
.
InputEquip
,
inputConfigPath
);
InputEquip_Config
inputConfig
=
CSVConfigReader
.
LoadInputConfig
(
1
,
DeviceType
.
InputEquip
,
inputConfigPath
);
inputConfig
.
CID
=
CID
;
inputConfig
.
SetIO
(
1
);
inputConfig
.
SetIO
(
1
);
allConfigMap
.
Add
(
1
,
inputConfig
);
allConfigMap
.
Add
(
1
,
inputConfig
);
string
boxPath
=
appPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
ConfigPath_Box
);
string
boxPath
=
appPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
ConfigPath_Box
);
BoxEquip_Config
boxConfig
=
CSVConfigReader
.
LoadBoxConfig
(
2
,
DeviceType
.
BoxEquip
,
boxPath
);
BoxEquip_Config
boxConfig
=
CSVConfigReader
.
LoadBoxConfig
(
2
,
DeviceType
.
BoxEquip
,
boxPath
);
boxConfig
.
SetIO
(
2
);
boxConfig
.
SetIO
(
2
);
boxConfig
.
CID
=
CID
;
allConfigMap
.
Add
(
2
,
boxConfig
);
allConfigMap
.
Add
(
2
,
boxConfig
);
//加载点位
//加载点位
string
positionConfigFile
=
appPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
ConfigPath_BoxPosition
);
string
positionConfigFile
=
appPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
ConfigPath_BoxPosition
);
...
...
source/DeviceLibrary/manager/model/DeviceStep.cs
查看文件 @
148e3fd
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/manager/model/InOutParam.cs
查看文件 @
148e3fd
...
@@ -136,6 +136,106 @@ namespace OnlineStore.DeviceLibrary
...
@@ -136,6 +136,106 @@ namespace OnlineStore.DeviceLibrary
public
bool
IsNG
{
get
;
set
;
}
=
false
;
public
bool
IsNG
{
get
;
set
;
}
=
false
;
public
string
NgMsg
{
get
;
set
;
}
=
""
;
public
string
NgMsg
{
get
;
set
;
}
=
""
;
public
int
GetPosType
()
{
int
startP
=
0
;
if
(
String
.
IsNullOrEmpty
(
PosId
))
{
return
0
;
}
if
(
PosId
.
Contains
(
"AA"
))
{
startP
=
1
;
}
else
if
(
PosId
.
Contains
(
"BB"
))
{
startP
=
2
;
}
return
startP
;
}
/// <summary>
/// 库位在存储机构哪个面
/// 0=未知,1=A面,2=B面
/// 例:05AA03040102
// 05:表示料仓编号,01-08
// AA:存储机构A面或B面,AA或者BB
// 03:表示抽屉在第几行
// 04:表示抽屉在第几列
// 01:表示在抽屉中的第几行
//02:表示在抽屉中的第几列
/// </summary>
public
string
PosSide
{
get
{
if
(
PosId
.
Substring
(
2
,
2
).
Equals
(
"AA"
))
return
"A"
;
else
if
(
PosId
.
Substring
(
2
,
2
).
Equals
(
"BB"
))
return
"B"
;
return
""
;
}
}
/// <summary>
/// 检查库位是否存在
/// </summary>
/// <returns></returns>
public
bool
CheckPosition
()
{
BoxPosition
position
=
CSVPositionReader
<
BoxPosition
>.
GetPositon
(
PosId
);
if
(
position
==
null
)
{
return
false
;
}
return
true
;
}
/// <summary>
/// 获取料盘所在料屉的层序号
/// </summary>
/// <returns></returns>
public
int
GetTrayRow
()
{
int
.
TryParse
(
PosId
.
Substring
(
4
,
2
),
out
int
result
);
return
result
;
}
/// <summary>
/// 获取料盘所在料屉的列序号
/// </summary>
/// <returns></returns>
public
int
GetTrayColumn
()
{
int
.
TryParse
(
PosId
.
Substring
(
6
,
2
),
out
int
result
);
return
result
;
}
/// <summary>
/// 获取料盘在抽屉里的行
/// </summary>
/// <returns></returns>
public
int
GetRowInTray
()
{
int
.
TryParse
(
PosId
.
Substring
(
8
,
2
),
out
int
result
);
return
result
;
}
/// <summary>
/// 获取料盘在抽屉里的列
/// </summary>
/// <returns></returns>
public
int
GetColumnInTray
()
{
int
.
TryParse
(
PosId
.
Substring
(
10
,
2
),
out
int
result
);
return
result
;
}
/// <summary>
/// 拷贝一个新的实例
/// </summary>
/// <returns></returns>
public
InOutPosInfo
ToCopy
()
{
InOutPosInfo
posInfo
=
new
InOutPosInfo
();
System
.
Reflection
.
PropertyInfo
[]
info1
=
posInfo
.
GetType
().
GetProperties
();
System
.
Reflection
.
PropertyInfo
[]
info2
=
this
.
GetType
().
GetProperties
();
for
(
int
i
=
0
;
i
<
info1
.
Length
;
i
++)
info1
[
i
].
SetValue
(
posInfo
,
info2
[
i
].
GetValue
(
this
));
return
posInfo
;
}
}
}
/// <summary>
/// <summary>
/// 出入库位置信息
/// 出入库位置信息
...
...
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean_Partial.cs
查看文件 @
148e3fd
...
@@ -37,8 +37,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -37,8 +37,8 @@ namespace OnlineStore.DeviceLibrary
if
(
CurrShelf
.
ShelfState
.
Equals
(
3
))
if
(
CurrShelf
.
ShelfState
.
Equals
(
3
))
{
{
bool
agvcallresult
=
AgvClient
.
NeedLeave
(
AgvName
,
CurrShelf
.
ShelfRfid
,
ClientLevel
.
High
);
bool
agvcallresult
=
AgvClient
.
NeedLeave
(
AgvName
,
CurrShelf
.
ShelfRfid
,
ClientLevel
.
High
);
LogUtil
.
info
(
Name
+
"StartInstore 失败,料串"
+
CurrShelf
.
ToStr
()
+
"需要离开,NeedLeave:"
+
AgvName
+
","
+
CurrShelf
.
ShelfRfid
+
",agvcallresult:"
+
agvcallresult
.
ToString
());
LogUtil
.
info
(
Name
+
"StartInstore 失败,料串"
+
CurrShelf
.
ToStr
()
+
"需要离开,NeedLeave:"
+
AgvName
+
","
+
CurrShelf
.
ShelfRfid
+
",agvcallresult:"
+
agvcallresult
.
ToString
());
return
false
;
return
false
;
}
}
if
(
Robot
.
IOValue
(
IO_LineEnd_Check
).
Equals
(
IO_VALUE
.
HIGH
)
&&
Robot
.
IOValue
(
IO_LineIn_Check
).
Equals
(
IO_VALUE
.
HIGH
))
if
(
Robot
.
IOValue
(
IO_LineEnd_Check
).
Equals
(
IO_VALUE
.
HIGH
)
&&
Robot
.
IOValue
(
IO_LineIn_Check
).
Equals
(
IO_VALUE
.
HIGH
))
{
{
...
@@ -501,7 +501,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -501,7 +501,7 @@ namespace OnlineStore.DeviceLibrary
#
endregion
#
endregion
}
}
internal
void
NewReelOut
(
InOutPosInfo
posInfo
,
string
xnRfid
=
""
)
internal
void
NewReelOut
(
InOutPosInfo
posInfo
,
string
xnRfid
=
""
)
{
{
UpdateShelf
(
2
,
xnRfid
);
UpdateShelf
(
2
,
xnRfid
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
IS12_AxisDown
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
IS12_AxisDown
);
...
@@ -786,9 +786,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -786,9 +786,10 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
public
class
ShelfInfo
{
public
class
ShelfInfo
{
public
ShelfInfo
(
string
rfid
=
""
,
int
state
=
0
,
string
xnrfid
=
""
)
public
ShelfInfo
(
string
rfid
=
""
,
int
state
=
0
,
string
xnrfid
=
""
)
{
{
this
.
ShelfRfid
=
rfid
;
this
.
ShelfRfid
=
rfid
;
this
.
ShelfState
=
state
;
this
.
ShelfState
=
state
;
...
@@ -801,7 +802,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -801,7 +802,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
/// 料串状态,0=未开始,1=入库,2=出库中,3=需要离开
/// 料串状态,0=未开始,1=入库,2=出库中,3=需要离开
/// </summary>
/// </summary>
public
int
ShelfState
=
0
;
public
int
ShelfState
=
0
;
public
string
XuniRfid
=
""
;
public
string
XuniRfid
=
""
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论