Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 16f81d91
由
lailai.xing
编写于
2025-07-01 15:26:13 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修改夹爪类别换成吸盘可设置参数
1 个父辈
780a7474
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
70 行增加
和
9 行删除
ChangeConfigKey/ChangeConfigKey.csproj
Common/Setting_Init.cs
DeviceLibrary/theMachine/MainMachine.cs
DeviceLibrary/theMachine/MainMachine_Clamp.cs
DeviceLibrary/theMachine/MainMachine_String.cs
TheMachineNView/Program.cs
TheMachineNView/TheMachineNView.csproj
TheMachineNView/UC/uc_boxdebug.Designer.cs
ChangeConfigKey/ChangeConfigKey.csproj
查看文件 @
16f81d9
...
...
@@ -34,7 +34,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="ConfigHelper">
<HintPath>..\
..\..\..\..\SharedRefDll\Neotel\DL.Common\Debug\net462
\ConfigHelper.dll</HintPath>
<HintPath>..\
TheMachineNView\bin\Debug
\ConfigHelper.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
...
...
Common/Setting_Init.cs
查看文件 @
16f81d9
...
...
@@ -257,6 +257,11 @@ namespace OnlineStore.Common
[
MyConfigComment
(
"盘点_料盘Y坐标"
)]
public
static
MyConfig
<
int
>
Device_SelfAudit_ReelY
=
1
;
//夹爪类型配置
//kmon
//2025-7-1
[
MyConfigComment
(
"夹爪类型"
)]
public
static
MyConfig
<
Claw_Type_Mode
>
Device_Claw_Type_Mode
=
Claw_Type_Mode
.
SingleoIn_Claw
;
...
...
@@ -266,4 +271,14 @@ namespace OnlineStore.Common
SingleIoIn_SingleIoOut
=
0
,
SingleIoIn_DoubltIoOut
=
1
}
//夹爪类型枚举
//kmon
//2025-7-1
public
enum
Claw_Type_Mode
{
//吸盘
SingleoIn_Sucker
=
0
,
//夹爪
SingleoIn_Claw
=
1
}
}
DeviceLibrary/theMachine/MainMachine.cs
查看文件 @
16f81d9
...
...
@@ -180,6 +180,12 @@ namespace DeviceLibrary
RobotManage
.
Config
.
DIList
.
Remove
(
IO_Type
.
BackDoorClose_Check
);
RobotManage
.
Config
.
DOList
.
Remove
(
IO_Type
.
DoorSafe_Disable
);
}
//添加判读是否吸盘
if
(
Setting_Init
.
Device_Claw_Type_Mode
==
Claw_Type_Mode
.
SingleoIn_Sucker
)
{
RobotManage
.
Config
.
DIList
.
Remove
(
IO_Type
.
Clamping_Relax
);
RobotManage
.
Config
.
DIList
.
Remove
(
IO_Type
.
Clamping_Work
);
}
if
(!
ConfigHelper
.
Config
.
Get
(
"Device_IO_HasX29"
,
true
))
{
RobotManage
.
Config
.
DIList
.
Remove
(
IO_Type
.
NGDoor_Tray_Check
);
...
...
@@ -565,7 +571,10 @@ namespace DeviceLibrary
case
MoveStep
.
H10_HomeReset
:
ResetMoveInfo
.
NextMoveStep
(
MoveStep
.
H11_HomeReset
);
ResetMoveInfo
.
log
(
"释放夹爪"
);
CylinderMove
(
StringMoveInfo
,
IO_Type
.
Clamping_Relax
,
IO_Type
.
Clamping_Work
,
IO_VALUE
.
LOW
);
// CylinderMove(StringMoveInfo, IO_Type.Clamping_Relax, IO_Type.Clamping_Work, IO_VALUE.LOW);
//修改为下面,2025-7-1
StringClowClose
(
ResetMoveInfo
);
break
;
case
MoveStep
.
H11_HomeReset
:
ResetMoveInfo
.
NextMoveStep
(
MoveStep
.
H12_HomeReset
);
...
...
DeviceLibrary/theMachine/MainMachine_Clamp.cs
查看文件 @
16f81d9
...
...
@@ -98,7 +98,8 @@ namespace DeviceLibrary
case
MoveStep
.
ReelClamp_02
:
ClampMoveInfo
.
NextMoveStep
(
MoveStep
.
ReelClamp_03
);
ClampMoveInfo
.
log
(
$
"取料夹爪张开"
);
CylinderMove
(
ClampMoveInfo
,
IO_Type
.
Clamping_Relax
,
IO_Type
.
Clamping_Work
,
IO_VALUE
.
HIGH
);
// CylinderMove(ClampMoveInfo, IO_Type.Clamping_Relax, IO_Type.Clamping_Work, IO_VALUE.HIGH);
StringClowOpen
(
ResetMoveInfo
);
break
;
case
MoveStep
.
ReelClamp_03
:
ClampMoveInfo
.
NextMoveStep
(
MoveStep
.
ReelClamp_04
);
...
...
@@ -152,7 +153,8 @@ namespace DeviceLibrary
//case MoveStep.ReelClamp_071:
ClampMoveInfo
.
NextMoveStep
(
MoveStep
.
ReelClamp_08
);
ClampMoveInfo
.
log
(
$
"取料夹爪释放"
);
CylinderMove
(
ClampMoveInfo
,
IO_Type
.
Clamping_Relax
,
IO_Type
.
Clamping_Work
,
IO_VALUE
.
LOW
);
//CylinderMove(ClampMoveInfo, IO_Type.Clamping_Relax, IO_Type.Clamping_Work, IO_VALUE.LOW);
StringClowOpen
(
ClampMoveInfo
);
break
;
case
MoveStep
.
ReelClamp_08
:
ClampMoveInfo
.
NextMoveStep
(
MoveStep
.
ReelClamp_09
);
...
...
DeviceLibrary/theMachine/MainMachine_String.cs
查看文件 @
16f81d9
...
...
@@ -290,7 +290,9 @@ namespace DeviceLibrary
var
tpos4
=
Batch_Axis
.
GetAclPosition
()
+
Config
.
Batch_PoToMM
*
(
Config
.
Batch_DetectDownMM
+
2
);
Batch_Axis
.
AbsMove
(
StringMoveInfo
,
tpos4
,
Config
.
Batch_P1_speed
);
Batch_Axis
.
MonitorAxisLoadRate
(
Setting_Init
.
LoadRateLimit_BatchMaxLoadRate
);
CylinderMove
(
StringMoveInfo
,
IO_Type
.
Clamping_Relax
,
IO_Type
.
Clamping_Work
,
IO_VALUE
.
LOW
);
//CylinderMove(StringMoveInfo, IO_Type.Clamping_Relax, IO_Type.Clamping_Work, IO_VALUE.LOW);
StringClowOpen
(
ClampMoveInfo
);
//OpenFlipDoor(StringMoveInfo);
StringType
=
StringTypeE
.
In
;
}
...
...
@@ -800,7 +802,7 @@ namespace DeviceLibrary
{
if
(
Setting_Init
.
Disable_StringDoor
)
{
LogUtil
.
info
(
$
"料串门已屏蔽,不打开"
);
moveInfo
.
log
(
$
"料串门已屏蔽,不打开"
);
return
;
}
if
(
StringDoor
!=
null
)
...
...
@@ -830,6 +832,39 @@ namespace DeviceLibrary
CyStringDoor
.
ToLow
(
moveInfo
);
}
}
#
region
夹爪开关
*
K
-
Mon
*
2025
-
7
-
1
//夹爪开
public
void
StringClowOpen
(
MoveInfo
moveInfo
)
{
moveInfo
.
log
(
"打开夹爪"
);
if
(
Setting_Init
.
Device_Claw_Type_Mode
==
Claw_Type_Mode
.
SingleoIn_Sucker
)
{
IOMove
(
IO_Type
.
Clamping_Work
,
IO_VALUE
.
HIGH
);
IOMove
(
IO_Type
.
Clamping_Relax
,
IO_VALUE
.
LOW
);
}
else
{
CylinderMove
(
moveInfo
,
IO_Type
.
Clamping_Relax
,
IO_Type
.
Clamping_Work
,
IO_VALUE
.
HIGH
);
}
}
public
void
StringClowClose
(
MoveInfo
moveInfo
)
{
moveInfo
.
log
(
"关闭夹爪"
);
if
(
Setting_Init
.
Device_Claw_Type_Mode
==
Claw_Type_Mode
.
SingleoIn_Sucker
)
{
IOMove
(
IO_Type
.
Clamping_Work
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
Clamping_Relax
,
IO_VALUE
.
HIGH
);
}
else
{
CylinderMove
(
moveInfo
,
IO_Type
.
Clamping_Relax
,
IO_Type
.
Clamping_Work
,
IO_VALUE
.
LOW
);
}
}
#
endregion
public
void
StringDoorPause
()
{
if
(
Setting_Init
.
Disable_StringDoor
)
...
...
TheMachineNView/Program.cs
查看文件 @
16f81d9
...
...
@@ -54,7 +54,7 @@ namespace TheMachineNView
private
static
void
CurrentDomain_UnhandledException
(
object
sender
,
UnhandledExceptionEventArgs
e
)
{
LogUtil
.
error
(
$
"CurrentDomain_UnhandledException:"
+
e
.
ToString
());
LogUtil
.
error
(
$
"CurrentDomain_UnhandledException:"
+
e
.
ExceptionObject
.
ToString
());
}
private
static
void
Application_ThreadException
(
object
sender
,
ThreadExceptionEventArgs
e
)
...
...
TheMachineNView/TheMachineNView.csproj
查看文件 @
16f81d9
...
...
@@ -88,7 +88,7 @@
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="UserFromControl">
<HintPath>
..\..\SO775-DUOStore\dll
\UserFromControl.dll</HintPath>
<HintPath>
C:\Users\HY\Desktop
\UserFromControl.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
...
...
TheMachineNView/UC/uc_boxdebug.Designer.cs
查看文件 @
16f81d9
...
...
@@ -207,7 +207,7 @@ namespace TheMachineNView
this
.
dataGridView1
.
ShowCellToolTips
=
false
;
this
.
dataGridView1
.
ShowEditingIcon
=
false
;
this
.
dataGridView1
.
ShowRowErrors
=
false
;
this
.
dataGridView1
.
Size
=
new
System
.
Drawing
.
Size
(
6
76
,
312
);
this
.
dataGridView1
.
Size
=
new
System
.
Drawing
.
Size
(
6
69
,
312
);
this
.
dataGridView1
.
TabIndex
=
103
;
this
.
dataGridView1
.
CellClick
+=
new
System
.
Windows
.
Forms
.
DataGridViewCellEventHandler
(
this
.
dataGridView1_CellContentClick
);
this
.
dataGridView1
.
CellMouseDown
+=
new
System
.
Windows
.
Forms
.
DataGridViewCellMouseEventHandler
(
this
.
dataGridView1_CellMouseDown
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论