Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 58bc2802
由
LN
编写于
2021-04-29 16:03:37 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
出库叉子和料仓门口料盘检测都没料时,再取消出库任务。
1 个父辈
3fee910e
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
19 行增加
和
25 行删除
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
58bc280
...
@@ -1537,6 +1537,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1537,6 +1537,12 @@ namespace OnlineStore.DeviceLibrary
lastConTime
=
DateTime
.
Now
;
lastConTime
=
DateTime
.
Now
;
try
try
{
{
if
(
IsDebug
)
{
}
else
{
if
(
LineConnect
.
IsConnect
())
if
(
LineConnect
.
IsConnect
())
{
{
int
hasTray
=
(
int
)
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
);
int
hasTray
=
(
int
)
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
);
...
@@ -1545,7 +1551,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1545,7 +1551,7 @@ namespace OnlineStore.DeviceLibrary
{
{
ss
=
(
int
)
StoreStatus
.
Debugging
;
ss
=
(
int
)
StoreStatus
.
Debugging
;
}
}
StoreSendBean
store
=
new
StoreSendBean
(
Config
.
Id
,
Config
.
CID
,
(
int
)
ss
,
(
int
)
storeRunStatus
,
hasTray
,
(
int
)
alarmType
);
StoreSendBean
store
=
new
StoreSendBean
(
Config
.
Id
,
Config
.
CID
,
(
int
)
ss
,
(
int
)
storeRunStatus
,
hasTray
,
(
int
)
alarmType
);
LineConnect
.
SendHeart
(
store
);
LineConnect
.
SendHeart
(
store
);
}
}
if
(
StoreManager
.
IsConnectServer
)
if
(
StoreManager
.
IsConnectServer
)
...
@@ -1559,6 +1565,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1559,6 +1565,7 @@ namespace OnlineStore.DeviceLibrary
LOGGER
.
Error
(
"定时给服务器发送消息出错:"
,
ex
);
LOGGER
.
Error
(
"定时给服务器发送消息出错:"
,
ex
);
}
}
}
}
}
HumidityProcess
();
HumidityProcess
();
LedProcess
();
LedProcess
();
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
58bc280
...
@@ -397,22 +397,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -397,22 +397,6 @@ namespace OnlineStore.DeviceLibrary
WarnMsg
=
StoreName
+
"入库 等待料仓门口检测到料盘 ["
+
StoreMove
.
MoveParam
.
PosInfo
.
barcode
+
"] ["
+
StoreMove
.
MoveParam
.
PosInfo
.
PosId
+
"] 超时 ["
+
Math
.
Round
(
StoreMove
.
StepSpan
().
TotalSeconds
,
1
)
+
"]秒 "
;
WarnMsg
=
StoreName
+
"入库 等待料仓门口检测到料盘 ["
+
StoreMove
.
MoveParam
.
PosInfo
.
barcode
+
"] ["
+
StoreMove
.
MoveParam
.
PosInfo
.
PosId
+
"] 超时 ["
+
Math
.
Round
(
StoreMove
.
StepSpan
().
TotalSeconds
,
1
)
+
"]秒 "
;
LogUtil
.
error
(
LOGGER
,
WarnMsg
,
100
);
LogUtil
.
error
(
LOGGER
,
WarnMsg
,
100
);
Alarm
(
StoreAlarmType
.
IoSingleTimeOut
,
""
,
WarnMsg
,
StoreMove
.
MoveType
);
Alarm
(
StoreAlarmType
.
IoSingleTimeOut
,
""
,
WarnMsg
,
StoreMove
.
MoveType
);
//InStoreLog(" 入库:SI_00 入库等待仓门口料盘信号");
//StoreMove.NextMoveStep(StoreMoveStep.SI_00_TrayCheck);
//StoreMove.TimeOutSeconds = 5;
//StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.HIGH));
//TimeSpan span = DateTime.Now - startInStoreTime;
//string posId = StoreMove.MoveParam != null ? StoreMove.MoveParam.PosInfo.PosId : "";
//LogUtil.error(StoreName + " [" + StoreMove.MoveParam.PosInfo.ToStr() + "] 入库未检测到料盘,结束入库.[" + FormUtil.GetSpanStr(span) + "]");
//StoreMove.EndMove();
//storeRunStatus = StoreRunStatus.Runing;
////设备连接,入库后,BOX恢复原始状态
//storeStatus = StoreStatus.StoreOnline;
//InOutEndProcess(StoreMoveType.InStore);
}
}
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_02_InOutAxisHome
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_02_InOutAxisHome
)
...
@@ -483,9 +467,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -483,9 +467,7 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_09_MoveToBag
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_09_MoveToBag
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P2
,
Config
.
MiddleAxis_P2_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P2
,
Config
.
MiddleAxis_P2_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P3
,
Config
.
UpDownAxis_P3_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P3
,
Config
.
UpDownAxis_P3_Speed
);
//关闭舱门
//IOManager.IOMove(IO_Type.Door_Down, IO_VALUE.HIGH);
//IOManager.IOMove(IO_Type.Door_Up, IO_VALUE.LOW);
CloseDoor
(
false
);
CloseDoor
(
false
);
}
}
else
else
...
@@ -501,9 +483,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -501,9 +483,6 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_09_MoveToBag
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_09_MoveToBag
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P2
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P2
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P3
,
Config
.
UpDownAxis_P3_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P3
,
Config
.
UpDownAxis_P3_Speed
);
//关闭舱门
//IOManager.IOMove(IO_Type.Door_Down, IO_VALUE.HIGH);
//IOManager.IOMove(IO_Type.Door_Up, IO_VALUE.LOW);
CloseDoor
(
false
);
CloseDoor
(
false
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_09_MoveToBag
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_09_MoveToBag
)
...
@@ -612,7 +591,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -612,7 +591,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
LOGGER
,
StoreName
+
"启动出库【"
+
posId
+
"】 "
,
storeMoveColor
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"启动出库【"
+
posId
+
"】 "
,
storeMoveColor
);
storeRunStatus
=
StoreRunStatus
.
Busy
;
storeRunStatus
=
StoreRunStatus
.
Busy
;
StoreMove
.
NewMove
(
StoreMoveType
.
OutStore
,
param
);
StoreMove
.
NewMove
(
StoreMoveType
.
OutStore
,
param
);
EmptyOut
=
false
;
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_02_InoutBack
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_02_InoutBack
);
OutStoreLog
(
"出库: 进出轴到P1 ,打开舱门 "
);
OutStoreLog
(
"出库: 进出轴到P1 ,打开舱门 "
);
InOutBackToP1
(
StoreMove
.
MoveParam
.
MoveP
.
InOut_P1
);
InOutBackToP1
(
StoreMove
.
MoveParam
.
MoveP
.
InOut_P1
);
...
@@ -625,6 +604,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -625,6 +604,7 @@ namespace OnlineStore.DeviceLibrary
}
}
return
false
;
return
false
;
}
}
private
bool
EmptyOut
=
false
;
protected
override
void
OutStoreProcess
()
protected
override
void
OutStoreProcess
()
{
{
LineMoveP
moveP
=
StoreMove
.
MoveParam
.
MoveP
;
LineMoveP
moveP
=
StoreMove
.
MoveParam
.
MoveP
;
...
@@ -681,6 +661,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -681,6 +661,7 @@ namespace OnlineStore.DeviceLibrary
{
{
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
LOW
))
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
LOW
))
{
{
EmptyOut
=
true
;
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PosInfo
.
PosId
:
""
;
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PosInfo
.
PosId
:
""
;
CodeMsg
=
"出库["
+
posId
+
"]叉子从库位退出后,未检测到料叉有料"
;
CodeMsg
=
"出库["
+
posId
+
"]叉子从库位退出后,未检测到料叉有料"
;
LogUtil
.
error
(
CodeMsg
);
LogUtil
.
error
(
CodeMsg
);
...
@@ -813,11 +794,17 @@ namespace OnlineStore.DeviceLibrary
...
@@ -813,11 +794,17 @@ namespace OnlineStore.DeviceLibrary
{
{
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PosInfo
.
PosId
:
""
;
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PosInfo
.
PosId
:
""
;
string
barcode
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PosInfo
.
barcode
:
""
;
string
barcode
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PosInfo
.
barcode
:
""
;
if
(
EmptyOut
)
{
CodeMsg
=
""
+
posId
+
"_"
+
barcode
+
"_空出"
;
CodeMsg
=
""
+
posId
+
"_"
+
barcode
+
"_空出"
;
LogUtil
.
error
(
CodeMsg
+
",取消出库任务"
);
LogUtil
.
error
(
CodeMsg
+
",取消出库任务"
);
StoreManager
.
cancelOutTask
(
barcode
);
StoreManager
.
cancelOutTask
(
barcode
);
}
}
else
{
LogUtil
.
error
(
StoreName
+
""
+
posId
+
"_"
+
barcode
+
"_料盘到仓门口未检测到信号"
);
}
}
SO_28_GoBack
();
SO_28_GoBack
();
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_28_GoBack
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_28_GoBack
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论