Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-HCSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 684dce68
由
LN
编写于
2021-03-27 17:21:34 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加反向间隙方法
1 个父辈
66c7584e
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
25 行增加
和
2 行删除
source/DeviceLibrary/acSingleStore/BoxBean.cs
source/HuichuanLibrary/HCBoardManager_Axis.cs
source/DeviceLibrary/acSingleStore/BoxBean.cs
查看文件 @
684dce6
...
@@ -935,7 +935,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -935,7 +935,7 @@ namespace OnlineStore.DeviceLibrary
string
plateHStr
=
data
[
ParamDefine
.
plateH
];
string
plateHStr
=
data
[
ParamDefine
.
plateH
];
int
plateW
=
StrToInt
(
plateWStr
);
int
plateW
=
StrToInt
(
plateWStr
);
int
plateH
=
StrToInt
(
plateHStr
);
int
plateH
=
StrToInt
(
plateHStr
);
InOutPosInfo
inoutInfo
=
new
InOutPosInfo
(
message
,
posId
,
plate
H
,
plateW
);
InOutPosInfo
inoutInfo
=
new
InOutPosInfo
(
message
,
posId
,
plate
W
,
plateH
);
//根据发送的posId获取位置列表
//根据发送的posId获取位置列表
ACStorePosition
position
=
CSVPositionReader
<
ACStorePosition
>.
GetPositon
(
posId
);
ACStorePosition
position
=
CSVPositionReader
<
ACStorePosition
>.
GetPositon
(
posId
);
...
@@ -1042,7 +1042,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1042,7 +1042,7 @@ namespace OnlineStore.DeviceLibrary
//TODO:判断BOX是否处于可以入库状态,如果调试或急停中,需要返回给服务器;
//TODO:判断BOX是否处于可以入库状态,如果调试或急停中,需要返回给服务器;
if
(
CanStarInOut
())
if
(
CanStarInOut
())
{
{
InOutPosInfo
inout
=
new
InOutPosInfo
(
message
,
posId
,
plate
H
,
plateW
);
InOutPosInfo
inout
=
new
InOutPosInfo
(
message
,
posId
,
plate
W
,
plateH
);
inout
.
rfid
=
rfid
;
inout
.
rfid
=
rfid
;
InOutParam
param
=
new
InOutParam
(
inout
);
InOutParam
param
=
new
InOutParam
(
inout
);
...
...
source/HuichuanLibrary/HCBoardManager_Axis.cs
查看文件 @
684dce6
...
@@ -591,6 +591,29 @@ namespace HuichuanLibrary
...
@@ -591,6 +591,29 @@ namespace HuichuanLibrary
}
}
return
outV
;
return
outV
;
}
}
/// <summary>
/// 设置反向间隙
/// HuichuanLibrary.HCBoardManager.SetAxBacklash(MiddleAxis.Config.GetAxisValue(),Config.MiddleAxis_Reverse_Offset, MiddleAxis.Config.HomeLowSpeed,-1);
/// </summary>
/// <param name="axisNo"></param>
/// <param name="wholdCmpVal"></param>
/// <param name="cmpVel"></param>
/// <param name="cmpDir"></param>
/// <returns></returns>
public
static
bool
SetAxBacklash
(
short
axisNo
,
int
wholdCmpVal
,
int
cmpVel
,
short
cmpDir
)
{
if
(!
CardInitOk
())
{
return
false
;
}
var
ret
=
ImcApi
.
IMC_SetAxBacklash
(
nCardHandle
,
axisNo
,
wholdCmpVal
,
cmpVel
,
cmpDir
);
if
(
ret
!=
0
)
{
ShowErrorLog
(
" Axis["
+
axisNo
+
"][wholdCmpVal:"
+
wholdCmpVal
+
"][cmpVel:"
+
cmpVel
+
"][cmpDir:"
+
cmpDir
+
"] SetAxBacklash FAIL, ErrorCode=0x"
+
ret
.
ToString
(
"x8"
));
return
false
;
}
return
true
;
}
#
endregion
#
endregion
#
region
轴状态
#
region
轴状态
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论