Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit f3609f30
由
张东亮
编写于
2025-12-15 11:37:14 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
料盘夹取根据实际厚度
1 个父辈
7c540127
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
7 行增加
和
4 行删除
source/DeviceLibrary/manager/SServerManager.cs
source/DeviceLibrary/manager/model/InOutParam.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_Partial.cs
source/DeviceLibrary/manager/SServerManager.cs
查看文件 @
f3609f3
...
@@ -272,7 +272,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -272,7 +272,7 @@ namespace OnlineStore.DeviceLibrary
int
pH
=
FormUtil
.
GetIntValue
(
serverResult
.
plateH
);
int
pH
=
FormUtil
.
GetIntValue
(
serverResult
.
plateH
);
int
pW
=
FormUtil
.
GetIntValue
(
serverResult
.
plateW
);
int
pW
=
FormUtil
.
GetIntValue
(
serverResult
.
plateW
);
result
.
Param
=
new
InOutPosInfo
(
serverResult
.
barcode
,
serverResult
.
posId
,
pW
,
pH
,
urgentReel
,
cutReel
,
smallReel
,
serverResult
.
rfid
,
rfidloc
);
result
.
Param
=
new
InOutPosInfo
(
serverResult
.
barcode
,
serverResult
.
posId
,
pW
,
pH
,
urgentReel
,
cutReel
,
smallReel
,
serverResult
.
rfid
,
rfidloc
);
result
.
Param
.
PlateTotalH
=
pH
;
LogUtil
.
error
(
deviceName
+
" 【"
+
codeStr
+
"】结果入库NG:收到出库信息: "
+
result
.
Param
.
ToStr
()
+
" "
);
LogUtil
.
error
(
deviceName
+
" 【"
+
codeStr
+
"】结果入库NG:收到出库信息: "
+
result
.
Param
.
ToStr
()
+
" "
);
result
.
Msg
=
"收到出库信息["
+
serverResult
.
barcode
+
"]["
+
serverResult
.
posId
+
"] "
;
result
.
Msg
=
"收到出库信息["
+
serverResult
.
barcode
+
"]["
+
serverResult
.
posId
+
"] "
;
...
@@ -308,6 +308,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -308,6 +308,7 @@ namespace OnlineStore.DeviceLibrary
// 判断PosID是否已经在入库或者在排队列表中,如果已经存在,加入列表失败
// 判断PosID是否已经在入库或者在排队列表中,如果已经存在,加入列表失败
result
.
Param
=
new
InOutPosInfo
(
serverResult
.
barcode
,
posId
,
width
,
height
);
result
.
Param
=
new
InOutPosInfo
(
serverResult
.
barcode
,
posId
,
width
,
height
);
result
.
Param
.
rfid
=
rfid
;
result
.
Param
.
rfid
=
rfid
;
result
.
Param
.
PlateTotalH
=
totalHeight
;
BoxPosition
position
=
CSVPositionReader
<
BoxPosition
>.
GetPositon
(
posId
);
BoxPosition
position
=
CSVPositionReader
<
BoxPosition
>.
GetPositon
(
posId
);
if
(
position
==
null
)
if
(
position
==
null
)
{
{
...
...
source/DeviceLibrary/manager/model/InOutParam.cs
查看文件 @
f3609f3
...
@@ -136,7 +136,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -136,7 +136,7 @@ namespace OnlineStore.DeviceLibrary
public
bool
singleOut
=
false
;
public
bool
singleOut
=
false
;
public
string
ToStr
()
public
string
ToStr
()
{
{
return
$
" NgMsg[{NgMsg}] ["
+
barcode
+
"] ["
+
PosId
+
"] ["
+
PlateW
+
"x"
+
PlateH
+
"
]"
+
$
" hSerial[{hSerial}]"
+
$
" isNg[{IsNG}]"
+
" singleOut["
+
singleOut
+
"]"
;
return
$
" NgMsg[{NgMsg}] ["
+
barcode
+
"] ["
+
PosId
+
"] ["
+
PlateW
+
"x"
+
PlateH
+
$
"({PlateTotalH})
]"
+
$
" hSerial[{hSerial}]"
+
$
" isNg[{IsNG}]"
+
" singleOut["
+
singleOut
+
"]"
;
}
}
public
string
ToStr1
()
public
string
ToStr1
()
{
{
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
查看文件 @
f3609f3
...
@@ -438,6 +438,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -438,6 +438,7 @@ namespace OnlineStore.DeviceLibrary
InOutParam
inoutParam
=
new
InOutParam
(
new
InOutPosInfo
(
barcode
,
posId
,
plateW
,
plateH
,
urgentReel
));
InOutParam
inoutParam
=
new
InOutParam
(
new
InOutPosInfo
(
barcode
,
posId
,
plateW
,
plateH
,
urgentReel
));
inoutParam
.
PosInfo
.
hSerial
=
hSerials
;
inoutParam
.
PosInfo
.
hSerial
=
hSerials
;
inoutParam
.
PosInfo
.
singleOut
=
singleOut
;
inoutParam
.
PosInfo
.
singleOut
=
singleOut
;
inoutParam
.
PosInfo
.
PlateTotalH
=
plateH
;
//根据发送的posId获取位置列表
//根据发送的posId获取位置列表
BoxPosition
position
=
CSVPositionReader
<
BoxPosition
>.
GetPositon
(
posId
);
BoxPosition
position
=
CSVPositionReader
<
BoxPosition
>.
GetPositon
(
posId
);
if
(
position
==
null
)
if
(
position
==
null
)
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_Partial.cs
查看文件 @
f3609f3
...
@@ -622,9 +622,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -622,9 +622,10 @@ namespace OnlineStore.DeviceLibrary
BoxPosition
position
=
CSVPositionReader
<
BoxPosition
>.
GetPositon
(
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
);
BoxPosition
position
=
CSVPositionReader
<
BoxPosition
>.
GetPositon
(
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
);
if
(
position
!=
null
)
if
(
position
!=
null
)
{
{
diff
=
position
.
BagHigh
-
MoveInfo
.
MoveParam
.
PosInfo
.
PlateH
;
var
pH
=
MoveInfo
.
MoveParam
.
PosInfo
.
PlateTotalH
==
0
?
MoveInfo
.
MoveParam
.
PosInfo
.
PlateH
:
MoveInfo
.
MoveParam
.
PosInfo
.
PlateTotalH
;
diff
=
position
.
BagHigh
-
pH
;
if
(
diff
<
0
)
diff
=
0
;
if
(
diff
<
0
)
diff
=
0
;
LogInfo
(
$
"{MoveInfo.MoveParam.PosInfo.PosId}库位高度:{position.BagHigh},料盘高度:{MoveInfo.MoveParam.PosInfo.PlateH},差值:{diff},系数:{comAxis_offset},"
+
LogInfo
(
$
"{MoveInfo.MoveParam.PosInfo.PosId}库位高度:{position.BagHigh},料盘高度:{MoveInfo.MoveParam.PosInfo.PlateH},
实际高度:{MoveInfo.MoveParam.PosInfo.PlateTotalH},
差值:{diff},系数:{comAxis_offset},"
+
$
"实际值:{MoveInfo.MoveParam.MoveP.ComAxis_AB_P3 + diff * comAxis_offset}={MoveInfo.MoveParam.MoveP.ComAxis_AB_P3}加{diff * comAxis_offset}"
);
$
"实际值:{MoveInfo.MoveParam.MoveP.ComAxis_AB_P3 + diff * comAxis_offset}={MoveInfo.MoveParam.MoveP.ComAxis_AB_P3}加{diff * comAxis_offset}"
);
}
}
int
target
=
MoveInfo
.
MoveParam
.
MoveP
.
ComAxis_AB_P3
+
diff
*
comAxis_offset
;
int
target
=
MoveInfo
.
MoveParam
.
MoveP
.
ComAxis_AB_P3
+
diff
*
comAxis_offset
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论