Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
MIMO
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 8563a8cf
由
刘韬
编写于
2022-08-10 17:02:39 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
03248b0f
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
625 行增加
和
34 行删除
DeviceLibrary/DeviceLibrary.csproj
DeviceLibrary/DeviceLibrary/AxisBean.cs
DeviceLibrary/DeviceLibrary/Camera.cs
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
DeviceLibrary/DeviceLibrary/SocketScanner.cs
DeviceLibrary/theMachine/LabelParam.cs
DeviceLibrary/theMachine/MainMachine_Clamp.cs
DeviceLibrary/userControl/FixtureSizeConfigControl.Designer.cs
DeviceLibrary/userControl/FixtureSizeConfigControl.cs
DeviceLibrary/userControl/FixtureSizeConfigControl.resx
TheMachine/SettingControl.Designer.cs
TheMachine/UC/StorePosControl.cs
TheMachine/UC/uc_boxdebug.cs
DeviceLibrary/DeviceLibrary.csproj
查看文件 @
8563a8c
...
...
@@ -126,6 +126,12 @@
<Compile Include="userControl\AxisTipControl.Designer.cs">
<DependentUpon>AxisTipControl.cs</DependentUpon>
</Compile>
<Compile Include="userControl\FixtureSizeConfigControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="userControl\FixtureSizeConfigControl.Designer.cs">
<DependentUpon>FixtureSizeConfigControl.cs</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="userControl\AxisMoveControl.resx">
...
...
@@ -134,6 +140,9 @@
<EmbeddedResource Include="userControl\AxisTipControl.resx">
<DependentUpon>AxisTipControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="userControl\FixtureSizeConfigControl.resx">
<DependentUpon>FixtureSizeConfigControl.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Common\Common.csproj">
...
...
DeviceLibrary/DeviceLibrary/AxisBean.cs
查看文件 @
8563a8c
...
...
@@ -357,21 +357,18 @@ namespace DeviceLibrary
return
true
;
}
private
bool
IsInProcess
=
false
;
private
DateTime
lastOkTime
=
DateTime
.
Now
;
private
void
CheckTimer_Elapsed
(
object
sender
,
System
.
Timers
.
ElapsedEventArgs
e
)
{
TimeSpan
pan
=
DateTime
.
Now
-
lastOkTime
;
if
(
IsInProcess
&&
pan
.
TotalMilliseconds
<
100
)
{
return
;
}
if
(
IsInProcess
)
{
return
;
}
try
{
IsInProcess
=
true
;
lastOkTime
=
DateTime
.
Now
;
if
(
IOManager
.
IOValue
(
TargetIoType
).
Equals
(
TargetIoValue
))
{
SuddenStop
();
StopAxisCheckMove
();
LogUtil
.
info
(
AxisName
+
"上料轴,检测到 "
+
TargetIoType
+
"="
+
TargetIoValue
+
",停止运动"
);
SuddenStop
();
}
}
catch
(
Exception
ex
)
...
...
DeviceLibrary/DeviceLibrary/Camera.cs
查看文件 @
8563a8c
...
...
@@ -156,6 +156,8 @@ public class HIKCamera
if
(
WareNumber
.
Length
>
200
)
{
WareNumber
=
""
;
}
if
(
string
.
IsNullOrEmpty
(
WareNumber
))
WareNumber
=
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd-HH-mm-ss"
);
string
dir
=
$
"\\image\\Fixture\\{storeMoveType}\\{PositionNum}\\"
;
Directory
.
CreateDirectory
(
dir
);
...
...
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
查看文件 @
8563a8c
...
...
@@ -159,12 +159,19 @@ namespace DeviceLibrary
//= 7x12 = CODE
foreach
(
string
str
in
codeList
)
{
string
code
=
str
.
Replace
(
"\r"
,
""
);
code
=
code
.
Replace
(
"\n"
,
""
);
string
code
=
str
.
Replace
(
"\r"
,
""
);
code
=
code
.
Replace
(
"\n"
,
""
);
//根据二维码开头获取固定尺寸
string
codeSize
=
$
"{reelw}x{reelh}"
;
message
=
message
+
"="
+
"1+0x0-"
+
codeSize
+
"="
+
code
+
spiltStr
;
if
(
FixtureConfig
.
GetCodeSize
(
str
,
out
int
h
,
out
int
w
,
out
bool
rcode
))
{
codeSize
=
$
"{w}x{h}"
;
if
(!
rcode
)
message
=
message
+
"="
+
"1+0x0-"
+
codeSize
+
"="
+
code
+
spiltStr
;
LogUtil
.
info
(
$
"加载到fixcode,{w}x{h},remove:{rcode}"
);
}
else
message
=
message
+
"="
+
"1+0x0-"
+
codeSize
+
"="
+
code
+
spiltStr
;
}
return
message
;
}
...
...
DeviceLibrary/DeviceLibrary/SocketScanner.cs
查看文件 @
8563a8c
...
...
@@ -72,6 +72,10 @@ namespace DeviceLibrary
{
return
false
;
}
while
(
socket
.
Client
.
Available
>
0
)
{
var
tmp
=
new
byte
[
200
];
socket
.
Client
.
Receive
(
tmp
);
}
var
bf
=
Encoding
.
ASCII
.
GetBytes
(
trigger
);
socket
.
Client
.
Send
(
bf
);
var
buff
=
new
byte
[
200
];
...
...
DeviceLibrary/theMachine/LabelParam.cs
查看文件 @
8563a8c
...
...
@@ -148,14 +148,23 @@ namespace DeviceLibrary
UpDown_PH
=
aCStorePosition
.
UpDownAxis_IHPosition_P3
;
UpDown_PL
=
aCStorePosition
.
UpDownAxis_ILPosition_P4
;
Comp_PH
=
Config
.
Comp_P2
-
Config
.
Comp_PoToMM
*
(
aCStorePosition
.
BagHigh
-
8
+
Config
.
Comp_PH_MM
);
Comp_PL
=
Config
.
Comp_P2
-
Config
.
Comp_PoToMM
*
(
reel
.
PlateH
-
8
)
-
(
reel
.
PlateH
>
8
?
Config
.
Comp_PoToMM
*
Config
.
Comp_PL_MM
:
0
);
int
BagHigh
=
aCStorePosition
.
BagHigh
;
if
(
FixtureConfig
.
GetFixtureHeight
(
aCStorePosition
.
BagWidth
,
aCStorePosition
.
BagHigh
,
out
int
actualheight
))
BagHigh
=
actualheight
;
Comp_PH
=
Config
.
Comp_P2
-
Config
.
Comp_PoToMM
*
(
BagHigh
-
8
+
Config
.
Comp_PH_MM
);
int
ReelHeight
=
reel
.
PlateH
;
if
(
FixtureConfig
.
GetFixtureHeight
(
reel
.
PlateW
,
reel
.
PlateH
,
out
int
actualheight1
))
ReelHeight
=
actualheight1
;
Comp_PL
=
Config
.
Comp_P2
-
Config
.
Comp_PoToMM
*
(
ReelHeight
-
8
);
Comp_PH
=
Comp_PH
<
0
?
0
:
Comp_PH
;
Comp_PL
=
Comp_PL
<
0
?
0
:
Comp_PL
;
posid
=
aCStorePosition
.
PositionNum
;
Reel
=
reel
.
clone
();
LogUtil
.
info
(
$
"BSP:{posid},Comp_PH:{Comp_PH}={Config.Comp_P2}-({
aCStorePosition.BagHigh}-{8}+{Config.Comp_PH_MM})*{Config.Comp_PoToMM},Comp_PL:{Comp_PL}={reel.PlateH},Comp_PL_MM:{Config.Comp_PL_MM
},{JsonHelper.SerializeObject(this)}"
);
LogUtil
.
info
(
$
"BSP:{posid},Comp_PH:{Comp_PH}={Config.Comp_P2}-({
BagHigh}-{8}+{Config.Comp_PH_MM})*{Config.Comp_PoToMM},Comp_PL:{Comp_PL}={ReelHeight
},{JsonHelper.SerializeObject(this)}"
);
}
public
const
string
ngdoor
=
"单料口"
;
public
const
string
clamp
=
"夹爪位"
;
...
...
@@ -163,8 +172,12 @@ namespace DeviceLibrary
public
BoxStorePosition
(
Robot_Config
Config
,
StoreSide
storeSide
,
ReelParam
reel
)
{
Comp_PH
=
Config
.
Comp_P2
-
Config
.
Comp_PoToMM
*
(
reel
.
PlateH
-
8
+
Config
.
Comp_PH_MM
);
Comp_PL
=
Config
.
Comp_P2
-
Config
.
Comp_PoToMM
*
(
reel
.
PlateH
-
8
)
-
(
reel
.
PlateH
>
8
?
Config
.
Comp_PoToMM
*
Config
.
Comp_PL_MM
:
0
);
int
Height
=
reel
.
PlateH
;
if
(
FixtureConfig
.
GetFixtureHeight
(
reel
.
PlateW
,
reel
.
PlateH
,
out
int
actualheight
))
Height
=
actualheight
;
Comp_PH
=
Config
.
Comp_P2
-
Config
.
Comp_PoToMM
*
(
Height
-
8
+
Config
.
Comp_PH_MM
);
Comp_PL
=
Config
.
Comp_P2
-
Config
.
Comp_PoToMM
*
(
Height
-
8
);
Comp_PH
=
Comp_PH
<
0
?
0
:
Comp_PH
;
Comp_PL
=
Comp_PL
<
0
?
0
:
Comp_PL
;
if
(
storeSide
==
StoreSide
.
NGDoor
)
...
...
DeviceLibrary/theMachine/MainMachine_Clamp.cs
查看文件 @
8563a8c
...
...
@@ -224,7 +224,7 @@ namespace DeviceLibrary
case
MoveStep
.
NGOUT_09
:
if
(
IOValue
(
IO_Type
.
SafetyLightCurtains
).
Equals
(
IO_VALUE
.
HIGH
)
&&
NGDoor_Tray_Test_Reel
)
{
ClampMoveInfo
.
log
(
"NG口
还是
检测到料盘"
);
ClampMoveInfo
.
log
(
"NG口
任然
检测到料盘"
);
ClampMoveInfo
.
NextMoveStep
(
MoveStep
.
NGOUT_06
);
}
else
if
(
IOValue
(
IO_Type
.
SafetyLightCurtains
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
NGDoor_Tray_Check
).
Equals
(
IO_VALUE
.
LOW
))
...
...
@@ -427,8 +427,6 @@ namespace DeviceLibrary
{
LastCodeList
=
CodeManager
.
CameraScan
(
CodeManager
.
hikNameList
);
}
return
LastCodeList
;
}));
}
...
...
DeviceLibrary/userControl/FixtureSizeConfigControl.Designer.cs
0 → 100644
查看文件 @
8563a8c
namespace
DeviceLibrary
{
partial
class
FixtureSizeConfigControl
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private
System
.
ComponentModel
.
IContainer
components
=
null
;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
disposing
&&
(
components
!=
null
))
{
components
.
Dispose
();
}
base
.
Dispose
(
disposing
);
}
#
region
组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private
void
InitializeComponent
()
{
this
.
listBox1
=
new
System
.
Windows
.
Forms
.
ListBox
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
num_width
=
new
System
.
Windows
.
Forms
.
NumericUpDown
();
this
.
num_height
=
new
System
.
Windows
.
Forms
.
NumericUpDown
();
this
.
textBox_startcode
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label_startword
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label_wxh
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
checkBox_useedremove
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
button2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox_add
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
checkBox_fixtureheight
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
num_actualheight
=
new
System
.
Windows
.
Forms
.
NumericUpDown
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
num_width
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
num_height
)).
BeginInit
();
this
.
groupBox_add
.
SuspendLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
num_actualheight
)).
BeginInit
();
this
.
SuspendLayout
();
//
// listBox1
//
this
.
listBox1
.
FormattingEnabled
=
true
;
this
.
listBox1
.
ItemHeight
=
12
;
this
.
listBox1
.
Location
=
new
System
.
Drawing
.
Point
(
37
,
15
);
this
.
listBox1
.
Name
=
"listBox1"
;
this
.
listBox1
.
Size
=
new
System
.
Drawing
.
Size
(
341
,
184
);
this
.
listBox1
.
TabIndex
=
0
;
this
.
listBox1
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
listBox1_SelectedIndexChanged
);
//
// button1
//
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
184
,
177
);
this
.
button1
.
Name
=
"button1"
;
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
112
,
30
);
this
.
button1
.
TabIndex
=
1
;
this
.
button1
.
Text
=
"添加/修改"
;
this
.
button1
.
UseVisualStyleBackColor
=
true
;
this
.
button1
.
Click
+=
new
System
.
EventHandler
(
this
.
button1_Click
);
//
// num_width
//
this
.
num_width
.
Font
=
new
System
.
Drawing
.
Font
(
"Arial Narrow"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
0
)));
this
.
num_width
.
Location
=
new
System
.
Drawing
.
Point
(
130
,
65
);
this
.
num_width
.
Maximum
=
new
decimal
(
new
int
[]
{
1000
,
0
,
0
,
0
});
this
.
num_width
.
Minimum
=
new
decimal
(
new
int
[]
{
1
,
0
,
0
,
0
});
this
.
num_width
.
Name
=
"num_width"
;
this
.
num_width
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
26
);
this
.
num_width
.
TabIndex
=
2
;
this
.
num_width
.
Value
=
new
decimal
(
new
int
[]
{
7
,
0
,
0
,
0
});
//
// num_height
//
this
.
num_height
.
Font
=
new
System
.
Drawing
.
Font
(
"Arial Narrow"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
0
)));
this
.
num_height
.
Location
=
new
System
.
Drawing
.
Point
(
216
,
65
);
this
.
num_height
.
Maximum
=
new
decimal
(
new
int
[]
{
1000
,
0
,
0
,
0
});
this
.
num_height
.
Minimum
=
new
decimal
(
new
int
[]
{
1
,
0
,
0
,
0
});
this
.
num_height
.
Name
=
"num_height"
;
this
.
num_height
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
26
);
this
.
num_height
.
TabIndex
=
2
;
this
.
num_height
.
Value
=
new
decimal
(
new
int
[]
{
8
,
0
,
0
,
0
});
//
// textBox_startcode
//
this
.
textBox_startcode
.
Location
=
new
System
.
Drawing
.
Point
(
130
,
21
);
this
.
textBox_startcode
.
Name
=
"textBox_startcode"
;
this
.
textBox_startcode
.
Size
=
new
System
.
Drawing
.
Size
(
248
,
21
);
this
.
textBox_startcode
.
TabIndex
=
3
;
//
// label_startword
//
this
.
label_startword
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
17
);
this
.
label_startword
.
Name
=
"label_startword"
;
this
.
label_startword
.
Size
=
new
System
.
Drawing
.
Size
(
117
,
26
);
this
.
label_startword
.
TabIndex
=
4
;
this
.
label_startword
.
Text
=
"匹配首字母:"
;
this
.
label_startword
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// label_wxh
//
this
.
label_wxh
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
66
);
this
.
label_wxh
.
Name
=
"label_wxh"
;
this
.
label_wxh
.
Size
=
new
System
.
Drawing
.
Size
(
117
,
26
);
this
.
label_wxh
.
TabIndex
=
4
;
this
.
label_wxh
.
Text
=
"对应宽x高(毫米):"
;
this
.
label_wxh
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// checkBox_useedremove
//
this
.
checkBox_useedremove
.
AutoSize
=
true
;
this
.
checkBox_useedremove
.
Checked
=
true
;
this
.
checkBox_useedremove
.
CheckState
=
System
.
Windows
.
Forms
.
CheckState
.
Checked
;
this
.
checkBox_useedremove
.
Location
=
new
System
.
Drawing
.
Point
(
52
,
185
);
this
.
checkBox_useedremove
.
Name
=
"checkBox_useedremove"
;
this
.
checkBox_useedremove
.
Size
=
new
System
.
Drawing
.
Size
(
72
,
16
);
this
.
checkBox_useedremove
.
TabIndex
=
5
;
this
.
checkBox_useedremove
.
Text
=
"弃用条码"
;
this
.
checkBox_useedremove
.
UseVisualStyleBackColor
=
true
;
this
.
checkBox_useedremove
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
checkBox_useedremove_CheckedChanged
);
//
// button2
//
this
.
button2
.
Location
=
new
System
.
Drawing
.
Point
(
397
,
167
);
this
.
button2
.
Name
=
"button2"
;
this
.
button2
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
32
);
this
.
button2
.
TabIndex
=
1
;
this
.
button2
.
Text
=
"删除"
;
this
.
button2
.
UseVisualStyleBackColor
=
true
;
this
.
button2
.
Click
+=
new
System
.
EventHandler
(
this
.
button2_Click
);
//
// groupBox_add
//
this
.
groupBox_add
.
Controls
.
Add
(
this
.
label_startword
);
this
.
groupBox_add
.
Controls
.
Add
(
this
.
checkBox_fixtureheight
);
this
.
groupBox_add
.
Controls
.
Add
(
this
.
checkBox_useedremove
);
this
.
groupBox_add
.
Controls
.
Add
(
this
.
num_actualheight
);
this
.
groupBox_add
.
Controls
.
Add
(
this
.
num_width
);
this
.
groupBox_add
.
Controls
.
Add
(
this
.
label_wxh
);
this
.
groupBox_add
.
Controls
.
Add
(
this
.
num_height
);
this
.
groupBox_add
.
Controls
.
Add
(
this
.
textBox_startcode
);
this
.
groupBox_add
.
Controls
.
Add
(
this
.
button1
);
this
.
groupBox_add
.
Location
=
new
System
.
Drawing
.
Point
(
37
,
230
);
this
.
groupBox_add
.
Name
=
"groupBox_add"
;
this
.
groupBox_add
.
Size
=
new
System
.
Drawing
.
Size
(
435
,
244
);
this
.
groupBox_add
.
TabIndex
=
6
;
this
.
groupBox_add
.
TabStop
=
false
;
this
.
groupBox_add
.
Text
=
"添加或修改"
;
//
// checkBox_fixtureheight
//
this
.
checkBox_fixtureheight
.
AutoSize
=
true
;
this
.
checkBox_fixtureheight
.
Checked
=
true
;
this
.
checkBox_fixtureheight
.
CheckState
=
System
.
Windows
.
Forms
.
CheckState
.
Checked
;
this
.
checkBox_fixtureheight
.
Location
=
new
System
.
Drawing
.
Point
(
52
,
108
);
this
.
checkBox_fixtureheight
.
Name
=
"checkBox_fixtureheight"
;
this
.
checkBox_fixtureheight
.
Size
=
new
System
.
Drawing
.
Size
(
156
,
16
);
this
.
checkBox_fixtureheight
.
TabIndex
=
5
;
this
.
checkBox_fixtureheight
.
Text
=
"使用治具物理高度(毫米)"
;
this
.
checkBox_fixtureheight
.
UseVisualStyleBackColor
=
true
;
//
// num_actualheight
//
this
.
num_actualheight
.
Font
=
new
System
.
Drawing
.
Font
(
"Arial Narrow"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
0
)));
this
.
num_actualheight
.
Location
=
new
System
.
Drawing
.
Point
(
82
,
139
);
this
.
num_actualheight
.
Maximum
=
new
decimal
(
new
int
[]
{
1000
,
0
,
0
,
0
});
this
.
num_actualheight
.
Minimum
=
new
decimal
(
new
int
[]
{
1
,
0
,
0
,
0
});
this
.
num_actualheight
.
Name
=
"num_actualheight"
;
this
.
num_actualheight
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
26
);
this
.
num_actualheight
.
TabIndex
=
2
;
this
.
num_actualheight
.
Value
=
new
decimal
(
new
int
[]
{
8
,
0
,
0
,
0
});
//
// FixtureSizeConfigControl
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
Controls
.
Add
(
this
.
groupBox_add
);
this
.
Controls
.
Add
(
this
.
listBox1
);
this
.
Controls
.
Add
(
this
.
button2
);
this
.
Name
=
"FixtureSizeConfigControl"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
602
,
489
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FixtureSizeConfigControl_Load
);
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
num_width
)).
EndInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
num_height
)).
EndInit
();
this
.
groupBox_add
.
ResumeLayout
(
false
);
this
.
groupBox_add
.
PerformLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
num_actualheight
)).
EndInit
();
this
.
ResumeLayout
(
false
);
}
#
endregion
private
System
.
Windows
.
Forms
.
NumericUpDown
num_height
;
private
System
.
Windows
.
Forms
.
NumericUpDown
num_width
;
private
System
.
Windows
.
Forms
.
Button
button1
;
private
System
.
Windows
.
Forms
.
ListBox
listBox1
;
private
System
.
Windows
.
Forms
.
CheckBox
checkBox_useedremove
;
private
System
.
Windows
.
Forms
.
Label
label_wxh
;
private
System
.
Windows
.
Forms
.
Label
label_startword
;
private
System
.
Windows
.
Forms
.
TextBox
textBox_startcode
;
private
System
.
Windows
.
Forms
.
Button
button2
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox_add
;
private
System
.
Windows
.
Forms
.
CheckBox
checkBox_fixtureheight
;
private
System
.
Windows
.
Forms
.
NumericUpDown
num_actualheight
;
}
}
DeviceLibrary/userControl/FixtureSizeConfigControl.cs
0 → 100644
查看文件 @
8563a8c
using
Newtonsoft.Json
;
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Drawing
;
using
System.IO
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
namespace
DeviceLibrary
{
public
partial
class
FixtureSizeConfigControl
:
UserControl
{
public
FixtureSizeConfigControl
()
{
InitializeComponent
();
}
private
void
FixtureSizeConfigControl_Load
(
object
sender
,
EventArgs
e
)
{
RefreshList
();
}
void
RefreshList
()
{
listBox1
.
Items
.
Clear
();
FixtureConfig
.
FixtureConfigList
.
ForEach
(
fc
=>
{
listBox1
.
Items
.
Add
(
fc
);
});
}
private
void
button1_Click
(
object
sender
,
EventArgs
e
)
{
if
(
string
.
IsNullOrWhiteSpace
(
textBox_startcode
.
Text
))
{
MessageBox
.
Show
(
"条码首字母不能为空"
);
return
;
}
FixtureConfig
fixtureConfig
=
new
FixtureConfig
();
fixtureConfig
.
StartCode
=
textBox_startcode
.
Text
.
Trim
();
fixtureConfig
.
Width
=
(
int
)
num_width
.
Value
;
fixtureConfig
.
Height
=
(
int
)
num_height
.
Value
;
fixtureConfig
.
UseActualHeight
=
checkBox_fixtureheight
.
Checked
;
fixtureConfig
.
ActualHeight
=
(
int
)
num_actualheight
.
Value
;
fixtureConfig
.
AbandonCode
=
checkBox_useedremove
.
Checked
;
FixtureConfig
.
Add
(
fixtureConfig
);
RefreshList
();
}
private
void
button2_Click
(
object
sender
,
EventArgs
e
)
{
if
(
listBox1
.
SelectedIndex
<
0
)
{
return
;
}
var
fc
=
(
FixtureConfig
)
listBox1
.
SelectedItem
;
FixtureConfig
.
Del
(
fc
);
RefreshList
();
}
private
void
listBox1_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
if
(
listBox1
.
SelectedIndex
<
0
)
return
;
var
fixtureConfig
=
(
FixtureConfig
)
listBox1
.
SelectedItem
;
textBox_startcode
.
Text
=
fixtureConfig
.
StartCode
;
num_width
.
Value
=
fixtureConfig
.
Width
;
num_height
.
Value
=
fixtureConfig
.
Height
;
checkBox_fixtureheight
.
Checked
=
fixtureConfig
.
UseActualHeight
;
num_actualheight
.
Value
=
fixtureConfig
.
ActualHeight
;
checkBox_useedremove
.
Checked
=
fixtureConfig
.
AbandonCode
;
}
private
void
checkBox_useedremove_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
}
}
public
class
FixtureConfig
{
public
string
StartCode
;
public
int
Width
;
public
int
Height
;
public
bool
UseActualHeight
;
public
int
ActualHeight
;
public
bool
AbandonCode
;
public
override
string
ToString
()
{
return
$
"[{StartCode}]={Width}x{Height}"
+
(
UseActualHeight
?
$
", "
+
"物理厚度"
+
$
":{ActualHeight}"
:
""
)
+
(
AbandonCode
?
", "
+
"自动弃用"
:
""
);
}
public
static
bool
GetCodeSize
(
string
code
,
out
int
FixtureHeight
,
out
int
FixtureWidth
,
out
bool
isAbandonCode
)
{
FixtureHeight
=
0
;
FixtureWidth
=
0
;
isAbandonCode
=
false
;
var
fcc
=
FixtureConfigList
.
Find
(
fc
=>
code
.
StartsWith
(
fc
.
StartCode
));
if
(
fcc
==
null
)
return
false
;
if
(!
fcc
.
UseActualHeight
)
return
false
;
FixtureHeight
=
fcc
.
Height
;
FixtureWidth
=
fcc
.
Width
;
isAbandonCode
=
fcc
.
AbandonCode
;
return
true
;
}
public
static
bool
GetFixtureHeight
(
int
poswidth
,
int
posheight
,
out
int
FixtureHeight
)
{
FixtureHeight
=
0
;
var
fcc
=
FixtureConfigList
.
Find
(
fc
=>
fc
.
Width
==
poswidth
&&
fc
.
Height
==
posheight
);
if
(
fcc
==
null
)
return
false
;
if
(!
fcc
.
UseActualHeight
)
return
false
;
FixtureHeight
=
fcc
.
ActualHeight
;
return
true
;
}
public
static
List
<
FixtureConfig
>
FixtureConfigList
=
new
List
<
FixtureConfig
>();
static
FixtureConfig
()
{
if
(!
File
.
Exists
(
"Config\\FixtureConfig.json"
))
return
;
try
{
var
fx
=
File
.
ReadAllText
(
"Config\\FixtureConfig.json"
);
FixtureConfigList
=
JsonConvert
.
DeserializeObject
<
List
<
FixtureConfig
>>(
fx
);
}
catch
{
}
}
public
static
void
Add
(
FixtureConfig
fixtureConfig
)
{
var
fcc
=
FixtureConfigList
.
FindIndex
(
fc
=>
fc
.
StartCode
==
fixtureConfig
.
StartCode
);
if
(
fcc
<
0
)
FixtureConfigList
.
Add
(
fixtureConfig
);
else
FixtureConfigList
[
fcc
]
=
fixtureConfig
;
Save
();
}
public
static
void
Del
(
FixtureConfig
fixtureConfig
)
{
var
fcc
=
FixtureConfigList
.
FindIndex
(
fc
=>
fc
.
StartCode
==
fixtureConfig
.
StartCode
);
if
(
fcc
<
0
)
return
;
else
FixtureConfigList
.
RemoveAt
(
fcc
);
Save
();
}
public
static
void
Save
()
{
File
.
WriteAllText
(
"Config\\FixtureConfig.json"
,
JsonConvert
.
SerializeObject
(
FixtureConfigList
));
}
}
}
DeviceLibrary/userControl/FixtureSizeConfigControl.resx
0 → 100644
查看文件 @
8563a8c
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
TheMachine/SettingControl.Designer.cs
查看文件 @
8563a8c
...
...
@@ -42,20 +42,23 @@ namespace TheMachine
this
.
tabControl1
=
new
System
.
Windows
.
Forms
.
TabControl
();
this
.
tabPage_set
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
tabPage_ledtower
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
tabPage1
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
fixtureSizeConfigControl1
=
new
DeviceLibrary
.
FixtureSizeConfigControl
();
this
.
tp
.
SuspendLayout
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabPage_set
.
SuspendLayout
();
this
.
tabPage_ledtower
.
SuspendLayout
();
this
.
tabPage1
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// chbAutoRun
//
this
.
chbAutoRun
.
AutoSize
=
true
;
this
.
tp
.
SetColumnSpan
(
this
.
chbAutoRun
,
2
);
this
.
chbAutoRun
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
1
75
);
this
.
chbAutoRun
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
1
66
);
this
.
chbAutoRun
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
10
);
this
.
chbAutoRun
.
Name
=
"chbAutoRun"
;
this
.
chbAutoRun
.
Size
=
new
System
.
Drawing
.
Size
(
101
,
19
);
this
.
chbAutoRun
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
16
);
this
.
chbAutoRun
.
TabIndex
=
1
;
this
.
chbAutoRun
.
Text
=
"开机自启动"
;
this
.
chbAutoRun
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -64,10 +67,10 @@ namespace TheMachine
//
this
.
cb_tempsensorport
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_tempsensorport
.
FormattingEnabled
=
true
;
this
.
cb_tempsensorport
.
Location
=
new
System
.
Drawing
.
Point
(
1
61
,
6
);
this
.
cb_tempsensorport
.
Location
=
new
System
.
Drawing
.
Point
(
1
39
,
6
);
this
.
cb_tempsensorport
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
6
);
this
.
cb_tempsensorport
.
Name
=
"cb_tempsensorport"
;
this
.
cb_tempsensorport
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
2
3
);
this
.
cb_tempsensorport
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
2
0
);
this
.
cb_tempsensorport
.
TabIndex
=
2
;
this
.
cb_tempsensorport
.
Tag
=
"not"
;
//
...
...
@@ -78,7 +81,7 @@ namespace TheMachine
this
.
label_tempsensor
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
10
);
this
.
label_tempsensor
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
10
);
this
.
label_tempsensor
.
Name
=
"label_tempsensor"
;
this
.
label_tempsensor
.
Size
=
new
System
.
Drawing
.
Size
(
1
35
,
15
);
this
.
label_tempsensor
.
Size
=
new
System
.
Drawing
.
Size
(
1
07
,
12
);
this
.
label_tempsensor
.
TabIndex
=
3
;
this
.
label_tempsensor
.
Text
=
"温湿度控制器端口:"
;
this
.
label_tempsensor
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
TopRight
;
...
...
@@ -86,7 +89,7 @@ namespace TheMachine
// button_positiontool
//
this
.
tp
.
SetColumnSpan
(
this
.
button_positiontool
,
2
);
this
.
button_positiontool
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
80
);
this
.
button_positiontool
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
74
);
this
.
button_positiontool
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
10
);
this
.
button_positiontool
.
Name
=
"button_positiontool"
;
this
.
button_positiontool
.
Size
=
new
System
.
Drawing
.
Size
(
181
,
36
);
...
...
@@ -99,10 +102,10 @@ namespace TheMachine
//
this
.
lbl_hmdstate
.
AutoSize
=
true
;
this
.
tp
.
SetColumnSpan
(
this
.
lbl_hmdstate
,
2
);
this
.
lbl_hmdstate
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
4
5
);
this
.
lbl_hmdstate
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
4
2
);
this
.
lbl_hmdstate
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
10
);
this
.
lbl_hmdstate
.
Name
=
"lbl_hmdstate"
;
this
.
lbl_hmdstate
.
Size
=
new
System
.
Drawing
.
Size
(
67
,
15
);
this
.
lbl_hmdstate
.
Size
=
new
System
.
Drawing
.
Size
(
53
,
12
);
this
.
lbl_hmdstate
.
TabIndex
=
5
;
this
.
lbl_hmdstate
.
Tag
=
"not"
;
this
.
lbl_hmdstate
.
Text
=
"当前状态"
;
...
...
@@ -137,17 +140,17 @@ namespace TheMachine
this
.
tp
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
());
this
.
tp
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
());
this
.
tp
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
());
this
.
tp
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
204
);
this
.
tp
.
Size
=
new
System
.
Drawing
.
Size
(
266
,
192
);
this
.
tp
.
TabIndex
=
6
;
//
// cb_usefixpos
//
this
.
cb_usefixpos
.
AutoSize
=
true
;
this
.
tp
.
SetColumnSpan
(
this
.
cb_usefixpos
,
2
);
this
.
cb_usefixpos
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
13
6
);
this
.
cb_usefixpos
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
13
0
);
this
.
cb_usefixpos
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
10
);
this
.
cb_usefixpos
.
Name
=
"cb_usefixpos"
;
this
.
cb_usefixpos
.
Size
=
new
System
.
Drawing
.
Size
(
116
,
19
);
this
.
cb_usefixpos
.
Size
=
new
System
.
Drawing
.
Size
(
96
,
16
);
this
.
cb_usefixpos
.
TabIndex
=
6
;
this
.
cb_usefixpos
.
Text
=
"启用校准库位"
;
this
.
cb_usefixpos
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -158,7 +161,7 @@ namespace TheMachine
this
.
uC_LedConfig1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
uC_LedConfig1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
uC_LedConfig1
.
Name
=
"uC_LedConfig1"
;
this
.
uC_LedConfig1
.
Size
=
new
System
.
Drawing
.
Size
(
1010
,
70
5
);
this
.
uC_LedConfig1
.
Size
=
new
System
.
Drawing
.
Size
(
1010
,
70
8
);
this
.
uC_LedConfig1
.
TabIndex
=
7
;
this
.
uC_LedConfig1
.
Tag
=
"not"
;
//
...
...
@@ -166,6 +169,7 @@ namespace TheMachine
//
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage_set
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage_ledtower
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage1
);
this
.
tabControl1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
tabControl1
.
Name
=
"tabControl1"
;
...
...
@@ -176,10 +180,10 @@ namespace TheMachine
// tabPage_set
//
this
.
tabPage_set
.
Controls
.
Add
(
this
.
tp
);
this
.
tabPage_set
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
2
5
);
this
.
tabPage_set
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
2
2
);
this
.
tabPage_set
.
Name
=
"tabPage_set"
;
this
.
tabPage_set
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage_set
.
Size
=
new
System
.
Drawing
.
Size
(
1016
,
71
1
);
this
.
tabPage_set
.
Size
=
new
System
.
Drawing
.
Size
(
1016
,
71
4
);
this
.
tabPage_set
.
TabIndex
=
0
;
this
.
tabPage_set
.
Text
=
"常规设置"
;
this
.
tabPage_set
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -187,14 +191,33 @@ namespace TheMachine
// tabPage_ledtower
//
this
.
tabPage_ledtower
.
Controls
.
Add
(
this
.
uC_LedConfig1
);
this
.
tabPage_ledtower
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
2
5
);
this
.
tabPage_ledtower
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
2
2
);
this
.
tabPage_ledtower
.
Name
=
"tabPage_ledtower"
;
this
.
tabPage_ledtower
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage_ledtower
.
Size
=
new
System
.
Drawing
.
Size
(
1016
,
71
1
);
this
.
tabPage_ledtower
.
Size
=
new
System
.
Drawing
.
Size
(
1016
,
71
4
);
this
.
tabPage_ledtower
.
TabIndex
=
1
;
this
.
tabPage_ledtower
.
Text
=
"灯塔设置"
;
this
.
tabPage_ledtower
.
UseVisualStyleBackColor
=
true
;
//
// tabPage1
//
this
.
tabPage1
.
Controls
.
Add
(
this
.
fixtureSizeConfigControl1
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
22
);
this
.
tabPage1
.
Name
=
"tabPage1"
;
this
.
tabPage1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
1016
,
714
);
this
.
tabPage1
.
TabIndex
=
2
;
this
.
tabPage1
.
Text
=
"治具设置"
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
//
// fixtureSizeConfigControl1
//
this
.
fixtureSizeConfigControl1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
fixtureSizeConfigControl1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
fixtureSizeConfigControl1
.
Name
=
"fixtureSizeConfigControl1"
;
this
.
fixtureSizeConfigControl1
.
Size
=
new
System
.
Drawing
.
Size
(
1010
,
708
);
this
.
fixtureSizeConfigControl1
.
TabIndex
=
0
;
//
// SettingControl
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
...
@@ -208,6 +231,7 @@ namespace TheMachine
this
.
tabPage_set
.
ResumeLayout
(
false
);
this
.
tabPage_set
.
PerformLayout
();
this
.
tabPage_ledtower
.
ResumeLayout
(
false
);
this
.
tabPage1
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
}
...
...
@@ -225,5 +249,7 @@ namespace TheMachine
private
System
.
Windows
.
Forms
.
TabControl
tabControl1
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage_set
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage_ledtower
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage1
;
private
DeviceLibrary
.
FixtureSizeConfigControl
fixtureSizeConfigControl1
;
}
}
TheMachine/UC/StorePosControl.cs
查看文件 @
8563a8c
...
...
@@ -259,8 +259,11 @@ namespace TheMachine
}
var
positionConfigFile
=
Path
.
Combine
(
Application
.
StartupPath
,
"StoreConfig\\linePositions.csv"
);
var
positionConfigFile1
=
Path
.
Combine
(
Application
.
StartupPath
,
"StoreConfig\\fixPositions.csv"
);
bool
result
=
CSVPositionReader
<
ACStorePosition
>.
SavePostion
(
positionConfigFile
,
_aCStorePosition
);
result
=
CSVPositionReader
<
ACStorePosition
>.
SavePostion
(
positionConfigFile1
,
_aCStorePosition
);
}
}
}
TheMachine/UC/uc_boxdebug.cs
查看文件 @
8563a8c
...
...
@@ -261,6 +261,9 @@ namespace TheMachine
string
ab
=
"A"
;
if
(
_posstr
[
2
].
Length
>
1
)
ab
=
_posstr
[
2
][
1
].
ToString
();
else
if
(
_posstr
[
1
].
Length
>
1
)
ab
=
_posstr
[
1
][
1
].
ToString
();
if
(
ab
!=
"A"
&&
ab
!=
"B"
)
{
if
(
ab
==
"1"
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论