Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-HCSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2e8cf5a3
由
LN
编写于
2020-11-23 16:30:59 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
55be32f3
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
source/DeviceLibrary/acSingleStore/BoxAutoPoint.cs
source/DeviceLibrary/acSingleStore/BoxAutoPoint.cs
查看文件 @
2e8cf5a
...
@@ -19,7 +19,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -19,7 +19,7 @@ namespace OnlineStore.DeviceLibrary
public
BoxAutoPoint
(
BoxBean
box
)
public
BoxAutoPoint
(
BoxBean
box
)
{
{
toolTimer
.
Enabled
=
false
;
toolTimer
.
Enabled
=
false
;
toolTimer
.
Interval
=
50
;
toolTimer
.
Interval
=
50
0
;
toolTimer
.
AutoReset
=
true
;
toolTimer
.
AutoReset
=
true
;
toolTimer
.
Elapsed
+=
ToolTimer_Elapsed
;
toolTimer
.
Elapsed
+=
ToolTimer_Elapsed
;
this
.
box
=
box
;
this
.
box
=
box
;
...
@@ -38,6 +38,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -38,6 +38,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
LogName
+
CurrStep
+
"第"
+
paramInfo
.
CurrIndex
+
"列,旋转轴位置["
+
paramInfo
.
GetCurrMiddleP
()
+
"] :进出轴先原点返回"
);
LogUtil
.
info
(
LogName
+
CurrStep
+
"第"
+
paramInfo
.
CurrIndex
+
"列,旋转轴位置["
+
paramInfo
.
GetCurrMiddleP
()
+
"] :进出轴先原点返回"
);
ConfigMoveAxis
axis
=
box
.
Config
.
InOut_Axis
;
ConfigMoveAxis
axis
=
box
.
Config
.
InOut_Axis
;
AxisManager
.
instance
.
HomeMove
(
axis
.
DeviceName
,
(
short
)
axis
.
GetAxisValue
(),
axis
.
HomeHighSpeed
,
axis
.
HomeLowSpeed
,
axis
.
HomeAddSpeed
);
AxisManager
.
instance
.
HomeMove
(
axis
.
DeviceName
,
(
short
)
axis
.
GetAxisValue
(),
axis
.
HomeHighSpeed
,
axis
.
HomeLowSpeed
,
axis
.
HomeAddSpeed
);
toolTimer
.
Interval
=
500
;
toolTimer
.
Start
();
toolTimer
.
Start
();
}
}
private
bool
isInProcesss
=
false
;
private
bool
isInProcesss
=
false
;
...
@@ -114,7 +115,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -114,7 +115,8 @@ namespace OnlineStore.DeviceLibrary
CurrStep
=(
StoreMoveStep
.
AP_05_UpdownMove
);
CurrStep
=(
StoreMoveStep
.
AP_05_UpdownMove
);
ConfigMoveAxis
axis
=
box
.
Config
.
UpDown_Axis
;
ConfigMoveAxis
axis
=
box
.
Config
.
UpDown_Axis
;
LogUtil
.
info
(
LogName
+
CurrStep
+
" "
+
currIndex
+
":升降轴移动到目标位置:"
+
paramInfo
.
UpdownTargetPosition
);
LogUtil
.
info
(
LogName
+
CurrStep
+
" "
+
currIndex
+
":升降轴移动到目标位置:"
+
paramInfo
.
UpdownTargetPosition
);
AxisManager
.
instance
.
AbsMove
(
axis
.
DeviceName
,
(
short
)
axis
.
GetAxisValue
(),
paramInfo
.
InoutTargetPosition
,
box
.
Config
.
InOutAxis_P1_Speed
,
axis
.
AddSpeed
,
axis
.
DelSpeed
);
AxisManager
.
instance
.
AbsMove
(
axis
.
DeviceName
,
(
short
)
axis
.
GetAxisValue
(),
paramInfo
.
UpdownTargetPosition
,
paramInfo
.
UpdownSpeed
,
axis
.
AddSpeed
,
axis
.
DelSpeed
);
toolTimer
.
Interval
=
50
;
}
}
}
}
else
if
(
CurrStep
.
Equals
(
StoreMoveStep
.
AP_05_UpdownMove
))
else
if
(
CurrStep
.
Equals
(
StoreMoveStep
.
AP_05_UpdownMove
))
...
@@ -212,6 +214,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -212,6 +214,7 @@ namespace OnlineStore.DeviceLibrary
if
(
nextIndex
<
paramInfo
.
MiddlePositionList
.
Count
)
if
(
nextIndex
<
paramInfo
.
MiddlePositionList
.
Count
)
{
{
LogUtil
.
info
(
LogName
+
"开始下一列点位校准"
);
LogUtil
.
info
(
LogName
+
"开始下一列点位校准"
);
paramInfo
.
PositionList
=
new
List
<
int
>();
paramInfo
.
CurrIndex
=
nextIndex
;
paramInfo
.
CurrIndex
=
nextIndex
;
Start
();
Start
();
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论