Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit baca3254
由
张东亮
编写于
2023-12-01 17:27:59 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
显示处理时间
1 个父辈
0aff9dd7
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
142 行增加
和
99 行删除
dll/CodeLibrary.dll
dll/ConfigHelper.dll
dll/resources/resources.txt
source/AssemblyLineClient/App.config
source/AssemblyLineClient/Properties/Resources.Designer.cs
source/AssemblyLineClient/Properties/Settings.Designer.cs
source/AssemblyLineSystem/App.config
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor_Partial.cs
source/DeviceLibrary/assemblyLine/LineBean.cs
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
source/DeviceLibrary/deviceLibrary/halcon/RemoteDecodeHelper.cs
source/DeviceLibrary/model/KTK_Store.cs
source/DeviceLibrary/model/LineMoveInfo.cs
dll/CodeLibrary.dll
查看文件 @
baca325
此文件类型无法预览
dll/ConfigHelper.dll
0 → 100644
查看文件 @
baca325
此文件类型无法预览
dll/resources/resources.txt
0 → 100644
查看文件 @
baca325
FrmCodeDecode_Text,二维码识别,Qr code recognition
FrmCodeDecode_label4_Text,参数路径,Parameters of the path
FrmCodeDecode_chbUseParam_Text,使用参数,operation parameter
FrmCodeDecode_btnAn_Text,变暗,darken
FrmCodeDecode_btnLight_Text,提亮,brighten
FrmCodeDecode_btnCopyN_Text,复制名称,Copy Name
FrmCodeDecode_label3_Text,条码类型:,Bar code type:
FrmCodeDecode_label2_Text,相机列表:,Camera list:
FrmCodeDecode_btnExit_Text,退出,Exit
FrmCodeDecode_btnCameraImage_Text,相机获取图片,camera image
FrmCodeDecode_lblCount_Text,条码数量:,Barcode number:
FrmCodeDecode_btnClearLog_Text,清理日志,Clear log
FrmCodeDecode_btnDCode_Text,二维码识别,Qr code recognition
FrmCodeDecode_btnLearn_Text,学习,learn
FrmCodeDecode_btnbarCode_Text,一维码识别,One dimensional code recognition
FrmCodeDecode_btnGray_Text,图像转灰,Turning grey
FrmCodeDecode_btnErZhi_Text,二值化,binaryzation
FrmCodeDecode_btnSelImage_Text,打开本地图片,Open local image
FrmCodeDecode_label1_Text,图片路径,Image path
FrmCodeLearn_Text,条码参数学习,Bar code parameter learning
FrmCodeLearn_chbHalcon_Text,Halcon获取图片,Halcon Get photo
FrmCodeLearn_label4_Text,图片路径,Image path
FrmCodeLearn_btnDelOld_Text,删除旧参数,Delete old parameter
FrmCodeLearn_chbUseCamera_Text,相机获取实时图片,camera image
FrmCodeLearn_btnSelImage_Text,打开本地图片,Open local image
FrmCodeLearn_chbTest_Text,学习结束自动识别测试,Automatic identification test
FrmCodeLearn_btnClearLog_Text,清理日志,Clear log
FrmCodeLearn_lblCount_Text,条码数量:,Barcode number:
FrmCodeLearn_label3_Text,参数路径,Parameters of the path
FrmCodeLearn_label2_Text,类型:,Type:
FrmCodeLearn_label1_Text,相机:,camera:
FrmCodeLearn_btnExit_Text,退出,Exit
FrmCodeLearn_btnStop_Text,结束学习,End of learning
FrmCodeLearn_btnOpen_Text,开始学习,start to learn
selCamera,请先选择相机,Please select camera
selImage,请先选择图片,Please select picture
title,提示,Notice
imageIsNull,获取二维码图片为空,Get the two-dimensional code picture is empty
sureDelete,确定删除文件:,Make sure to delete the file:
\ No newline at end of file
\ No newline at end of file
source/AssemblyLineClient/App.config
查看文件 @
baca325
<?
xml
version
=
"1.0"
?>
<?
xml
version
=
"1.0"
?>
<
configuration
>
<
configuration
>
<
configSections
>
<
configSections
>
<
section
name
=
"log4net"
type
=
"log4net.Config.Log4NetConfigurationSectionHandler,log4net"
/>
<
section
name
=
"log4net"
type
=
"log4net.Config.Log4NetConfigurationSectionHandler,log4net"
/>
</
configSections
>
</
configSections
>
<
appSettings
>
<
appSettings
>
<!--是否开机自动启动料仓-->
<!--是否开机自动启动料仓-->
<
add
key
=
"App_AutoRun"
value
=
"0"
/>
<
add
key
=
"App_AutoRun"
value
=
"0"
/>
<
add
key
=
"App_Title"
value
=
"流水线客户端"
/>
<
add
key
=
"App_Title"
value
=
"流水线客户端"
/>
<!--
Server
address
-->
<!--
Server
address
-->
<!--<
add
key
=
"http.server"
value
=
"http://localhost/myproject/service/store/emptyPosForPutin"
/>-->
<!--<
add
key
=
"http.server"
value
=
"http://localhost/myproject/service/store/emptyPosForPutin"
/>-->
<
add
key
=
"http.server"
value
=
"http://10.85.199.25/myproject/"
/>
<
add
key
=
"http.server"
value
=
"http://10.85.199.25/myproject/"
/>
<!--
storeType
-->
<!--
storeType
-->
<
add
key
=
"Line_moveEquip_count"
value
=
"24"
/>
<
add
key
=
"Line_moveEquip_count"
value
=
"24"
/>
<
add
key
=
"Line_feedingEquip_count"
value
=
"5"
/>
<
add
key
=
"Line_feedingEquip_count"
value
=
"5"
/>
<
add
key
=
"Line_HYEquip_count"
value
=
"21"
/>
<
add
key
=
"Line_HYEquip_count"
value
=
"21"
/>
<!--<
add
key
=
"Line_dischargeLine_count"
value
=
"2"
/>-->
<!--<
add
key
=
"Line_dischargeLine_count"
value
=
"2"
/>-->
<!--
start
one
store
config
-->
<!--
start
one
store
config
-->
<
add
key
=
"ConfigPath_Line"
value
=
"\LineConfig\Config_Line.csv"
/>
<
add
key
=
"ConfigPath_Line"
value
=
"\LineConfig\Config_Line.csv"
/>
<
add
key
=
"ConfigPath_MoveEquip"
value
=
"\LineConfig\MoveEquip\Config_MoveEquip.csv"
/>
<
add
key
=
"ConfigPath_MoveEquip"
value
=
"\LineConfig\MoveEquip\Config_MoveEquip.csv"
/>
<
add
key
=
"ConfigPath_FeedingEquip"
value
=
"\LineConfig\Config_FeedingEquip.csv"
/>
<
add
key
=
"ConfigPath_FeedingEquip"
value
=
"\LineConfig\Config_FeedingEquip.csv"
/>
<
add
key
=
"ConfigPath_HYEquip"
value
=
"\LineConfig\HY\Config_HYEquip.csv"
/>
<
add
key
=
"ConfigPath_HYEquip"
value
=
"\LineConfig\HY\Config_HYEquip.csv"
/>
<
add
key
=
"ConfigPath_DischargeLine"
value
=
"\LineConfig\Config_DischargeLine.csv"
/>
<
add
key
=
"ConfigPath_DischargeLine"
value
=
"\LineConfig\Config_DischargeLine.csv"
/>
<
add
key
=
"ConfigPath_TrayList"
value
=
"\LineConfig\TrayList.data"
/>
<
add
key
=
"ConfigPath_TrayList"
value
=
"\LineConfig\TrayList.data"
/>
<
add
key
=
"Line_Type"
value
=
"Line"
/>
<
add
key
=
"Line_Type"
value
=
"Line"
/>
<
add
key
=
"Line_CID"
value
=
"so664"
/>
<
add
key
=
"Line_CID"
value
=
"so664"
/>
<!--
end
one
store
config
-->
<!--
end
one
store
config
-->
<!--摄像机名称列表配置,用
#分割-->
<!--摄像机名称列表配置,用
#分割-->
<
add
key
=
"CameraName"
value
=
"GigE:MV-CE100-30GC (00C69898519)#GigE:MV-CE100-30GC (00C95305929)"
/>
<
add
key
=
"CameraName"
value
=
"GigE:MV-CE100-30GC (00C69898519)#GigE:MV-CE100-30GC (00C95305929)"
/>
<!--二维码类型列表配置,用
#分割,一维码=Barcode 二维码: QR Code#Data Matrix ECC 200#Micro QR Code-->
<!--二维码类型列表配置,用
#分割,一维码=Barcode 二维码: QR Code#Data Matrix ECC 200#Micro QR Code-->
<
add
key
=
"CodeType"
value
=
"Data Matrix ECC 200#QR Code"
/>
<
add
key
=
"CodeType"
value
=
"Data Matrix ECC 200#QR Code"
/>
<!--<
add
key
=
"CodeType"
value
=
"Data Matrix ECC 200"
/>-->
<!--<
add
key
=
"CodeType"
value
=
"Data Matrix ECC 200"
/>-->
<
add
key
=
"ACBaudRate"
value
=
"115200"
/>
<
add
key
=
"ACBaudRate"
value
=
"115200"
/>
<!--二维码参数文件所在路径,文件名与二维码类型名一样-->
<!--二维码参数文件所在路径,文件名与二维码类型名一样-->
<
add
key
=
"CodeParamPath"
value
=
"\CodeParam\"
/>
<
add
key
=
"CodeParamPath"
value
=
"\CodeParam\"
/>
<
add
key
=
"Config_Pwd"
value
=
"123456"
/>
<
add
key
=
"Config_Pwd"
value
=
"123456"
/>
<!--出库等待料盘拿走的时间,秒-->
<!--出库等待料盘拿走的时间,秒-->
<
add
key
=
"OutStoreWaitSeconds"
value
=
"10"
/>
<
add
key
=
"OutStoreWaitSeconds"
value
=
"10"
/>
<
add
key
=
"UseAIOBOX"
value
=
"1"
/>
<
add
key
=
"UseAIOBOX"
value
=
"1"
/>
<!--流水线监听端口-->
<!--流水线监听端口-->
<
add
key
=
"TCPServerPort"
value
=
"5246"
/>
<
add
key
=
"TCPServerPort"
value
=
"5246"
/>
<!--
AGV
调度服务器地址-->
<!--
AGV
调度服务器地址-->
<
add
key
=
"AgvServerIp"
value
=
"10.85.162.40"
/>
<
add
key
=
"AgvServerIp"
value
=
"10.85.162.40"
/>
<!--
IO
配置-->
<!--
IO
配置-->
<
add
key
=
"DIMS"
value
=
"60"
/>
<
add
key
=
"DIMS"
value
=
"60"
/>
<
add
key
=
"DOMS"
value
=
"300"
/>
<
add
key
=
"DOMS"
value
=
"300"
/>
<
add
key
=
"LineRunTest"
value
=
"1"
/>
<
add
key
=
"LineRunTest"
value
=
"1"
/>
<!--
ABB
机器人服务器-->
<!--
ABB
机器人服务器-->
<
add
key
=
"ABBServerPort"
value
=
"21"
/>
<
add
key
=
"ABBServerPort"
value
=
"21"
/>
<!--是否打开托盘编码界面-->
<!--是否打开托盘编码界面-->
<
add
key
=
"OpenRFIDWrite"
value
=
"1"
/>
<
add
key
=
"OpenRFIDWrite"
value
=
"1"
/>
<
add
key
=
"DefaultPWD"
value
=
"123456"
/>
<
add
key
=
"DefaultPWD"
value
=
"123456"
/>
<
add
key
=
"Server_Log_Open"
value
=
"0"
/>
<
add
key
=
"Server_Log_Open"
value
=
"0"
/>
<
add
key
=
"CodeCount"
value
=
"4"
/>
<
add
key
=
"CodeCount"
value
=
"4"
/>
<
add
key
=
"DefaultTrayNum"
value
=
"0"
/>
<
add
key
=
"DefaultTrayNum"
value
=
"0"
/>
<
add
key
=
"NeedScanCode"
value
=
"1"
/>
<
add
key
=
"NeedScanCode"
value
=
"1"
/>
<
add
key
=
"Agv_Log_Open"
value
=
"0"
/>
<
add
key
=
"Agv_Log_Open"
value
=
"0"
/>
<
add
key
=
"NeedCheckTray"
value
=
"0"
/>
<
add
key
=
"NeedCheckTray"
value
=
"0"
/>
<
add
key
=
"Feed_LastShelfID_101"
value
=
"B19"
/>
<
add
key
=
"Feed_LastShelfID_101"
value
=
"B19"
/>
<
add
key
=
"Feed_LastShelfID_102"
value
=
"B23"
/>
<
add
key
=
"Feed_LastShelfID_102"
value
=
"B23"
/>
<
add
key
=
"Feed_LastShelfID_103"
value
=
"B25"
/>
<
add
key
=
"Feed_LastShelfID_103"
value
=
"B25"
/>
<
add
key
=
"Feed_LastShelfID_104"
value
=
"B7"
/>
<
add
key
=
"Feed_LastShelfID_104"
value
=
"B7"
/>
<
add
key
=
"SaveErrorImageToFile"
value
=
"1"
/>
<
add
key
=
"SaveErrorImageToFile"
value
=
"1"
/>
<
add
key
=
"UseHCBoard"
value
=
"1"
/>
<
add
key
=
"UseHCBoard"
value
=
"1"
/>
<
add
key
=
"ShowIOForm"
value
=
"1"
/>
<
add
key
=
"ShowIOForm"
value
=
"1"
/>
<
add
key
=
"RfidServer_Port"
value
=
"12001"
/>
<
add
key
=
"RfidServer_Port"
value
=
"12001"
/>
</
appSettings
>
</
appSettings
>
<
log4net
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
file
value
=
"logs/Line-SO664.log"
/>
<
file
value
=
"logs/Line-SO664.log"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
param
name
=
"maxSizeRollBackups"
value
=
"100"
/>
<
param
name
=
"maxSizeRollBackups"
value
=
"100"
/>
<
appendToFile
value
=
"true"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
rollingStyle
value
=
"Date"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
layout
type
=
"log4net.Layout.PatternLayout"
>
<
layout
type
=
"log4net.Layout.PatternLayout"
>
<
conversionPattern
value
=
"[%date][%t]%-5p %m%n"
/>
<
conversionPattern
value
=
"[%date][%t]%-5p %m%n"
/>
</
layout
>
</
layout
>
</
appender
>
</
appender
>
<
appender
name
=
"TheRFID"
type
=
"log4net.Appender.RollingFileAppender"
>
<
appender
name
=
"TheRFID"
type
=
"log4net.Appender.RollingFileAppender"
>
<
file
value
=
"logs/rfid/TheRFID-line.log"
/>
<
file
value
=
"logs/rfid/TheRFID-line.log"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
param
name
=
"maxSizeRollBackups"
value
=
"3"
/>
<
param
name
=
"maxSizeRollBackups"
value
=
"3"
/>
<
appendToFile
value
=
"true"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
rollingStyle
value
=
"Date"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
layout
type
=
"log4net.Layout.PatternLayout"
>
<
layout
type
=
"log4net.Layout.PatternLayout"
>
<
conversionPattern
value
=
"[%date][%t]%-5p %m%n"
/>
<
conversionPattern
value
=
"[%date][%t]%-5p %m%n"
/>
</
layout
>
</
layout
>
</
appender
>
</
appender
>
<
appender
name
=
"AIOBOX"
type
=
"log4net.Appender.RollingFileAppender"
>
<
appender
name
=
"AIOBOX"
type
=
"log4net.Appender.RollingFileAppender"
>
<
file
value
=
"logs/aio/AIOBOX-line.log"
/>
<
file
value
=
"logs/aio/AIOBOX-line.log"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
param
name
=
"maxSizeRollBackups"
value
=
"100"
/>
<
param
name
=
"maxSizeRollBackups"
value
=
"100"
/>
<
appendToFile
value
=
"true"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
rollingStyle
value
=
"Date"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
layout
type
=
"log4net.Layout.PatternLayout"
>
<
layout
type
=
"log4net.Layout.PatternLayout"
>
<
conversionPattern
value
=
"[%date][%t]%-5p %m%n"
/>
<
conversionPattern
value
=
"[%date][%t]%-5p %m%n"
/>
</
layout
>
</
layout
>
</
appender
>
</
appender
>
<
appender
name
=
"RunLog"
type
=
"log4net.Appender.RollingFileAppender"
>
<
appender
name
=
"RunLog"
type
=
"log4net.Appender.RollingFileAppender"
>
<
file
value
=
"logs/log/RunLog-line.log"
/>
<
file
value
=
"logs/log/RunLog-line.log"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
param
name
=
"maxSizeRollBackups"
value
=
"100"
/>
<
param
name
=
"maxSizeRollBackups"
value
=
"100"
/>
<
appendToFile
value
=
"true"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
rollingStyle
value
=
"Date"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
layout
type
=
"log4net.Layout.PatternLayout"
>
<
layout
type
=
"log4net.Layout.PatternLayout"
>
<
conversionPattern
value
=
" %m%n"
/>
<
conversionPattern
value
=
" %m%n"
/>
</
layout
>
</
layout
>
</
appender
>
</
appender
>
<
logger
name
=
"RollingLogFileAppender"
>
<
logger
name
=
"RollingLogFileAppender"
>
<
level
value
=
"Info"
/>
<
level
value
=
"Info"
/>
<
appender
-
ref
ref
=
"RollingLogFileAppender"
/>
<
appender
-
ref
ref
=
"RollingLogFileAppender"
/>
</
logger
>
</
logger
>
<
logger
name
=
"TheRFID"
>
<
logger
name
=
"TheRFID"
>
<
level
value
=
"Error"
/>
<
level
value
=
"Error"
/>
<
appender
-
ref
ref
=
"TheRFID"
/>
<
appender
-
ref
ref
=
"TheRFID"
/>
</
logger
>
</
logger
>
<
logger
name
=
"AIOBOX"
>
<
logger
name
=
"AIOBOX"
>
<
level
value
=
"Info"
/>
<
level
value
=
"Info"
/>
<
appender
-
ref
ref
=
"AIOBOX"
/>
<
appender
-
ref
ref
=
"AIOBOX"
/>
</
logger
>
</
logger
>
<
logger
name
=
"RunLog"
>
<
logger
name
=
"RunLog"
>
<
level
value
=
"Info"
/>
<
level
value
=
"Info"
/>
<
appender
-
ref
ref
=
"RunLog"
/>
<
appender
-
ref
ref
=
"RunLog"
/>
</
logger
>
</
logger
>
<!--<
root
>
<!--<
root
>
<
level
value
=
"Info"
/>
<
level
value
=
"Info"
/>
...
@@ -132,6 +132,6 @@
...
@@ -132,6 +132,6 @@
</
root
>-->
</
root
>-->
</
log4net
>
</
log4net
>
<
startup
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6.1"
/>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6.1"
/>
</
startup
>
</
startup
>
</
configuration
>
\ No newline at end of file
\ No newline at end of file
</
configuration
>
source/AssemblyLineClient/Properties/Resources.Designer.cs
查看文件 @
baca325
...
@@ -19,7 +19,7 @@ namespace OnlineStore.AssemblyLine.Properties {
...
@@ -19,7 +19,7 @@ namespace OnlineStore.AssemblyLine.Properties {
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
// (以 /str 作为命令选项),或重新生成 VS 项目。
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"System.Resources.Tools.StronglyTypedResourceBuilder"
,
"1
5
.0.0.0"
)]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"System.Resources.Tools.StronglyTypedResourceBuilder"
,
"1
7
.0.0.0"
)]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
internal
class
Resources
{
internal
class
Resources
{
...
@@ -47,8 +47,8 @@ namespace OnlineStore.AssemblyLine.Properties {
...
@@ -47,8 +47,8 @@ namespace OnlineStore.AssemblyLine.Properties {
}
}
/// <summary>
/// <summary>
/// 重写当前线程的 CurrentUICulture 属性
/// 重写当前线程的 CurrentUICulture 属性
,对
///
重写当前线程的 CurrentUICulture 属性
。
///
使用此强类型资源类的所有资源查找执行重写
。
/// </summary>
/// </summary>
[
global
::
System
.
ComponentModel
.
EditorBrowsableAttribute
(
global
::
System
.
ComponentModel
.
EditorBrowsableState
.
Advanced
)]
[
global
::
System
.
ComponentModel
.
EditorBrowsableAttribute
(
global
::
System
.
ComponentModel
.
EditorBrowsableState
.
Advanced
)]
internal
static
global
::
System
.
Globalization
.
CultureInfo
Culture
{
internal
static
global
::
System
.
Globalization
.
CultureInfo
Culture
{
...
...
source/AssemblyLineClient/Properties/Settings.Designer.cs
查看文件 @
baca325
...
@@ -12,7 +12,7 @@ namespace OnlineStore.AssemblyLine.Properties {
...
@@ -12,7 +12,7 @@ namespace OnlineStore.AssemblyLine.Properties {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"1
5.9
.0.0"
)]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"1
7.5
.0.0"
)]
internal
sealed
partial
class
Settings
:
global
::
System
.
Configuration
.
ApplicationSettingsBase
{
internal
sealed
partial
class
Settings
:
global
::
System
.
Configuration
.
ApplicationSettingsBase
{
private
static
Settings
defaultInstance
=
((
Settings
)(
global
::
System
.
Configuration
.
ApplicationSettingsBase
.
Synchronized
(
new
Settings
())));
private
static
Settings
defaultInstance
=
((
Settings
)(
global
::
System
.
Configuration
.
ApplicationSettingsBase
.
Synchronized
(
new
Settings
())));
...
...
source/AssemblyLineSystem/App.config
查看文件 @
baca325
<?
xml
version
=
"1.0"
?>
<?
xml
version
=
"1.0"
?>
<
configuration
>
<
configuration
>
<
configSections
>
<
configSections
>
<
section
name
=
"log4net"
type
=
"log4net.Config.Log4NetConfigurationSectionHandler,log4net"
/>
<
section
name
=
"log4net"
type
=
"log4net.Config.Log4NetConfigurationSectionHandler,log4net"
/>
</
configSections
>
</
configSections
>
<
appSettings
>
<
appSettings
>
...
@@ -33,12 +33,12 @@
...
@@ -33,12 +33,12 @@
<
add
key
=
"OutStoreWaitSeconds"
value
=
"10"
/>
<
add
key
=
"OutStoreWaitSeconds"
value
=
"10"
/>
<
add
key
=
"UseAIOBOX"
value
=
"1"
/>
<
add
key
=
"UseAIOBOX"
value
=
"1"
/>
<!--流水线监听端口-->
<!--流水线监听端口-->
<
add
key
=
"TCPServerPort"
value
=
"5246"
/>
<
add
key
=
"TCPServerPort"
value
=
"5246"
/>
</
appSettings
>
</
appSettings
>
<
log4net
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
file
value
=
"logs/Line-RC1246.log"
/>
<
file
value
=
"logs/Line-RC1246.log"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
appendToFile
value
=
"true"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
rollingStyle
value
=
"Date"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
...
@@ -54,4 +54,4 @@
...
@@ -54,4 +54,4 @@
<
startup
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6.1"
/>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6.1"
/>
</
startup
>
</
startup
>
</
configuration
>
\ No newline at end of file
\ No newline at end of file
</
configuration
>
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
baca325
...
@@ -99,6 +99,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -99,6 +99,7 @@ namespace OnlineStore.DeviceLibrary
}
}
isInPro
=
true
;
isInPro
=
true
;
lastProTimer
=
DateTime
.
Now
;
lastProTimer
=
DateTime
.
Now
;
LastProcTime
=
lastProTimer
;
try
try
{
{
if
(
runStatus
<=
LineRunStatus
.
Wait
&&
(!
baseConfig
.
DType
.
Equals
(
DeviceType
.
FeedingEquip
)))
if
(
runStatus
<=
LineRunStatus
.
Wait
&&
(!
baseConfig
.
DType
.
Equals
(
DeviceType
.
FeedingEquip
)))
...
@@ -742,6 +743,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -742,6 +743,7 @@ namespace OnlineStore.DeviceLibrary
msg
+=
"alarm: "
+
alarmType
+
" "
+
LastAlarmTime
.
ToLongTimeString
()
+
"\n"
;
msg
+=
"alarm: "
+
alarmType
+
" "
+
LastAlarmTime
.
ToLongTimeString
()
+
"\n"
;
msg
+=
"Move:"
+
MoveInfo
.
MoveType
+
" "
+
MoveInfo
.
SLog
+
"\n"
;
msg
+=
"Move:"
+
MoveInfo
.
MoveType
+
" "
+
MoveInfo
.
SLog
+
"\n"
;
msg
+=
"SMove:"
+
SecondMoveInfo
.
MoveType
+
" "
+
SecondMoveInfo
.
MoveStep
+
"\n"
;
msg
+=
"SMove:"
+
SecondMoveInfo
.
MoveType
+
" "
+
SecondMoveInfo
.
MoveStep
+
"\n"
;
msg
+=
$
"LastTime: {LastProcTime.ToString("
HH
:
mm
:
ss
")}"
;
return
msg
;
return
msg
;
}
}
internal
void
MoveEndS
()
internal
void
MoveEndS
()
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
查看文件 @
baca325
...
@@ -1260,6 +1260,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1260,6 +1260,7 @@ namespace OnlineStore.DeviceLibrary
msg
+=
"runS: "
+
runStatus
+
"\n"
;
msg
+=
"runS: "
+
runStatus
+
"\n"
;
msg
+=
"alarm: "
+
alarmType
+
"\n"
;
msg
+=
"alarm: "
+
alarmType
+
"\n"
;
msg
+=
"MoveT:"
+
MoveInfo
.
MoveType
+
" "
+
MoveInfo
.
SLog
+
"\n"
;
msg
+=
"MoveT:"
+
MoveInfo
.
MoveType
+
" "
+
MoveInfo
.
SLog
+
"\n"
;
msg
+=
$
"LastTime: {LastProcTime.ToString("
HH
:
mm
:
ss
")}"
;
return
msg
;
return
msg
;
}
}
public
string
GetLastTrayInfo
()
public
string
GetLastTrayInfo
()
...
...
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor_Partial.cs
查看文件 @
baca325
...
@@ -1032,6 +1032,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1032,6 +1032,7 @@ namespace OnlineStore.DeviceLibrary
msg
+=
"alarm: "
+
alarmType
+
" "
+
LastAlarmTime
.
ToLongTimeString
()
+
"\n"
;
msg
+=
"alarm: "
+
alarmType
+
" "
+
LastAlarmTime
.
ToLongTimeString
()
+
"\n"
;
msg
+=
"Move:"
+
MoveInfo
.
MoveType
+
" "
+
MoveInfo
.
SLog
+
"\n"
;
msg
+=
"Move:"
+
MoveInfo
.
MoveType
+
" "
+
MoveInfo
.
SLog
+
"\n"
;
msg
+=
"SMove:"
+
SecondMoveInfo
.
MoveType
+
" "
+
SecondMoveInfo
.
MoveStep
+
"\n"
;
msg
+=
"SMove:"
+
SecondMoveInfo
.
MoveType
+
" "
+
SecondMoveInfo
.
MoveStep
+
"\n"
;
msg
+=
$
"LastTime: {LastProcTime.ToString("
HH
:
mm
:
ss
")}"
;
return
msg
;
return
msg
;
}
}
}
}
...
...
source/DeviceLibrary/assemblyLine/LineBean.cs
查看文件 @
baca325
...
@@ -714,13 +714,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -714,13 +714,13 @@ namespace OnlineStore.DeviceLibrary
if
(!
moveEquip
.
IsMainStarted
)
if
(!
moveEquip
.
IsMainStarted
)
{
{
moveEquip
.
TimerProcess
();
moveEquip
.
TimerProcess
();
LastProcTime
=
DateTime
.
Now
;
}
}
}
}
}
}
LastProcTime
=
DateTime
.
Now
;
LineTimerPro
();
LineTimerPro
();
}
}
TimeSpan
span
=
DateTime
.
Now
-
time
;
TimeSpan
span
=
DateTime
.
Now
-
time
;
if
(
span
.
TotalMilliseconds
>
2000
)
if
(
span
.
TotalMilliseconds
>
2000
)
{
{
...
@@ -973,7 +973,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -973,7 +973,7 @@ namespace OnlineStore.DeviceLibrary
msg
+=
"alarm: "
+
alarmType
+
"\n"
;
msg
+=
"alarm: "
+
alarmType
+
"\n"
;
msg
+=
"Move:"
+
MoveInfo
.
MoveType
+
" "
+
MoveInfo
.
SLog
+
"\n"
;
msg
+=
"Move:"
+
MoveInfo
.
MoveType
+
" "
+
MoveInfo
.
SLog
+
"\n"
;
msg
+=
"T3C1:"
+
T3C1_MoveInfo
.
MoveType
+
" "
+
T3C1_MoveInfo
.
MoveStep
+
"\n"
;
msg
+=
"T3C1:"
+
T3C1_MoveInfo
.
MoveType
+
" "
+
T3C1_MoveInfo
.
MoveStep
+
"\n"
;
msg
+=
$
"LastTime: {LastProcTime.ToString("
HH
:
mm
:
ss
")}"
;
return
msg
;
return
msg
;
}
}
...
...
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
查看文件 @
baca325
...
@@ -44,7 +44,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -44,7 +44,6 @@ namespace OnlineStore.DeviceLibrary
LoadCamera
(
false
);
LoadCamera
(
false
);
CodeLibrary
.
HDCodeLearnHelper
.
LoadConfig
(
""
,
codeStr
);
CodeLibrary
.
HDCodeLearnHelper
.
LoadConfig
(
""
,
codeStr
);
CodeLibrary
.
EyemDecode
.
InitModel
();
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
@@ -140,7 +139,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -140,7 +139,8 @@ namespace OnlineStore.DeviceLibrary
string
r
=
""
;
string
r
=
""
;
bool
eyemNoCode
=
false
;
bool
eyemNoCode
=
false
;
//Task eyemtask = Task.Factory.StartNew(delegate {
//Task eyemtask = Task.Factory.StartNew(delegate
//{
// List<CodeInfo> tlci = EyemDecode.ModelDecoder(ref bmp);
// List<CodeInfo> tlci = EyemDecode.ModelDecoder(ref bmp);
// foreach (CodeInfo code in tlci)
// foreach (CodeInfo code in tlci)
// {
// {
...
...
source/DeviceLibrary/deviceLibrary/halcon/RemoteDecodeHelper.cs
查看文件 @
baca325
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/model/KTK_Store.cs
查看文件 @
baca325
...
@@ -16,7 +16,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -16,7 +16,7 @@ namespace OnlineStore.DeviceLibrary
{
{
public
LineRunStatus
runStatus
=
LineRunStatus
.
Wait
;
public
LineRunStatus
runStatus
=
LineRunStatus
.
Wait
;
public
DateTime
LastProcTime
=
DateTime
.
Now
;
public
string
WarnMsg
=
""
;
public
string
WarnMsg
=
""
;
public
DeviceConfig
baseConfig
=
null
;
public
DeviceConfig
baseConfig
=
null
;
...
@@ -32,7 +32,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -32,7 +32,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
/// 使用timer定时器
/// 使用timer定时器
/// </summary>
/// </summary>
protected
bool
useTimer
=
ConfigHelper
.
Config
.
Get
(
"Device_MainThreadUseTimer"
,
true
);
protected
bool
useTimer
=
true
;
//
ConfigHelper.Config.Get("Device_MainThreadUseTimer", true);
public
bool
IsMainStarted
public
bool
IsMainStarted
{
{
get
get
...
...
source/DeviceLibrary/model/LineMoveInfo.cs
查看文件 @
baca325
...
@@ -90,7 +90,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -90,7 +90,7 @@ namespace OnlineStore.DeviceLibrary
}
}
public
string
SLog
public
string
SLog
{
{
get
{
return
" "
+
MoveStep
+
"
"
;
}
get
{
return
$
" {PreMoveStep}->{MoveStep}
"
;
}
}
}
public
bool
IsTimeOut
(
int
timeOutSeconds
=
60
)
public
bool
IsTimeOut
(
int
timeOutSeconds
=
60
)
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论