Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 86ebf9cf
由
LN
编写于
2020-03-07 17:42:16 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
入库失败时蜂鸣器响,且不再扫码入库
1 个父辈
46d84b6a
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
117 行增加
和
103 行删除
source/ACSingleStore/ACSingleStore.csproj
source/ACSingleStore/FrmAbout.Designer.cs
source/ACSingleStore/FrmAbout.cs
source/ACSingleStore/FrmBase.cs
source/ACSingleStore/FrmStoreBox.Designer.cs
source/ACSingleStore/FrmStoreBox.cs
source/ACSingleStore/Properties/AssemblyInfo.cs
source/ACSingleStore/ResourceCulture.cs
source/ACSingleStore/resource/language.resource
source/ACSingleStore/记录.txt
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/ACSingleStore/ACSingleStore.csproj
查看文件 @
86ebf9c
...
@@ -53,12 +53,6 @@
...
@@ -53,12 +53,6 @@
<ApplicationIcon>box.ico</ApplicationIcon>
<ApplicationIcon>box.ico</ApplicationIcon>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<Reference Include="CodeLibrary">
<HintPath>..\..\dll\CodeLibrary.dll</HintPath>
</Reference>
<Reference Include="halcondotnet">
<HintPath>..\..\dll\halcondotnet.dll</HintPath>
</Reference>
<Reference Include="log4net">
<Reference Include="log4net">
<HintPath>..\..\dll\log4net.dll</HintPath>
<HintPath>..\..\dll\log4net.dll</HintPath>
</Reference>
</Reference>
...
...
source/ACSingleStore/FrmAbout.Designer.cs
查看文件 @
86ebf9c
...
@@ -30,9 +30,9 @@
...
@@ -30,9 +30,9 @@
{
{
this
.
btnNext
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnNext
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCopy
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCopy
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblCodeName
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblCodeName
1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblTime
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblTime
1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblVersion
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblVersion
1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// btnNext
// btnNext
...
@@ -58,38 +58,38 @@
...
@@ -58,38 +58,38 @@
this
.
btnCopy
.
UseVisualStyleBackColor
=
true
;
this
.
btnCopy
.
UseVisualStyleBackColor
=
true
;
this
.
btnCopy
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCopy_Click
);
this
.
btnCopy
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCopy_Click
);
//
//
// lblCodeName
// lblCodeName
1
//
//
this
.
lblCodeName
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
this
.
lblCodeName
1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
lblCodeName
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
114
);
this
.
lblCodeName
1
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
114
);
this
.
lblCodeName
.
Name
=
"lblCodeName
"
;
this
.
lblCodeName
1
.
Name
=
"lblCodeName1
"
;
this
.
lblCodeName
.
Size
=
new
System
.
Drawing
.
Size
(
529
,
23
);
this
.
lblCodeName
1
.
Size
=
new
System
.
Drawing
.
Size
(
529
,
23
);
this
.
lblCodeName
.
TabIndex
=
282
;
this
.
lblCodeName
1
.
TabIndex
=
282
;
this
.
lblCodeName
.
Text
=
"软件编号:43 6F 64 65 4C 69 62 72 61 72 79 50 72 6F 6A 65 63 74 "
;
this
.
lblCodeName
1
.
Text
=
"软件编号:43 6F 64 65 4C 69 62 72 61 72 79 50 72 6F 6A 65 63 74 "
;
this
.
lblCodeName
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
this
.
lblCodeName
1
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
//
// lblTime
// lblTime
1
//
//
this
.
lblTime
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
this
.
lblTime
1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
lblTime
.
Location
=
new
System
.
Drawing
.
Point
(
80
,
80
);
this
.
lblTime
1
.
Location
=
new
System
.
Drawing
.
Point
(
80
,
80
);
this
.
lblTime
.
Name
=
"lblTime
"
;
this
.
lblTime
1
.
Name
=
"lblTime1
"
;
this
.
lblTime
.
Size
=
new
System
.
Drawing
.
Size
(
379
,
23
);
this
.
lblTime
1
.
Size
=
new
System
.
Drawing
.
Size
(
379
,
23
);
this
.
lblTime
.
TabIndex
=
281
;
this
.
lblTime
1
.
TabIndex
=
281
;
this
.
lblTime
.
Text
=
"更新时间:0000-00-00 00:00:00"
;
this
.
lblTime
1
.
Text
=
"更新时间:0000-00-00 00:00:00"
;
this
.
lblTime
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
this
.
lblTime
1
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
//
// lblVersion
// lblVersion
1
//
//
this
.
lblVersion
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
this
.
lblVersion
1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
lblVersion
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
50
);
this
.
lblVersion
1
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
50
);
this
.
lblVersion
.
Name
=
"lblVersion
"
;
this
.
lblVersion
1
.
Name
=
"lblVersion1
"
;
this
.
lblVersion
.
Size
=
new
System
.
Drawing
.
Size
(
529
,
23
);
this
.
lblVersion
1
.
Size
=
new
System
.
Drawing
.
Size
(
529
,
23
);
this
.
lblVersion
.
TabIndex
=
280
;
this
.
lblVersion
1
.
TabIndex
=
280
;
this
.
lblVersion
.
Text
=
"版本号:1.1.0000.0000"
;
this
.
lblVersion
1
.
Text
=
"版本号:1.1.0000.0000"
;
this
.
lblVersion
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
this
.
lblVersion
1
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
//
// FrmAbout
// FrmAbout
//
//
...
@@ -97,9 +97,9 @@
...
@@ -97,9 +97,9 @@
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
564
,
250
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
564
,
250
);
this
.
Controls
.
Add
(
this
.
btnCopy
);
this
.
Controls
.
Add
(
this
.
btnCopy
);
this
.
Controls
.
Add
(
this
.
lblCodeName
);
this
.
Controls
.
Add
(
this
.
lblCodeName
1
);
this
.
Controls
.
Add
(
this
.
lblTime
);
this
.
Controls
.
Add
(
this
.
lblTime
1
);
this
.
Controls
.
Add
(
this
.
lblVersion
);
this
.
Controls
.
Add
(
this
.
lblVersion
1
);
this
.
Controls
.
Add
(
this
.
btnNext
);
this
.
Controls
.
Add
(
this
.
btnNext
);
this
.
MaximizeBox
=
false
;
this
.
MaximizeBox
=
false
;
this
.
MinimizeBox
=
false
;
this
.
MinimizeBox
=
false
;
...
@@ -113,8 +113,8 @@
...
@@ -113,8 +113,8 @@
#
endregion
#
endregion
private
System
.
Windows
.
Forms
.
Button
btnNext
;
private
System
.
Windows
.
Forms
.
Button
btnNext
;
private
System
.
Windows
.
Forms
.
Button
btnCopy
;
private
System
.
Windows
.
Forms
.
Button
btnCopy
;
private
System
.
Windows
.
Forms
.
Label
lblCodeName
;
private
System
.
Windows
.
Forms
.
Label
lblCodeName
1
;
private
System
.
Windows
.
Forms
.
Label
lblTime
;
private
System
.
Windows
.
Forms
.
Label
lblTime
1
;
private
System
.
Windows
.
Forms
.
Label
lblVersion
;
private
System
.
Windows
.
Forms
.
Label
lblVersion
1
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
source/ACSingleStore/FrmAbout.cs
查看文件 @
86ebf9c
...
@@ -22,9 +22,9 @@ namespace OnlineStore.ACSingleStore
...
@@ -22,9 +22,9 @@ namespace OnlineStore.ACSingleStore
private
void
FrmPwd_Load
(
object
sender
,
EventArgs
e
)
private
void
FrmPwd_Load
(
object
sender
,
EventArgs
e
)
{
{
this
.
DialogResult
=
DialogResult
.
None
;
this
.
DialogResult
=
DialogResult
.
None
;
lblTime
.
Text
=
"更新时间:
"
+
GetVersion
();
lblTime
1
.
Text
=
"
"
+
GetVersion
();
lblVersion
.
Text
=
"版本号:
"
+
System
.
Reflection
.
Assembly
.
GetExecutingAssembly
().
GetName
().
Version
.
ToString
();
lblVersion
1
.
Text
=
"
"
+
System
.
Reflection
.
Assembly
.
GetExecutingAssembly
().
GetName
().
Version
.
ToString
();
lblCodeName
.
Text
=
"软件编号:
"
+
GetCodeNum
();
lblCodeName
1
.
Text
=
"
"
+
GetCodeNum
();
}
}
private
void
btnNext_Click
(
object
sender
,
EventArgs
e
)
private
void
btnNext_Click
(
object
sender
,
EventArgs
e
)
...
...
source/ACSingleStore/FrmBase.cs
查看文件 @
86ebf9c
...
@@ -13,7 +13,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -13,7 +13,7 @@ namespace OnlineStore.ACSingleStore
{
{
public
partial
class
FrmBase
:
Form
public
partial
class
FrmBase
:
Form
{
{
internal
static
string
GetVersion
(
bool
i
sShow
=
false
)
internal
static
string
GetVersion
(
bool
I
sShow
=
false
)
{
{
string
str
=
""
;
string
str
=
""
;
string
version
=
""
;
string
version
=
""
;
...
@@ -38,7 +38,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -38,7 +38,7 @@ namespace OnlineStore.ACSingleStore
str
=
version
;
str
=
version
;
LogUtil
.
error
(
"解析版本号【"
+
str
+
"】出错:"
+
ex
.
ToString
());
LogUtil
.
error
(
"解析版本号【"
+
str
+
"】出错:"
+
ex
.
ToString
());
}
}
if
(
i
sShow
)
if
(
I
sShow
)
{
{
LogUtil
.
info
(
"版本号["
+
version
+
"]["
+
str
+
"]["
+
GetCodeNum
()
+
"]"
);
LogUtil
.
info
(
"版本号["
+
version
+
"]["
+
str
+
"]["
+
GetCodeNum
()
+
"]"
);
}
}
...
...
source/ACSingleStore/FrmStoreBox.Designer.cs
查看文件 @
86ebf9c
...
@@ -163,7 +163,6 @@
...
@@ -163,7 +163,6 @@
this
.
toolStripSeparator9
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
toolStripSeparator9
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
扫码测试
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
扫码测试
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator10
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
toolStripSeparator10
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
学习二维码
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
配置信息
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
配置信息
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
轴运动配置
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
轴运动配置
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
日志
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
日志
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
...
@@ -1866,8 +1865,8 @@
...
@@ -1866,8 +1865,8 @@
this
.
轴卡点动
ToolStripMenuItem
,
this
.
轴卡点动
ToolStripMenuItem
,
this
.
toolStripSeparator9
,
this
.
toolStripSeparator9
,
this
.
扫码测试
ToolStripMenuItem
,
this
.
扫码测试
ToolStripMenuItem
,
this
.
toolStripSeparator10
,
this
.
toolStripSeparator10
this
.
学习二维码
ToolStripMenuItem
});
});
this
.
设备调试
ToolStripMenuItem
.
Name
=
"设备调试ToolStripMenuItem"
;
this
.
设备调试
ToolStripMenuItem
.
Name
=
"设备调试ToolStripMenuItem"
;
this
.
设备调试
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
29
);
this
.
设备调试
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
29
);
this
.
设备调试
ToolStripMenuItem
.
Text
=
"设备调试"
;
this
.
设备调试
ToolStripMenuItem
.
Text
=
"设备调试"
;
...
@@ -1895,13 +1894,7 @@
...
@@ -1895,13 +1894,7 @@
//
//
this
.
toolStripSeparator10
.
Name
=
"toolStripSeparator10"
;
this
.
toolStripSeparator10
.
Name
=
"toolStripSeparator10"
;
this
.
toolStripSeparator10
.
Size
=
new
System
.
Drawing
.
Size
(
176
,
6
);
this
.
toolStripSeparator10
.
Size
=
new
System
.
Drawing
.
Size
(
176
,
6
);
//
// 学习二维码ToolStripMenuItem
//
this
.
学习二维码
ToolStripMenuItem
.
Name
=
"学习二维码ToolStripMenuItem"
;
this
.
学习二维码
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
179
,
30
);
this
.
学习二维码
ToolStripMenuItem
.
Text
=
"学习二维码"
;
this
.
学习二维码
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
学习二维码
ToolStripMenuItem_Click
);
//
//
// 配置信息ToolStripMenuItem
// 配置信息ToolStripMenuItem
//
//
...
@@ -2071,7 +2064,6 @@
...
@@ -2071,7 +2064,6 @@
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
toolStripMenuItem1
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
toolStripMenuItem1
;
private
System
.
Windows
.
Forms
.
NotifyIcon
notifyIcon1
;
private
System
.
Windows
.
Forms
.
NotifyIcon
notifyIcon1
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
退出
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
退出
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
学习二维码
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator5
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator5
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator6
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator6
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator7
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator7
;
...
...
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
86ebf9c
...
@@ -16,7 +16,6 @@ using log4net;
...
@@ -16,7 +16,6 @@ using log4net;
using
OnlineStore.DeviceLibrary
;
using
OnlineStore.DeviceLibrary
;
using
System.IO.Ports
;
using
System.IO.Ports
;
using
OnlineStore.LoadCSVLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
CodeLibrary
;
namespace
OnlineStore.ACSingleStore
namespace
OnlineStore.ACSingleStore
{
{
...
@@ -176,6 +175,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -176,6 +175,7 @@ namespace OnlineStore.ACSingleStore
public
static
string
warn
=
ResourceCulture
.
GetString
(
"警告"
);
public
static
string
warn
=
ResourceCulture
.
GetString
(
"警告"
);
private
string
StartCycle
=
ResourceCulture
.
GetString
(
"开始循环出库"
);
private
string
StartCycle
=
ResourceCulture
.
GetString
(
"开始循环出库"
);
private
string
StopCycle
=
ResourceCulture
.
GetString
(
"停止循环出库"
);
private
string
StopCycle
=
ResourceCulture
.
GetString
(
"停止循环出库"
);
private
string
SafetyErrorMsg
=
ResourceCulture
.
GetString
(
"光栅被遮挡"
);
private
DateTime
preReadModblsTime
=
DateTime
.
Now
;
private
DateTime
preReadModblsTime
=
DateTime
.
Now
;
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
{
...
@@ -184,7 +184,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -184,7 +184,7 @@ namespace OnlineStore.ACSingleStore
return
;
return
;
}
}
lblTempStr
.
Text
=
store
.
currTempStr
;
lblTempStr
.
Text
=
store
.
currTempStr
;
ShowMsg
();
//ReadPosistion();
//ReadPosistion();
if
(
store
.
storeRunStatus
>
StoreRunStatus
.
Wait
)
if
(
store
.
storeRunStatus
>
StoreRunStatus
.
Wait
)
{
{
...
@@ -222,35 +222,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -222,35 +222,7 @@ namespace OnlineStore.ACSingleStore
}
}
}
}
}
}
if
(
CurrLanguage
.
Equals
(
ResourceCulture
.
China
))
{
lblWarnMsg
.
Text
=
store
.
WarnObj
.
WarnMsg
;
}
else
{
lblWarnMsg
.
Text
=
store
.
WarnObj
.
WarnMsgEn
;
}
if
(
store
.
Config
.
IsHasDoorLimit
.
Equals
(
1
))
{
if
(
IOManager
.
IOValue
(
IO_Type
.
Door_Limit
).
Equals
(
IO_VALUE
.
LOW
))
{
lblWarnMsg
.
Text
=
lblWarnMsg
.
Text
+
" "
+
dooropen
;
}
else
if
(
store
.
Config
.
StoreDIList
.
ContainsKey
(
IO_Type
.
Door_LeftLimit
)&&
IOManager
.
IOValue
(
IO_Type
.
Door_LeftLimit
).
Equals
(
IO_VALUE
.
LOW
))
{
lblWarnMsg
.
Text
=
lblWarnMsg
.
Text
+
" "
+
ldooropen
;
}
else
if
(
store
.
Config
.
StoreDIList
.
ContainsKey
(
IO_Type
.
Door_RightLimit
)
&&
IOManager
.
IOValue
(
IO_Type
.
Door_RightLimit
).
Equals
(
IO_VALUE
.
LOW
))
{
lblWarnMsg
.
Text
=
lblWarnMsg
.
Text
+
" "
+
rdooropen
;
}
}
//如果不在出入库中,且叉子上有信号,需要提示检查叉子
if
(
store
.
storeRunStatus
.
Equals
(
StoreRunStatus
.
Runing
)
&&
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
HIGH
))
{
lblWarnMsg
.
Text
=
lblWarnMsg
.
Text
+
" "
+
HasWare
;
}
//if (store.TempOrHumidityIsAlarm)
//if (store.TempOrHumidityIsAlarm)
//{
//{
// lblWarnMsg.Text = lblWarnMsg.Text + " 温湿度报警[" + store.TempAlarmTime.ToLongTimeString() + "]";
// lblWarnMsg.Text = lblWarnMsg.Text + " 温湿度报警[" + store.TempAlarmTime.ToLongTimeString() + "]";
...
@@ -287,11 +259,47 @@ namespace OnlineStore.ACSingleStore
...
@@ -287,11 +259,47 @@ namespace OnlineStore.ACSingleStore
else
else
{
{
lblThisSta
.
Text
=
WaitStart
;
lblThisSta
.
Text
=
WaitStart
;
lblWarnMsg
.
Text
=
""
;
//
lblWarnMsg.Text = "";
btnStartAuTo
.
Text
=
StartAuto
;
btnStartAuTo
.
Text
=
StartAuto
;
}
}
}
}
private
void
ShowMsg
()
{
if
(
CurrLanguage
.
Equals
(
ResourceCulture
.
China
))
{
lblWarnMsg
.
Text
=
store
.
WarnObj
.
WarnMsg
;
}
else
{
lblWarnMsg
.
Text
=
store
.
WarnObj
.
WarnMsgEn
;
}
if
(
store
.
Config
.
IsHasDoorLimit
.
Equals
(
1
))
{
if
(
IOManager
.
IOValue
(
IO_Type
.
Door_Limit
).
Equals
(
IO_VALUE
.
LOW
))
{
lblWarnMsg
.
Text
=
lblWarnMsg
.
Text
+
" "
+
dooropen
;
}
else
if
(
store
.
Config
.
StoreDIList
.
ContainsKey
(
IO_Type
.
Door_LeftLimit
)
&&
IOManager
.
IOValue
(
IO_Type
.
Door_LeftLimit
).
Equals
(
IO_VALUE
.
LOW
))
{
lblWarnMsg
.
Text
=
lblWarnMsg
.
Text
+
" "
+
ldooropen
;
}
else
if
(
store
.
Config
.
StoreDIList
.
ContainsKey
(
IO_Type
.
Door_RightLimit
)
&&
IOManager
.
IOValue
(
IO_Type
.
Door_RightLimit
).
Equals
(
IO_VALUE
.
LOW
))
{
lblWarnMsg
.
Text
=
lblWarnMsg
.
Text
+
" "
+
rdooropen
;
}
}
//如果不在出入库中,且叉子上有信号,需要提示检查叉子
if
(
store
.
storeRunStatus
.
Equals
(
StoreRunStatus
.
Runing
)
&&
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
HIGH
))
{
lblWarnMsg
.
Text
=
lblWarnMsg
.
Text
+
" "
+
HasWare
;
}
if
(
IOManager
.
IOValue
(
IO_Type
.
SafetyLightCurtains
).
Equals
(
IO_VALUE
.
LOW
))
{
lblWarnMsg
.
Text
=
lblWarnMsg
.
Text
+
" "
+
SafetyErrorMsg
;
}
}
private
void
FrmTest_FormClosing
(
object
sender
,
FormClosingEventArgs
e
)
private
void
FrmTest_FormClosing
(
object
sender
,
FormClosingEventArgs
e
)
{
{
...
@@ -966,12 +974,12 @@ namespace OnlineStore.ACSingleStore
...
@@ -966,12 +974,12 @@ namespace OnlineStore.ACSingleStore
private
void
学习二维码
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
private
void
学习二维码
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
{
// if (CodeManager.DeCodeType.Equals(0))
// if (CodeManager.DeCodeType.Equals(0))
{
//
{
IOManager
.
IOMove
(
IO_Type
.
Camera_Led
,
IO_VALUE
.
HIGH
);
//
IOManager.IOMove(IO_Type.Camera_Led, IO_VALUE.HIGH);
CodeLibrary
.
FrmCodeDecode
frm
=
new
FrmCodeDecode
();
//
CodeLibrary.FrmCodeDecode frm = new FrmCodeDecode();
frm
.
ShowDialog
();
//
frm.ShowDialog();
IOManager
.
IOMove
(
IO_Type
.
Camera_Led
,
IO_VALUE
.
LOW
);
//
IOManager.IOMove(IO_Type.Camera_Led, IO_VALUE.LOW);
}
//
}
}
}
private
void
btnTempInit_Click
(
object
sender
,
EventArgs
e
)
private
void
btnTempInit_Click
(
object
sender
,
EventArgs
e
)
...
@@ -1140,6 +1148,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -1140,6 +1148,7 @@ namespace OnlineStore.ACSingleStore
StopCycle
=
ResourceCulture
.
GetString
(
"停止循环出库"
);
StopCycle
=
ResourceCulture
.
GetString
(
"停止循环出库"
);
ldooropen
=
ResourceCulture
.
GetString
(
"左侧门未关"
);
ldooropen
=
ResourceCulture
.
GetString
(
"左侧门未关"
);
rdooropen
=
ResourceCulture
.
GetString
(
"右侧门未关"
);
rdooropen
=
ResourceCulture
.
GetString
(
"右侧门未关"
);
SafetyErrorMsg
=
ResourceCulture
.
GetString
(
"光栅被遮挡"
);
显示
ToolStripMenuItem
.
Text
=
ResourceCulture
.
GetString
(
ResourceCulture
.
GetTextIdStr
(
class
Name
,
显示
ToolStripMenuItem
.
Name
),
显示
ToolStripMenuItem
.
Text
);
显示
ToolStripMenuItem
.
Text
=
ResourceCulture
.
GetString
(
ResourceCulture
.
GetTextIdStr
(
class
Name
,
显示
ToolStripMenuItem
.
Name
),
显示
ToolStripMenuItem
.
Text
);
toolStripMenuItem1
.
Text
=
ResourceCulture
.
GetString
(
ResourceCulture
.
GetTextIdStr
(
class
Name
,
toolStripMenuItem1
.
Name
),
toolStripMenuItem1
.
Text
);
toolStripMenuItem1
.
Text
=
ResourceCulture
.
GetString
(
ResourceCulture
.
GetTextIdStr
(
class
Name
,
toolStripMenuItem1
.
Name
),
toolStripMenuItem1
.
Text
);
...
...
source/ACSingleStore/Properties/AssemblyInfo.cs
查看文件 @
86ebf9c
...
@@ -31,6 +31,6 @@ using System.Runtime.InteropServices;
...
@@ -31,6 +31,6 @@ using System.Runtime.InteropServices;
//
//
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// 方法是按如下所示使用“*”:
[
assembly
:
AssemblyVersion
(
"1.0.*"
)]
[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyVersion("1.0.0.0")]
//[assembly: AssemblyVersion("1.0.0.0")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
source/ACSingleStore/ResourceCulture.cs
查看文件 @
86ebf9c
...
@@ -51,7 +51,7 @@ namespace OnlineStore
...
@@ -51,7 +51,7 @@ namespace OnlineStore
ResourceControl
.
GetStringEvent
+=
GetString
;
ResourceControl
.
GetStringEvent
+=
GetString
;
CSVResourceControl
.
GetStrEvent
+=
GetString
;
CSVResourceControl
.
GetStrEvent
+=
GetString
;
CSVResourceControl
.
GetStringEvent
+=
GetString
;
CSVResourceControl
.
GetStringEvent
+=
GetString
;
CodeLibrary
.
CodeResourceControl
.
GetLanguageEvent
+=
CodeResourceControl_GetLanguageEvent
;
//
CodeLibrary.CodeResourceControl.GetLanguageEvent += CodeResourceControl_GetLanguageEvent;
//string englishPath = Application.StartupPath + @"\resource\en-US.resource";
//string englishPath = Application.StartupPath + @"\resource\en-US.resource";
//string chinaPath = Application.StartupPath + @"\resource\zh-CN.resource";
//string chinaPath = Application.StartupPath + @"\resource\zh-CN.resource";
//Dictionary<string, string> ChinaMap = LoadDataMap(chinaPath);
//Dictionary<string, string> ChinaMap = LoadDataMap(chinaPath);
...
...
source/ACSingleStore/resource/language.resource
查看文件 @
86ebf9c
...
@@ -299,3 +299,4 @@ trayHeight,料盘高度,Reel height,
...
@@ -299,3 +299,4 @@ trayHeight,料盘高度,Reel height,
左侧门未关,左侧门未关,Left door open
左侧门未关,左侧门未关,Left door open
右侧门未关,右侧门未关,Right door open
右侧门未关,右侧门未关,Right door open
FrmStoreBox_chbIsDebug_Text,调试状态,debug mode
FrmStoreBox_chbIsDebug_Text,调试状态,debug mode
光栅被遮挡,光栅被遮挡,Grating blocked
\ No newline at end of file
\ No newline at end of file
source/ACSingleStore/记录.txt
查看文件 @
86ebf9c
...
@@ -129,3 +129,5 @@ DeCodeType=解码类型,0=halcon,1=zxing解码 西安料仓解析方式。2=
...
@@ -129,3 +129,5 @@ DeCodeType=解码类型,0=halcon,1=zxing解码 西安料仓解析方式。2=
入库失败时蜂鸣器响
入库失败时蜂鸣器响
20200306
门未关闭且遮挡光栅时不继续出入库
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
86ebf9c
...
@@ -439,6 +439,15 @@ namespace OnlineStore.DeviceLibrary
...
@@ -439,6 +439,15 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
private
bool
DoorIsClose
()
{
if
(
IOManager
.
IOValue
(
IO_Type
.
Door_Down
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOManager
.
IOValue
(
IO_Type
.
Door_Up
).
Equals
(
IO_VALUE
.
LOW
))
{
return
true
;
}
return
false
;
}
private
void
OpenDoorAndWait
()
private
void
OpenDoorAndWait
()
{
{
Thread
.
Sleep
(
60
);
Thread
.
Sleep
(
60
);
...
@@ -925,16 +934,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -925,16 +934,13 @@ namespace OnlineStore.DeviceLibrary
//判断急停
//判断急停
else
if
(
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
else
if
(
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
{
{
//取新的Io状态
IO_VALUE
suddenBtn
=
IOManager
.
IOValue
(
IO_Type
.
SuddenStop_BTN
);
IO_VALUE
resetBtn
=
IOManager
.
IOValue
(
IO_Type
.
Reset_BTN
);
//急停按钮
//急停按钮
if
(
suddenBtn
.
Equals
(
IO_VALUE
.
LOW
))
if
(
IOManager
.
IOValue
(
IO_Type
.
SuddenStop_BTN
)
.
Equals
(
IO_VALUE
.
LOW
))
{
{
AirCheckProcess
()
;
return
;
}
}
else
if
(
resetBtn
.
Equals
(
IO_VALUE
.
HIGH
))
else
if
(
IOManager
.
IOValue
(
IO_Type
.
Reset_BTN
)
.
Equals
(
IO_VALUE
.
HIGH
))
{
{
//收到复位信号,若报警直接复位,若不报警且无操作,回到待机点
//收到复位信号,若报警直接复位,若不报警且无操作,回到待机点
if
(
alarmType
.
Equals
(
StoreAlarmType
.
None
)
&&
isInSuddenDown
.
Equals
(
false
)
&&
isNoAirCheck
.
Equals
(
false
))
if
(
alarmType
.
Equals
(
StoreAlarmType
.
None
)
&&
isInSuddenDown
.
Equals
(
false
)
&&
isNoAirCheck
.
Equals
(
false
))
...
@@ -967,6 +973,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -967,6 +973,7 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
}
}
AirCheckProcess
();
}
}
//ShowTimeLog("复位和启动按钮");
//ShowTimeLog("复位和启动按钮");
...
@@ -1055,7 +1062,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1055,7 +1062,7 @@ namespace OnlineStore.DeviceLibrary
//判断料门口是否有料
//判断料门口是否有料
if
((
checkIO
.
Equals
(
IO_VALUE
.
HIGH
))
&&
height
>
0
)
if
((
checkIO
.
Equals
(
IO_VALUE
.
HIGH
))
&&
height
>
0
)
{
{
if
(!
CanStartCode
()
||
IsDebug
||
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
HIGH
))
if
(!
CanStartCode
()
||
IsDebug
||
I
nStoreFail
||
I
OManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
HIGH
))
{
{
return
;
return
;
}
}
...
@@ -1063,7 +1070,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1063,7 +1070,7 @@ namespace OnlineStore.DeviceLibrary
if
(
isWaitScan
)
if
(
isWaitScan
)
{
{
TimeSpan
span
=
DateTime
.
Now
-
StartWaitScanTime
;
TimeSpan
span
=
DateTime
.
Now
-
StartWaitScanTime
;
if
(
span
.
TotalSeconds
>
1
)
if
(
span
.
TotalSeconds
>
1
&&
CanStartCode
()
)
{
{
isWaitScan
=
false
;
isWaitScan
=
false
;
IsScanCode
=
true
;
IsScanCode
=
true
;
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
86ebf9c
...
@@ -300,6 +300,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -300,6 +300,10 @@ namespace OnlineStore.DeviceLibrary
}
}
protected
override
void
InStoreProcess
()
protected
override
void
InStoreProcess
()
{
{
if
(!
DoorIsClose
()
&&
IOManager
.
IOValue
(
IO_Type
.
SafetyLightCurtains
).
Equals
(
IO_VALUE
.
LOW
))
{
return
;
}
LineMoveP
moveP
=
StoreMove
.
MoveParam
.
MoveP
;
LineMoveP
moveP
=
StoreMove
.
MoveParam
.
MoveP
;
if
(
StoreMove
.
IsInWait
)
if
(
StoreMove
.
IsInWait
)
{
{
...
@@ -475,7 +479,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -475,7 +479,8 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_14_CheckTray
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_14_CheckTray
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Fixture
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Fixture
,
IO_VALUE
.
LOW
));
}
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_14_CheckTray
)
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_14_CheckTray
)
{
{
InStoreLog
(
"入库:SI_15 返回待机点,轴2/轴1/轴4动作至P1(待机点)),检测门关闭"
);
InStoreLog
(
"入库:SI_15 返回待机点,轴2/轴1/轴4动作至P1(待机点)),检测门关闭"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_15_GoBack
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_15_GoBack
);
...
@@ -556,6 +561,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -556,6 +561,10 @@ namespace OnlineStore.DeviceLibrary
}
}
protected
override
void
OutStoreProcess
()
protected
override
void
OutStoreProcess
()
{
{
if
(!
DoorIsClose
()
&&
IOManager
.
IOValue
(
IO_Type
.
SafetyLightCurtains
).
Equals
(
IO_VALUE
.
LOW
))
{
return
;
}
LineMoveP
moveP
=
StoreMove
.
MoveParam
.
MoveP
;
LineMoveP
moveP
=
StoreMove
.
MoveParam
.
MoveP
;
if
(
StoreMove
.
IsInWait
)
if
(
StoreMove
.
IsInWait
)
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论