Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC30-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 92694de8
由
刘韬
编写于
2021-08-18 15:21:53 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
添加库位调试
1 个父辈
ca0059a7
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
1495 行增加
和
33 行删除
source/ACSingleStore/AutoInOutStore.csproj
source/ACSingleStore/FrmStoreBox.Designer.cs
source/ACSingleStore/FrmStoreBox.cs
source/ACSingleStore/userControl/uc_boxdebug.cs
source/ACSingleStore/userControl/uc_boxdebug.designer.cs
source/ACSingleStore/userControl/uc_boxdebug.resx
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/ACSingleStore/AutoInOutStore.csproj
查看文件 @
92694de
...
...
@@ -101,6 +101,12 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ResourceCulture.cs" />
<Compile Include="userControl\uc_boxdebug.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="userControl\uc_boxdebug.designer.cs">
<DependentUpon>uc_boxdebug.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="FrmAxisDebug.resx">
<DependentUpon>FrmAxisDebug.cs</DependentUpon>
</EmbeddedResource>
...
...
@@ -152,6 +158,9 @@
<Content Include="model\sr.prototxt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<EmbeddedResource Include="userControl\uc_boxdebug.resx">
<DependentUpon>uc_boxdebug.cs</DependentUpon>
</EmbeddedResource>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
...
...
source/ACSingleStore/FrmStoreBox.Designer.cs
查看文件 @
92694de
...
...
@@ -212,6 +212,8 @@
this
.
英文
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator22
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
toolStripMenuItem6
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
tabPage6
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
uc_boxdebug1
=
new
OnlineStore
.
ACSingleStore
.
useControl
.
uc_boxdebug
();
this
.
contextMenuStrip1
.
SuspendLayout
();
this
.
groupAuto
.
SuspendLayout
();
this
.
groupBox6
.
SuspendLayout
();
...
...
@@ -226,6 +228,7 @@
this
.
groupAxis
.
SuspendLayout
();
this
.
groupInout
.
SuspendLayout
();
this
.
menuStrip1
.
SuspendLayout
();
this
.
tabPage6
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// timer1
...
...
@@ -608,6 +611,7 @@
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage4
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage5
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage2
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage6
);
this
.
tabControl1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
33
);
this
.
tabControl1
.
Name
=
"tabControl1"
;
...
...
@@ -2017,67 +2021,67 @@
// 启动ToolStripMenuItem
//
this
.
启动
ToolStripMenuItem
.
Name
=
"启动ToolStripMenuItem"
;
this
.
启动
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
启动
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
44
,
26
);
this
.
启动
ToolStripMenuItem
.
Text
=
"启动"
;
this
.
启动
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
启动
ToolStripMenuItem_Click
);
//
// toolStripSeparator1
//
this
.
toolStripSeparator1
.
Name
=
"toolStripSeparator1"
;
this
.
toolStripSeparator1
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
6
);
this
.
toolStripSeparator1
.
Size
=
new
System
.
Drawing
.
Size
(
1
41
,
6
);
//
// 停止ToolStripMenuItem
//
this
.
停止
ToolStripMenuItem
.
Name
=
"停止ToolStripMenuItem"
;
this
.
停止
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
停止
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
44
,
26
);
this
.
停止
ToolStripMenuItem
.
Text
=
"停止"
;
this
.
停止
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
停止
ToolStripMenuItem_Click
);
//
// toolStripSeparator2
//
this
.
toolStripSeparator2
.
Name
=
"toolStripSeparator2"
;
this
.
toolStripSeparator2
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
6
);
this
.
toolStripSeparator2
.
Size
=
new
System
.
Drawing
.
Size
(
1
41
,
6
);
//
// 复位ToolStripMenuItem
//
this
.
复位
ToolStripMenuItem
.
Name
=
"复位ToolStripMenuItem"
;
this
.
复位
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
复位
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
44
,
26
);
this
.
复位
ToolStripMenuItem
.
Text
=
"复位"
;
this
.
复位
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
复位
ToolStripMenuItem_Click
);
//
// toolStripSeparator15
//
this
.
toolStripSeparator15
.
Name
=
"toolStripSeparator15"
;
this
.
toolStripSeparator15
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
6
);
this
.
toolStripSeparator15
.
Size
=
new
System
.
Drawing
.
Size
(
1
41
,
6
);
//
// 上料模块复位ToolStripMenuItem
//
this
.
上料模块复位
ToolStripMenuItem
.
Name
=
"上料模块复位ToolStripMenuItem"
;
this
.
上料模块复位
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
上料模块复位
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
44
,
26
);
this
.
上料模块复位
ToolStripMenuItem
.
Text
=
"轴5复位"
;
this
.
上料模块复位
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
上料模块复位
ToolStripMenuItem_Click
);
//
// toolStripSeparator3
//
this
.
toolStripSeparator3
.
Name
=
"toolStripSeparator3"
;
this
.
toolStripSeparator3
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
6
);
this
.
toolStripSeparator3
.
Size
=
new
System
.
Drawing
.
Size
(
1
41
,
6
);
//
// 回待机点ToolStripMenuItem
//
this
.
回待机点
ToolStripMenuItem
.
Name
=
"回待机点ToolStripMenuItem"
;
this
.
回待机点
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
回待机点
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
44
,
26
);
this
.
回待机点
ToolStripMenuItem
.
Text
=
"回待机点"
;
this
.
回待机点
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
回待机点
ToolStripMenuItem_Click
);
//
// toolStripSeparator4
//
this
.
toolStripSeparator4
.
Name
=
"toolStripSeparator4"
;
this
.
toolStripSeparator4
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
6
);
this
.
toolStripSeparator4
.
Size
=
new
System
.
Drawing
.
Size
(
1
41
,
6
);
//
// 退出ToolStripMenuItem
//
this
.
退出
ToolStripMenuItem
.
Name
=
"退出ToolStripMenuItem"
;
this
.
退出
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
退出
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
44
,
26
);
this
.
退出
ToolStripMenuItem
.
Text
=
"退出系统"
;
this
.
退出
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
退出
ToolStripMenuItem_Click
);
//
...
...
@@ -2257,67 +2261,67 @@
// 轴卡点动ToolStripMenuItem
//
this
.
轴卡点动
ToolStripMenuItem
.
Name
=
"轴卡点动ToolStripMenuItem"
;
this
.
轴卡点动
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
轴卡点动
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
69
,
26
);
this
.
轴卡点动
ToolStripMenuItem
.
Text
=
"运动轴调试"
;
this
.
轴卡点动
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
轴卡点动
ToolStripMenuItem_Click
);
//
// toolStripSeparator9
//
this
.
toolStripSeparator9
.
Name
=
"toolStripSeparator9"
;
this
.
toolStripSeparator9
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
6
);
this
.
toolStripSeparator9
.
Size
=
new
System
.
Drawing
.
Size
(
1
66
,
6
);
//
// 升降轴位置调试ToolStripMenuItem
//
this
.
升降轴位置调试
ToolStripMenuItem
.
Name
=
"升降轴位置调试ToolStripMenuItem"
;
this
.
升降轴位置调试
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
升降轴位置调试
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
69
,
26
);
this
.
升降轴位置调试
ToolStripMenuItem
.
Text
=
"轴2位置调试"
;
this
.
升降轴位置调试
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
升降轴位置调试
ToolStripMenuItem_Click
);
//
// toolStripSeparator11
//
this
.
toolStripSeparator11
.
Name
=
"toolStripSeparator11"
;
this
.
toolStripSeparator11
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
6
);
this
.
toolStripSeparator11
.
Size
=
new
System
.
Drawing
.
Size
(
1
66
,
6
);
//
// 扫码测试ToolStripMenuItem
//
this
.
扫码测试
ToolStripMenuItem
.
Name
=
"扫码测试ToolStripMenuItem"
;
this
.
扫码测试
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
扫码测试
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
69
,
26
);
this
.
扫码测试
ToolStripMenuItem
.
Text
=
"扫码测试"
;
this
.
扫码测试
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
扫码测试
ToolStripMenuItem_Click
);
//
// toolStripSeparator10
//
this
.
toolStripSeparator10
.
Name
=
"toolStripSeparator10"
;
this
.
toolStripSeparator10
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
6
);
this
.
toolStripSeparator10
.
Size
=
new
System
.
Drawing
.
Size
(
1
66
,
6
);
//
// 摄像机调试ToolStripMenuItem
//
this
.
摄像机调试
ToolStripMenuItem
.
Name
=
"摄像机调试ToolStripMenuItem"
;
this
.
摄像机调试
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
摄像机调试
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
69
,
26
);
this
.
摄像机调试
ToolStripMenuItem
.
Text
=
"条码学习"
;
this
.
摄像机调试
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
摄像机调试
ToolStripMenuItem_Click
);
//
// toolStripSeparator20
//
this
.
toolStripSeparator20
.
Name
=
"toolStripSeparator20"
;
this
.
toolStripSeparator20
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
6
);
this
.
toolStripSeparator20
.
Size
=
new
System
.
Drawing
.
Size
(
1
66
,
6
);
//
// 出入库调试ToolStripMenuItem
//
this
.
出入库调试
ToolStripMenuItem
.
Name
=
"出入库调试ToolStripMenuItem"
;
this
.
出入库调试
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
出入库调试
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
69
,
26
);
this
.
出入库调试
ToolStripMenuItem
.
Text
=
"启用调试"
;
this
.
出入库调试
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
出入库调试
ToolStripMenuItem_Click
);
//
// toolStripSeparator23
//
this
.
toolStripSeparator23
.
Name
=
"toolStripSeparator23"
;
this
.
toolStripSeparator23
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
6
);
this
.
toolStripSeparator23
.
Size
=
new
System
.
Drawing
.
Size
(
1
66
,
6
);
//
// 打开日志ToolStripMenuItem
//
this
.
打开日志
ToolStripMenuItem
.
Name
=
"打开日志ToolStripMenuItem"
;
this
.
打开日志
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
打开日志
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
69
,
26
);
this
.
打开日志
ToolStripMenuItem
.
Text
=
"打开日志"
;
this
.
打开日志
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
打开日志
ToolStripMenuItem_Click
);
//
...
...
@@ -2336,34 +2340,53 @@
// 清理日志ToolStripMenuItem
//
this
.
清理日志
ToolStripMenuItem
.
Name
=
"清理日志ToolStripMenuItem"
;
this
.
清理日志
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
清理日志
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
12
,
26
);
this
.
清理日志
ToolStripMenuItem
.
Text
=
"中文"
;
this
.
清理日志
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
清理日志
ToolStripMenuItem_Click
);
//
// toolStripSeparator12
//
this
.
toolStripSeparator12
.
Name
=
"toolStripSeparator12"
;
this
.
toolStripSeparator12
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
6
);
this
.
toolStripSeparator12
.
Size
=
new
System
.
Drawing
.
Size
(
1
09
,
6
);
//
// 英文ToolStripMenuItem
//
this
.
英文
ToolStripMenuItem
.
Name
=
"英文ToolStripMenuItem"
;
this
.
英文
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
英文
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
12
,
26
);
this
.
英文
ToolStripMenuItem
.
Text
=
"英文"
;
this
.
英文
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
开启
DEBUGToolStripMenuItem_Click
);
//
// toolStripSeparator22
//
this
.
toolStripSeparator22
.
Name
=
"toolStripSeparator22"
;
this
.
toolStripSeparator22
.
Size
=
new
System
.
Drawing
.
Size
(
1
77
,
6
);
this
.
toolStripSeparator22
.
Size
=
new
System
.
Drawing
.
Size
(
1
09
,
6
);
//
// toolStripMenuItem6
//
this
.
toolStripMenuItem6
.
Name
=
"toolStripMenuItem6"
;
this
.
toolStripMenuItem6
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
toolStripMenuItem6
.
Size
=
new
System
.
Drawing
.
Size
(
1
12
,
26
);
this
.
toolStripMenuItem6
.
Text
=
"日语"
;
this
.
toolStripMenuItem6
.
Click
+=
new
System
.
EventHandler
(
this
.
toolStripMenuItem6_Click
);
//
// tabPage6
//
this
.
tabPage6
.
Controls
.
Add
(
this
.
uc_boxdebug1
);
this
.
tabPage6
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
tabPage6
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
30
);
this
.
tabPage6
.
Name
=
"tabPage6"
;
this
.
tabPage6
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage6
.
Size
=
new
System
.
Drawing
.
Size
(
1249
,
659
);
this
.
tabPage6
.
TabIndex
=
6
;
this
.
tabPage6
.
Text
=
"库位调试"
;
this
.
tabPage6
.
UseVisualStyleBackColor
=
true
;
//
// uc_boxdebug1
//
this
.
uc_boxdebug1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
6
);
this
.
uc_boxdebug1
.
Name
=
"uc_boxdebug1"
;
this
.
uc_boxdebug1
.
Size
=
new
System
.
Drawing
.
Size
(
1076
,
596
);
this
.
uc_boxdebug1
.
TabIndex
=
0
;
//
// FrmStoreBox
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
96F
,
96F
);
...
...
@@ -2403,6 +2426,7 @@
this
.
groupInout
.
PerformLayout
();
this
.
menuStrip1
.
ResumeLayout
(
false
);
this
.
menuStrip1
.
PerformLayout
();
this
.
tabPage6
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
...
...
@@ -2602,6 +2626,8 @@
private
System
.
Windows
.
Forms
.
PictureBox
picPPoint
;
private
System
.
Windows
.
Forms
.
PictureBox
picAxis4
;
private
System
.
Windows
.
Forms
.
CheckBox
chbDebug
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage6
;
private
ACSingleStore
.
useControl
.
uc_boxdebug
uc_boxdebug1
;
}
}
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
92694de
...
...
@@ -48,7 +48,7 @@ namespace OnlineStore.AutoInOutStore
LogUtil
.
error
(
LOGGER
,
"找不到对应的料仓"
);
return
;
}
uc_boxdebug1
.
Init
(
store
);
cmbAxisList
.
DataSource
=
new
List
<
ConfigMoveAxis
>(
store
.
moveAxisList
);
cmbAxisList
.
DisplayMember
=
"Explain"
;
cmbAxisList
.
ValueMember
=
"Explain"
;
...
...
@@ -1501,6 +1501,7 @@ namespace OnlineStore.AutoInOutStore
出入库调试
ToolStripMenuItem
.
Text
=
ResourceCulture
.
GetString
(
"启用调试"
,
"启用调试"
);
}
groupAxis
.
Enabled
=
status
;
uc_boxdebug1
.
Enabled
=
status
;
// groupComAxis.Enabled = status;
//groupInout.Enabled = status;
if
(!
status
)
...
...
source/ACSingleStore/userControl/uc_boxdebug.cs
0 → 100644
查看文件 @
92694de
using
log4net
;
using
OnlineStore.AutoInOutStore
;
using
OnlineStore.Common
;
using
OnlineStore.DeviceLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System.Collections
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Drawing
;
using
System.IO
;
using
System.Linq
;
using
System.Reflection
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
namespace
OnlineStore.ACSingleStore.useControl
{
public
partial
class
uc_boxdebug
:
UserControl
{
private
AC_SA_BoxBean
store
;
private
string
StartAuto
=
ResourceCulture
.
GetString
(
ResourceCulture
.
StartAuto
,
"开始自动出入库"
);
private
string
StopAuto
=
ResourceCulture
.
GetString
(
ResourceCulture
.
StopAuto
,
"停止自动出入库"
);
private
string
AutoOut
=
ResourceCulture
.
GetString
(
ResourceCulture
.
AutoOut
,
"自动出库:"
);
private
string
AutoIn
=
ResourceCulture
.
GetString
(
ResourceCulture
.
AutoIn
,
"自动入库:"
);
private
string
StartCycle
=
ResourceCulture
.
GetString
(
ResourceCulture
.
StartCycle
,
"开始循环出库"
);
private
string
StopCycle
=
ResourceCulture
.
GetString
(
ResourceCulture
.
StopCycle
,
"停止循环出库"
);
public
static
readonly
ILog
LOGGER
=
LogManager
.
GetLogger
(
MethodBase
.
GetCurrentMethod
().
DeclaringType
);
Dictionary
<
string
,
PosState
>
posState
=
new
Dictionary
<
string
,
PosState
>();
//如果总配置文件存在,保存到总的配置文件
static
string
appPath
=
Application
.
StartupPath
;
static
string
positionConfigFile
=
appPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Store_Position_Config
);
class
PosState
{
public
int
InStoreCheck
=
0
;
public
int
OutStoreCheck
=
0
;
}
public
uc_boxdebug
()
{
InitializeComponent
();
}
public
void
Init
(
AC_SA_BoxBean
store
)
{
this
.
store
=
this
.
store
=
store
;
if
(
store
==
null
)
{
LogUtil
.
error
(
LOGGER
,
"找不到对应的料仓"
);
return
;
}
StartAuto
=
ResourceCulture
.
GetString
(
"开始自动出入库"
);
StopAuto
=
ResourceCulture
.
GetString
(
"停止自动出入库"
);
AutoOut
=
ResourceCulture
.
GetString
(
"自动出库:"
);
AutoIn
=
ResourceCulture
.
GetString
(
"自动入库:"
);
FillBoxPos
();
cmbJianGe
.
Items
.
Clear
();
for
(
int
i
=
0
;
i
<=
20
;
i
++)
{
cmbJianGe
.
Items
.
Add
(
i
.
ToString
());
}
cmbJianGe
.
SelectedIndex
=
1
;
store
.
InOutEndProcessEvent
+=
Store_InOutEndProcessEvent
;
timer1
.
Enabled
=
true
;
return
;
}
private
void
Store_InOutEndProcessEvent
(
string
arg1
,
StoreMoveType
arg2
,
bool
arg3
)
{
//LogUtil.info($"出入库完成状态:{arg2},库位:{arg1}");
int
InStoreCheck
=
0
;
int
OutStoreCheck
=
0
;
if
(
arg2
==
StoreMoveType
.
InStore
)
InStoreCheck
=
1
;
else
if
(
arg2
==
StoreMoveType
.
OutStore
)
OutStoreCheck
=
1
;
var
pps
=
SavePosCheck
(
arg1
,
InStoreCheck
,
OutStoreCheck
);
if
(
htpp
.
ContainsKey
(
arg1
))
{
var
pp
=
(
PosPos
)
htpp
[
arg1
];
var
cells
=
dataGridView1
.
Rows
[
pp
.
row
].
Cells
[
pp
.
col
];
cells
.
Style
=
GetStyle
(
arg1
);
}
}
DataGridViewCellStyle
GetStyle
(
string
posid
)
{
if
(
htpp
.
ContainsKey
(
posid
)
&&
posState
.
ContainsKey
(
posid
))
{
var
pp
=
(
PosPos
)
htpp
[
posid
];
var
pps
=
(
PosState
)
posState
[
posid
];
var
cells
=
dataGridView1
.
Rows
[
pp
.
row
].
Cells
[
pp
.
col
];
cells
.
Selected
=
true
;
if
(
pps
.
InStoreCheck
==
1
&&
pps
.
OutStoreCheck
==
1
)
return
dgv_ok
;
else
if
(
pps
.
InStoreCheck
==
1
)
return
dgv_oin
;
else
if
(
pps
.
OutStoreCheck
==
1
)
return
dgv_oout
;
}
return
dgv_none
;
}
Hashtable
htpp
=
new
Hashtable
();
class
PosPos
{
public
string
Posid
;
public
int
index
;
public
int
row
;
public
int
col
;
}
int
PosCompare
(
string
a
,
string
b
)
{
string
[]
pa
=
a
.
Split
(
'_'
);
string
[]
pb
=
b
.
Split
(
'_'
);
if
(
pa
[
1
].
Length
==
1
)
pa
[
1
]
+=
"A"
;
if
(
pb
[
1
].
Length
==
1
)
pb
[
1
]
+=
"A"
;
var
isa
=
pa
[
1
][
0
]+(
pa
[
1
][
1
].
Equals
(
'A'
)
?
"1"
:
"2"
)
+
pa
[
2
][
0
]
+
pa
[
3
].
PadLeft
(
2
,
'0'
);
var
isb
=
pb
[
1
][
0
]+(
pb
[
1
][
1
].
Equals
(
'A'
)
?
"1"
:
"2"
)
+
pb
[
2
][
0
]
+
pb
[
3
].
PadLeft
(
2
,
'0'
);
if
(
int
.
Parse
(
isa
)
==
int
.
Parse
(
isb
))
return
0
;
else
if
(
int
.
Parse
(
isa
)
>
int
.
Parse
(
isb
))
return
1
;
else
return
-
1
;
}
void
LoadPosCheck
()
{
var
poscheckfile
=
positionConfigFile
+
".check"
;
if
(
File
.
Exists
(
poscheckfile
))
{
try
{
posState
=
JsonHelper
.
DeserializeJsonToObject
<
Dictionary
<
string
,
PosState
>>(
File
.
ReadAllText
(
poscheckfile
));
File
.
Copy
(
poscheckfile
,
poscheckfile
+
".backup"
,
true
);
}
catch
{
if
(
File
.
Exists
(
poscheckfile
+
".backup"
))
{
File
.
Copy
(
poscheckfile
+
".backup"
,
poscheckfile
,
true
);
File
.
Delete
(
poscheckfile
+
".backup"
);
LoadPosCheck
();
}
}
}
else
{
File
.
WriteAllText
(
poscheckfile
,
JsonHelper
.
SerializeObject
(
posState
));
}
}
PosState
SavePosCheck
(
string
posid
,
int
inStoreCheck
,
int
outStoreCheck
)
{
if
(!
posState
.
ContainsKey
(
posid
))
posState
.
Add
(
posid
,
new
PosState
());
if
(
inStoreCheck
>
0
)
posState
[
posid
].
InStoreCheck
=
inStoreCheck
;
if
(
outStoreCheck
>
0
)
posState
[
posid
].
OutStoreCheck
=
outStoreCheck
;
var
poscheckfile
=
positionConfigFile
+
".check"
;
File
.
WriteAllText
(
poscheckfile
,
JsonHelper
.
SerializeObject
(
posState
));
return
posState
[
posid
];
}
static
Font
font
=
new
Font
(
"宋体"
,
10
);
DataGridViewCellStyle
dgv_ok
=
new
DataGridViewCellStyle
()
{
BackColor
=
Color
.
LightGreen
,
Font
=
font
};
DataGridViewCellStyle
dgv_oin
=
new
DataGridViewCellStyle
()
{
BackColor
=
Color
.
LightGray
,
Font
=
font
};
DataGridViewCellStyle
dgv_oout
=
new
DataGridViewCellStyle
()
{
BackColor
=
Color
.
LightSeaGreen
,
Font
=
font
};
DataGridViewCellStyle
dgv_none
=
new
DataGridViewCellStyle
()
{
BackColor
=
Color
.
White
,
Font
=
font
};
void
FillBoxPos
()
{
LoadPosCheck
();
Comparison
<
string
>
comparison
=
new
Comparison
<
string
>(
PosCompare
);
store
.
PositionNumList
.
Sort
(
comparison
);
//store.PositionNumList.Reverse();
string
[]
posstr
=
store
.
PositionNumList
[
store
.
PositionNumList
.
Count
-
1
].
Split
(
'_'
);
int
colcount
=
int
.
Parse
(
posstr
[
1
][
0
].
ToString
())+
1
;
for
(
int
i
=
0
;
i
<
colcount
;
i
++)
{
dataGridView1
.
Columns
.
Add
(
"Col"
+
i
+
"_A"
,
"Col"
+
i
+
"_A"
);
dataGridView1
.
Columns
.
Add
(
"Col"
+
i
+
"_B"
,
"Col"
+
i
+
"_B"
);
}
for
(
int
i
=
0
;
i
<
dataGridView1
.
Columns
.
Count
;
i
++)
{
dataGridView1
.
Columns
[
i
].
Width
=
64
;
dataGridView1
.
Columns
[
i
].
SortMode
=
DataGridViewColumnSortMode
.
NotSortable
;
if
(
i
%
2
!=
0
)
dataGridView1
.
Columns
[
i
].
Width
=
0
;
}
dataGridView1
.
Rows
.
Add
();
int
currentRowIndex
=
0
;
int
lastcol
=
-
1
;
string
lastAB
=
""
;
for
(
int
i
=
0
;
i
<
store
.
PositionNumList
.
Count
;
i
++)
{
int
ci
=
store
.
PositionNumList
.
Count
-
1
-
i
;
string
posname
=
store
.
PositionNumList
[
ci
];
string
[]
_posstr
=
posname
.
Split
(
'_'
);
int
col
=
int
.
Parse
(
_posstr
[
1
][
0
].
ToString
());
string
ab
=
"A"
;
if
(
_posstr
[
1
].
Length
>
1
)
ab
=
_posstr
[
1
][
1
].
ToString
();
if
(
col
!=
lastcol
||
lastAB
!=
ab
)
currentRowIndex
=
0
;
lastcol
=
col
;
lastAB
=
ab
;
if
(
currentRowIndex
>=
dataGridView1
.
Rows
.
Count
-
1
)
{
int
x
=
dataGridView1
.
Rows
.
Add
();
}
var
currentRow
=
dataGridView1
.
Rows
[
currentRowIndex
];
int
currentColIndex
=
col
*
2
;
if
(
ab
.
ToLower
()
==
"b"
)
currentColIndex
++;
currentRow
.
Cells
[
currentColIndex
].
Value
=
$
"{_posstr[1]}_{_posstr[2]}_{_posstr[3]}"
;
currentRow
.
Cells
[
currentColIndex
].
Tag
=
posname
;
htpp
.
Add
(
posname
,
new
PosPos
()
{
Posid
=
posname
,
index
=
i
,
row
=
currentRowIndex
,
col
=
currentColIndex
});
currentRow
.
Cells
[
currentColIndex
].
Style
=
GetStyle
(
posname
);
currentRowIndex
++;
}
dataGridView1
.
Rows
.
RemoveAt
(
dataGridView1
.
Rows
.
Count
-
1
);
}
void
setData
(
string
posid
)
{
AutoStorePosition
ktkPosition
=
CSVPositionReader
<
AutoStorePosition
>.
GetPositon
(
posid
);
cmbPosition
.
Text
=
posid
;
if
(
ktkPosition
!=
null
)
{
txtMiddleP2
.
Text
=
ktkPosition
.
MiddleAxis_Position_P2
.
ToString
();
txtUpDownP3
.
Text
=
ktkPosition
.
UpDownAxis_IHPosition_P3
.
ToString
();
txtUpDownP4
.
Text
=
ktkPosition
.
UpDownAxis_ILPosition_P4
.
ToString
();
txtUpDownP5
.
Text
=
ktkPosition
.
UpDownAxis_OHPosition_P5
.
ToString
();
txtUpDownP6
.
Text
=
ktkPosition
.
UpDownAxis_OLPosition_P6
.
ToString
();
txtComP2
.
Text
=
ktkPosition
.
CompressAxis_Position_P2
.
ToString
();
txtComP3
.
Text
=
ktkPosition
.
CompressAxis_CPosition_P3
.
ToString
();
txtInOutP3
.
Text
=
ktkPosition
.
InOutAxis_Position_P3
.
ToString
();
txtInOutP2
.
Text
=
ktkPosition
.
InOutAxis_Batch_P2
.
ToString
();
txtInoutP4
.
Text
=
ktkPosition
.
InOutAxis_DoorOutPosition_P4
.
ToString
();
txtUpDownP1
.
Text
=
store
.
Config
.
GetUpDownP1
(
ktkPosition
.
BagHeight
).
ToString
();
//txtUpDownP2.Text = ktkPosition.UpDownAxis_DoorIPosition_P2.ToString();
//txtUpDownP7.Text = ktkPosition.UpDownAxis_DoorOBPosition_P7.ToString();
//txtUpDownP8.Text = ktkPosition.UpDownAxis_DoorIBPosition_P8.ToString();
//txtInOutP2.Text = ktkPosition.InOutAxis_DoorPosition_P2.ToString();
//txtUpDownP1.Text = ktkPosition.UpDownAxis_DoorOPosition_P1.ToString();
if
(
ktkPosition
.
SupportBatch
.
Equals
(
1
))
{
btnBatchOutTest
.
Enabled
=
true
;
}
else
{
btnBatchOutTest
.
Enabled
=
false
;
}
}
}
private
void
btnStart_Click
(
object
sender
,
EventArgs
e
)
{
if
(
store
.
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
{
if
(
store
.
autoNext
)
{
store
.
autoNext
=
false
;
btnStart
.
Text
=
StartAuto
;
}
else
{
DialogResult
res
=
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
"确定开始自动出入库?"
,
"确定开始自动出入库?"
),
ResourceCulture
.
GetString
(
ResourceCulture
.
MsgTitle
,
"提示"
),
MessageBoxButtons
.
YesNo
);
if
(
res
.
Equals
(
DialogResult
.
Yes
))
{
int
jiange
=
cmbJianGe
.
SelectedIndex
;
store
.
autoJiange
=
jiange
;
if
(
cmbPosition
.
Text
!=
""
)
{
int
currIndex
=
store
.
PositionNumList
.
IndexOf
(
cmbPosition
.
Text
);
store
.
autoPositionIndex
=
currIndex
;
store
.
AutoStartIndex
=
currIndex
;
string
poText
=
cmbPosition
.
Text
;
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
DebugPosId
,
poText
);
store
.
autoMsg
=
ResourceCulture
.
GetString
(
"自动出入库"
,
"自动出入库"
)
+
":"
+
poText
;
store
.
autoNext
=
true
;
LogUtil
.
info
(
LOGGER
,
store
.
StoreName
+
"开启自动出入库模式,开始位置【"
+
poText
+
"】(索引="
+
currIndex
+
"),间隔="
+
jiange
+
""
);
btnStart
.
Text
=
StopAuto
;
//DebugStatus(false);
string
msg
=
AutomaticBaiting
.
doStartBatchIn
();
LogUtil
.
info
(
"自动出入库: 开始自动入库:库位号【"
+
poText
+
"】,开始入库,结果:"
+
msg
);
}
}
}
}
else
{
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
PleaseStartStore
,
"请先启动料仓!"
));
}
}
private
void
AxisABSMove
(
ConfigMoveAxis
moveAxis
,
int
targetPosition
,
int
targetSpeed
)
{
moveAxis
.
TargetPosition
=
targetPosition
;
ACServerManager
.
AbsMove
(
moveAxis
.
DeviceName
,
moveAxis
.
GetAxisValue
(),
targetPosition
,
targetSpeed
);
}
private
void
btnOutStore_Click
(
object
sender
,
EventArgs
e
)
{
if
(
store
.
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
{
string
selectPositionNum
=
cmbPosition
.
Text
;
LineMoveP
ktk
=
LoadPostion
();
store
.
StartOutStoreMove
(
new
InOutStoreParam
(
""
,
selectPositionNum
,
ktk
),
false
);
}
else
{
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
PleaseStartStore
,
"请先启动料仓!"
));
}
}
/// <summary>
/// 判断进出轴是否在P1点
/// </summary>
private
bool
InOutIsIsP1
()
{
int
InOutDefaultPosition
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
InOutDefaultPosition
);
//if (InOutDefaultPosition > 3000 || InOutDefaultPosition.Equals(0))
//{
// InOutDefaultPosition = 3000;
//}
int
currValue
=
ACServerManager
.
GetActualtPosition
(
store
.
Config
.
InOut_Axis
.
DeviceName
,
store
.
Config
.
InOut_Axis
.
GetAxisValue
());
if
(
currValue
<=
InOutDefaultPosition
)
{
return
true
;
}
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
InoutNotOk
,
"叉子不在待机位,请先将叉子退回待机位"
)
+
"("
+
InOutDefaultPosition
+
")!"
,
ResourceCulture
.
GetString
(
ResourceCulture
.
InoutWarn
,
"警告(叉子在待机位时,才能移动升降轴和旋转轴)"
),
MessageBoxButtons
.
OK
,
MessageBoxIcon
.
Exclamation
);
return
false
;
}
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
if
(!
Visible
)
return
;
StartAuto
=
ResourceCulture
.
GetString
(
ResourceCulture
.
StartAuto
,
"开始自动出入库"
);
StopAuto
=
ResourceCulture
.
GetString
(
ResourceCulture
.
StopAuto
,
"停止自动出入库"
);
AutoOut
=
ResourceCulture
.
GetString
(
ResourceCulture
.
AutoOut
,
"自动出库:"
);
AutoIn
=
ResourceCulture
.
GetString
(
ResourceCulture
.
AutoIn
,
"自动入库:"
);
StartCycle
=
ResourceCulture
.
GetString
(
ResourceCulture
.
StartCycle
,
"开始循环出库"
);
StopCycle
=
ResourceCulture
.
GetString
(
ResourceCulture
.
StopCycle
,
"停止循环出库"
);
if
(
store
.
storeRunStatus
>
StoreRunStatus
.
Wait
)
{
if
(
store
.
autoNext
)
{
string
msg
=
store
.
autoMsg
;
groupAuto
.
Text
=
msg
;
if
(
btnStart
.
Text
.
Equals
(
StartAuto
))
{
btnStart
.
Text
=
StopAuto
;
}
try
{
msg
=
msg
.
Replace
(
AutoOut
,
""
);
msg
=
msg
.
Replace
(
AutoIn
,
""
);
//msg = msg.Replace("自动出库:", "");
//msg = msg.Replace("自动入库:", "");
int
index
=
store
.
PositionNumList
.
IndexOf
(
msg
);
if
(
index
>=
0
&&
(!
msg
.
Equals
(
""
)))
{
if
(
htpp
.
ContainsKey
(
msg
))
{
var
pp
=
(
PosPos
)
htpp
[
msg
];
dataGridView1
.
Rows
[
pp
.
row
].
Cells
[
pp
.
col
].
Selected
=
true
;
setData
(
msg
);
}
}
}
catch
(
Exception
ex
)
{
}
}
else
{
groupAuto
.
Text
=
ResourceCulture
.
GetString
(
"自动出入库操作"
);
btnStart
.
Text
=
StartAuto
;
}
if
(
store
.
CycleOut
)
{
if
(
btnStart
.
Text
.
Equals
(
StartCycle
))
{
btnStart
.
Text
=
StopCycle
;
}
}
else
{
if
(
btnStart
.
Text
.
Equals
(
StopCycle
))
{
btnStart
.
Text
=
StartCycle
;
}
}
}
else
{
groupAuto
.
Text
=
StartAuto
;
//lblWarnMsg.Text = "";
btnStart
.
Text
=
StartAuto
;
}
}
private
void
btnSavePosition_Click
(
object
sender
,
EventArgs
e
)
{
//料仓格子位置保存
string
selectPositionNum
=
cmbPosition
.
Text
;
AutoStorePosition
ktkPosition
=
CSVPositionReader
<
AutoStorePosition
>.
GetPositon
(
selectPositionNum
);
if
(
ktkPosition
!=
null
)
{
ktkPosition
.
MiddleAxis_Position_P2
=
FormUtil
.
GetIntValue
(
txtMiddleP2
);
ktkPosition
.
UpDownAxis_IHPosition_P3
=
FormUtil
.
GetIntValue
(
txtUpDownP3
);
ktkPosition
.
UpDownAxis_ILPosition_P4
=
FormUtil
.
GetIntValue
(
txtUpDownP4
);
ktkPosition
.
UpDownAxis_ILPosition_P4
=
FormUtil
.
GetIntValue
(
txtUpDownP4
);
ktkPosition
.
InOutAxis_Position_P3
=
FormUtil
.
GetIntValue
(
txtInOutP3
);
ktkPosition
.
CompressAxis_CPosition_P3
=
FormUtil
.
GetIntValue
(
txtComP3
);
ktkPosition
.
UpDownAxis_OHPosition_P5
=
FormUtil
.
GetIntValue
(
txtUpDownP5
);
ktkPosition
.
UpDownAxis_OLPosition_P6
=
FormUtil
.
GetIntValue
(
txtUpDownP6
);
ktkPosition
.
CompressAxis_Position_P2
=
FormUtil
.
GetIntValue
(
txtComP2
);
ktkPosition
.
InOutAxis_Batch_P2
=
FormUtil
.
GetIntValue
(
txtInOutP2
);
ktkPosition
.
InOutAxis_DoorOutPosition_P4
=
FormUtil
.
GetIntValue
(
txtInoutP4
);
//ktkPosition.UpDownAxis_DoorIPosition_P2 = FormUtil.GetIntValue(txtUpDownP2);
//ktkPosition.UpDownAxis_DoorOBPosition_P7 = FormUtil.GetIntValue(txtUpDownP7);
//ktkPosition.UpDownAxis_DoorIBPosition_P8 = FormUtil.GetIntValue(txtUpDownP8);
//ktkPosition.InOutAxis_DoorPosition_P2 = FormUtil.GetIntValue(txtInOutP2);
//ktkPosition.UpDownAxis_DoorOPosition_P1 = FormUtil.GetIntValue(txtUpDownP1);
}
//位置配置
string
appPath
=
Application
.
StartupPath
;
//如果总配置文件存在,保存到总的配置文件
string
positionConfigFile
=
appPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Store_Position_Config
);
if
(!
File
.
Exists
(
positionConfigFile
))
{
positionConfigFile
=
appPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Store_Position_Config
,
"_"
+
store
.
StoreID
.
ToString
());
}
bool
result
=
CSVPositionReader
<
AutoStorePosition
>.
SavePostion
(
positionConfigFile
,
ktkPosition
);
if
(!
result
)
{
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
SaveError
,
"保存失败"
));
}
//料仓固定位置保存
bool
needUpdate
=
false
;
if
(
ktkPosition
!=
null
)
{
if
(
store
.
Config
.
GetUpDownP1
(
ktkPosition
.
BagHeight
)
!=
FormUtil
.
GetIntValue
(
txtUpDownP1
))
{
store
.
Config
.
UpdateUpDownP1
(
ktkPosition
.
BagHeight
,
FormUtil
.
GetIntValue
(
txtUpDownP1
));
needUpdate
=
true
;
}
if
(
store
.
Config
.
GetComP2
(
ktkPosition
.
BagHeight
)
!=
FormUtil
.
GetIntValue
(
txtComP2
))
{
store
.
Config
.
UpdateComP2
(
ktkPosition
.
BagHeight
,
FormUtil
.
GetIntValue
(
txtComP2
));
needUpdate
=
true
;
}
}
if
(
needUpdate
)
{
//更新缓存
StoreManager
.
UpdateBoxConfig
(
store
.
Config
);
}
}
private
void
dataGridView1_CellMouseDown
(
object
sender
,
DataGridViewCellMouseEventArgs
e
)
{
if
(
e
.
RowIndex
<
0
||
dataGridView1
.
Rows
[
e
.
RowIndex
].
Cells
[
e
.
ColumnIndex
].
Tag
==
null
)
return
;
var
posid
=
dataGridView1
.
Rows
[
e
.
RowIndex
].
Cells
[
e
.
ColumnIndex
].
Tag
.
ToString
();
setData
(
posid
);
}
private
void
btnUpDownP1_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtUpDownP1
);
AxisABSMove
(
store
.
Config
.
UpDown_Axis
,
value
,
store
.
Config
.
UpDownAxis_P1_Speed
);
}
}
private
void
btnUpDownP3_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtUpDownP3
);
AxisABSMove
(
store
.
Config
.
UpDown_Axis
,
value
,
store
.
Config
.
UpDownAxis_P3_Speed
);
}
}
private
void
btnUpDownP4_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtUpDownP4
);
AxisABSMove
(
store
.
Config
.
UpDown_Axis
,
value
,
store
.
Config
.
UpDownAxis_P4_Speed
);
}
}
private
void
btnUpDownP5_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtUpDownP5
);
AxisABSMove
(
store
.
Config
.
UpDown_Axis
,
value
,
store
.
Config
.
UpDownAxis_P5_Speed
);
}
}
private
void
btnUpDownP6_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtUpDownP6
);
AxisABSMove
(
store
.
Config
.
UpDown_Axis
,
value
,
store
.
Config
.
UpDownAxis_P6_Speed
);
}
}
private
void
btnMiddleP2_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtMiddleP2
);
AxisABSMove
(
store
.
Config
.
Middle_Axis
,
value
,
store
.
Config
.
MiddleAxis_P2_Speed
);
}
}
private
void
btnInOutP3_Click
(
object
sender
,
EventArgs
e
)
{
int
value
=
FormUtil
.
GetIntValue
(
txtInOutP3
);
AxisABSMove
(
store
.
Config
.
InOut_Axis
,
value
,
store
.
Config
.
InOutAxis_P3_Speed
);
}
private
void
btnInOutP2_Click
(
object
sender
,
EventArgs
e
)
{
int
value
=
FormUtil
.
GetIntValue
(
txtInOutP2
);
AxisABSMove
(
store
.
Config
.
InOut_Axis
,
value
,
store
.
Config
.
InOutAxis_P2_Speed
);
}
private
void
btnComP2_Click
(
object
sender
,
EventArgs
e
)
{
int
value
=
FormUtil
.
GetIntValue
(
txtComP2
);
AxisABSMove
(
store
.
Config
.
Comp_Axis
,
value
,
store
.
Config
.
CompAxis_P2_Speed
);
//ShuoKeControls.AbsMove(store.Config.CompressAxis_Slv, value);
}
private
void
btnComP3_Click
(
object
sender
,
EventArgs
e
)
{
int
value
=
FormUtil
.
GetIntValue
(
txtComP3
);
AxisABSMove
(
store
.
Config
.
Comp_Axis
,
value
,
store
.
Config
.
CompAxis_P3_Speed
);
//ShuoKeControls.AbsMove(store.Config.CompressAxis_Slv, value);
}
private
void
btnInOutP4_Click
(
object
sender
,
EventArgs
e
)
{
int
value
=
FormUtil
.
GetIntValue
(
txtInoutP4
);
AxisABSMove
(
store
.
Config
.
InOut_Axis
,
value
,
store
.
Config
.
InOutAxis_P2_Speed
);
}
private
void
btnBatchOutTest_Click
(
object
sender
,
EventArgs
e
)
{
if
(
store
.
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
{
string
selectPositionNum
=
cmbPosition
.
Text
;
LineMoveP
ktk
=
LoadPostion
();
store
.
StartOutStoreMove
(
new
InOutStoreParam
(
""
,
selectPositionNum
,
ktk
),
true
);
}
else
{
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
PleaseStartStore
,
"请先启动料仓!"
));
}
}
private
LineMoveP
LoadPostion
()
{
LineMoveP
ktk
=
new
LineMoveP
();
//ktk.ComPress_P1 = FormUtil.GetIntValue(txtComP1);
ktk
.
ComPress_P1
=
store
.
Config
.
CompressAxis_P1_Position
;
ktk
.
ComPress_P2
=
FormUtil
.
GetIntValue
(
txtComP2
);
ktk
.
ComPress_P3
=
FormUtil
.
GetIntValue
(
txtComP3
);
//ktk.InOut_P1 = FormUtil.GetIntValue(txtInOutP1);
ktk
.
InOut_P1
=
store
.
Config
.
InOutAxis_P1_Position
;
ktk
.
InOut_P2
=
FormUtil
.
GetIntValue
(
txtInOutP2
);
ktk
.
InOut_P4
=
FormUtil
.
GetIntValue
(
txtInoutP4
);
ktk
.
InOut_P3
=
FormUtil
.
GetIntValue
(
txtInOutP3
);
//ktk.Middle_P1 = FormUtil.GetIntValue(txtMiddleP1);
ktk
.
Middle_P1
=
store
.
Config
.
MiddleAxis_P1_Position
;
ktk
.
Middle_P2
=
FormUtil
.
GetIntValue
(
txtMiddleP2
);
ktk
.
UpDown_P1
=
FormUtil
.
GetIntValue
(
txtUpDownP1
);
//ktk.UpDown_Door_P7 = FormUtil.GetIntValue(txtUpDownDoor);
ktk
.
UpDown_Door_P7
=
store
.
Config
.
UpDownAxis_Door_P7
;
//ktk.UpDown_P2 = FormUtil.GetIntValue(txtUpDownP2);
ktk
.
UpDown_P3
=
FormUtil
.
GetIntValue
(
txtUpDownP3
);
ktk
.
UpDown_P4
=
FormUtil
.
GetIntValue
(
txtUpDownP4
);
ktk
.
UpDown_P5
=
FormUtil
.
GetIntValue
(
txtUpDownP5
);
ktk
.
UpDown_P6
=
FormUtil
.
GetIntValue
(
txtUpDownP6
);
//ktk.UpDown_P7 = FormUtil.GetIntValue(txtUpDownP7);
//ktk.UpDown_P8 = FormUtil.GetIntValue(txtUpDownP8);
//ktk.UpDown_OutHigh_P2 = FormUtil.GetIntValue(txtUpdownP2);
ktk
.
UpDown_OutHigh_P2
=
store
.
Config
.
UpDownAxis_OutHigh_P2
;
//ktk.UpDown_OutLow_P8 = FormUtil.GetIntValue(txtUpdownP8);
ktk
.
UpDown_OutLow_P8
=
store
.
Config
.
UpDownAxis_OutLow_P8
;
return
ktk
;
}
private
void
btnCycleOut_Click
(
object
sender
,
EventArgs
e
)
{
if
(
store
.
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
{
if
(
store
.
CycleOut
)
{
store
.
CycleOut
=
false
;
btnCycleOut
.
Text
=
StartCycle
;
}
else
{
string
poText
=
cmbPosition
.
Text
;
string
msg
=
ResourceCulture
.
GetString
(
"确定开始{0}循环出库"
,
"确定开始{0}循环出库"
,
poText
);
DialogResult
res
=
MessageBox
.
Show
(
msg
,
ResourceCulture
.
GetString
(
ResourceCulture
.
MsgTitle
,
"提示"
),
MessageBoxButtons
.
YesNo
);
if
(
res
.
Equals
(
DialogResult
.
Yes
)
&&
cmbPosition
.
Text
!=
""
)
{
store
.
CyclePosId
=
poText
;
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
DebugPosId
,
poText
);
store
.
autoMsg
=
ResourceCulture
.
GetString
(
"循环出库"
,
"循环出库"
)
+
":"
+
poText
;
bool
result
=
store
.
StartOutStoreMove
(
new
InOutStoreParam
(
"CCC"
,
poText
),
true
);
LogUtil
.
info
(
LOGGER
,
store
.
StoreName
+
"开始循环出库,开始位置【"
+
poText
+
"】结果: "
+
result
);
if
(
result
)
{
store
.
CycleOut
=
true
;
btnCycleOut
.
Text
=
StopCycle
;
//DebugStatus(false);
}
}
}
}
else
{
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
PleaseStartStore
,
"请先启动料仓!"
));
}
}
}
}
source/ACSingleStore/userControl/uc_boxdebug.designer.cs
0 → 100644
查看文件 @
92694de
namespace
OnlineStore.ACSingleStore.useControl
{
partial
class
uc_boxdebug
{
/// <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
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
dataGridView1
=
new
System
.
Windows
.
Forms
.
DataGridView
();
this
.
txtMiddleP2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btnMiddleP2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtUpDownP1
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtUpDownP5
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtUpDownP6
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtUpDownP3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtUpDownP4
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btnUpDownP1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownP5
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownP6
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownP3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownP4
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtComP3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtComP2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btnComP3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnComP2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtInoutP4
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btnInOutP4
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtInOutP2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtInOutP3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btnInOutP2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnInOutP3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnStart
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
cmbPosition
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
cmbJianGe
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
label30
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnOutStore
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnBatchOutTest
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCycleOut
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupAuto
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnSavePosition
=
new
System
.
Windows
.
Forms
.
Button
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dataGridView1
)).
BeginInit
();
this
.
groupAuto
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// timer1
//
this
.
timer1
.
Interval
=
1000
;
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer1_Tick
);
//
// dataGridView1
//
this
.
dataGridView1
.
AllowUserToAddRows
=
false
;
this
.
dataGridView1
.
AllowUserToDeleteRows
=
false
;
this
.
dataGridView1
.
AllowUserToResizeColumns
=
false
;
this
.
dataGridView1
.
AllowUserToResizeRows
=
false
;
this
.
dataGridView1
.
ColumnHeadersBorderStyle
=
System
.
Windows
.
Forms
.
DataGridViewHeaderBorderStyle
.
Single
;
this
.
dataGridView1
.
ColumnHeadersHeightSizeMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnHeadersHeightSizeMode
.
DisableResizing
;
this
.
dataGridView1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Top
;
this
.
dataGridView1
.
EditMode
=
System
.
Windows
.
Forms
.
DataGridViewEditMode
.
EditProgrammatically
;
this
.
dataGridView1
.
EnableHeadersVisualStyles
=
false
;
this
.
dataGridView1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
dataGridView1
.
MultiSelect
=
false
;
this
.
dataGridView1
.
Name
=
"dataGridView1"
;
this
.
dataGridView1
.
RowHeadersBorderStyle
=
System
.
Windows
.
Forms
.
DataGridViewHeaderBorderStyle
.
None
;
this
.
dataGridView1
.
RowHeadersVisible
=
false
;
this
.
dataGridView1
.
RowHeadersWidthSizeMode
=
System
.
Windows
.
Forms
.
DataGridViewRowHeadersWidthSizeMode
.
DisableResizing
;
this
.
dataGridView1
.
RowTemplate
.
Height
=
23
;
this
.
dataGridView1
.
SelectionMode
=
System
.
Windows
.
Forms
.
DataGridViewSelectionMode
.
CellSelect
;
this
.
dataGridView1
.
ShowCellErrors
=
false
;
this
.
dataGridView1
.
ShowCellToolTips
=
false
;
this
.
dataGridView1
.
ShowEditingIcon
=
false
;
this
.
dataGridView1
.
ShowRowErrors
=
false
;
this
.
dataGridView1
.
Size
=
new
System
.
Drawing
.
Size
(
1076
,
313
);
this
.
dataGridView1
.
TabIndex
=
103
;
this
.
dataGridView1
.
CellMouseDown
+=
new
System
.
Windows
.
Forms
.
DataGridViewCellMouseEventHandler
(
this
.
dataGridView1_CellMouseDown
);
//
// txtMiddleP2
//
this
.
txtMiddleP2
.
AcceptsReturn
=
true
;
this
.
txtMiddleP2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtMiddleP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtMiddleP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtMiddleP2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtMiddleP2
.
Location
=
new
System
.
Drawing
.
Point
(
663
,
332
);
this
.
txtMiddleP2
.
MaxLength
=
0
;
this
.
txtMiddleP2
.
Name
=
"txtMiddleP2"
;
this
.
txtMiddleP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtMiddleP2
.
Size
=
new
System
.
Drawing
.
Size
(
89
,
23
);
this
.
txtMiddleP2
.
TabIndex
=
194
;
this
.
txtMiddleP2
.
Text
=
"1000"
;
//
// btnMiddleP2
//
this
.
btnMiddleP2
.
AutoSize
=
true
;
this
.
btnMiddleP2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnMiddleP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnMiddleP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnMiddleP2
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
192
)))));
this
.
btnMiddleP2
.
Location
=
new
System
.
Drawing
.
Point
(
487
,
327
);
this
.
btnMiddleP2
.
Name
=
"btnMiddleP2"
;
this
.
btnMiddleP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnMiddleP2
.
Size
=
new
System
.
Drawing
.
Size
(
174
,
32
);
this
.
btnMiddleP2
.
TabIndex
=
193
;
this
.
btnMiddleP2
.
Text
=
"旋转轴库位点P2:"
;
this
.
btnMiddleP2
.
UseVisualStyleBackColor
=
true
;
this
.
btnMiddleP2
.
Click
+=
new
System
.
EventHandler
(
this
.
btnMiddleP2_Click
);
//
// txtUpDownP1
//
this
.
txtUpDownP1
.
AcceptsReturn
=
true
;
this
.
txtUpDownP1
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtUpDownP1
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP1
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP1
.
Location
=
new
System
.
Drawing
.
Point
(
946
,
332
);
this
.
txtUpDownP1
.
MaxLength
=
0
;
this
.
txtUpDownP1
.
Name
=
"txtUpDownP1"
;
this
.
txtUpDownP1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtUpDownP1
.
Size
=
new
System
.
Drawing
.
Size
(
89
,
23
);
this
.
txtUpDownP1
.
TabIndex
=
210
;
this
.
txtUpDownP1
.
Text
=
"1000"
;
//
// txtUpDownP5
//
this
.
txtUpDownP5
.
AcceptsReturn
=
true
;
this
.
txtUpDownP5
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtUpDownP5
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP5
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP5
.
Location
=
new
System
.
Drawing
.
Point
(
946
,
443
);
this
.
txtUpDownP5
.
MaxLength
=
0
;
this
.
txtUpDownP5
.
Name
=
"txtUpDownP5"
;
this
.
txtUpDownP5
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtUpDownP5
.
Size
=
new
System
.
Drawing
.
Size
(
89
,
23
);
this
.
txtUpDownP5
.
TabIndex
=
206
;
this
.
txtUpDownP5
.
Text
=
"1000"
;
//
// txtUpDownP6
//
this
.
txtUpDownP6
.
AcceptsReturn
=
true
;
this
.
txtUpDownP6
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtUpDownP6
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP6
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP6
.
Location
=
new
System
.
Drawing
.
Point
(
946
,
480
);
this
.
txtUpDownP6
.
MaxLength
=
0
;
this
.
txtUpDownP6
.
Name
=
"txtUpDownP6"
;
this
.
txtUpDownP6
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtUpDownP6
.
Size
=
new
System
.
Drawing
.
Size
(
89
,
23
);
this
.
txtUpDownP6
.
TabIndex
=
208
;
this
.
txtUpDownP6
.
Text
=
"1000"
;
//
// txtUpDownP3
//
this
.
txtUpDownP3
.
AcceptsReturn
=
true
;
this
.
txtUpDownP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtUpDownP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP3
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP3
.
Location
=
new
System
.
Drawing
.
Point
(
946
,
369
);
this
.
txtUpDownP3
.
MaxLength
=
0
;
this
.
txtUpDownP3
.
Name
=
"txtUpDownP3"
;
this
.
txtUpDownP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtUpDownP3
.
Size
=
new
System
.
Drawing
.
Size
(
89
,
23
);
this
.
txtUpDownP3
.
TabIndex
=
202
;
this
.
txtUpDownP3
.
Text
=
"1000"
;
//
// txtUpDownP4
//
this
.
txtUpDownP4
.
AcceptsReturn
=
true
;
this
.
txtUpDownP4
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtUpDownP4
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP4
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP4
.
Location
=
new
System
.
Drawing
.
Point
(
946
,
406
);
this
.
txtUpDownP4
.
MaxLength
=
0
;
this
.
txtUpDownP4
.
Name
=
"txtUpDownP4"
;
this
.
txtUpDownP4
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtUpDownP4
.
Size
=
new
System
.
Drawing
.
Size
(
89
,
23
);
this
.
txtUpDownP4
.
TabIndex
=
204
;
this
.
txtUpDownP4
.
Text
=
"1000"
;
//
// btnUpDownP1
//
this
.
btnUpDownP1
.
AutoSize
=
true
;
this
.
btnUpDownP1
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnUpDownP1
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnUpDownP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP1
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
0
)))));
this
.
btnUpDownP1
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnUpDownP1
.
Location
=
new
System
.
Drawing
.
Point
(
770
,
327
);
this
.
btnUpDownP1
.
Name
=
"btnUpDownP1"
;
this
.
btnUpDownP1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP1
.
Size
=
new
System
.
Drawing
.
Size
(
174
,
32
);
this
.
btnUpDownP1
.
TabIndex
=
209
;
this
.
btnUpDownP1
.
Text
=
"升降轴吸盘下方取料点P1:"
;
this
.
btnUpDownP1
.
UseVisualStyleBackColor
=
true
;
this
.
btnUpDownP1
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownP1_Click
);
//
// btnUpDownP5
//
this
.
btnUpDownP5
.
AutoSize
=
true
;
this
.
btnUpDownP5
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnUpDownP5
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnUpDownP5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP5
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
0
)))));
this
.
btnUpDownP5
.
Location
=
new
System
.
Drawing
.
Point
(
770
,
438
);
this
.
btnUpDownP5
.
Name
=
"btnUpDownP5"
;
this
.
btnUpDownP5
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP5
.
Size
=
new
System
.
Drawing
.
Size
(
174
,
32
);
this
.
btnUpDownP5
.
TabIndex
=
205
;
this
.
btnUpDownP5
.
Text
=
"升降轴出料前点P5:"
;
this
.
btnUpDownP5
.
UseVisualStyleBackColor
=
true
;
this
.
btnUpDownP5
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownP5_Click
);
//
// btnUpDownP6
//
this
.
btnUpDownP6
.
AutoSize
=
true
;
this
.
btnUpDownP6
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnUpDownP6
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnUpDownP6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP6
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
0
)))));
this
.
btnUpDownP6
.
Location
=
new
System
.
Drawing
.
Point
(
770
,
475
);
this
.
btnUpDownP6
.
Name
=
"btnUpDownP6"
;
this
.
btnUpDownP6
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP6
.
Size
=
new
System
.
Drawing
.
Size
(
174
,
32
);
this
.
btnUpDownP6
.
TabIndex
=
207
;
this
.
btnUpDownP6
.
Text
=
"升降轴出料缓冲点P6:"
;
this
.
btnUpDownP6
.
UseVisualStyleBackColor
=
true
;
this
.
btnUpDownP6
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownP6_Click
);
//
// btnUpDownP3
//
this
.
btnUpDownP3
.
AutoSize
=
true
;
this
.
btnUpDownP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnUpDownP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnUpDownP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP3
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
0
)))));
this
.
btnUpDownP3
.
Location
=
new
System
.
Drawing
.
Point
(
770
,
364
);
this
.
btnUpDownP3
.
Name
=
"btnUpDownP3"
;
this
.
btnUpDownP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP3
.
Size
=
new
System
.
Drawing
.
Size
(
174
,
32
);
this
.
btnUpDownP3
.
TabIndex
=
201
;
this
.
btnUpDownP3
.
Text
=
"升降轴入料前点P3:"
;
this
.
btnUpDownP3
.
UseVisualStyleBackColor
=
true
;
this
.
btnUpDownP3
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownP3_Click
);
//
// btnUpDownP4
//
this
.
btnUpDownP4
.
AutoSize
=
true
;
this
.
btnUpDownP4
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnUpDownP4
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnUpDownP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP4
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
0
)))));
this
.
btnUpDownP4
.
Location
=
new
System
.
Drawing
.
Point
(
770
,
401
);
this
.
btnUpDownP4
.
Name
=
"btnUpDownP4"
;
this
.
btnUpDownP4
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP4
.
Size
=
new
System
.
Drawing
.
Size
(
174
,
32
);
this
.
btnUpDownP4
.
TabIndex
=
203
;
this
.
btnUpDownP4
.
Text
=
"升降轴入料缓冲点P4:"
;
this
.
btnUpDownP4
.
UseVisualStyleBackColor
=
true
;
this
.
btnUpDownP4
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownP4_Click
);
//
// txtComP3
//
this
.
txtComP3
.
AcceptsReturn
=
true
;
this
.
txtComP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtComP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtComP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtComP3
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtComP3
.
Location
=
new
System
.
Drawing
.
Point
(
662
,
406
);
this
.
txtComP3
.
MaxLength
=
0
;
this
.
txtComP3
.
Name
=
"txtComP3"
;
this
.
txtComP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtComP3
.
Size
=
new
System
.
Drawing
.
Size
(
89
,
23
);
this
.
txtComP3
.
TabIndex
=
214
;
this
.
txtComP3
.
Text
=
"1000"
;
//
// txtComP2
//
this
.
txtComP2
.
AcceptsReturn
=
true
;
this
.
txtComP2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtComP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtComP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtComP2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtComP2
.
Location
=
new
System
.
Drawing
.
Point
(
662
,
369
);
this
.
txtComP2
.
MaxLength
=
0
;
this
.
txtComP2
.
Name
=
"txtComP2"
;
this
.
txtComP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtComP2
.
Size
=
new
System
.
Drawing
.
Size
(
89
,
23
);
this
.
txtComP2
.
TabIndex
=
212
;
this
.
txtComP2
.
Text
=
"1000"
;
//
// btnComP3
//
this
.
btnComP3
.
AutoSize
=
true
;
this
.
btnComP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnComP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnComP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnComP3
.
ForeColor
=
System
.
Drawing
.
Color
.
Purple
;
this
.
btnComP3
.
Location
=
new
System
.
Drawing
.
Point
(
487
,
401
);
this
.
btnComP3
.
Name
=
"btnComP3"
;
this
.
btnComP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnComP3
.
Size
=
new
System
.
Drawing
.
Size
(
174
,
32
);
this
.
btnComP3
.
TabIndex
=
213
;
this
.
btnComP3
.
Text
=
"压紧轴压紧前点P3:"
;
this
.
btnComP3
.
UseVisualStyleBackColor
=
true
;
this
.
btnComP3
.
Click
+=
new
System
.
EventHandler
(
this
.
btnComP3_Click
);
//
// btnComP2
//
this
.
btnComP2
.
AutoSize
=
true
;
this
.
btnComP2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnComP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnComP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnComP2
.
ForeColor
=
System
.
Drawing
.
Color
.
Purple
;
this
.
btnComP2
.
Location
=
new
System
.
Drawing
.
Point
(
487
,
364
);
this
.
btnComP2
.
Name
=
"btnComP2"
;
this
.
btnComP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnComP2
.
Size
=
new
System
.
Drawing
.
Size
(
174
,
32
);
this
.
btnComP2
.
TabIndex
=
211
;
this
.
btnComP2
.
Text
=
"压紧轴压紧点P2:"
;
this
.
btnComP2
.
UseVisualStyleBackColor
=
true
;
this
.
btnComP2
.
Click
+=
new
System
.
EventHandler
(
this
.
btnComP2_Click
);
//
// txtInoutP4
//
this
.
txtInoutP4
.
AcceptsReturn
=
true
;
this
.
txtInoutP4
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtInoutP4
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtInoutP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtInoutP4
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtInoutP4
.
Location
=
new
System
.
Drawing
.
Point
(
662
,
517
);
this
.
txtInoutP4
.
MaxLength
=
0
;
this
.
txtInoutP4
.
Name
=
"txtInoutP4"
;
this
.
txtInoutP4
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtInoutP4
.
Size
=
new
System
.
Drawing
.
Size
(
89
,
23
);
this
.
txtInoutP4
.
TabIndex
=
284
;
this
.
txtInoutP4
.
Text
=
"1000"
;
//
// btnInOutP4
//
this
.
btnInOutP4
.
AutoSize
=
true
;
this
.
btnInOutP4
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnInOutP4
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnInOutP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInOutP4
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
btnInOutP4
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnInOutP4
.
Location
=
new
System
.
Drawing
.
Point
(
487
,
512
);
this
.
btnInOutP4
.
Name
=
"btnInOutP4"
;
this
.
btnInOutP4
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnInOutP4
.
Size
=
new
System
.
Drawing
.
Size
(
174
,
32
);
this
.
btnInOutP4
.
TabIndex
=
283
;
this
.
btnInOutP4
.
Text
=
"进出轴仓门出料点P4:"
;
this
.
btnInOutP4
.
UseVisualStyleBackColor
=
true
;
this
.
btnInOutP4
.
Click
+=
new
System
.
EventHandler
(
this
.
btnInOutP4_Click
);
//
// txtInOutP2
//
this
.
txtInOutP2
.
AcceptsReturn
=
true
;
this
.
txtInOutP2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtInOutP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtInOutP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtInOutP2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtInOutP2
.
Location
=
new
System
.
Drawing
.
Point
(
662
,
443
);
this
.
txtInOutP2
.
MaxLength
=
0
;
this
.
txtInOutP2
.
Name
=
"txtInOutP2"
;
this
.
txtInOutP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtInOutP2
.
Size
=
new
System
.
Drawing
.
Size
(
89
,
23
);
this
.
txtInOutP2
.
TabIndex
=
282
;
this
.
txtInOutP2
.
Text
=
"1000"
;
//
// txtInOutP3
//
this
.
txtInOutP3
.
AcceptsReturn
=
true
;
this
.
txtInOutP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtInOutP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtInOutP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtInOutP3
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtInOutP3
.
Location
=
new
System
.
Drawing
.
Point
(
662
,
480
);
this
.
txtInOutP3
.
MaxLength
=
0
;
this
.
txtInOutP3
.
Name
=
"txtInOutP3"
;
this
.
txtInOutP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtInOutP3
.
Size
=
new
System
.
Drawing
.
Size
(
89
,
23
);
this
.
txtInOutP3
.
TabIndex
=
280
;
this
.
txtInOutP3
.
Text
=
"1000"
;
//
// btnInOutP2
//
this
.
btnInOutP2
.
AutoSize
=
true
;
this
.
btnInOutP2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnInOutP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnInOutP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInOutP2
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
btnInOutP2
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnInOutP2
.
Location
=
new
System
.
Drawing
.
Point
(
487
,
438
);
this
.
btnInOutP2
.
Name
=
"btnInOutP2"
;
this
.
btnInOutP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnInOutP2
.
Size
=
new
System
.
Drawing
.
Size
(
174
,
32
);
this
.
btnInOutP2
.
TabIndex
=
281
;
this
.
btnInOutP2
.
Text
=
"进出轴吸盘取料点P2:"
;
this
.
btnInOutP2
.
UseVisualStyleBackColor
=
true
;
this
.
btnInOutP2
.
Click
+=
new
System
.
EventHandler
(
this
.
btnInOutP2_Click
);
//
// btnInOutP3
//
this
.
btnInOutP3
.
AutoSize
=
true
;
this
.
btnInOutP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnInOutP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnInOutP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInOutP3
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
btnInOutP3
.
Location
=
new
System
.
Drawing
.
Point
(
487
,
475
);
this
.
btnInOutP3
.
Name
=
"btnInOutP3"
;
this
.
btnInOutP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnInOutP3
.
Size
=
new
System
.
Drawing
.
Size
(
174
,
32
);
this
.
btnInOutP3
.
TabIndex
=
279
;
this
.
btnInOutP3
.
Text
=
"进出轴库位取料点P3:"
;
this
.
btnInOutP3
.
UseVisualStyleBackColor
=
true
;
this
.
btnInOutP3
.
Click
+=
new
System
.
EventHandler
(
this
.
btnInOutP3_Click
);
//
// btnStart
//
this
.
btnStart
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnStart
.
Location
=
new
System
.
Drawing
.
Point
(
202
,
20
);
this
.
btnStart
.
Name
=
"btnStart"
;
this
.
btnStart
.
Size
=
new
System
.
Drawing
.
Size
(
182
,
38
);
this
.
btnStart
.
TabIndex
=
285
;
this
.
btnStart
.
Text
=
"开始自动出入库"
;
this
.
btnStart
.
UseVisualStyleBackColor
=
true
;
this
.
btnStart
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStart_Click
);
//
// cmbPosition
//
this
.
cmbPosition
.
Location
=
new
System
.
Drawing
.
Point
(
39
,
34
);
this
.
cmbPosition
.
Name
=
"cmbPosition"
;
this
.
cmbPosition
.
Size
=
new
System
.
Drawing
.
Size
(
157
,
23
);
this
.
cmbPosition
.
TabIndex
=
286
;
this
.
cmbPosition
.
Text
=
"label1"
;
//
// cmbJianGe
//
this
.
cmbJianGe
.
AutoCompleteCustomSource
.
AddRange
(
new
string
[]
{
"0"
,
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
,
"8"
,
"9"
,
"10"
});
this
.
cmbJianGe
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbJianGe
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbJianGe
.
FormattingEnabled
=
true
;
this
.
cmbJianGe
.
Location
=
new
System
.
Drawing
.
Point
(
238
,
69
);
this
.
cmbJianGe
.
Name
=
"cmbJianGe"
;
this
.
cmbJianGe
.
Size
=
new
System
.
Drawing
.
Size
(
146
,
28
);
this
.
cmbJianGe
.
TabIndex
=
288
;
//
// label30
//
this
.
label30
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
label30
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label30
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
ControlText
;
this
.
label30
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
65
);
this
.
label30
.
Name
=
"label30"
;
this
.
label30
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
label30
.
Size
=
new
System
.
Drawing
.
Size
(
222
,
36
);
this
.
label30
.
TabIndex
=
287
;
this
.
label30
.
Text
=
"入库存料库位间隔:"
;
this
.
label30
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// btnOutStore
//
this
.
btnOutStore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOutStore
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
104
);
this
.
btnOutStore
.
Name
=
"btnOutStore"
;
this
.
btnOutStore
.
Size
=
new
System
.
Drawing
.
Size
(
182
,
38
);
this
.
btnOutStore
.
TabIndex
=
289
;
this
.
btnOutStore
.
Text
=
"单盘出库测试"
;
this
.
btnOutStore
.
UseVisualStyleBackColor
=
true
;
this
.
btnOutStore
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOutStore_Click
);
//
// btnBatchOutTest
//
this
.
btnBatchOutTest
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnBatchOutTest
.
Location
=
new
System
.
Drawing
.
Point
(
202
,
103
);
this
.
btnBatchOutTest
.
Name
=
"btnBatchOutTest"
;
this
.
btnBatchOutTest
.
Size
=
new
System
.
Drawing
.
Size
(
182
,
38
);
this
.
btnBatchOutTest
.
TabIndex
=
290
;
this
.
btnBatchOutTest
.
Text
=
"批量出库测试"
;
this
.
btnBatchOutTest
.
UseVisualStyleBackColor
=
true
;
this
.
btnBatchOutTest
.
Click
+=
new
System
.
EventHandler
(
this
.
btnBatchOutTest_Click
);
//
// btnCycleOut
//
this
.
btnCycleOut
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCycleOut
.
Location
=
new
System
.
Drawing
.
Point
(
202
,
147
);
this
.
btnCycleOut
.
Name
=
"btnCycleOut"
;
this
.
btnCycleOut
.
Size
=
new
System
.
Drawing
.
Size
(
182
,
38
);
this
.
btnCycleOut
.
TabIndex
=
291
;
this
.
btnCycleOut
.
Text
=
"开始循环出库"
;
this
.
btnCycleOut
.
UseVisualStyleBackColor
=
true
;
this
.
btnCycleOut
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCycleOut_Click
);
//
// groupAuto
//
this
.
groupAuto
.
Controls
.
Add
(
this
.
btnBatchOutTest
);
this
.
groupAuto
.
Controls
.
Add
(
this
.
btnCycleOut
);
this
.
groupAuto
.
Controls
.
Add
(
this
.
btnStart
);
this
.
groupAuto
.
Controls
.
Add
(
this
.
cmbPosition
);
this
.
groupAuto
.
Controls
.
Add
(
this
.
btnOutStore
);
this
.
groupAuto
.
Controls
.
Add
(
this
.
label30
);
this
.
groupAuto
.
Controls
.
Add
(
this
.
cmbJianGe
);
this
.
groupAuto
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
327
);
this
.
groupAuto
.
Name
=
"groupAuto"
;
this
.
groupAuto
.
Size
=
new
System
.
Drawing
.
Size
(
444
,
213
);
this
.
groupAuto
.
TabIndex
=
292
;
this
.
groupAuto
.
TabStop
=
false
;
this
.
groupAuto
.
Text
=
"自动出入库"
;
//
// btnSavePosition
//
this
.
btnSavePosition
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnSavePosition
.
Location
=
new
System
.
Drawing
.
Point
(
884
,
517
);
this
.
btnSavePosition
.
Name
=
"btnSavePosition"
;
this
.
btnSavePosition
.
Size
=
new
System
.
Drawing
.
Size
(
151
,
38
);
this
.
btnSavePosition
.
TabIndex
=
293
;
this
.
btnSavePosition
.
Text
=
"保存位置"
;
this
.
btnSavePosition
.
UseVisualStyleBackColor
=
true
;
this
.
btnSavePosition
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSavePosition_Click
);
//
// uc_boxdebug
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
Controls
.
Add
(
this
.
btnSavePosition
);
this
.
Controls
.
Add
(
this
.
groupAuto
);
this
.
Controls
.
Add
(
this
.
txtInoutP4
);
this
.
Controls
.
Add
(
this
.
btnInOutP4
);
this
.
Controls
.
Add
(
this
.
txtInOutP2
);
this
.
Controls
.
Add
(
this
.
txtInOutP3
);
this
.
Controls
.
Add
(
this
.
btnInOutP2
);
this
.
Controls
.
Add
(
this
.
btnInOutP3
);
this
.
Controls
.
Add
(
this
.
txtComP3
);
this
.
Controls
.
Add
(
this
.
txtComP2
);
this
.
Controls
.
Add
(
this
.
btnComP3
);
this
.
Controls
.
Add
(
this
.
btnComP2
);
this
.
Controls
.
Add
(
this
.
txtUpDownP1
);
this
.
Controls
.
Add
(
this
.
txtUpDownP5
);
this
.
Controls
.
Add
(
this
.
txtUpDownP6
);
this
.
Controls
.
Add
(
this
.
txtUpDownP3
);
this
.
Controls
.
Add
(
this
.
txtUpDownP4
);
this
.
Controls
.
Add
(
this
.
btnUpDownP1
);
this
.
Controls
.
Add
(
this
.
btnUpDownP5
);
this
.
Controls
.
Add
(
this
.
btnUpDownP6
);
this
.
Controls
.
Add
(
this
.
btnUpDownP3
);
this
.
Controls
.
Add
(
this
.
btnUpDownP4
);
this
.
Controls
.
Add
(
this
.
txtMiddleP2
);
this
.
Controls
.
Add
(
this
.
btnMiddleP2
);
this
.
Controls
.
Add
(
this
.
dataGridView1
);
this
.
Name
=
"uc_boxdebug"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
1076
,
573
);
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dataGridView1
)).
EndInit
();
this
.
groupAuto
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
}
#
endregion
private
System
.
Windows
.
Forms
.
Timer
timer1
;
private
System
.
Windows
.
Forms
.
DataGridView
dataGridView1
;
public
System
.
Windows
.
Forms
.
TextBox
txtMiddleP2
;
public
System
.
Windows
.
Forms
.
Button
btnMiddleP2
;
public
System
.
Windows
.
Forms
.
TextBox
txtUpDownP1
;
public
System
.
Windows
.
Forms
.
TextBox
txtUpDownP5
;
public
System
.
Windows
.
Forms
.
TextBox
txtUpDownP6
;
public
System
.
Windows
.
Forms
.
TextBox
txtUpDownP3
;
public
System
.
Windows
.
Forms
.
TextBox
txtUpDownP4
;
public
System
.
Windows
.
Forms
.
Button
btnUpDownP1
;
public
System
.
Windows
.
Forms
.
Button
btnUpDownP5
;
public
System
.
Windows
.
Forms
.
Button
btnUpDownP6
;
public
System
.
Windows
.
Forms
.
Button
btnUpDownP3
;
public
System
.
Windows
.
Forms
.
Button
btnUpDownP4
;
public
System
.
Windows
.
Forms
.
TextBox
txtComP3
;
public
System
.
Windows
.
Forms
.
TextBox
txtComP2
;
public
System
.
Windows
.
Forms
.
Button
btnComP3
;
public
System
.
Windows
.
Forms
.
Button
btnComP2
;
public
System
.
Windows
.
Forms
.
TextBox
txtInoutP4
;
public
System
.
Windows
.
Forms
.
Button
btnInOutP4
;
public
System
.
Windows
.
Forms
.
TextBox
txtInOutP2
;
public
System
.
Windows
.
Forms
.
TextBox
txtInOutP3
;
public
System
.
Windows
.
Forms
.
Button
btnInOutP2
;
public
System
.
Windows
.
Forms
.
Button
btnInOutP3
;
private
System
.
Windows
.
Forms
.
Button
btnStart
;
private
System
.
Windows
.
Forms
.
Label
cmbPosition
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbJianGe
;
public
System
.
Windows
.
Forms
.
Label
label30
;
private
System
.
Windows
.
Forms
.
Button
btnOutStore
;
private
System
.
Windows
.
Forms
.
Button
btnBatchOutTest
;
private
System
.
Windows
.
Forms
.
Button
btnCycleOut
;
private
System
.
Windows
.
Forms
.
GroupBox
groupAuto
;
private
System
.
Windows
.
Forms
.
Button
btnSavePosition
;
}
}
source/ACSingleStore/userControl/uc_boxdebug.resx
0 → 100644
查看文件 @
92694de
<?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>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
\ No newline at end of file
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
92694de
...
...
@@ -33,7 +33,10 @@ namespace OnlineStore.DeviceLibrary
//private static StoreMoveType lastMoveType = StoreMoveType.None;
#
endregion
/// <summary>
/// PosId, InOut,isSuccess
/// </summary>
public
event
Action
<
string
,
StoreMoveType
,
bool
>
InOutEndProcessEvent
;
#
region
出入库参数
private
int
CurrInOutCount
=
0
;
...
...
@@ -582,7 +585,7 @@ namespace OnlineStore.DeviceLibrary
storeRunStatus
=
StoreRunStatus
.
Runing
;
//设备连接,入库后,BOX恢复原始状态
storeStatus
=
StoreStatus
.
StoreOnline
;
InOutEndProcess
(
StoreMoveType
.
InStore
);
InOutEndProcess
(
posId
,
StoreMoveType
.
InStore
);
}
#
region
送出料盘处理
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_21_DeviceToDoor
)
...
...
@@ -927,7 +930,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
error
(
LOGGER
,
StoreName
+
" 【"
+
posId
+
"】 出库中断,请检查料盘是否已满,耗时【"
+
FormUtil
.
GetSpanStr
(
InOutWatch
.
Elapsed
)
+
"】!"
);
StoreMove
.
EndMove
();
storeRunStatus
=
StoreRunStatus
.
Runing
;
InOutEndProcess
(
StoreMoveType
.
OutStore
);
InOutEndProcess
(
posId
,
StoreMoveType
.
OutStore
);
return
;
}
}
...
...
@@ -1088,7 +1091,7 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
EndMove
();
preProTime
=
DateTime
.
Now
;
storeRunStatus
=
StoreRunStatus
.
Runing
;
InOutEndProcess
(
StoreMoveType
.
OutStore
);
InOutEndProcess
(
posId
,
StoreMoveType
.
OutStore
);
}
else
...
...
@@ -1305,10 +1308,11 @@ namespace OnlineStore.DeviceLibrary
}
return
posid
;
}
private
void
InOutEndProcess
(
StoreMoveType
storeMoveType
)
private
void
InOutEndProcess
(
string
posid
,
StoreMoveType
storeMoveType
)
{
try
{
InOutEndProcessEvent
?.
Invoke
(
posid
,
storeMoveType
,
true
);
CurrInOutCount
++;
CurrInOutACount
++;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论