Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO827-AutoScanAndLabel
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b46a1f1f
由
刘韬
编写于
2023-01-18 10:22:39 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
31aa5458
显示空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
131 行增加
和
92 行删除
AutoScanAndLabel/AutoScanAndLabel.csproj
AutoScanAndLabel/Form1.cs
AutoScanAndLabel/SettingControl.Designer.cs
AutoScanAndLabel/SettingControl.cs
AutoScanAndLabel/resources/So1164自动扫码贴标机.xlsx
AutoScanAndLabel/resources/So1164自动扫码贴标机2.xlsx
AutoScanAndLabel/resources/ja-JP.lngres
Common/CodeResourceControl.cs
DeviceLibrary/AutoScanAndLabel/Common.cs
DeviceLibrary/AutoScanAndLabel/LabelParam.cs
DeviceLibrary/AutoScanAndLabel/MainMachine _Printer.cs
DeviceLibrary/AutoScanAndLabel/MainMachine _RightProcess.cs
DeviceLibrary/AutoScanAndLabel/RobotManage.cs
DeviceLibrary/DeviceLibrary/CodeManager.cs
DeviceLibrary/DeviceLibrary/ElectricGripper.cs
dll/Asa.PrintLabel.dll
dll/ConfigHelper.dll
dll/ConfigHelper.xml
AutoScanAndLabel/AutoScanAndLabel.csproj
查看文件 @
b46a1f1
...
@@ -194,6 +194,7 @@
...
@@ -194,6 +194,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</None>
<None Include="resources\So1164自动扫码贴标机.xlsx" />
<None Include="resources\So1164自动扫码贴标机.xlsx" />
<None Include="resources\So1164自动扫码贴标机2.xlsx" />
<None Include="resources\zh-CN.lngres">
<None Include="resources\zh-CN.lngres">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</None>
...
@@ -223,4 +224,7 @@
...
@@ -223,4 +224,7 @@
<Content Include="icon.ico" />
<Content Include="icon.ico" />
</ItemGroup>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>start $(TargetDir)</PostBuildEvent>
</PropertyGroup>
</Project>
</Project>
\ No newline at end of file
\ No newline at end of file
AutoScanAndLabel/Form1.cs
查看文件 @
b46a1f1
...
@@ -66,7 +66,7 @@ namespace AutoScanAndLabel
...
@@ -66,7 +66,7 @@ namespace AutoScanAndLabel
stateView
.
Columns
[
2
].
Text
=
crc
.
GetString
(
"Res0006"
,
"步骤"
);
stateView
.
Columns
[
2
].
Text
=
crc
.
GetString
(
"Res0006"
,
"步骤"
);
stateView
.
Columns
[
3
].
Text
=
crc
.
GetString
(
"Form1_tabControl1_tabPage1_Text"
,
"信息"
);
stateView
.
Columns
[
3
].
Text
=
crc
.
GetString
(
"Form1_tabControl1_tabPage1_Text"
,
"信息"
);
启用调试模式
ToolStripMenuItem
.
Text
=
!
RobotManage
.
IsDebug
?
crc
.
GetString
(
crc
.
GetString
(
"Res0101"
,
"设备操作ToolStripMenuItem_启用调试模式ToolStripMenuItem_Text"
),
"启用配置模式"
)
:
crc
.
GetString
(
"Res0012"
,
"停用配置模式"
);
启用调试模式
ToolStripMenuItem
.
Text
=
!
RobotManage
.
IsDebug
?
crc
.
GetString
(
"Res0101"
,
"启用配置模式"
)
:
crc
.
GetString
(
"Res0012"
,
"停用配置模式"
);
btn_run
.
Text
=
crc
.
GetString
(
"Form1_btn_run_Text"
,
"启动"
);
btn_run
.
Text
=
crc
.
GetString
(
"Form1_btn_run_Text"
,
"启动"
);
...
@@ -229,7 +229,7 @@ namespace AutoScanAndLabel
...
@@ -229,7 +229,7 @@ namespace AutoScanAndLabel
{
{
RobotManage
.
IsDebug
=
RobotManage
.
IsDebug
?
false
:
true
;
RobotManage
.
IsDebug
=
RobotManage
.
IsDebug
?
false
:
true
;
(
sender
as
ToolStripMenuItem
).
Text
=
!
RobotManage
.
IsDebug
?
crc
.
GetString
(
crc
.
GetString
(
"Res0101"
,
"设备操作ToolStripMenuItem_启用调试模式ToolStripMenuItem_Text"
),
"启用配置模式"
)
:
crc
.
GetString
(
"Res0012"
,
"停用配置模式"
);
(
sender
as
ToolStripMenuItem
).
Text
=
!
RobotManage
.
IsDebug
?
crc
.
GetString
(
"Res0101"
,
"设备操作"
)
:
crc
.
GetString
(
"Res0012"
,
"停用配置模式"
);
//RobotManage.Init();
//RobotManage.Init();
...
...
AutoScanAndLabel/SettingControl.Designer.cs
查看文件 @
b46a1f1
...
@@ -38,15 +38,15 @@ namespace AutoScanAndLabel
...
@@ -38,15 +38,15 @@ namespace AutoScanAndLabel
this
.
chbAutoRun
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
chbAutoRun
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
btn_labelDebug
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_labelDebug
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
listEdit_pn
=
new
AutoScanAndLabel
.
UC
.
ListEditControl
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
listEditControl1
=
new
AutoScanAndLabel
.
UC
.
ListEditControl
();
this
.
txt_code
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txt_code
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btn_codetest
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_codetest
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
label_matchdebugstring
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label_matchdebugstring
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
groupBox4
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox4
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
uC_U11
=
new
AutoScanAndLabel
.
UC_U1
();
this
.
uC_U11
=
new
AutoScanAndLabel
.
UC_U1
();
this
.
listEditControl1
=
new
AutoScanAndLabel
.
UC
.
ListEditControl
();
this
.
listEdit_pn
=
new
AutoScanAndLabel
.
UC
.
ListEditControl
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
...
@@ -125,7 +125,7 @@ namespace AutoScanAndLabel
...
@@ -125,7 +125,7 @@ namespace AutoScanAndLabel
//
//
// btn_labelDebug
// btn_labelDebug
//
//
this
.
btn_labelDebug
.
Location
=
new
System
.
Drawing
.
Point
(
1
82
,
178
);
this
.
btn_labelDebug
.
Location
=
new
System
.
Drawing
.
Point
(
1
54
,
551
);
this
.
btn_labelDebug
.
Name
=
"btn_labelDebug"
;
this
.
btn_labelDebug
.
Name
=
"btn_labelDebug"
;
this
.
btn_labelDebug
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
28
);
this
.
btn_labelDebug
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
28
);
this
.
btn_labelDebug
.
TabIndex
=
2
;
this
.
btn_labelDebug
.
TabIndex
=
2
;
...
@@ -137,22 +137,48 @@ namespace AutoScanAndLabel
...
@@ -137,22 +137,48 @@ namespace AutoScanAndLabel
// groupBox2
// groupBox2
//
//
this
.
groupBox2
.
Controls
.
Add
(
this
.
listEdit_pn
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
listEdit_pn
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
403
,
0
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
617
,
23
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
360
,
178
);
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
360
,
178
);
this
.
groupBox2
.
TabIndex
=
4
;
this
.
groupBox2
.
TabIndex
=
4
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
Text
=
"PN匹配规则"
;
this
.
groupBox2
.
Text
=
"PN匹配规则"
;
this
.
groupBox2
.
Visible
=
false
;
//
// listEdit_pn
//
this
.
listEdit_pn
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
listEdit_pn
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
listEdit_pn
.
ListFile
=
"config/pn.list"
;
this
.
listEdit_pn
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
17
);
this
.
listEdit_pn
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
listEdit_pn
.
Name
=
"listEdit_pn"
;
this
.
listEdit_pn
.
Size
=
new
System
.
Drawing
.
Size
(
354
,
158
);
this
.
listEdit_pn
.
TabIndex
=
3
;
this
.
listEdit_pn
.
DataRefresh
+=
new
System
.
EventHandler
(
this
.
listEdit_pn_DataRefresh
);
//
//
// groupBox3
// groupBox3
//
//
this
.
groupBox3
.
Controls
.
Add
(
this
.
listEditControl1
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
listEditControl1
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
403
,
185
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
617
,
208
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
360
,
228
);
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
360
,
228
);
this
.
groupBox3
.
TabIndex
=
4
;
this
.
groupBox3
.
TabIndex
=
4
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"QTY匹配规则"
;
this
.
groupBox3
.
Text
=
"QTY匹配规则"
;
this
.
groupBox3
.
Visible
=
false
;
//
// listEditControl1
//
this
.
listEditControl1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
listEditControl1
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
listEditControl1
.
ListFile
=
"config/qty.list"
;
this
.
listEditControl1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
17
);
this
.
listEditControl1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
listEditControl1
.
Name
=
"listEditControl1"
;
this
.
listEditControl1
.
Size
=
new
System
.
Drawing
.
Size
(
354
,
208
);
this
.
listEditControl1
.
TabIndex
=
3
;
this
.
listEditControl1
.
DataRefresh
+=
new
System
.
EventHandler
(
this
.
listEdit_pn_DataRefresh
);
//
//
// txt_code
// txt_code
//
//
...
@@ -183,16 +209,17 @@ namespace AutoScanAndLabel
...
@@ -183,16 +209,17 @@ namespace AutoScanAndLabel
this
.
groupBox4
.
Controls
.
Add
(
this
.
txt_code
);
this
.
groupBox4
.
Controls
.
Add
(
this
.
txt_code
);
this
.
groupBox4
.
Controls
.
Add
(
this
.
label_matchdebugstring
);
this
.
groupBox4
.
Controls
.
Add
(
this
.
label_matchdebugstring
);
this
.
groupBox4
.
Controls
.
Add
(
this
.
btn_codetest
);
this
.
groupBox4
.
Controls
.
Add
(
this
.
btn_codetest
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
406
,
419
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
620
,
442
);
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
357
,
191
);
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
357
,
191
);
this
.
groupBox4
.
TabIndex
=
8
;
this
.
groupBox4
.
TabIndex
=
8
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"条码匹配测试"
;
this
.
groupBox4
.
Text
=
"条码匹配测试"
;
this
.
groupBox4
.
Visible
=
false
;
//
//
// button1
// button1
//
//
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
182
,
378
);
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
41
,
556
);
this
.
button1
.
Name
=
"button1"
;
this
.
button1
.
Name
=
"button1"
;
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
button1
.
TabIndex
=
10
;
this
.
button1
.
TabIndex
=
10
;
...
@@ -207,30 +234,6 @@ namespace AutoScanAndLabel
...
@@ -207,30 +234,6 @@ namespace AutoScanAndLabel
this
.
uC_U11
.
Size
=
new
System
.
Drawing
.
Size
(
383
,
167
);
this
.
uC_U11
.
Size
=
new
System
.
Drawing
.
Size
(
383
,
167
);
this
.
uC_U11
.
TabIndex
=
9
;
this
.
uC_U11
.
TabIndex
=
9
;
//
//
// listEditControl1
//
this
.
listEditControl1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
listEditControl1
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
listEditControl1
.
ListFile
=
"config/qty.list"
;
this
.
listEditControl1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
17
);
this
.
listEditControl1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
listEditControl1
.
Name
=
"listEditControl1"
;
this
.
listEditControl1
.
Size
=
new
System
.
Drawing
.
Size
(
354
,
208
);
this
.
listEditControl1
.
TabIndex
=
3
;
this
.
listEditControl1
.
DataRefresh
+=
new
System
.
EventHandler
(
this
.
listEdit_pn_DataRefresh
);
//
// listEdit_pn
//
this
.
listEdit_pn
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
listEdit_pn
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
listEdit_pn
.
ListFile
=
"config/pn.list"
;
this
.
listEdit_pn
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
17
);
this
.
listEdit_pn
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
listEdit_pn
.
Name
=
"listEdit_pn"
;
this
.
listEdit_pn
.
Size
=
new
System
.
Drawing
.
Size
(
354
,
158
);
this
.
listEdit_pn
.
TabIndex
=
3
;
this
.
listEdit_pn
.
DataRefresh
+=
new
System
.
EventHandler
(
this
.
listEdit_pn_DataRefresh
);
//
// SettingControl
// SettingControl
//
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
...
AutoScanAndLabel/SettingControl.cs
查看文件 @
b46a1f1
using
CodeLibrary
;
using
CodeLibrary
;
using
ConfigHelper
;
using
ConfigHelper
;
using
DeviceLibrary
;
using
DeviceLibrary
;
using
OnlineStore
;
using
OnlineStore.Common
;
using
OnlineStore.Common
;
using
OnlineStore.LoadCSVLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System
;
...
@@ -8,6 +9,7 @@ using System.Collections.Generic;
...
@@ -8,6 +9,7 @@ using System.Collections.Generic;
using
System.ComponentModel
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Data
;
using
System.Drawing
;
using
System.Drawing
;
using
System.IO
;
using
System.Linq
;
using
System.Linq
;
using
System.Reflection
;
using
System.Reflection
;
using
System.Text
;
using
System.Text
;
...
@@ -73,9 +75,13 @@ namespace AutoScanAndLabel
...
@@ -73,9 +75,13 @@ namespace AutoScanAndLabel
private
void
btn_labeledit_Click
(
object
sender
,
EventArgs
e
)
private
void
btn_labeledit_Click
(
object
sender
,
EventArgs
e
)
{
{
var
keys
=
File
.
ReadAllLines
(
"NeoScan\\config\\MacroKey.txt"
);
//RobotManage.PrintBean.EditLabel();
//RobotManage.PrintBean.EditLabel();
PrintLabel
.
FrmLabel
frmLabel
=
new
PrintLabel
.
FrmLabel
();
PrintLabel
.
FrmLabel
frmLabel
=
new
PrintLabel
.
FrmLabel
();
frmLabel
.
desc
=
"453634563"
;
//crc.CurrLanguage = "";
crc
.
LanguageProcess
(
frmLabel
,
"FrmLabel"
);
frmLabel
.
KeyWord
.
AddRange
(
keys
);
frmLabel
.
ShowDialog
();
frmLabel
.
ShowDialog
();
RobotManage_LoadFinishEvent
(
true
,
""
);
RobotManage_LoadFinishEvent
(
true
,
""
);
RobotManage
.
LoadPrintSetting
();
RobotManage
.
LoadPrintSetting
();
...
@@ -160,7 +166,7 @@ namespace AutoScanAndLabel
...
@@ -160,7 +166,7 @@ namespace AutoScanAndLabel
private
void
button1_Click
(
object
sender
,
EventArgs
e
)
private
void
button1_Click
(
object
sender
,
EventArgs
e
)
{
{
RemoteDecodeHelper_mod
.
RemoteDecodeParam
remoteDecodeParam
=
new
RemoteDecodeHelper_mod
.
RemoteDecodeParam
();
RemoteDecodeHelper_mod
.
RemoteDecodeParam
remoteDecodeParam
=
new
RemoteDecodeHelper_mod
.
RemoteDecodeParam
();
var
bmp
=
new
Bitmap
(
"d:\\
72f60ab3-d7df-49ca-b885-842787e8fd72.jpg
"
);
var
bmp
=
new
Bitmap
(
"d:\\
17-09-05-154.bmp
"
);
var
cc
=
RemoteDecodeHelper_mod
.
DecodeRequest
(
bmp
,
remoteDecodeParam
);
var
cc
=
RemoteDecodeHelper_mod
.
DecodeRequest
(
bmp
,
remoteDecodeParam
);
}
}
}
}
...
...
AutoScanAndLabel/resources/So1164自动扫码贴标机.xlsx
查看文件 @
b46a1f1
此文件类型无法预览
AutoScanAndLabel/resources/So1164自动扫码贴标机2.xlsx
0 → 100644
查看文件 @
b46a1f1
此文件类型无法预览
AutoScanAndLabel/resources/ja-JP.lngres
查看文件 @
b46a1f1
...
@@ -158,6 +158,10 @@ Form1_tabControl1_Res0010__SettingControl_groupBox3_listEditControl1_btn_del_Tex
...
@@ -158,6 +158,10 @@ Form1_tabControl1_Res0010__SettingControl_groupBox3_listEditControl1_btn_del_Tex
Form1_tabControl1_Res0010__SettingControl_groupBox3_Text QTY匹配规则 QTYマッチングルール
Form1_tabControl1_Res0010__SettingControl_groupBox3_Text QTY匹配规则 QTYマッチングルール
Form1_tabControl1_Res0010__SettingControl_groupBox4_btn_codetest_Text 匹配 マッチング
Form1_tabControl1_Res0010__SettingControl_groupBox4_btn_codetest_Text 匹配 マッチング
Form1_tabControl1_Res0010__SettingControl_groupBox4_Text 条码匹配测试 バーコードマッチングテスト
Form1_tabControl1_Res0010__SettingControl_groupBox4_Text 条码匹配测试 バーコードマッチングテスト
Form1_tabControl1_Res0010__SettingControl_uC_U11_gb_btn_selectdir_Text 浏览 開く
Form1_tabControl1_Res0010__SettingControl_uC_U11_gb_cb_exportreephoto_Text 自动拍摄并保存料盘图像. 勾选后仅本次有效 リール画像自動撮影・保存(今回のみ有効)
Form1_tabControl1_Res0010__SettingControl_uC_U11_gb_label_dir_Text 图像保存目录: 画像保存フォルダー
Form1_tabControl1_Res0010__SettingControl_uC_U11_gb_Text 料盘图像导出 リール画像輸出
Form1_tabControl1_Res0070__AgvControl_checkBox1_Text 手动 手動
Form1_tabControl1_Res0070__AgvControl_checkBox1_Text 手动 手動
Form1_tabControl1_Res0070__AgvControl_groupBox_left_button_Leftleavefull_Text 满料串取出 満載リール運搬ユニット取り出し
Form1_tabControl1_Res0070__AgvControl_groupBox_left_button_Leftleavefull_Text 满料串取出 満載リール運搬ユニット取り出し
Form1_tabControl1_Res0070__AgvControl_groupBox_left_button_leftneedempty_Text 空料串送入 空きリール運搬ユニット投入
Form1_tabControl1_Res0070__AgvControl_groupBox_left_button_leftneedempty_Text 空料串送入 空きリール運搬ユニット投入
...
@@ -189,6 +193,15 @@ Form1_tabControl1_tabPage1_cb_IgnoreGratingSignal_Text 蠢ス逡・螳牙蜈画 繝ゥ繧、
...
@@ -189,6 +193,15 @@ Form1_tabControl1_tabPage1_cb_IgnoreGratingSignal_Text 蠢ス逡・螳牙蜈画 繝ゥ繧、
Form1_tabControl1_tabPage1_cb_IgnoreSafecheck_Text 忽略安全检查(含安全光栅) セーフティチックを無視する(ライトカーテン含み)
Form1_tabControl1_tabPage1_cb_IgnoreSafecheck_Text 忽略安全检查(含安全光栅) セーフティチックを無視する(ライトカーテン含み)
Form1_tabControl1_tabPage1_groupBox1_Text 运行状态 実行状況
Form1_tabControl1_tabPage1_groupBox1_Text 运行状态 実行状況
Form1_tabControl1_tabPage1_Text 信息 情報
Form1_tabControl1_tabPage1_Text 信息 情報
FrmLabel_BtnFieldAdd_Text 字段添加 フィールド追加
FrmLabel_BtnFieldDel_Text 字段删除 フィールド削除
FrmLabel_BtnFieldFont_Text 字段字体 フィールド字体
FrmLabel_BtnLabelDel_Text 删除 削減
FrmLabel_BtnLabelNew_Text 新建 新規
FrmLabel_BtnPrintTest_Text 打印测试 印刷テスト
FrmLabel_BtnRename_Text 新建 新規
FrmLabel_BtnSave_Text 保存 保存
FrmLabel_groupBox1_Text 字段说明 フィールド説明
menuStrip1_关于ToolStripMenuItem_Text 关于 情報
menuStrip1_关于ToolStripMenuItem_Text 关于 情報
menuStrip1_设备操作ToolStripMenuItem_Text 设备操作 操作
menuStrip1_设备操作ToolStripMenuItem_Text 设备操作 操作
menuStrip1_语言toolStripMenuItem_Text 语言 言語
menuStrip1_语言toolStripMenuItem_Text 语言 言語
...
@@ -202,12 +215,6 @@ AutoRun_HddLed 閾ェ蜉ィ謖、コ轣ッ 閾ェ蜍戊。ィ遉コ轣ッ
...
@@ -202,12 +215,6 @@ AutoRun_HddLed 閾ェ蜉ィ謖、コ轣ッ 閾ェ蜍戊。ィ遉コ轣ッ
Cam_Pixel_X_Ratio 图像/X轴比值 イメージ/X軸比率
Cam_Pixel_X_Ratio 图像/X轴比值 イメージ/X軸比率
Cam_Pixel_Y_Ratio 图像/Y轴比值 イメージ/Y軸比率
Cam_Pixel_Y_Ratio 图像/Y轴比值 イメージ/Y軸比率
Camera_Led 相机照明 カメラ照明
Camera_Led 相机照明 カメラ照明
crc.GetString("Res0101 设备操作ToolStripMenuItem_启用调试模式ToolStripMenuItem_Text
crc.GetString("Res0101","设备操作ToolStripMenuItem_启用调试模式ToolStripMenuItem_Text") 启用配置模式 設定モードを開ける
crc.GetString("Res0102 Form1_tabControl1___IOControl_groupBox1_btn夹爪夹紧_Text
crc.GetString("Res0102","Form1_tabControl1___IOControl_groupBox1_btn夹爪夹紧_Text") 夹爪夹紧 グリッパー圧着
crc.GetString("Res0103 Form1_tabControl1___IOControl_groupBox1_btn夹爪放松_Text
crc.GetString("Res0103","Form1_tabControl1___IOControl_groupBox1_btn夹爪放松_Text") 夹爪放松 グリッパー解除
Device_Led 设备照明 設備証明
Device_Led 设备照明 設備証明
GratingSignal_Check 光栅信号 ライトカーテン信号
GratingSignal_Check 光栅信号 ライトカーテン信号
HasNgBox NG料箱检测 NG箱検知
HasNgBox NG料箱检测 NG箱検知
...
@@ -318,7 +325,7 @@ Res0029 轤ケ菴榊陦ィ 轤ケ菴阪Μ繧ケ繝
...
@@ -318,7 +325,7 @@ Res0029 轤ケ菴榊陦ィ 轤ケ菴阪Μ繧ケ繝
Res0030 全部保存 すべて保存
Res0030 全部保存 すべて保存
Res0031 添加 追加
Res0031 添加 追加
Res0032 修改 修正
Res0032 修改 修正
Res0033
"确定要删除:\""{0}\""?" "削除しますか:\""{0}\""?"
Res0033
确定要删除:\"{0}\"? 削除しますか:\"{0}\"?
Res0034 警告 注意
Res0034 警告 注意
Res0035 已呼叫Agv,不能重复呼叫 AGVコール中
Res0035 已呼叫Agv,不能重复呼叫 AGVコール中
Res0036 移载 リール転移
Res0036 移载 リール転移
...
@@ -334,9 +341,9 @@ Res0045 蠖灘燕ReelID: 迴セ蝨ィ縺ョReelID
...
@@ -334,9 +341,9 @@ Res0045 蠖灘燕ReelID: 迴セ蝨ィ縺ョReelID
Res0046 无料串 リール運搬ユニット無し
Res0046 无料串 リール運搬ユニット無し
Res0047 抓料失败请手动处理,请将料盘放入:NG箱,按入口按钮继续 リール掴み失敗。リールを:NG箱に投入し、「続き」ボダンを押してください。
Res0047 抓料失败请手动处理,请将料盘放入:NG箱,按入口按钮继续 リール掴み失敗。リールを:NG箱に投入し、「続き」ボダンを押してください。
Res0048 抓料失败请手动处理,请将料盘放入: 出口料串,按入口按钮继续 リール掴み失敗。リールを:出口リール運搬ユニットに投入し、「続き」ボダンを押してください。
Res0048 抓料失败请手动处理,请将料盘放入: 出口料串,按入口按钮继续 リール掴み失敗。リールを:出口リール運搬ユニットに投入し、「続き」ボダンを押してください。
Res0049 等待出口允许放料 出口の材料追加許可待ち
Res0049 等待出口允许放料 出口の材料追加許可待ち中
Res0050 等待夹爪放松 グリッパー解除待ち
Res0050 等待夹爪放松 グリッパー解除待ち中
Res0051 出口放料 出口からリール
を取る
Res0051 出口放料 出口リール追加
Res0052 贴标 貼付
Res0052 贴标 貼付
Res0053 重置 リセット
Res0053 重置 リセット
Res0054 可能与贴标Y轴干涉 ラベル貼付Y軸と干渉可能
Res0054 可能与贴标Y轴干涉 ラベル貼付Y軸と干渉可能
...
@@ -358,7 +365,7 @@ Res0069 譛画侭荳イ,蟾イ謾セ鄂ョ{0}蠑譁咏尨 繝ェ繝シ繝ォ謳ャ騾√Θ繝九ャ繝医↓{0}譫壹Μ
...
@@ -358,7 +365,7 @@ Res0069 譛画侭荳イ,蟾イ謾セ鄂ョ{0}蠑譁咏尨 繝ェ繝シ繝ォ謳ャ騾√Θ繝九ャ繝医↓{0}譫壹Μ
Res0070 Agv调试 AGV デバッグ
Res0070 Agv调试 AGV デバッグ
Res0071 任务状态 任務状態
Res0071 任务状态 任務状態
Res0072 标签已打印,当前ReelID: ラベル印刷完了。現在のリールID:
Res0072 标签已打印,当前ReelID: ラベル印刷完了。現在のリールID:
Res0073 等待标签打印 ラベル印刷待ち
Res0073 等待标签打印 ラベル印刷待ち中
Res0074 等待中 待機中
Res0074 等待中 待機中
Res0075 任务编号: 任務番号:
Res0075 任务编号: 任務番号:
Res0076 运行编号: 実行番号:
Res0076 运行编号: 実行番号:
...
@@ -368,27 +375,27 @@ Res0079 譛コ蝎ィ蟆壽悴蜷ッ蜉ィ荳崎蜻シ蜿ォAgv 險ュ蛯吶r襍キ蜍輔@縺溘→AGV 繧偵さ繝シ
...
@@ -368,27 +375,27 @@ Res0079 譛コ蝎ィ蟆壽悴蜷ッ蜉ィ荳崎蜻シ蜿ォAgv 險ュ蛯吶r襍キ蜍輔@縺溘→AGV 繧偵さ繝シ
Res0080 当前有料串不能请求进入料串 リール運搬ユニットがある場合に、AGVをコールすることができません。
Res0080 当前有料串不能请求进入料串 リール運搬ユニットがある場合に、AGVをコールすることができません。
Res0081 当前没有料串不能请求取料串 リール運搬ユニットがない場合に、AGVをコールすることができません。
Res0081 当前没有料串不能请求取料串 リール運搬ユニットがない場合に、AGVをコールすることができません。
Res0082 机器尚在运行,不能退出,请先停止运行. 現行作業を停止して下さい。
Res0082 机器尚在运行,不能退出,请先停止运行. 現行作業を停止して下さい。
Res0083 左侧料串正在提升或下降, 不能释放
Res0083 左侧料串正在提升或下降, 不能释放 左リール運搬ユニット
は上昇・下降は完了したと解除してください。
Res0084 左侧料串等待释放中({0})
Res0084 左侧料串等待释放中({0}) 左リール運搬
ユニットは解除待ち中
Res0085 安全释放左侧料串
Res0085 安全释放左侧料串 左リール運
搬ユニットは解除が完了しました。
Res0086 右侧料串当前没有就位, 不能释放
Res0086 右侧料串当前没有就位, 不能释放 右リール運搬ユニッ
トは準備できたと解除してください。
Res0087 右侧料串等待释放中({0})
Res0087 右侧料串等待释放中({0}) 右リール運搬
ユニットは解除待ち中
Res0088 安全释放右侧料串
Res0088 安全释放右侧料串 右リール運
搬ユニットは解除が完了しました。
Res0089 右侧料串正在运行,不能手动上料
Res0089 右侧料串正在运行,不能手动上料 右リール運搬ユニッ
トは作業完了したと手動で入庫してください。
Res0090 左侧料串正在运行,不能手动上料
Res0090 左侧料串正在运行,不能手动上料 左リール運搬ユニッ
トは作業完了したと手動で入庫してください。
Res0091 请确认是否运动到该位置
Res0091 请确认是否运动到该位置 この位置に移動します
か?
Res0092 确定要删除:\"{0}\"?
Res0092 确定要删除:\"{0}\"? 削除しま
すか?
Res0093 右侧料串已空,等待取走料串
Res0093 右侧料串已空,等待取走料串 右の空きリール運搬ユ
ニットを取ってください。
Res0094 左侧料串已满,等待取走料串
Res0094 左侧料串已满,等待取走料串 左の満載リール運搬ユ
ニットを取ってください。
Res0095 左侧空闲中
Res0095 左侧空闲中 左リール運
搬ユニットが空いている状態です。
Res0096 抓料失败请手动处理,请将料盘放入:NG箱,按右侧按钮继续
Res0096 抓料失败请手动处理,请将料盘放入:NG箱,按右侧按钮继续 リール取り出し失敗。リールを
NG箱に置いてください。右ボタンを押すと作業が続けます。
Res0097 抓料失败请手动处理,请将料盘放入: 左侧料串,按右侧按钮继续
Res0097 抓料失败请手动处理,请将料盘放入: 左侧料串,按右侧按钮继续 リール取り出し失敗。リールを左リー
ル運搬ユニットに置いてください。右ボタンを押すと作業が続けます。
Res0098 等待左侧允许放料
Res0098 等待左侧允许放料 左側の材料追
加許可待ち中
Res0099 等待料盘取走
Res0099 等待料盘取走 リール
を取ってください。
Res0100 ,料串已清空.
Res0100 ,料串已清空. リール運
搬ユニットが空いている状態です。
Res0104 等待 待ち中
Res0104 等待 待ち中
Res0105 超时 タイムオーバー
Res0105 超时 タイムオーバー
Res0106 秒
Res0106 秒
秒
Res0188 电夹爪通讯失败:{0} グリッパー通信エラー
Res0188 电夹爪通讯失败:{0} グリッパー通信エラー
Res0189 IO板卡初始化失败 IO初期化失敗
Res0189 IO板卡初始化失败 IO初期化失敗
Res0190 打开配置模式 設定モード起動
Res0190 打开配置模式 設定モード起動
...
@@ -406,3 +413,6 @@ Res0202 莨コ譛榊ー壽悴菴ソ閭ス 繧オ繝シ繝懷●豁「荳ュ
...
@@ -406,3 +413,6 @@ Res0202 莨コ譛榊ー壽悴菴ソ閭ス 繧オ繝シ繝懷●豁「荳ュ
Res0203 伺服警报状态中 サーボアラーム状態
Res0203 伺服警报状态中 サーボアラーム状態
Res0204 无法操作 動作不能
Res0204 无法操作 動作不能
Res0216 打印机 プリンター
Res0216 打印机 プリンター
Res0101 启用配置模式 設定モードを開ける
Res0102 夹爪夹紧 グリッパー圧着
Res0103 夹爪放松 グリッパー解除
Common/CodeResourceControl.cs
查看文件 @
b46a1f1
...
@@ -6,6 +6,7 @@ using System.ComponentModel;
...
@@ -6,6 +6,7 @@ using System.ComponentModel;
using
System.IO
;
using
System.IO
;
using
System.Linq
;
using
System.Linq
;
using
System.Text
;
using
System.Text
;
using
System.Text.RegularExpressions
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
using
System.Windows.Forms
;
using
System.Windows.Forms.Layout
;
using
System.Windows.Forms.Layout
;
...
@@ -176,6 +177,7 @@ namespace OnlineStore
...
@@ -176,6 +177,7 @@ namespace OnlineStore
if
((
strCurLanguage
==
null
||
strCurLanguage
.
Equals
(
""
))
&&
(!
defaultStr
.
Equals
(
""
)))
if
((
strCurLanguage
==
null
||
strCurLanguage
.
Equals
(
""
))
&&
(!
defaultStr
.
Equals
(
""
)))
{
{
strCurLanguage
=
defaultStr
;
strCurLanguage
=
defaultStr
;
if
(
HasChinese
(
defaultStr
))
NoIdLog
(
id
,
defaultStr
);
NoIdLog
(
id
,
defaultStr
);
}
}
}
}
...
@@ -388,5 +390,15 @@ namespace OnlineStore
...
@@ -388,5 +390,15 @@ namespace OnlineStore
//if (con is Form) methodname = "Title";
//if (con is Form) methodname = "Title";
return
methodname
;
return
methodname
;
}
}
static
bool
HasChinese
(
string
txt
)
{
//for (int i = 0; i < txt.Length; i++)
//{
if
(
Regex
.
IsMatch
(
txt
.
ToString
(),
@"[\u4E00-\u9FA5]+"
))
return
true
;
//}
return
false
;
}
}
}
}
}
DeviceLibrary/AutoScanAndLabel/Common.cs
查看文件 @
b46a1f1
...
@@ -141,7 +141,7 @@ namespace DeviceLibrary
...
@@ -141,7 +141,7 @@ namespace DeviceLibrary
//var y = srcbitmap_Width - c.X;
//var y = srcbitmap_Width - c.X;
//c.X = x;
//c.X = x;
//c.Y = y;
//c.Y = y;
if
(
c
.
CodeStr
.
Contains
(
labelParam
.
PN
)
)
if
(
true
)
{
{
Point
op
=
new
Point
(
c
.
X
,
c
.
Y
);
Point
op
=
new
Point
(
c
.
X
,
c
.
Y
);
g
.
FillEllipse
(
blue
,
new
Rectangle
(
op
,
pointsize
));
g
.
FillEllipse
(
blue
,
new
Rectangle
(
op
,
pointsize
));
...
@@ -214,6 +214,8 @@ namespace DeviceLibrary
...
@@ -214,6 +214,8 @@ namespace DeviceLibrary
qtyreglist
=
File
.
ReadAllLines
(
"config\\qty.list"
).
ToList
().
FindAll
((
s
)
=>
{
return
!
string
.
IsNullOrWhiteSpace
(
s
);
}).
ToArray
();
qtyreglist
=
File
.
ReadAllLines
(
"config\\qty.list"
).
ToList
().
FindAll
((
s
)
=>
{
return
!
string
.
IsNullOrWhiteSpace
(
s
);
}).
ToArray
();
}
}
public
static
bool
codeProcess
(
LabelParam
labelParam
,
out
string
debugmsg
)
{
public
static
bool
codeProcess
(
LabelParam
labelParam
,
out
string
debugmsg
)
{
debugmsg
=
""
;
return
labelParam
.
codeInfos
.
Count
>
0
;
if
(
pnreglist
==
null
)
if
(
pnreglist
==
null
)
LoadMatchList
();
LoadMatchList
();
...
...
DeviceLibrary/AutoScanAndLabel/LabelParam.cs
查看文件 @
b46a1f1
...
@@ -35,6 +35,8 @@ namespace DeviceLibrary
...
@@ -35,6 +35,8 @@ namespace DeviceLibrary
public
string
WareCode
{
get
;
set
;
}
public
string
WareCode
{
get
;
set
;
}
public
string
bitmapfilename
=
""
;
public
string
bitmapfilename
=
""
;
public
List
<
CodeInfo
>
codeInfos
{
get
;
set
;
}
public
List
<
CodeInfo
>
codeInfos
{
get
;
set
;
}
public
Dictionary
<
string
,
string
>
Keyword
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 料盘高度
/// 料盘高度
/// </summary>
/// </summary>
...
...
DeviceLibrary/AutoScanAndLabel/MainMachine _Printer.cs
查看文件 @
b46a1f1
...
@@ -63,20 +63,11 @@ namespace DeviceLibrary
...
@@ -63,20 +63,11 @@ namespace DeviceLibrary
try
try
{
{
LastPrintStatus
=
Asa
.
PrintLabel
.
PrinterStatus
.
Unknown
;
LastPrintStatus
=
Asa
.
PrintLabel
.
PrinterStatus
.
Unknown
;
LogUtil
.
info
(
"调用 PrintLabel 打印标签 StartPrintLabel ,["
+
labelParam
.
WareCode
+
"] ["
+
labelParam
.
QTY
+
"] 开始"
);
var
kv
=
labelParam
.
Keyword
.
Select
(
k
=>
$
"{k.Key}={k.Value}"
).
ToArray
();
LogUtil
.
info
(
"调用 PrintLabel 打印标签 StartPrintLabel ,["
+
string
.
Join
(
", "
,
kv
)
+
"] 开始"
);
Dictionary
<
string
,
string
>
text
=
new
Dictionary
<
string
,
string
>
//LastPrintLabel = labelParam.PN;
{
RobotManage
.
PrintBean
.
Print
(
labelParam
.
Keyword
);
{
"code"
,
labelParam
.
WareCode
},
{
"ri"
,
labelParam
.
RI
},
{
"pn"
,
labelParam
.
PN
},
{
"batch"
,
labelParam
.
Batch
},
{
"qty"
,
labelParam
.
QTY
.
ToString
()
}
};
LastPrintLabel
=
labelParam
.
PN
;
RobotManage
.
PrintBean
.
Print
(
text
);
LogUtil
.
info
(
"PrintLabel 打印标签 StartPrintLabel 结束 "
);
LogUtil
.
info
(
"PrintLabel 打印标签 StartPrintLabel 结束 "
);
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
...
DeviceLibrary/AutoScanAndLabel/MainMachine _RightProcess.cs
查看文件 @
b46a1f1
...
@@ -85,7 +85,7 @@ namespace DeviceLibrary
...
@@ -85,7 +85,7 @@ namespace DeviceLibrary
case
MoveStep
.
R06_GettedReelHigh
:
case
MoveStep
.
R06_GettedReelHigh
:
if
(
RightScanTask
.
IsCompleted
)
if
(
RightScanTask
.
IsCompleted
)
{
{
var
(
x
,
s
)
=
RightScanTask
.
Result
;
var
(
x
,
k
,
s
)
=
RightScanTask
.
Result
;
if
(
ConfigHelper
.
Config
.
Get
(
Setting_Init
.
SaveReelPhoto
,
false
))
if
(
ConfigHelper
.
Config
.
Get
(
Setting_Init
.
SaveReelPhoto
,
false
))
{
{
string
d
=
ConfigHelper
.
Config
.
Get
(
Setting_Init
.
ReelPhotoSaveDir
);
string
d
=
ConfigHelper
.
Config
.
Get
(
Setting_Init
.
ReelPhotoSaveDir
);
...
@@ -103,6 +103,7 @@ namespace DeviceLibrary
...
@@ -103,6 +103,7 @@ namespace DeviceLibrary
RightMoveInfo
.
MoveParam
.
IsNg
=
false
;
RightMoveInfo
.
MoveParam
.
IsNg
=
false
;
RightMoveInfo
.
MoveParam
.
codeInfos
=
x
;
RightMoveInfo
.
MoveParam
.
codeInfos
=
x
;
RightMoveInfo
.
MoveParam
.
Keyword
=
k
;
RightMoveInfo
.
MoveParam
.
bitmapfilename
=
s
;
RightMoveInfo
.
MoveParam
.
bitmapfilename
=
s
;
if
(!
Common
.
codeProcess
(
RightMoveInfo
.
MoveParam
,
out
string
debugmsg
))
if
(!
Common
.
codeProcess
(
RightMoveInfo
.
MoveParam
,
out
string
debugmsg
))
{
{
...
@@ -261,7 +262,7 @@ namespace DeviceLibrary
...
@@ -261,7 +262,7 @@ namespace DeviceLibrary
/// <summary>
/// <summary>
/// 扫码线程
/// 扫码线程
/// </summary>
/// </summary>
Task
<(
List
<
CodeInfo
>,
string
)>
RightScanTask
;
Task
<(
List
<
CodeInfo
>,
Dictionary
<
string
,
string
>,
string
)>
RightScanTask
;
void
ScanCode
()
{
void
ScanCode
()
{
RightMoveInfo
.
log
(
"开始扫码"
);
RightMoveInfo
.
log
(
"开始扫码"
);
//RightMoveInfo.OneWaitCanEndStep = true;
//RightMoveInfo.OneWaitCanEndStep = true;
...
@@ -269,25 +270,26 @@ namespace DeviceLibrary
...
@@ -269,25 +270,26 @@ namespace DeviceLibrary
//RightMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
//RightMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
try
try
{
{
RightScanTask
=
Task
.
Run
(
new
Func
<(
List
<
CodeInfo
>,
string
)>(()=>
RightScanTask
=
Task
.
Run
(
new
Func
<(
List
<
CodeInfo
>,
Dictionary
<
string
,
string
>,
string
)>(()=>
{
{
IOMove
(
IO_Type
.
Camera_Led
,
IO_VALUE
.
HIGH
);
IOMove
(
IO_Type
.
Camera_Led
,
IO_VALUE
.
HIGH
);
string
filename
;
string
filename
;
Task
.
Delay
(
10
).
Wait
();
Task
.
Delay
(
10
).
Wait
();
List
<
CodeInfo
>
LastCodeList
,
LastCodeList2
;
List
<
CodeInfo
>
LastCodeList
,
LastCodeList2
;
(
LastCodeList
,
filename
)
=
CodeManager
.
CameraScan
(
new
List
<
string
>
{
Config
.
RightCameraName
});
Dictionary
<
string
,
string
>
keyword
;
(
LastCodeList
,
keyword
,
filename
)
=
CodeManager
.
CameraScan
(
new
List
<
string
>
{
Config
.
RightCameraName
});
LabelParam
labelParam
=
new
LabelParam
();
LabelParam
labelParam
=
new
LabelParam
();
labelParam
.
codeInfos
=
new
List
<
CodeInfo
>(
LastCodeList
);
labelParam
.
codeInfos
=
new
List
<
CodeInfo
>(
LastCodeList
);
if
(!
Common
.
codeProcess
(
labelParam
,
out
_
))
if
(!
Common
.
codeProcess
(
labelParam
,
out
_
))
{
{
Task
.
Delay
(
500
).
Wait
();
Task
.
Delay
(
500
).
Wait
();
(
LastCodeList2
,
filename
)
=
CodeManager
.
CameraScan
(
new
List
<
string
>
{
Config
.
RightCameraName
});
(
LastCodeList2
,
keyword
,
filename
)
=
CodeManager
.
CameraScan
(
new
List
<
string
>
{
Config
.
RightCameraName
});
LastCodeList
.
AddRange
(
LastCodeList2
);
LastCodeList
.
AddRange
(
LastCodeList2
);
}
}
//IOMove(IO_Type.Camera_Led, IO_VALUE.LOW);
//IOMove(IO_Type.Camera_Led, IO_VALUE.LOW);
return
(
LastCodeList
,
filename
);
return
(
LastCodeList
,
keyword
,
filename
);
}));
}));
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
...
DeviceLibrary/AutoScanAndLabel/RobotManage.cs
查看文件 @
b46a1f1
...
@@ -35,7 +35,7 @@ namespace DeviceLibrary
...
@@ -35,7 +35,7 @@ namespace DeviceLibrary
Config
=
new
Robot_Config
(
0
,
""
,
configFile
);
Config
=
new
Robot_Config
(
0
,
""
,
configFile
);
Config
=
(
Robot_Config
)
CSVConfigReader
.
LoadConfig
(
Config
);
Config
=
(
Robot_Config
)
CSVConfigReader
.
LoadConfig
(
Config
);
CodeManager
.
LoadConfig
();
CodeManager
.
LoadConfig
();
PrintBean
=
new
Asa
.
PrintLabel
(
Application
.
StartupPath
+
"\\Label"
);
PrintBean
=
new
Asa
.
PrintLabel
(
Application
.
StartupPath
+
"\\Label"
,
100
);
var
ElectricGripperPort
=
ConfigHelper
.
Config
.
Get
(
"ElectricGripperPort"
);
var
ElectricGripperPort
=
ConfigHelper
.
Config
.
Get
(
"ElectricGripperPort"
);
electricGripper
=
new
ElectricGripper
();
electricGripper
=
new
ElectricGripper
();
...
...
DeviceLibrary/DeviceLibrary/CodeManager.cs
查看文件 @
b46a1f1
...
@@ -128,9 +128,10 @@ namespace DeviceLibrary
...
@@ -128,9 +128,10 @@ namespace DeviceLibrary
[
HandleProcessCorruptedStateExceptions
]
[
HandleProcessCorruptedStateExceptions
]
public
static
(
List
<
CodeInfo
>,
string
)
CameraScan
(
List
<
string
>
cameraNameList
)
public
static
(
List
<
CodeInfo
>,
Dictionary
<
string
,
string
>,
string
)
CameraScan
(
List
<
string
>
cameraNameList
)
{
{
List
<
CodeInfo
>
codeList
=
new
List
<
CodeInfo
>();
List
<
CodeInfo
>
codeList
=
new
List
<
CodeInfo
>();
Dictionary
<
string
,
string
>
keyword
=
new
Dictionary
<
string
,
string
>();
string
bitmapfilename
=
""
;
string
bitmapfilename
=
""
;
if
(
cameraNameList
==
null
||
cameraNameList
.
Count
<=
0
)
if
(
cameraNameList
==
null
||
cameraNameList
.
Count
<=
0
)
{
{
...
@@ -182,6 +183,12 @@ namespace DeviceLibrary
...
@@ -182,6 +183,12 @@ namespace DeviceLibrary
codeList
.
Add
(
new
CodeInfo
(
code
.
Text
,(
int
)
code
.
Center
.
X
,
(
int
)
code
.
Center
.
Y
,
code
.
CodeType
));
codeList
.
Add
(
new
CodeInfo
(
code
.
Text
,(
int
)
code
.
Center
.
X
,
(
int
)
code
.
Center
.
Y
,
code
.
CodeType
));
r
=
r
+
"##"
+
code
.
CodeType
+
":"
+
code
.
Text
;
r
=
r
+
"##"
+
code
.
CodeType
+
":"
+
code
.
Text
;
}
}
foreach
(
var
code
in
cc
.
workCodeKeyword
)
{
if
(!
keyword
.
ContainsKey
(
code
.
Key
))
keyword
.
Add
(
code
.
Key
,
code
.
Value
);
}
}
}
//if (codeList.Count() == 0)
//if (codeList.Count() == 0)
...
@@ -222,7 +229,7 @@ namespace DeviceLibrary
...
@@ -222,7 +229,7 @@ namespace DeviceLibrary
LogUtil
.
error
(
" 扫码出错:"
+
ex
.
ToString
());
LogUtil
.
error
(
" 扫码出错:"
+
ex
.
ToString
());
//throw new Exception("扫码出错");
//throw new Exception("扫码出错");
}
}
return
(
codeList
,
bitmapfilename
);
return
(
codeList
,
keyword
,
bitmapfilename
);
}
}
/// <summary>
/// <summary>
///
///
...
...
DeviceLibrary/DeviceLibrary/ElectricGripper.cs
查看文件 @
b46a1f1
...
@@ -34,7 +34,7 @@ namespace DeviceLibrary
...
@@ -34,7 +34,7 @@ namespace DeviceLibrary
{
{
GripperType
=
GripperTypeE
.
Gripper
;
GripperType
=
GripperTypeE
.
Gripper
;
if
(
moveInfo
!=
null
)
if
(
moveInfo
!=
null
)
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitAction
(
new
Func
<
WaitResultInfo
,
bool
>(
WaitAction
),
crc
.
GetString
(
crc
.
GetString
(
"Res0102"
,
"Form1_tabControl1___IOControl_groupBox1_btn夹爪夹紧_Text"
),
"夹爪夹紧"
)));
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitAction
(
new
Func
<
WaitResultInfo
,
bool
>(
WaitAction
),
crc
.
GetString
(
"Res0102"
,
"夹爪夹紧"
)));
if
(!
IsBusy
)
if
(!
IsBusy
)
{
{
axis
.
ResetError
();
axis
.
ResetError
();
...
@@ -71,7 +71,7 @@ namespace DeviceLibrary
...
@@ -71,7 +71,7 @@ namespace DeviceLibrary
else
else
{
{
if
(
moveInfo
!=
null
)
if
(
moveInfo
!=
null
)
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitAction
(
new
Func
<
WaitResultInfo
,
bool
>(
WaitAction
),
crc
.
GetString
(
crc
.
GetString
(
"Res0103"
,
"Form1_tabControl1___IOControl_groupBox1_btn夹爪放松_Text"
),
"夹爪放松"
)));
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitAction
(
new
Func
<
WaitResultInfo
,
bool
>(
WaitAction
),
crc
.
GetString
(
"Res0103"
,
"夹爪放松"
)));
return
false
;
return
false
;
}
}
}
}
...
...
dll/Asa.PrintLabel.dll
查看文件 @
b46a1f1
此文件类型无法预览
dll/ConfigHelper.dll
查看文件 @
b46a1f1
此文件类型无法预览
dll/ConfigHelper.xml
查看文件 @
b46a1f1
...
@@ -217,13 +217,13 @@
...
@@ -217,13 +217,13 @@
</member>
</member>
<member
name=
"M:ConfigHelper.MyConfig`1.op_Implicit(ConfigHelper.MyConfig{`0})~`0"
>
<member
name=
"M:ConfigHelper.MyConfig`1.op_Implicit(ConfigHelper.MyConfig{`0})~`0"
>
<summary>
<summary>
隐式转换
隐式转换
,读值
</summary>
</summary>
<param
name=
"m1"
></param>
<param
name=
"m1"
></param>
</member>
</member>
<member
name=
"M:ConfigHelper.MyConfig`1.op_Implicit(`0)~ConfigHelper.MyConfig{`0}"
>
<member
name=
"M:ConfigHelper.MyConfig`1.op_Implicit(`0)~ConfigHelper.MyConfig{`0}"
>
<summary>
<summary>
隐式转换
隐式转换
,写值
</summary>
</summary>
<param
name=
"v1"
></param>
<param
name=
"v1"
></param>
</member>
</member>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论