Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
AutoCountMachine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 8d6dc742
由
LN
编写于
2020-09-18 13:21:40 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
贴标功能增加启用开关
1 个父辈
30ffdc55
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
95 行增加
和
13 行删除
RC1266-AutoCountMachine/source/AutoCountClient/App.config
RC1266-AutoCountMachine/source/AutoCountClient/FrmRobotMain.Designer.cs
RC1266-AutoCountMachine/source/AutoCountClient/FrmRobotMain.cs
RC1266-AutoCountMachine/source/AutoCountClient/记录.txt
RC1266-AutoCountMachine/source/Common/Setting_Init.cs
RC1266-AutoCountMachine/source/DeviceLibrary/bean/OutputEquip_Partial.cs
RC1266-AutoCountMachine/source/DeviceLibrary/bean/OutputEquip_Shelf.cs
RC1266-AutoCountMachine/source/DeviceLibrary/manager/RobotManager.cs
RC1266-AutoCountMachine/source/DeviceLibrary/model/RobotMoveInfo.cs
RC1266-AutoCountMachine/source/AutoCountClient/App.config
查看文件 @
8d6dc74
...
...
@@ -55,6 +55,7 @@
<
add
key
=
"ResultMinCount"
value
=
"100"
/>
<
add
key
=
"ComPath_Config"
value
=
"\XRAY\pnDetailedList.csv"
/>
<
add
key
=
"LabelWaitMS"
value
=
"1000"
/>
<
add
key
=
"UseLabel"
value
=
"1"
/>
</
appSettings
>
<
log4net
>
...
...
RC1266-AutoCountMachine/source/AutoCountClient/FrmRobotMain.Designer.cs
查看文件 @
8d6dc74
...
...
@@ -85,6 +85,8 @@
this
.
启用蜂鸣器
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator12
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
启用光栅信号
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator14
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
启用贴标功能
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
lblXrayWork
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
folderBrowserDialog1
=
new
System
.
Windows
.
Forms
.
FolderBrowserDialog
();
this
.
tabControl1
.
SuspendLayout
();
...
...
@@ -360,43 +362,43 @@
// 元器件学习ToolStripMenuItem
//
this
.
元器件学习
ToolStripMenuItem
.
Name
=
"元器件学习ToolStripMenuItem"
;
this
.
元器件学习
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
6
0
,
26
);
this
.
元器件学习
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
8
0
,
26
);
this
.
元器件学习
ToolStripMenuItem
.
Text
=
"元器件学习"
;
this
.
元器件学习
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
元器件学习
ToolStripMenuItem_Click
);
//
// toolStripSeparator17
//
this
.
toolStripSeparator17
.
Name
=
"toolStripSeparator17"
;
this
.
toolStripSeparator17
.
Size
=
new
System
.
Drawing
.
Size
(
1
5
7
,
6
);
this
.
toolStripSeparator17
.
Size
=
new
System
.
Drawing
.
Size
(
1
7
7
,
6
);
//
// 二维码学习ToolStripMenuItem
//
this
.
二维码学习
ToolStripMenuItem
.
Name
=
"二维码学习ToolStripMenuItem"
;
this
.
二维码学习
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
6
0
,
26
);
this
.
二维码学习
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
8
0
,
26
);
this
.
二维码学习
ToolStripMenuItem
.
Text
=
"二维码学习"
;
this
.
二维码学习
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
二维码学习
ToolStripMenuItem_Click
);
//
// toolStripSeparator7
//
this
.
toolStripSeparator7
.
Name
=
"toolStripSeparator7"
;
this
.
toolStripSeparator7
.
Size
=
new
System
.
Drawing
.
Size
(
1
5
7
,
6
);
this
.
toolStripSeparator7
.
Size
=
new
System
.
Drawing
.
Size
(
1
7
7
,
6
);
//
// toolStripMenuItem2
//
this
.
toolStripMenuItem2
.
Name
=
"toolStripMenuItem2"
;
this
.
toolStripMenuItem2
.
Size
=
new
System
.
Drawing
.
Size
(
1
6
0
,
26
);
this
.
toolStripMenuItem2
.
Size
=
new
System
.
Drawing
.
Size
(
1
8
0
,
26
);
this
.
toolStripMenuItem2
.
Text
=
"AGV调试"
;
this
.
toolStripMenuItem2
.
Click
+=
new
System
.
EventHandler
(
this
.
toolStripMenuItem2_Click
);
//
// toolStripSeparator6
//
this
.
toolStripSeparator6
.
Name
=
"toolStripSeparator6"
;
this
.
toolStripSeparator6
.
Size
=
new
System
.
Drawing
.
Size
(
1
5
7
,
6
);
this
.
toolStripSeparator6
.
Size
=
new
System
.
Drawing
.
Size
(
1
7
7
,
6
);
//
// 标签编辑ToolStripMenuItem
//
this
.
标签编辑
ToolStripMenuItem
.
Name
=
"标签编辑ToolStripMenuItem"
;
this
.
标签编辑
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
6
0
,
26
);
this
.
标签编辑
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
8
0
,
26
);
this
.
标签编辑
ToolStripMenuItem
.
Text
=
"标签编辑"
;
this
.
标签编辑
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
标签编辑
ToolStripMenuItem_Click
);
//
...
...
@@ -497,7 +499,9 @@
this
.
toolStripSeparator13
,
this
.
启用蜂鸣器
ToolStripMenuItem
,
this
.
toolStripSeparator12
,
this
.
启用光栅信号
ToolStripMenuItem
});
this
.
启用光栅信号
ToolStripMenuItem
,
this
.
toolStripSeparator14
,
this
.
启用贴标功能
ToolStripMenuItem
});
this
.
toolStripMenuItem4
.
Name
=
"toolStripMenuItem4"
;
this
.
toolStripMenuItem4
.
Size
=
new
System
.
Drawing
.
Size
(
86
,
25
);
this
.
toolStripMenuItem4
.
Text
=
"运行参数"
;
...
...
@@ -558,6 +562,18 @@
this
.
启用光栅信号
ToolStripMenuItem
.
Text
=
"启用光栅信号"
;
this
.
启用光栅信号
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
启用光栅信号
ToolStripMenuItem_Click
);
//
// toolStripSeparator14
//
this
.
toolStripSeparator14
.
Name
=
"toolStripSeparator14"
;
this
.
toolStripSeparator14
.
Size
=
new
System
.
Drawing
.
Size
(
210
,
6
);
//
// 启用贴标功能ToolStripMenuItem
//
this
.
启用贴标功能
ToolStripMenuItem
.
Name
=
"启用贴标功能ToolStripMenuItem"
;
this
.
启用贴标功能
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
213
,
26
);
this
.
启用贴标功能
ToolStripMenuItem
.
Text
=
"启用贴标功能"
;
this
.
启用贴标功能
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
启用贴标功能
ToolStripMenuItem_Click
);
//
// lblXrayWork
//
this
.
lblXrayWork
.
AutoSize
=
true
;
...
...
@@ -663,6 +679,8 @@
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator16
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
启用光栅信号
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator12
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator14
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
启用贴标功能
ToolStripMenuItem
;
}
}
RC1266-AutoCountMachine/source/AutoCountClient/FrmRobotMain.cs
查看文件 @
8d6dc74
...
...
@@ -129,6 +129,14 @@ namespace OnlineStore.AutoCountClient
{
启用光栅信号
ToolStripMenuItem
.
Text
=
"启用光栅信号"
;
}
if
(
RobotManager
.
UseLabel
)
{
启用贴标功能
ToolStripMenuItem
.
Text
=
gouStr
+
"启用贴标功能"
;
}
else
{
启用贴标功能
ToolStripMenuItem
.
Text
=
"启用贴标功能"
;
}
CSVBomManager
.
LoadAllCom
();
LoadStoreData
();
...
...
@@ -979,5 +987,30 @@ namespace OnlineStore.AutoCountClient
}
LogUtil
.
info
(
Name
+
" 点击:"
+
启用光栅信号
ToolStripMenuItem
.
Text
);
}
private
void
启用贴标功能
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
if
(!
LoadOk
)
{
return
;
}
bool
result
=
!
启用贴标功能
ToolStripMenuItem
.
Text
.
Contains
(
gouStr
);
if
(
result
.
Equals
(
RobotManager
.
UseLabel
))
{
return
;
}
RobotManager
.
UseLabel
=
result
;
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
UseLabel
,
(
RobotManager
.
UseLabel
?
1
:
0
));
if
(
result
)
{
启用贴标功能
ToolStripMenuItem
.
Text
=
gouStr
+
" 启用贴标功能"
;
}
else
{
启用贴标功能
ToolStripMenuItem
.
Text
=
"启用贴标功能"
;
}
LogUtil
.
info
(
Name
+
" 点击:"
+
启用贴标功能
ToolStripMenuItem
.
Text
);
}
}
}
RC1266-AutoCountMachine/source/AutoCountClient/记录.txt
查看文件 @
8d6dc74
...
...
@@ -111,4 +111,6 @@ IO_Type.TakeCode_Back, IO_Type.TakeCode_Forward
20200917
取料机构取料时,点料机不转动皮带线 ,防止出口有两盘料
\ No newline at end of file
出料机构增加各个机构复位功能。
取料机构取料时,点料机不转动皮带线 ,防止出口有两盘料,
贴标功能增加开关。
\ No newline at end of file
RC1266-AutoCountMachine/source/Common/Setting_Init.cs
查看文件 @
8d6dc74
...
...
@@ -97,6 +97,10 @@ namespace OnlineStore.Common
public
static
string
LabelWaitMS
=
"LabelWaitMS"
;
public
static
string
GratingSignal
=
" GratingSignal"
;
/// <summary>
/// 启用贴标功能
/// </summary>
public
static
string
UseLabel
=
"UseLabel"
;
}
}
RC1266-AutoCountMachine/source/DeviceLibrary/bean/OutputEquip_Partial.cs
查看文件 @
8d6dc74
...
...
@@ -128,6 +128,14 @@ namespace OnlineStore.DeviceLibrary
{
return
true
;
}
if
(!
RobotManager
.
UseLabel
)
{
WorkLog
(
"取料: 贴标功能未启用,不需要启动贴标,设置IsStartLabel=true"
);
IsStartLabel
=
true
;
return
true
;
}
//TODO 记录信息,判断贴标模块当前空闲,此时可以打印标签(取码气缸前进,打印标签,取码气缸后退)
if
(
SecMoveInfo
.
MoveType
.
Equals
(
RobotMoveType
.
None
))
{
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/bean/OutputEquip_Shelf.cs
查看文件 @
8d6dc74
...
...
@@ -256,9 +256,23 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
ShelfMoveInfo
.
IsStep
(
StepEnum
.
OS_24_BatchToP3
))
{
ShelfMoveInfo
.
NextMoveStep
(
StepEnum
.
OS_25_WaitLabel
);
ShelfMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
ShelfWorkLog
(
"等待贴标"
);
if
(
RobotManager
.
UseLabel
)
{
ShelfMoveInfo
.
NextMoveStep
(
StepEnum
.
OS_25_WaitLabel
);
ShelfMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
ShelfWorkLog
(
"贴标功能启用中,等待贴标"
);
}
else
if
(
SecMoveInfo
.
MoveType
.
Equals
(
RobotMoveType
.
Labelling
))
{
ShelfMoveInfo
.
NextMoveStep
(
StepEnum
.
OS_25_WaitLabel
);
ShelfMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
ShelfWorkLog
(
"SecMoveInfo在Labelling中,等待贴标"
);
}
else
{
ShelfMoveInfo
.
NextMoveStep
(
StepEnum
.
OS_26_LabelOk
);
ShelfWorkLog
(
"贴标功能未启用,直接结束贴标"
);
}
}
else
if
(
ShelfMoveInfo
.
IsStep
(
StepEnum
.
OS_25_WaitLabel
))
{
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/manager/RobotManager.cs
查看文件 @
8d6dc74
...
...
@@ -18,6 +18,7 @@ namespace OnlineStore.DeviceLibrary
{
public
static
bool
UseBuzzer
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
UseBuzzer
).
Equals
(
1
);
public
static
bool
GratingSignal
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
GratingSignal
).
Equals
(
1
);
public
static
bool
UseLabel
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
UseLabel
).
Equals
(
1
);
private
static
bool
isInit
=
false
;
public
static
RobotBean
robot
=
null
;
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/model/RobotMoveInfo.cs
查看文件 @
8d6dc74
...
...
@@ -9,8 +9,9 @@ using System.Text;
namespace
OnlineStore.DeviceLibrary
{
public
class
RobotMoveInfo
public
class
RobotMoveInfo
{
internal
DateTime
preCheckAxisTime
=
DateTime
.
Now
;
internal
DateTime
MoveStartTime
=
DateTime
.
Now
;
private
static
int
MaxMoveId
=
1
;
/// <summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论