Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO908-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit dd44844a
由
张东亮
编写于
2022-01-13 09:55:44 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
轴判断到位条件改为空闲且到位
1 个父辈
27cb6186
全部展开
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
93 行增加
和
53 行删除
source/DeviceLibrary/baan/AxisBean.cs
source/DeviceLibrary/deviceLibrary/AXIS/AxisManager.cs
source/DeviceLibrary/deviceLibrary/AXIS/HC/HCAxisManager.cs
source/DeviceLibrary/storeBean/EquipBase.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_Partial.cs
source/XLRStoreClient/FrmXLRStore.Designer.cs
source/XLRStoreClient/boxForm/FrmAxisMove.Designer.cs
source/XLRStoreClient/boxForm/FrmBoxEquip.Designer.cs
source/XLRStoreClient/boxForm/SO908-XLRStore - 快捷方式.lnk
source/DeviceLibrary/baan/AxisBean.cs
查看文件 @
dd44844
...
@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
public
int
LastPosition
=
0
;
public
int
LastPosition
=
0
;
public
string
AxisName
;
public
string
AxisName
;
public
AxisBean
(
ConfigMoveAxis
axisConfig
,
string
deviceName
,
bool
needHome
=
false
)
public
AxisBean
(
ConfigMoveAxis
axisConfig
,
string
deviceName
,
bool
needHome
=
false
)
{
{
this
.
IsNeedHome
=
needHome
;
this
.
IsNeedHome
=
needHome
;
this
.
Config
=
axisConfig
;
this
.
Config
=
axisConfig
;
...
@@ -106,7 +106,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -106,7 +106,7 @@ namespace OnlineStore.DeviceLibrary
}
}
public
void
HomeMove
(
DeviceMoveInfo
MoveInfo
)
public
void
HomeMove
(
DeviceMoveInfo
MoveInfo
)
{
{
if
(
IsNeedHome
)
if
(
IsNeedHome
)
{
{
Config
.
TargetPosition
=
0
;
Config
.
TargetPosition
=
0
;
LogUtil
.
info
(
AxisName
+
"speed["
+
Config
.
TargetSpeed
+
"]开始原点返回"
);
LogUtil
.
info
(
AxisName
+
"speed["
+
Config
.
TargetSpeed
+
"]开始原点返回"
);
...
@@ -129,7 +129,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -129,7 +129,7 @@ namespace OnlineStore.DeviceLibrary
{
{
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitAxis
(
Config
,
targetPosition
,
targetSpeed
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitAxis
(
Config
,
targetPosition
,
targetSpeed
));
Config
.
TargetPosition
=
targetPosition
;
Config
.
TargetPosition
=
targetPosition
;
AxisManager
.
instance
.
AbsMove
(
Config
.
DeviceName
,
Config
.
GetAxisValue
(),
targetPosition
,
targetSpeed
,
Config
.
AddSpeed
,
Config
.
DelSpeed
);
AxisManager
.
instance
.
AbsMove
(
Config
.
DeviceName
,
Config
.
GetAxisValue
(),
targetPosition
,
targetSpeed
,
Config
.
AddSpeed
,
Config
.
DelSpeed
);
LogUtil
.
info
(
$
"{this.AxisName} AbsMove To [{targetPosition}] [speed={targetSpeed}]"
);
LogUtil
.
info
(
$
"{this.AxisName} AbsMove To [{targetPosition}] [speed={targetSpeed}]"
);
}
}
}
}
...
@@ -143,8 +143,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -143,8 +143,9 @@ namespace OnlineStore.DeviceLibrary
string
deviceName
=
axis
.
DeviceName
;
string
deviceName
=
axis
.
DeviceName
;
short
axisNo
=
axis
.
GetAxisValue
();
short
axisNo
=
axis
.
GetAxisValue
();
bool
isOk
=
AxisManager
.
instance
.
GetBusyStatus
(
deviceName
,
axisNo
).
Equals
(
0
);
bool
isOk
=
AxisManager
.
instance
.
GetBusyStatus
(
deviceName
,
axisNo
).
Equals
(
0
)
&&
AxisManager
.
instance
.
GetInPositionSingle
(
deviceName
,
axisNo
).
Equals
(
0
)
;
int
outCount
=
AxisManager
.
instance
.
GetActualtPosition
(
deviceName
,
axisNo
);
int
outCount
=
AxisManager
.
instance
.
GetActualtPosition
(
deviceName
,
axisNo
);
int
targetCount
=
AxisManager
.
instance
.
GetTargetPosition
(
deviceName
,
axisNo
);
int
errorCount
=
Math
.
Abs
(
outCount
-
targetPosition
);
int
errorCount
=
Math
.
Abs
(
outCount
-
targetPosition
);
if
(
isOk
)
if
(
isOk
)
{
{
...
@@ -158,8 +159,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -158,8 +159,9 @@ namespace OnlineStore.DeviceLibrary
//判断是否需要重新运动
//判断是否需要重新运动
if
(
alarm
.
Equals
(
1
))
if
(
alarm
.
Equals
(
1
))
{
{
msg
=
" "
+
MoveInfo
.
SLog
+
MoveInfo
.
Name
+
axis
.
DisplayStr
+
",目标位置["
+
targetPosition
+
"]当前位置["
+
outCount
//msg = " " + MoveInfo.SLog + MoveInfo.Name + axis.DisplayStr + ",目标位置[" + targetPosition + "]当前位置[" + outCount
+
"],误差过大且轴报警"
;
// + "],误差过大且轴报警";
msg
=
$
" {MoveInfo.SLog}{MoveInfo.Name}{axis.DisplayStr},目标位置[{targetPosition}]当前位置[{outCount}]规划位置[{targetCount}],误差过大且轴报警"
;
LogUtil
.
error
(
msg
,
600
);
LogUtil
.
error
(
msg
,
600
);
}
}
else
if
(
MoveInfo
.
CanWhileCount
>
0
&&
alarm
.
Equals
(
0
))
else
if
(
MoveInfo
.
CanWhileCount
>
0
&&
alarm
.
Equals
(
0
))
...
@@ -183,16 +185,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -183,16 +185,14 @@ namespace OnlineStore.DeviceLibrary
AxisManager
.
instance
.
SuddenStop
(
axis
.
DeviceName
,
axis
.
GetAxisValue
());
AxisManager
.
instance
.
SuddenStop
(
axis
.
DeviceName
,
axis
.
GetAxisValue
());
Thread
.
Sleep
(
100
);
Thread
.
Sleep
(
100
);
}
}
LogUtil
.
error
(
MoveInfo
.
Name
+
axis
.
DisplayStr
+
"目标位置["
+
targetPosition
+
"]当前位置["
+
outCount
+
LogUtil
.
error
(
$
"{MoveInfo.Name}{axis.DisplayStr}目标位置[{targetPosition}]当前位置[{outCount}]规划位置[{targetCount}],误差过大, {clearMsg}重新开始运动,剩余[{MoveInfo.CanWhileCount}]次"
);
"],误差过大,"
+
clearMsg
+
"重新开始运动,剩余["
+
MoveInfo
.
CanWhileCount
+
"]次"
);
AxisManager
.
instance
.
AbsMove
(
axis
.
DeviceName
,
axis
.
GetAxisValue
(),
targetPosition
,
targetSpeed
,
axis
.
AddSpeed
,
axis
.
DelSpeed
);
AxisManager
.
instance
.
AbsMove
(
axis
.
DeviceName
,
axis
.
GetAxisValue
(),
targetPosition
,
targetSpeed
,
axis
.
AddSpeed
,
axis
.
DelSpeed
);
MoveInfo
.
CanWhileCount
--;
MoveInfo
.
CanWhileCount
--;
Thread
.
Sleep
(
200
);
Thread
.
Sleep
(
200
);
}
}
else
else
{
{
msg
=
" "
+
MoveInfo
.
SLog
+
MoveInfo
.
Name
+
axis
.
DisplayStr
+
",目标位置["
+
targetPosition
+
"]当前位置["
+
outCount
msg
=
$
" {MoveInfo.SLog}{MoveInfo.Name}{axis.DisplayStr},目标位置[{targetPosition}]当前位置[{outCount}]规划位置[{targetCount}],误差过大,需要报警"
;
+
"],误差过大,需要报警"
;
LogUtil
.
error
(
msg
,
600
);
LogUtil
.
error
(
msg
,
600
);
}
}
}
}
...
@@ -224,12 +224,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -224,12 +224,12 @@ namespace OnlineStore.DeviceLibrary
{
{
LogUtil
.
error
(
MoveInfo
.
Name
+
axis
.
DisplayStr
+
"收到原点完成信号,当前位置["
+
outCount
+
"],重新回原点,剩余["
+
MoveInfo
.
CanWhileCount
+
"]次"
);
LogUtil
.
error
(
MoveInfo
.
Name
+
axis
.
DisplayStr
+
"收到原点完成信号,当前位置["
+
outCount
+
"],重新回原点,剩余["
+
MoveInfo
.
CanWhileCount
+
"]次"
);
//LogUtil.error( StoreName + moveAxis.DisplayStr + "重新回原点");
//LogUtil.error( StoreName + moveAxis.DisplayStr + "重新回原点");
AxisManager
.
instance
.
HomeMove
(
axis
.
DeviceName
,
axis
.
GetAxisValue
(),
axis
.
HomeHighSpeed
,
axis
.
HomeLowSpeed
,
axis
.
HomeAddSpeed
);
AxisManager
.
instance
.
HomeMove
(
axis
.
DeviceName
,
axis
.
GetAxisValue
(),
axis
.
HomeHighSpeed
,
axis
.
HomeLowSpeed
,
axis
.
HomeAddSpeed
);
MoveInfo
.
CanWhileCount
--;
MoveInfo
.
CanWhileCount
--;
}
}
else
else
{
{
msg
=
MoveInfo
.
Name
+
" "
+
MoveInfo
.
SLog
+
axis
.
DisplayStr
+
",收到原点完成信号,当前位置["
+
outCount
+
"],误差过大,需要报警"
;
msg
=
MoveInfo
.
Name
+
" "
+
MoveInfo
.
SLog
+
axis
.
DisplayStr
+
",收到原点完成信号,当前位置["
+
outCount
+
"],误差过大,需要报警"
;
LogUtil
.
error
(
msg
);
LogUtil
.
error
(
msg
);
}
}
}
}
...
@@ -238,10 +238,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -238,10 +238,10 @@ namespace OnlineStore.DeviceLibrary
public
int
GetAclPosition
()
public
int
GetAclPosition
()
{
{
int
p
=
AxisManager
.
instance
.
GetActualtPosition
(
Config
.
DeviceName
,
Config
.
GetAxisValue
());
int
p
=
AxisManager
.
instance
.
GetActualtPosition
(
Config
.
DeviceName
,
Config
.
GetAxisValue
());
return
p
;
return
p
;
}
}
public
bool
IsInPosition
(
int
targetP
,
int
canErrorMax
=
0
)
public
bool
IsInPosition
(
int
targetP
,
int
canErrorMax
=
0
)
{
{
if
(
canErrorMax
<=
0
)
if
(
canErrorMax
<=
0
)
{
{
...
...
source/DeviceLibrary/deviceLibrary/AXIS/AxisManager.cs
查看文件 @
dd44844
...
@@ -56,10 +56,20 @@ namespace OnlineStore.DeviceLibrary
...
@@ -56,10 +56,20 @@ namespace OnlineStore.DeviceLibrary
public
abstract
void
AbsMove
(
string
portName
,
short
slvAddr
,
int
targetPosition
,
int
targetSpeed
,
int
ptpAcc
,
int
ptpDec
);
public
abstract
void
AbsMove
(
string
portName
,
short
slvAddr
,
int
targetPosition
,
int
targetSpeed
,
int
ptpAcc
,
int
ptpDec
);
public
abstract
void
AlarmClear
(
string
portName
,
short
slvAddr
);
public
abstract
void
AlarmClear
(
string
portName
,
short
slvAddr
);
//public abstract int GetTargetPosition(string portName, short slvAddr);
/// <summary>
/// 编码器值
/// </summary>
/// <param name="portName"></param>
/// <param name="slvAddr"></param>
/// <returns></returns>
public
abstract
int
GetActualtPosition
(
string
portName
,
short
slvAddr
);
public
abstract
int
GetActualtPosition
(
string
portName
,
short
slvAddr
);
/// <summary>
/// 规划器值
/// </summary>
/// <param name="portName"></param>
/// <param name="slvAddr"></param>
/// <returns></returns>
public
abstract
int
GetTargetPosition
(
string
portName
,
short
slvAddr
);
public
abstract
int
GetAlarmStatus
(
string
portName
,
short
slvAddr
);
public
abstract
int
GetAlarmStatus
(
string
portName
,
short
slvAddr
);
public
abstract
int
GetBusyStatus
(
string
portName
,
short
slvAddr
);
public
abstract
int
GetBusyStatus
(
string
portName
,
short
slvAddr
);
...
@@ -75,6 +85,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -75,6 +85,12 @@ namespace OnlineStore.DeviceLibrary
/// 正极限
/// 正极限
/// </summary>
/// </summary>
public
abstract
int
GetLimitPositiveSingle
(
string
portName
,
short
slvAddr
);
public
abstract
int
GetLimitPositiveSingle
(
string
portName
,
short
slvAddr
);
/// <summary>
/// 到位信号
/// </summary>
/// <param name="portName"></param>
/// <param name="slvAddr"></param>
/// <returns></returns>
public
abstract
int
GetInPositionSingle
(
string
portName
,
short
slvAddr
);
}
}
}
}
source/DeviceLibrary/deviceLibrary/AXIS/HC/HCAxisManager.cs
查看文件 @
dd44844
...
@@ -49,12 +49,26 @@ namespace OnlineStore.DeviceLibrary
...
@@ -49,12 +49,26 @@ namespace OnlineStore.DeviceLibrary
{
{
}
}
/// <summary>
/// 获取编码器位置
/// </summary>
/// <param name="portName"></param>
/// <param name="slvAddr"></param>
/// <returns></returns>
public
override
int
GetActualtPosition
(
string
portName
,
short
slvAddr
)
public
override
int
GetActualtPosition
(
string
portName
,
short
slvAddr
)
{
{
return
(
int
)
HCBoardManager
.
GetAxisCurrPos
(
slvAddr
);
return
(
int
)
HCBoardManager
.
GetAxisCurrPos
(
slvAddr
);
}
}
/// <summary>
/// 获取规划器位置
/// </summary>
/// <param name="portName"></param>
/// <param name="slvAddr"></param>
/// <returns></returns>
public
override
int
GetTargetPosition
(
string
portName
,
short
slvAddr
)
{
return
(
int
)
HCBoardManager
.
GetAxisPrfPos
(
slvAddr
);
}
public
override
int
GetAlarmStatus
(
string
portName
,
short
slvAddr
)
public
override
int
GetAlarmStatus
(
string
portName
,
short
slvAddr
)
{
{
AxisSts
axisS
=
HCBoardManager
.
GetAxisSts
(
slvAddr
);
AxisSts
axisS
=
HCBoardManager
.
GetAxisSts
(
slvAddr
);
...
@@ -88,12 +102,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -88,12 +102,11 @@ namespace OnlineStore.DeviceLibrary
AxisSts
axisS
=
HCBoardManager
.
GetAxisSts
(
slvAddr
);
AxisSts
axisS
=
HCBoardManager
.
GetAxisSts
(
slvAddr
);
return
axisS
.
PEL
;
return
axisS
.
PEL
;
}
}
public
override
int
GetInPositionSingle
(
string
portName
,
short
slvAddr
)
//public override int GetTargetPosition(string portName, short slvAddr)
{
//{
AxisSts
axisS
=
HCBoardManager
.
GetAxisSts
(
slvAddr
);
// return (int)HCBoardManager.GetAxisPrfPos(slvAddr);
return
axisS
.
INP
;
//}
}
public
override
void
HomeMove
(
string
portName
,
short
slvAddr
,
int
highVel
,
int
lowVel
,
int
acc
)
public
override
void
HomeMove
(
string
portName
,
short
slvAddr
,
int
highVel
,
int
lowVel
,
int
acc
)
{
{
HCBoardManager
.
StartHomeMove
(
slvAddr
,(
uint
)
highVel
,
(
uint
)
lowVel
,
(
uint
)
acc
);
HCBoardManager
.
StartHomeMove
(
slvAddr
,(
uint
)
highVel
,
(
uint
)
lowVel
,
(
uint
)
acc
);
...
...
source/DeviceLibrary/storeBean/EquipBase.cs
查看文件 @
dd44844
...
@@ -18,7 +18,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -18,7 +18,7 @@ namespace OnlineStore.DeviceLibrary
public
bool
IsDebug
=
false
;
public
bool
IsDebug
=
false
;
public
bool
MoveStop
=
false
;
public
bool
MoveStop
=
false
;
protected
int
TimerMaxSeconds
=
3
;
protected
int
TimerMaxSeconds
=
3
;
public
bool
AxisAlarmFlag
=
false
;
//轴报警异常标识
protected
void
SetAllTimer
(
bool
open
)
protected
void
SetAllTimer
(
bool
open
)
{
{
...
@@ -62,6 +62,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -62,6 +62,7 @@ namespace OnlineStore.DeviceLibrary
if
(
alarmType
.
Equals
(
AlarmType
.
SuddenStop
)
||
alarmType
.
Equals
(
AlarmType
.
NoAirpressure_Check
)
||
if
(
alarmType
.
Equals
(
AlarmType
.
SuddenStop
)
||
alarmType
.
Equals
(
AlarmType
.
NoAirpressure_Check
)
||
alarmType
.
Equals
(
AlarmType
.
AxisAlarm
)
||
alarmType
.
Equals
(
AlarmType
.
AxisMoveError
))
alarmType
.
Equals
(
AlarmType
.
AxisAlarm
)
||
alarmType
.
Equals
(
AlarmType
.
AxisMoveError
))
{
{
AxisAlarmFlag
=
true
;
StopMove
();
StopMove
();
}
}
}
}
...
@@ -311,23 +312,16 @@ namespace OnlineStore.DeviceLibrary
...
@@ -311,23 +312,16 @@ namespace OnlineStore.DeviceLibrary
}
}
else
else
{
{
//if(wait.AxisInfo.DeviceName.Equals("移栽升降轴"))
//{
// string deviceName = wait.AxisInfo.DeviceName;
// short axisNo = wait.AxisInfo.GetAxisValue();
// int outCount = AxisManager.instance.GetActualtPosition(deviceName, axisNo);
// LogInfo($"移栽升降轴 目标位置:{wait.TargetPosition},当前位置:{outCount}");
//}
wait
.
IsEnd
=
AxisBean
.
ACAxisMoveIsEnd
(
moveInfo
,
wait
.
AxisInfo
,
wait
.
TargetPosition
,
wait
.
TargetSpeed
,
out
msg
);
wait
.
IsEnd
=
AxisBean
.
ACAxisMoveIsEnd
(
moveInfo
,
wait
.
AxisInfo
,
wait
.
TargetPosition
,
wait
.
TargetSpeed
,
out
msg
);
try
try
{
{
if
(
wait
.
AxisInfo
.
DeviceName
.
Equals
(
"料斗拉取进出轴"
))
if
(
wait
.
AxisInfo
.
Explain
.
Equals
(
"料斗拉取进出轴"
))
{
{
short
axisNo
=
wait
.
AxisInfo
.
GetAxisValue
();
short
axisNo
=
wait
.
AxisInfo
.
GetAxisValue
();
preTor
=
curTor
;
preTor
=
curTor
;
curTor
=
((
HCAxisManager
)
AxisManager
.
instance
).
GetAxActTorq
(
axisNo
);
curTor
=
((
HCAxisManager
)
AxisManager
.
instance
).
GetAxActTorq
(
axisNo
);
if
(!
preTor
.
Equals
(
curTor
))
if
(!
preTor
.
Equals
(
curTor
))
Log
I
nfo
(
$
"料斗拉取进出轴 扭矩:{curTor}"
);
Log
Util
.
i
nfo
(
$
"料斗拉取进出轴 扭矩:{curTor}"
);
}
}
}
}
catch
(
Exception
e
)
catch
(
Exception
e
)
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
查看文件 @
dd44844
...
@@ -269,9 +269,25 @@ namespace OnlineStore.DeviceLibrary
...
@@ -269,9 +269,25 @@ namespace OnlineStore.DeviceLibrary
#
region
复位处理
#
region
复位处理
private
bool
CanReset
()
{
if
(!
AxisAlarmFlag
&&
(
PullAxis_Inout
.
IsInPosition
(
Config
.
PullAxis_Inout_CamA
)
||
PullAxis_Inout
.
IsInPosition
(
Config
.
PullAxis_Inout_CamB
)||
PullAxis_Inout
.
IsInPosition
(
Config
.
PullAxis_Inout_P1
)))
return
true
;
return
false
;
}
private
void
StartReset
()
private
void
StartReset
()
{
{
if
(!
CanReset
())
if
(
System
.
Windows
.
Forms
.
MessageBox
.
Show
(
"检测到可能的撞机风险,请确认进出轴上是否有抽屉!若无抽屉在进出轴上,可继续复位,是否继续?"
,
"警告"
,
System
.
Windows
.
Forms
.
MessageBoxButtons
.
YesNo
).
Equals
(
System
.
Windows
.
Forms
.
DialogResult
.
No
))
{
SetBoxStatus
(
DeviceStatus
.
None
,
RunStatus
.
Wait
);
MoveInfo
.
NewMove
(
MoveType
.
None
);
LogInfo
(
$
"复位 {MoveInfo.SLog} :确认取消"
);
return
;
}
SetWarnMsg
(
""
);
SetWarnMsg
(
""
);
alarmType
=
AlarmType
.
None
;
alarmType
=
AlarmType
.
None
;
isInSuddenDown
=
false
;
isInSuddenDown
=
false
;
...
@@ -388,14 +404,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -388,14 +404,14 @@ namespace OnlineStore.DeviceLibrary
}
}
else
else
{
{
if
(
resetRtnA
)
if
(
resetRtnA
)
{
{
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
.
Replace
(
"BB"
,
"AA"
);
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
.
Replace
(
"BB"
,
"AA"
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H003_PullAxis_InoutToP2P4
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H003_PullAxis_InoutToP2P4
);
LogInfo
(
$
"复位 {MoveInfo.SLog}:视觉检测到抽屉在轴上,推到抽屉提取点,料斗拉取进出轴到料屉提取点P2"
);
LogInfo
(
$
"复位 {MoveInfo.SLog}:视觉检测到抽屉在轴上,推到抽屉提取点,料斗拉取进出轴到料屉提取点P2"
);
PullAxis_Inout_To_P2_P4
();
PullAxis_Inout_To_P2_P4
();
}
}
else
if
(
resetRtnB
)
else
if
(
resetRtnB
)
{
{
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
.
Replace
(
"AA"
,
"BB"
);
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
.
Replace
(
"AA"
,
"BB"
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H003_PullAxis_InoutToP2P4
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H003_PullAxis_InoutToP2P4
);
...
@@ -760,7 +776,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -760,7 +776,7 @@ namespace OnlineStore.DeviceLibrary
return
;
return
;
}
}
}
}
else
if
(
CheckAOutDoor
())
else
if
(
CheckAOutDoor
())
{
{
InOutParam
param
=
null
;
InOutParam
param
=
null
;
bool
result
=
waitAOutStoreList
.
TryDequeue
(
out
param
);
bool
result
=
waitAOutStoreList
.
TryDequeue
(
out
param
);
...
@@ -774,7 +790,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -774,7 +790,7 @@ namespace OnlineStore.DeviceLibrary
}
}
if
(
waitBOutStoreList
.
Count
>
0
)
//
if
(
waitBOutStoreList
.
Count
>
0
)
//
{
{
if
(
CloseOutStoreCheck
)
if
(
CloseOutStoreCheck
)
{
{
InOutParam
param
=
null
;
InOutParam
param
=
null
;
bool
result
=
waitBOutStoreList
.
TryDequeue
(
out
param
);
bool
result
=
waitBOutStoreList
.
TryDequeue
(
out
param
);
...
@@ -785,7 +801,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -785,7 +801,7 @@ namespace OnlineStore.DeviceLibrary
return
;
return
;
}
}
}
}
else
if
(
CheckBOutDoor
())
else
if
(
CheckBOutDoor
())
{
{
InOutParam
param
=
null
;
InOutParam
param
=
null
;
bool
result
=
waitBOutStoreList
.
TryDequeue
(
out
param
);
bool
result
=
waitBOutStoreList
.
TryDequeue
(
out
param
);
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_Partial.cs
查看文件 @
dd44844
...
@@ -892,6 +892,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -892,6 +892,7 @@ namespace OnlineStore.DeviceLibrary
IgnoreCamDect
=
false
;
IgnoreCamDect
=
false
;
SetBoxStatus
(
DeviceStatus
.
InStoreExecute
,
RunStatus
.
Busy
,
param
.
PosInfo
.
PosId
,
param
.
PosInfo
.
barcode
);
SetBoxStatus
(
DeviceStatus
.
InStoreExecute
,
RunStatus
.
Busy
,
param
.
PosInfo
.
PosId
,
param
.
PosInfo
.
barcode
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
SI_00_StartInstore
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
SI_00_StartInstore
);
AxisAlarmFlag
=
false
;
return
true
;
return
true
;
}
}
...
@@ -1049,7 +1050,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1049,7 +1050,7 @@ namespace OnlineStore.DeviceLibrary
||
!
runStatus
.
Equals
(
RunStatus
.
Runing
)
||
!
runStatus
.
Equals
(
RunStatus
.
Runing
)
||
!
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
None
))
||
!
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
None
))
{
{
SetWarnMsg
(
Name
+
" 启动出库【"
+
param
.
PosInfo
.
ToStr
()
+
"】失败,忙碌或报警中 ,storeStatus:"
+
runStatus
+
",MoveType:"
+
MoveInfo
.
MoveType
+
",isInSuddenDown:"
+
isInSuddenDown
+
",isNoAirCheck:"
+
isNoAirpressure_Check
);
LogUtil
.
error
(
Name
+
" 启动出库【"
+
param
.
PosInfo
.
ToStr
()
+
"】失败,忙碌或报警中 ,storeStatus:"
+
runStatus
+
",MoveType:"
+
MoveInfo
.
MoveType
+
",isInSuddenDown:"
+
isInSuddenDown
+
",isNoAirCheck:"
+
isNoAirpressure_Check
);
return
false
;
return
false
;
}
}
...
@@ -1066,7 +1067,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1066,7 +1067,7 @@ namespace OnlineStore.DeviceLibrary
LogInfo
(
"LoadInoutParam:"
+
JsonHelper
.
SerializeObject
(
param
.
MoveP
));
LogInfo
(
"LoadInoutParam:"
+
JsonHelper
.
SerializeObject
(
param
.
MoveP
));
IgnoreCamDect
=
false
;
IgnoreCamDect
=
false
;
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_00_StartOutstore
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_00_StartOutstore
);
AxisAlarmFlag
=
false
;
return
true
;
return
true
;
}
}
...
...
source/XLRStoreClient/FrmXLRStore.Designer.cs
查看文件 @
dd44844
此文件的差异被折叠,
点击展开。
source/XLRStoreClient/boxForm/FrmAxisMove.Designer.cs
查看文件 @
dd44844
...
@@ -758,7 +758,7 @@
...
@@ -758,7 +758,7 @@
this
.
tabPage6
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage6
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage6
.
Name
=
"tabPage6"
;
this
.
tabPage6
.
Name
=
"tabPage6"
;
this
.
tabPage6
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage6
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage6
.
Size
=
new
System
.
Drawing
.
Size
(
1637
,
35
0
);
this
.
tabPage6
.
Size
=
new
System
.
Drawing
.
Size
(
1637
,
35
2
);
this
.
tabPage6
.
TabIndex
=
2
;
this
.
tabPage6
.
TabIndex
=
2
;
this
.
tabPage6
.
Text
=
"B面移栽"
;
this
.
tabPage6
.
Text
=
"B面移栽"
;
this
.
tabPage6
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage6
.
UseVisualStyleBackColor
=
true
;
...
@@ -978,7 +978,7 @@
...
@@ -978,7 +978,7 @@
this
.
groupBox13
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
groupBox13
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
groupBox13
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
groupBox13
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
groupBox13
.
Name
=
"groupBox13"
;
this
.
groupBox13
.
Name
=
"groupBox13"
;
this
.
groupBox13
.
Size
=
new
System
.
Drawing
.
Size
(
984
,
26
4
);
this
.
groupBox13
.
Size
=
new
System
.
Drawing
.
Size
(
984
,
26
3
);
this
.
groupBox13
.
TabIndex
=
2
;
this
.
groupBox13
.
TabIndex
=
2
;
this
.
groupBox13
.
TabStop
=
false
;
this
.
groupBox13
.
TabStop
=
false
;
this
.
groupBox13
.
Text
=
"库位位置信息"
;
this
.
groupBox13
.
Text
=
"库位位置信息"
;
...
@@ -1259,10 +1259,10 @@
...
@@ -1259,10 +1259,10 @@
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage3
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage3
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage7
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage7
);
this
.
tabControl1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
tabControl1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
41
8
);
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
41
9
);
this
.
tabControl1
.
Name
=
"tabControl1"
;
this
.
tabControl1
.
Name
=
"tabControl1"
;
this
.
tabControl1
.
SelectedIndex
=
0
;
this
.
tabControl1
.
SelectedIndex
=
0
;
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
998
,
300
);
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
998
,
299
);
this
.
tabControl1
.
TabIndex
=
3
;
this
.
tabControl1
.
TabIndex
=
3
;
//
//
// tabPage1
// tabPage1
...
@@ -1271,7 +1271,7 @@
...
@@ -1271,7 +1271,7 @@
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage1
.
Name
=
"tabPage1"
;
this
.
tabPage1
.
Name
=
"tabPage1"
;
this
.
tabPage1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
990
,
2
70
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
990
,
2
69
);
this
.
tabPage1
.
TabIndex
=
0
;
this
.
tabPage1
.
TabIndex
=
0
;
this
.
tabPage1
.
Text
=
"公共位置信息"
;
this
.
tabPage1
.
Text
=
"公共位置信息"
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
...
@@ -1282,7 +1282,7 @@
...
@@ -1282,7 +1282,7 @@
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage2
.
Name
=
"tabPage2"
;
this
.
tabPage2
.
Name
=
"tabPage2"
;
this
.
tabPage2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
990
,
2
70
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
990
,
2
69
);
this
.
tabPage2
.
TabIndex
=
1
;
this
.
tabPage2
.
TabIndex
=
1
;
this
.
tabPage2
.
Text
=
"库位相关位置信息"
;
this
.
tabPage2
.
Text
=
"库位相关位置信息"
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
...
@@ -1753,7 +1753,7 @@
...
@@ -1753,7 +1753,7 @@
this
.
tableLayoutPanel2
.
Name
=
"tableLayoutPanel2"
;
this
.
tableLayoutPanel2
.
Name
=
"tableLayoutPanel2"
;
this
.
tableLayoutPanel2
.
RowCount
=
1
;
this
.
tableLayoutPanel2
.
RowCount
=
1
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
50F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
50F
));
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
998
,
4
09
);
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
998
,
4
10
);
this
.
tableLayoutPanel2
.
TabIndex
=
4
;
this
.
tableLayoutPanel2
.
TabIndex
=
4
;
//
//
// axisMoveControl1
// axisMoveControl1
...
@@ -1771,7 +1771,7 @@
...
@@ -1771,7 +1771,7 @@
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
503
,
3
);
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
503
,
3
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
492
,
40
3
);
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
492
,
40
4
);
this
.
panel1
.
TabIndex
=
6
;
this
.
panel1
.
TabIndex
=
6
;
//
//
// groupBox23
// groupBox23
...
...
source/XLRStoreClient/boxForm/FrmBoxEquip.Designer.cs
查看文件 @
dd44844
...
@@ -437,7 +437,7 @@
...
@@ -437,7 +437,7 @@
this
.
btnIgnoreCam
.
Name
=
"btnIgnoreCam"
;
this
.
btnIgnoreCam
.
Name
=
"btnIgnoreCam"
;
this
.
btnIgnoreCam
.
Size
=
new
System
.
Drawing
.
Size
(
166
,
42
);
this
.
btnIgnoreCam
.
Size
=
new
System
.
Drawing
.
Size
(
166
,
42
);
this
.
btnIgnoreCam
.
TabIndex
=
281
;
this
.
btnIgnoreCam
.
TabIndex
=
281
;
this
.
btnIgnoreCam
.
Text
=
"忽略相机检测
料
屉"
;
this
.
btnIgnoreCam
.
Text
=
"忽略相机检测
抽
屉"
;
this
.
btnIgnoreCam
.
UseVisualStyleBackColor
=
false
;
this
.
btnIgnoreCam
.
UseVisualStyleBackColor
=
false
;
this
.
btnIgnoreCam
.
Visible
=
false
;
this
.
btnIgnoreCam
.
Visible
=
false
;
this
.
btnIgnoreCam
.
Click
+=
new
System
.
EventHandler
(
this
.
btnIgnoreCam_Click
);
this
.
btnIgnoreCam
.
Click
+=
new
System
.
EventHandler
(
this
.
btnIgnoreCam_Click
);
...
...
source/XLRStoreClient/boxForm/SO908-XLRStore - 快捷方式.lnk
0 → 100644
查看文件 @
dd44844
此文件类型无法预览
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论