Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO1057_XLC_Store
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 4a7b4371
由
张东亮
编写于
2025-08-21 11:22:11 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
在重试移动时,打印轴状态,上报消息修改
1 个父辈
2e42ab61
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
18 行增加
和
8 行删除
DeviceLibrary/DeviceLibrary/AxisManager.cs
DeviceLibrary/DeviceLibrary/HC/HCAxisManager.cs
DeviceLibrary/DeviceLibrary/IAxisManager.cs
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
DeviceLibrary/theMachine/AxisBean.cs
DeviceLibrary/theMachine/InOutDevice_OUT.cs
DeviceLibrary/theMachine/MainMachine _Store.cs
DeviceLibrary/theMachine/MainMachine.cs
DeviceLibrary/theMachine/MoveInfo.cs
DeviceLibrary/DeviceLibrary/AxisManager.cs
查看文件 @
4a7b437
...
...
@@ -114,7 +114,10 @@ namespace DeviceLibrary
{
return
instance
.
GetLimitNegativeSingle
(
portName
,
slvAddr
);
}
public
static
string
GetAxisSts
(
string
portName
,
short
slvAddr
)
{
return
instance
.
GetAxisSts
(
portName
,
slvAddr
);
}
/// <summary>
/// 正极限
/// </summary>
...
...
DeviceLibrary/DeviceLibrary/HC/HCAxisManager.cs
查看文件 @
4a7b437
...
...
@@ -141,5 +141,11 @@ namespace DeviceLibrary
{
return
HCBoardManager
.
GetAxErrCode
(
slvAddr
);
}
public
string
GetAxisSts
(
string
portName
,
short
slvAddr
)
{
AxisSts
axisS
=
HCBoardManager
.
GetAxisSts
(
slvAddr
);
return
axisS
.
ToStr
();
}
}
}
DeviceLibrary/DeviceLibrary/IAxisManager.cs
查看文件 @
4a7b437
...
...
@@ -55,6 +55,6 @@ namespace DeviceLibrary
int
AxisStsINP
(
string
portName
,
short
slvAddr
);
short
GetErrorCode
(
string
portName
,
short
slvAddr
);
string
GetAxisSts
(
string
portName
,
short
slvAddr
);
}
}
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
查看文件 @
4a7b437
...
...
@@ -415,7 +415,7 @@ namespace DeviceLibrary
//}
else
{
LogUtil
.
info
(
"
扫码
时状态错误."
);
LogUtil
.
info
(
"
入库
时状态错误."
);
}
}
...
...
DeviceLibrary/theMachine/AxisBean.cs
查看文件 @
4a7b437
...
...
@@ -171,7 +171,8 @@ namespace DeviceLibrary
if
(
MoveInfo
.
CanWhileCount
>
0
)
{
var
errCode
=
AxisManager
.
GetErrorCode
(
deviceName
,
axisNo
);
LogUtil
.
info
(
$
"{MoveInfo.Name} {MoveInfo.MoveStep} {axis.DisplayStr} 报警码:{errCode.ToString("
X8
")}"
);
var
pos
=
AxisManager
.
GetAxisSts
(
deviceName
,
axisNo
);
LogUtil
.
info
(
$
"{MoveInfo.Name} {MoveInfo.MoveStep} {axis.DisplayStr} 轴状态:{pos}, 报警码:{errCode.ToString("
X8
")}"
);
string
clearMsg
=
""
;
//判断轴是否报警
if
(
MoveInfo
.
CanWhileCount
<=
3
)
...
...
DeviceLibrary/theMachine/InOutDevice_OUT.cs
查看文件 @
4a7b437
...
...
@@ -105,7 +105,7 @@ namespace DeviceLibrary
MoveInfo
.
NextMoveStep
(
MoveStep
.
OutWaitAgv
);
mainMachine
.
ServerCM
.
SendStoreState
(
MoveInfo
.
MoveParam
.
PosID
,
StoreStatus
.
OutStoreEnd
);
//IOMove(DO_Agv_Rsp, IO_VALUE.HIGH);
MoveInfo
.
log
(
$
"等待
agv接
走周转箱"
);
MoveInfo
.
log
(
$
"等待
取
走周转箱"
);
break
;
case
MoveStep
.
OutWaitAgv
:
Msg
.
add
(
"等待取走周转箱"
+
MoveInfo
.
MoveParam
.
WareCode
,
MsgLevel
.
info
);
...
...
DeviceLibrary/theMachine/MainMachine _Store.cs
查看文件 @
4a7b437
...
...
@@ -93,7 +93,7 @@ namespace DeviceLibrary
}
else
{
Msg
.
add
(
$
"{
CurrentSide
}:入料线等待周转箱离开"
,
MsgLevel
.
info
);
Msg
.
add
(
$
"{
(CurrentSide== InOutSideE.Left?"
左边
":"
右边
")
}:入料线等待周转箱离开"
,
MsgLevel
.
info
);
}
//if (string.IsNullOrEmpty(boxTransport.ErrMsgTxt)) {
// Msg.add(boxTransport.ErrMsgTxt, MsgLevel.warning);
...
...
DeviceLibrary/theMachine/MainMachine.cs
查看文件 @
4a7b437
...
...
@@ -315,7 +315,7 @@ namespace DeviceLibrary
else
if
(
ResetMoveInfo
.
IsTimeOut
(
6
))
{
Msg
.
add
(
"存储机构取料暂停"
,
MsgLevel
.
warning
);
//伸缩叉2侧X06/X07检测到有物料无法继续
RobotManage
.
UserPause
(
"
回原时料叉上有物
料"
);
RobotManage
.
UserPause
(
"
再次确认回原时料叉上是否有
料"
);
return
;
}
...
...
DeviceLibrary/theMachine/MoveInfo.cs
查看文件 @
4a7b437
...
...
@@ -11,7 +11,7 @@ namespace DeviceLibrary
public
class
MoveInfo
{
public
static
List
<
MoveInfo
>
List
=
new
List
<
MoveInfo
>();
public
int
TimeOutSeconds
=
6
0
;
public
int
TimeOutSeconds
=
24
0
;
public
MoveInfo
(
string
name
,
bool
addtolist
=
true
)
{
MoveParam
=
new
BoxParam
();
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论