Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 8eb1f63f
由
刘韬
编写于
2023-08-22 16:43:06 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
Merge branch 'master' of
http://106.15.194.121:8083/liutao/1069_MIMO_PlUS
2 个父辈
290a1abd
4db99249
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
21 行增加
和
1 行删除
DeviceLibrary/theMachine/MainMachine_String.cs
DeviceLibrary/theMachine/MoveStep.cs
TheMachine/TheMachine.csproj
TheMachine/更新记录.txt
DeviceLibrary/theMachine/MainMachine_String.cs
查看文件 @
8eb1f63
...
@@ -86,6 +86,11 @@ namespace DeviceLibrary
...
@@ -86,6 +86,11 @@ namespace DeviceLibrary
/// 出库下降对射触发位置高度
/// 出库下降对射触发位置高度
/// </summary>
/// </summary>
int
LastOutDownPosition
=
0
;
int
LastOutDownPosition
=
0
;
/// <summary>
/// 入库料盘拿走后,料串下降一段距离
/// </summary>
int
batchDownDistance
=
ConfigHelper
.
Config
.
Get
(
"Batch_ReelGetedDownMM"
,
8
);
int
RealPulse
=
0
;
void
StringProcess
()
void
StringProcess
()
{
{
if
(
CheckWait
(
StringMoveInfo
))
if
(
CheckWait
(
StringMoveInfo
))
...
@@ -281,6 +286,17 @@ namespace DeviceLibrary
...
@@ -281,6 +286,17 @@ namespace DeviceLibrary
Msg
.
add
(
crc
.
GetString
(
L
.
string_ready_for_get
,
"料串取料准备就绪"
),
MsgLevel
.
info
);
Msg
.
add
(
crc
.
GetString
(
L
.
string_ready_for_get
,
"料串取料准备就绪"
),
MsgLevel
.
info
);
break
;
break
;
case
MoveStep
.
StringReelGet
:
case
MoveStep
.
StringReelGet
:
StringMoveInfo
.
log
(
$
"料已取走,料串下降{batchDownDistance}mm"
);
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringReelGet_01
);
tpos2
=
Batch_Axis
.
GetAclPosition
()
-
Config
.
Batch_PoToMM
*
batchDownDistance
;
if
(
tpos2
<
0
)
{
tpos2
=
0
;
}
RealPulse
=
Batch_Axis
.
GetAclPosition
()
-
tpos2
;
Batch_Axis
.
AbsMove
(
StringMoveInfo
,
tpos2
,
Config
.
Batch_P1_speed
);
break
;
case
MoveStep
.
StringReelGet_01
:
StringMoveInfo
.
log
(
$
"料已取走,开始测高"
);
StringMoveInfo
.
log
(
$
"料已取走,开始测高"
);
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringLoad_03
);
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringLoad_03
);
CylinderMove
(
StringMoveInfo
,
IO_Type
.
StringPosChecker_Home
,
IO_Type
.
StringPosChecker_Work
,
IO_VALUE
.
HIGH
);
CylinderMove
(
StringMoveInfo
,
IO_Type
.
StringPosChecker_Home
,
IO_Type
.
StringPosChecker_Work
,
IO_VALUE
.
HIGH
);
...
@@ -547,7 +563,7 @@ namespace DeviceLibrary
...
@@ -547,7 +563,7 @@ namespace DeviceLibrary
int
AxisChangeValue
=
Config
.
Batch_PoToMM
;
int
AxisChangeValue
=
Config
.
Batch_PoToMM
;
//计算高度
//计算高度
int
EndMovePosition
=
Batch_Axis
.
GetAclPosition
();
int
EndMovePosition
=
Batch_Axis
.
GetAclPosition
();
StartMovePosition
+=
RealPulse
;
float
height
=
(
float
)
Math
.
Ceiling
(
1F
*
Math
.
Abs
(
EndMovePosition
-
StartMovePosition
)
/
AxisChangeValue
);
float
height
=
(
float
)
Math
.
Ceiling
(
1F
*
Math
.
Abs
(
EndMovePosition
-
StartMovePosition
)
/
AxisChangeValue
);
string
buchongStr
=
""
;
string
buchongStr
=
""
;
if
(
Batch_Axis
.
IsInPosition
(
Config
.
Batch_P2
))
if
(
Batch_Axis
.
IsInPosition
(
Config
.
Batch_P2
))
...
...
DeviceLibrary/theMachine/MoveStep.cs
查看文件 @
8eb1f63
...
@@ -45,6 +45,7 @@ namespace DeviceLibrary
...
@@ -45,6 +45,7 @@ namespace DeviceLibrary
StringLoad_06
,
StringLoad_06
,
StringReadyGet
,
StringReadyGet
,
StringReelGet
,
StringReelGet
,
StringReelGet_01
,
StringReelGetFail
,
StringReelGetFail
,
StringReadyPut
,
StringReadyPut
,
StringReelPut
,
StringReelPut
,
...
...
TheMachine/TheMachine.csproj
查看文件 @
8eb1f63
...
@@ -244,6 +244,7 @@
...
@@ -244,6 +244,7 @@
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Content Include="icon.ico" />
<Content Include="icon.ico" />
<Content Include="更新记录.txt" />
</ItemGroup>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PropertyGroup>
...
...
TheMachine/更新记录.txt
0 → 100644
查看文件 @
8eb1f63
20230817
转臂旋转前,料串先下降一段距离,然后转臂转过来。避免料盘翘边转臂碰到
\ No newline at end of file
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论