Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 313117d0
由
张东亮
编写于
2023-04-24 17:14:55 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
出库完成必须上报完成再动作
1 个父辈
1c8a38a6
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
11 行增加
和
2 行删除
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_OutExecute.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
查看文件 @
313117d
...
@@ -73,12 +73,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -73,12 +73,13 @@ namespace OnlineStore.DeviceLibrary
isInProcess
=
false
;
isInProcess
=
false
;
}
}
}
}
public
bool
SendStoreState
(
string
posid
,
DeviceStatus
storeStatus
)
public
bool
SendStoreState
(
string
posid
,
DeviceStatus
storeStatus
)
{
{
if
(
Monitor
.
TryEnter
(
serverLoc
))
if
(
Monitor
.
TryEnter
(
serverLoc
))
{
{
try
try
{
{
{
Operation
operation
=
getLineBoxStatus
();
Operation
operation
=
getLineBoxStatus
();
for
(
int
i
=
0
;
i
<
5
;
i
++)
for
(
int
i
=
0
;
i
<
5
;
i
++)
{
{
...
@@ -91,9 +92,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -91,9 +92,11 @@ namespace OnlineStore.DeviceLibrary
operation
.
boxStatus
[
1
].
status
=
(
int
)
storeStatus
;
operation
.
boxStatus
[
1
].
status
=
(
int
)
storeStatus
;
LogUtil
.
info
(
JsonHelper
.
SerializeObject
(
operation
));
LogUtil
.
info
(
JsonHelper
.
SerializeObject
(
operation
));
Operation
resultOperation
=
HttpHelper
.
Post
(
SServerManager
.
GetPostApi
(
server
),
operation
,
false
);
Operation
resultOperation
=
HttpHelper
.
Post
(
SServerManager
.
GetPostApi
(
server
),
operation
,
false
);
if
(
resultOperation
!=
null
)
{
if
(
operation
.
seq
==
resultOperation
.
seq
)
if
(
operation
.
seq
==
resultOperation
.
seq
)
{
{
LogUtil
.
info
(
$
"SendStoreState
,posid:{posid}, storeStatus:{storeStatus}"
);
LogUtil
.
info
(
$
"SendStoreState success
,posid:{posid}, storeStatus:{storeStatus}"
);
return
true
;
return
true
;
}
}
else
else
...
@@ -102,6 +105,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -102,6 +105,10 @@ namespace OnlineStore.DeviceLibrary
Thread
.
Sleep
(
2000
);
Thread
.
Sleep
(
2000
);
}
}
}
}
}
}
}
}
finally
finally
{
{
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_OutExecute.cs
查看文件 @
313117d
...
@@ -275,6 +275,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -275,6 +275,8 @@ namespace OnlineStore.DeviceLibrary
UpdownAxisTo_P5_P11
();
UpdownAxisTo_P5_P11
();
break
;
break
;
case
StepEnum
.
SO_18_PutReel
:
case
StepEnum
.
SO_18_PutReel
:
if
(!
StoreManager
.
XLRStore
.
boxEquip
.
SendStoreState
(
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
,
DeviceStatus
.
OutStoreBoxEnd
))
return
;
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_19_InOutBackFromBuff
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_19_InOutBackFromBuff
);
LogInfo
(
$
"出库 {MoveInfo.SLog}:[{MoveInfo.MoveParam.PosInfo.ToStr()}]出库完成[耗时:{(DateTime.Now - startTime).TotalSeconds.ToString("
f2
")}秒],移栽X轴到待机点P1,行走机构到待机点P1[{MoveInfo.MoveParam.PosInfo.GetPosSide()}面]"
);
LogInfo
(
$
"出库 {MoveInfo.SLog}:[{MoveInfo.MoveParam.PosInfo.ToStr()}]出库完成[耗时:{(DateTime.Now - startTime).TotalSeconds.ToString("
f2
")}秒],移栽X轴到待机点P1,行走机构到待机点P1[{MoveInfo.MoveParam.PosInfo.GetPosSide()}面]"
);
XAxis_To_P1
();
XAxis_To_P1
();
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论