Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 90ed9115
由
张东亮
编写于
2023-01-06 20:52:27 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
添加呼叫AGV按钮状态、更改上报出入库状态、添加校准库位缓存(FixBuffInfo)以在启动时进行检查状态
1 个父辈
ab64b6d5
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
95 行增加
和
31 行删除
Common/Setting_Init.cs
Common/bean/Bean.cs
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
DeviceLibrary/theMachine/BoxTransport.cs
DeviceLibrary/theMachine/MainMachine.cs
DeviceLibrary/theMachine/MainMachine_Store.cs
DeviceLibrary/theMachine/RobotManage.cs
Common/Setting_Init.cs
查看文件 @
90ed911
...
@@ -31,5 +31,9 @@ namespace OnlineStore.Common
...
@@ -31,5 +31,9 @@ namespace OnlineStore.Common
public
static
string
QRCodeCount
=
"QRCodeCount"
;
public
static
string
QRCodeCount
=
"QRCodeCount"
;
public
static
string
CodeTimeOut
=
"CodeTimeOut"
;
public
static
string
CodeTimeOut
=
"CodeTimeOut"
;
/// <summary>
/// 校准库位的料盘信息
/// </summary>
public
static
string
FixBuffInfo
=
"FixBuffInfo"
;
}
}
}
}
Common/bean/Bean.cs
查看文件 @
90ed911
...
@@ -291,5 +291,22 @@ namespace OnlineStore.Common
...
@@ -291,5 +291,22 @@ namespace OnlineStore.Common
public
static
string
disable
=
"disable"
;
public
static
string
disable
=
"disable"
;
public
static
string
queueTaskCount
=
"queueTaskCount"
;
public
static
string
queueTaskCount
=
"queueTaskCount"
;
/// <summary>
/// 贴标机交互按钮,出口 满料串取出
/// </summary>
public
static
string
SendFullShelf
=
"SendFullShelf"
;
/// <summary>
/// 贴标机交互按钮,出口 空料串送入
/// </summary>
public
static
string
NeedEmptySHelf
=
"NeedEmptySHelf"
;
/// <summary>
/// 贴标机交互按钮,入口 满料串送入
/// </summary>
public
static
string
NeedFullShelf
=
"NeedFullShelf"
;
/// <summary>
/// 贴标机交互按钮,入口 空料串取出
/// </summary>
public
static
string
SendEmptyShelf
=
"SendEmptyShelf"
;
}
}
}
}
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
查看文件 @
90ed911
此文件的差异被折叠,
点击展开。
DeviceLibrary/theMachine/BoxTransport.cs
查看文件 @
90ed911
...
@@ -210,6 +210,7 @@ namespace DeviceLibrary
...
@@ -210,6 +210,7 @@ namespace DeviceLibrary
break
;
break
;
case
MoveStep
.
StoreFIX04
:
case
MoveStep
.
StoreFIX04
:
MoveInfo
.
NextMoveStep
(
MoveStep
.
StoreFIX05
);
MoveInfo
.
NextMoveStep
(
MoveStep
.
StoreFIX05
);
RobotManage
.
PutReelInFixPos
(
MoveInfo
.
MoveParam
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
break
;
break
;
case
MoveStep
.
StoreFIX05
:
case
MoveStep
.
StoreFIX05
:
...
@@ -226,6 +227,7 @@ namespace DeviceLibrary
...
@@ -226,6 +227,7 @@ namespace DeviceLibrary
break
;
break
;
case
MoveStep
.
StoreTS10
:
case
MoveStep
.
StoreTS10
:
MoveInfo
.
NextMoveStep
(
MoveStep
.
StoreTS11
);
MoveInfo
.
NextMoveStep
(
MoveStep
.
StoreTS11
);
RobotManage
.
ClearReelInFixPos
();
Middle_Axis
.
AbsMove
(
MoveInfo
,
To
.
Middle_P2
,
Config
.
Middle_P2_speed
);
Middle_Axis
.
AbsMove
(
MoveInfo
,
To
.
Middle_P2
,
Config
.
Middle_P2_speed
);
MoveInfo
.
log
(
$
"{storeMoveType}:行走机构到达目的地:{To.Middle_P2}"
);
MoveInfo
.
log
(
$
"{storeMoveType}:行走机构到达目的地:{To.Middle_P2}"
);
UpDown_Axis
.
AbsMove
(
MoveInfo
,
To
.
UpDown_PH
,
Config
.
UpDown_P1_speed
);
UpDown_Axis
.
AbsMove
(
MoveInfo
,
To
.
UpDown_PH
,
Config
.
UpDown_P1_speed
);
...
...
DeviceLibrary/theMachine/MainMachine.cs
查看文件 @
90ed911
...
@@ -535,6 +535,17 @@ namespace DeviceLibrary
...
@@ -535,6 +535,17 @@ namespace DeviceLibrary
ServerCM
.
storeStatus
=
StoreStatus
.
OutStoreExecute
;
ServerCM
.
storeStatus
=
StoreStatus
.
OutStoreExecute
;
CloseFlipDoor
(
StoreMoveInfo
);
CloseFlipDoor
(
StoreMoveInfo
);
}
}
else
if
((
RobotManage
.
HasReelInFixPos
(
out
ReelParam
reelParam
))
&&
boxTransport
.
IsComplateOrFree
&&
ClampMoveInfo
.
MoveStep
==
MoveStep
.
Wait
&&
ConfigHelper
.
Config
.
Get
(
"Device_Use_Fixpos"
,
false
))
{
StoreMoveInfo
.
NewMove
(
MoveStep
.
StoreOut_NGPre
);
StoreMoveInfo
.
MoveParam
=
reelParam
.
clone
();
StoreMoveInfo
.
MoveParam
.
PosID
=
"NG"
;
StoreMoveInfo
.
MoveParam
.
IsNg
=
true
;
StoreMoveInfo
.
MoveParam
.
NgMsg
=
"检测到校准库位有料盘信息,请人工确认"
;
StoreMoveInfo
.
log
(
$
"开始校准库位料盘出库"
);
ServerCM
.
storeStatus
=
StoreStatus
.
OutStoreExecute
;
CloseFlipDoor
(
StoreMoveInfo
);
}
runStatus
=
RunStatus
.
Running
;
runStatus
=
RunStatus
.
Running
;
ServerCM
.
storeStatus
=
StoreStatus
.
StoreOnline
;
ServerCM
.
storeStatus
=
StoreStatus
.
StoreOnline
;
break
;
break
;
...
...
DeviceLibrary/theMachine/MainMachine_Store.cs
查看文件 @
90ed911
...
@@ -16,8 +16,9 @@ namespace DeviceLibrary
...
@@ -16,8 +16,9 @@ namespace DeviceLibrary
StoreJobList
OutStoreJobList
=
new
StoreJobList
(
$
"批量"
);
StoreJobList
OutStoreJobList
=
new
StoreJobList
(
$
"批量"
);
StoreJobList
OutSingleJobList
=
new
StoreJobList
(
$
"单盘"
);
StoreJobList
OutSingleJobList
=
new
StoreJobList
(
$
"单盘"
);
public
void
AddOutStoreTask
(
string
posId
,
int
plateW
,
int
plateH
)
{
public
void
AddOutStoreTask
(
string
posId
,
int
plateW
,
int
plateH
)
JobInfo
jobInfo
=
new
JobInfo
(
""
,
posId
,
plateW
,
plateH
);
{
JobInfo
jobInfo
=
new
JobInfo
(
""
,
posId
,
plateW
,
plateH
);
OutStoreJobList
.
Enqueue
(
jobInfo
);
OutStoreJobList
.
Enqueue
(
jobInfo
);
LogUtil
.
info
(
$
"添加出库任务队列: {posId},当前任务数量: {OutStoreJobList.Count}"
);
LogUtil
.
info
(
$
"添加出库任务队列: {posId},当前任务数量: {OutStoreJobList.Count}"
);
}
}
...
@@ -63,11 +64,11 @@ namespace DeviceLibrary
...
@@ -63,11 +64,11 @@ namespace DeviceLibrary
if
(!
boxTransport
.
IgnoreX09
&&
IOMonitor
.
IODebound
(
IO_Type
.
TrayCheck_Fixture
,
Config
,
IO_VALUE
.
HIGH
,
1000
))
if
(!
boxTransport
.
IgnoreX09
&&
IOMonitor
.
IODebound
(
IO_Type
.
TrayCheck_Fixture
,
Config
,
IO_VALUE
.
HIGH
,
1000
))
{
{
Msg
.
add
(
crc
.
GetString
(
"Res0004"
,
"收到出库任务,但料叉上有料,无法启动,请检查"
),
MsgLevel
.
alarm
,
ErrInfo
.
X09_BoxNotDetect
);
Msg
.
add
(
crc
.
GetString
(
"Res0004"
,
"收到出库任务,但料叉上有料,无法启动,请检查"
),
MsgLevel
.
alarm
,
ErrInfo
.
X09_BoxNotDetect
);
//RobotManage.UserPause("收到出库任务,但料叉上有料,无法启动,请检查");
//RobotManage.UserPause("收到出库任务,但料叉上有料,无法启动,请检查");
}
}
else
else
Msg
.
add
(
crc
.
GetString
(
"Res0004"
,
"收到出库任务,但料叉上有料,无法启动,请检查"
),
MsgLevel
.
warning
);
Msg
.
add
(
crc
.
GetString
(
"Res0004"
,
"收到出库任务,但料叉上有料,无法启动,请检查"
),
MsgLevel
.
warning
);
return
;
return
;
}
}
else
else
...
@@ -87,18 +88,18 @@ namespace DeviceLibrary
...
@@ -87,18 +88,18 @@ namespace DeviceLibrary
}
}
}
}
//判断有没有出库任务, 需要入库空闲, 出口空闲
//判断有没有出库任务, 需要入库空闲, 出口空闲
else
if
(
OutStoreJobList
.
Count
>
0
&&
boxTransport
.
IsComplateOrFree
)
else
if
(
OutStoreJobList
.
Count
>
0
&&
boxTransport
.
IsComplateOrFree
)
{
{
if
(!
boxTransport
.
IgnoreX09
&&
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
HIGH
))
if
(!
boxTransport
.
IgnoreX09
&&
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
HIGH
))
{
{
if
(!
boxTransport
.
IgnoreX09
&&
IOMonitor
.
IODebound
(
IO_Type
.
TrayCheck_Fixture
,
Config
,
IO_VALUE
.
HIGH
,
1000
))
if
(!
boxTransport
.
IgnoreX09
&&
IOMonitor
.
IODebound
(
IO_Type
.
TrayCheck_Fixture
,
Config
,
IO_VALUE
.
HIGH
,
1000
))
{
{
Msg
.
add
(
crc
.
GetString
(
"Res0004"
,
"收到出库任务,但料叉上有料,无法启动,请检查"
),
MsgLevel
.
alarm
,
ErrInfo
.
X09_BoxNotDetect
);
Msg
.
add
(
crc
.
GetString
(
"Res0004"
,
"收到出库任务,但料叉上有料,无法启动,请检查"
),
MsgLevel
.
alarm
,
ErrInfo
.
X09_BoxNotDetect
);
//RobotManage.UserPause("收到出库任务,但料叉上有料,无法启动,请检查");
//RobotManage.UserPause("收到出库任务,但料叉上有料,无法启动,请检查");
}
}
else
else
Msg
.
add
(
crc
.
GetString
(
"Res0004"
,
"收到出库任务,但料叉上有料,无法启动,请检查"
),
MsgLevel
.
warning
);
Msg
.
add
(
crc
.
GetString
(
"Res0004"
,
"收到出库任务,但料叉上有料,无法启动,请检查"
),
MsgLevel
.
warning
);
return
;
return
;
}
}
else
else
...
@@ -110,7 +111,7 @@ namespace DeviceLibrary
...
@@ -110,7 +111,7 @@ namespace DeviceLibrary
StoreMoveInfo
.
MoveParam
.
PosID
=
jobInfo
.
PosId
;
StoreMoveInfo
.
MoveParam
.
PosID
=
jobInfo
.
PosId
;
StoreMoveInfo
.
MoveParam
.
PlateH
=
jobInfo
.
plateH
;
StoreMoveInfo
.
MoveParam
.
PlateH
=
jobInfo
.
plateH
;
StoreMoveInfo
.
MoveParam
.
PlateW
=
jobInfo
.
plateW
;
StoreMoveInfo
.
MoveParam
.
PlateW
=
jobInfo
.
plateW
;
StoreMoveInfo
.
log
(
$
"开始出库任务:"
+
jobInfo
.
ToStr
());
StoreMoveInfo
.
log
(
$
"开始出库任务:"
+
jobInfo
.
ToStr
());
ServerCM
.
storeStatus
=
StoreStatus
.
OutStoreExecute
;
ServerCM
.
storeStatus
=
StoreStatus
.
OutStoreExecute
;
}
}
}
}
...
@@ -118,13 +119,13 @@ namespace DeviceLibrary
...
@@ -118,13 +119,13 @@ namespace DeviceLibrary
case
MoveStep
.
StoreIn01
:
case
MoveStep
.
StoreIn01
:
if
(!
ServerCM
.
SendStoreState
(
StoreMoveInfo
.
MoveParam
.
PosID
,
StoreStatus
.
InStoreExecute
))
if
(!
ServerCM
.
SendStoreState
(
StoreMoveInfo
.
MoveParam
.
PosID
,
StoreStatus
.
InStoreExecute
))
{
{
Msg
.
add
(
crc
.
GetString
(
"Res0008"
,
"服务器连接异常"
),
MsgLevel
.
warning
);
Msg
.
add
(
crc
.
GetString
(
"Res0008"
,
"服务器连接异常"
),
MsgLevel
.
warning
);
return
;
return
;
}
}
StoreMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreIn03
);
StoreMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreIn03
);
var
ac
=
CSVPositionReader
<
ACStorePosition
>.
GetPositon
(
StoreMoveInfo
.
MoveParam
.
PosID
);
var
ac
=
CSVPositionReader
<
ACStorePosition
>.
GetPositon
(
StoreMoveInfo
.
MoveParam
.
PosID
);
boxTransport
.
Start
(
new
BoxStorePosition
(
Config
,
StoreSide
.
NGDoor
,
StoreMoveInfo
.
MoveParam
),
new
BoxStorePosition
(
Config
,
ac
,
StoreMoveInfo
.
MoveParam
),
StoreMoveType
.
InStore
,
true
);
boxTransport
.
Start
(
new
BoxStorePosition
(
Config
,
StoreSide
.
NGDoor
,
StoreMoveInfo
.
MoveParam
),
new
BoxStorePosition
(
Config
,
ac
,
StoreMoveInfo
.
MoveParam
),
StoreMoveType
.
InStore
,
true
);
StoreMoveInfo
.
log
(
$
"开始转运料盘"
);
StoreMoveInfo
.
log
(
$
"开始转运料盘"
);
break
;
break
;
case
MoveStep
.
StoreIn02
:
case
MoveStep
.
StoreIn02
:
break
;
break
;
...
@@ -145,12 +146,12 @@ namespace DeviceLibrary
...
@@ -145,12 +146,12 @@ namespace DeviceLibrary
{
{
if
(!
ServerCM
.
SendStoreState
(
StoreMoveInfo
.
MoveParam
.
PosID
,
StoreStatus
.
InStoreEnd
))
if
(!
ServerCM
.
SendStoreState
(
StoreMoveInfo
.
MoveParam
.
PosID
,
StoreStatus
.
InStoreEnd
))
{
{
Msg
.
add
(
crc
.
GetString
(
"Res0008"
,
"服务器连接异常"
),
MsgLevel
.
warning
);
Msg
.
add
(
crc
.
GetString
(
"Res0008"
,
"服务器连接异常"
),
MsgLevel
.
warning
);
return
;
return
;
}
}
StoreMoveInfo
.
log
(
$
"料盘已到达目的地"
);
StoreMoveInfo
.
log
(
$
"料盘已到达目的地"
);
StoreMoveInfo
.
EndMove
();
StoreMoveInfo
.
EndMove
();
}
}
break
;
break
;
case
MoveStep
.
StoreOut_NGPre
:
case
MoveStep
.
StoreOut_NGPre
:
...
@@ -159,18 +160,18 @@ namespace DeviceLibrary
...
@@ -159,18 +160,18 @@ namespace DeviceLibrary
case
MoveStep
.
StoreOut10
:
case
MoveStep
.
StoreOut10
:
if
(!
ServerCM
.
SendStoreState
(
StoreMoveInfo
.
MoveParam
.
PosID
,
StoreStatus
.
OutStoreExecute
))
if
(!
ServerCM
.
SendStoreState
(
StoreMoveInfo
.
MoveParam
.
PosID
,
StoreStatus
.
OutStoreExecute
))
{
{
Msg
.
add
(
crc
.
GetString
(
"Res0008"
,
"服务器连接异常"
),
MsgLevel
.
warning
);
Msg
.
add
(
crc
.
GetString
(
"Res0008"
,
"服务器连接异常"
),
MsgLevel
.
warning
);
return
;
return
;
}
}
StoreMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreOut11
);
StoreMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreOut11
);
var
outFrom
=
CSVPositionReader
<
ACStorePosition
>.
GetPositon
(
StoreMoveInfo
.
MoveParam
.
PosID
);
var
outFrom
=
CSVPositionReader
<
ACStorePosition
>.
GetPositon
(
StoreMoveInfo
.
MoveParam
.
PosID
);
BoxStorePosition
outTo
;
BoxStorePosition
outTo
;
if
(
StoreMoveInfo
.
MoveParam
.
IsNg
)
if
(
StoreMoveInfo
.
MoveParam
.
IsNg
)
outTo
=
new
BoxStorePosition
(
Config
,
StoreSide
.
NGDoor
,
StoreMoveInfo
.
MoveParam
);
outTo
=
new
BoxStorePosition
(
Config
,
StoreSide
.
NGDoor
,
StoreMoveInfo
.
MoveParam
);
else
else
outTo
=
new
BoxStorePosition
(
Config
,
StoreSide
.
String
,
StoreMoveInfo
.
MoveParam
);
outTo
=
new
BoxStorePosition
(
Config
,
StoreSide
.
String
,
StoreMoveInfo
.
MoveParam
);
boxTransport
.
Start
(
outFrom
==
null
?
null
:
new
BoxStorePosition
(
Config
,
outFrom
,
StoreMoveInfo
.
MoveParam
),
outTo
,
StoreMoveType
.
OutStore
);
boxTransport
.
Start
(
outFrom
==
null
?
null
:
new
BoxStorePosition
(
Config
,
outFrom
,
StoreMoveInfo
.
MoveParam
),
outTo
,
StoreMoveType
.
OutStore
);
StoreMoveInfo
.
log
(
$
"开始转运料盘{(StoreMoveInfo.MoveParam.IsNg ? "
单料口
" : "
料串
")}"
);
StoreMoveInfo
.
log
(
$
"开始转运料盘{(StoreMoveInfo.MoveParam.IsNg ? "
单料口
" : "
料串
")}"
);
break
;
break
;
case
MoveStep
.
StoreOut11
:
case
MoveStep
.
StoreOut11
:
...
@@ -178,7 +179,7 @@ namespace DeviceLibrary
...
@@ -178,7 +179,7 @@ namespace DeviceLibrary
{
{
if
(!
ServerCM
.
SendStoreState
(
StoreMoveInfo
.
MoveParam
.
PosID
,
StoreStatus
.
OutStoreBoxEnd
))
if
(!
ServerCM
.
SendStoreState
(
StoreMoveInfo
.
MoveParam
.
PosID
,
StoreStatus
.
OutStoreBoxEnd
))
{
{
Msg
.
add
(
crc
.
GetString
(
"Res0008"
,
"服务器连接异常"
),
MsgLevel
.
warning
);
Msg
.
add
(
crc
.
GetString
(
"Res0008"
,
"服务器连接异常"
),
MsgLevel
.
warning
);
return
;
return
;
}
}
StoreMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreOut12
);
StoreMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreOut12
);
...
@@ -194,13 +195,13 @@ namespace DeviceLibrary
...
@@ -194,13 +195,13 @@ namespace DeviceLibrary
{
{
if
(!
ServerCM
.
SendStoreState
(
StoreMoveInfo
.
MoveParam
.
PosID
,
StoreStatus
.
OutStoreEnd
))
if
(!
ServerCM
.
SendStoreState
(
StoreMoveInfo
.
MoveParam
.
PosID
,
StoreStatus
.
OutStoreEnd
))
{
{
Msg
.
add
(
crc
.
GetString
(
"Res0008"
,
"服务器连接异常"
),
MsgLevel
.
warning
);
Msg
.
add
(
crc
.
GetString
(
"Res0008"
,
"服务器连接异常"
),
MsgLevel
.
warning
);
return
;
return
;
}
}
StoreMoveInfo
.
log
(
$
"料盘已到达目的地"
);
StoreMoveInfo
.
log
(
$
"料盘已到达目的地"
);
if
(
StoreMoveInfo
.
MoveParam
.
IsNg
)
if
(
StoreMoveInfo
.
MoveParam
.
IsNg
)
{
{
NGPuted
(
StoreMoveInfo
.
MoveParam
.
NgMsg
);
NGPuted
(
StoreMoveInfo
.
MoveParam
.
NgMsg
);
OutSingleJobList
.
ClearLastPosid
(
StoreMoveInfo
.
MoveParam
.
PosID
);
OutSingleJobList
.
ClearLastPosid
(
StoreMoveInfo
.
MoveParam
.
PosID
);
}
}
...
@@ -209,7 +210,7 @@ namespace DeviceLibrary
...
@@ -209,7 +210,7 @@ namespace DeviceLibrary
ReelPutted
(
StoreMoveInfo
.
MoveParam
.
PlateH
);
ReelPutted
(
StoreMoveInfo
.
MoveParam
.
PlateH
);
OutStoreJobList
.
ClearLastPosid
(
StoreMoveInfo
.
MoveParam
.
PosID
);
OutStoreJobList
.
ClearLastPosid
(
StoreMoveInfo
.
MoveParam
.
PosID
);
}
}
StoreMoveInfo
.
EndMove
();
StoreMoveInfo
.
EndMove
();
}
}
break
;
break
;
...
@@ -218,8 +219,9 @@ namespace DeviceLibrary
...
@@ -218,8 +219,9 @@ namespace DeviceLibrary
break
;
break
;
}
}
}
}
string
StoreState
()
{
string
StoreState
()
string
state
=
crc
.
GetString
(
L
.
free
,
"空闲中"
);
{
string
state
=
crc
.
GetString
(
L
.
free
,
"空闲中"
);
if
(
StoreMoveInfo
.
MoveStep
>=
MoveStep
.
StoreOut10
)
if
(
StoreMoveInfo
.
MoveStep
>=
MoveStep
.
StoreOut10
)
{
{
state
=
$
"{crc.GetString(L.reel_outting, "
出库中
")},{crc.GetString(L.posnum, "
出库中
")}:{StoreMoveInfo.MoveParam.PosID}"
;
state
=
$
"{crc.GetString(L.reel_outting, "
出库中
")},{crc.GetString(L.posnum, "
出库中
")}:{StoreMoveInfo.MoveParam.PosID}"
;
...
...
DeviceLibrary/theMachine/RobotManage.cs
查看文件 @
90ed911
...
@@ -183,6 +183,34 @@ namespace DeviceLibrary
...
@@ -183,6 +183,34 @@ namespace DeviceLibrary
else
else
LogUtil
.
info
(
"用户取消忽略安全光栅"
);
LogUtil
.
info
(
"用户取消忽略安全光栅"
);
}
}
#
region
校准库位缓存
public
static
bool
HasReelInFixPos
(
out
ReelParam
reelParam
)
{
reelParam
=
null
;
try
{
string
fix
=
ConfigHelper
.
Config
.
Get
(
Setting_Init
.
FixBuffInfo
,
""
);
if
(!
string
.
IsNullOrEmpty
(
fix
))
{
reelParam
=
JsonHelper
.
DeserializeJsonToObject
<
ReelParam
>(
fix
);
return
true
;
}
}
catch
(
Exception
e
)
{
LogUtil
.
error
(
"解析校准库位缓存异常"
,
e
);
}
return
false
;
}
public
static
void
PutReelInFixPos
(
ReelParam
reelParam
)
{
ConfigHelper
.
Config
.
Set
(
Setting_Init
.
FixBuffInfo
,
JsonHelper
.
SerializeObject
(
reelParam
));
}
public
static
void
ClearReelInFixPos
()
{
ConfigHelper
.
Config
.
Set
(
Setting_Init
.
FixBuffInfo
,
""
);
}
#
endregion
}
}
public
enum
StoreType
{
public
enum
StoreType
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论