Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO1057_XLC_Store
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5f9a4946
由
张东亮
编写于
2025-08-14 13:35:47 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
Merge branch 'master' of
http://106.15.194.121:8083/liutao/SO1057_XLC_Store
2 个父辈
43877e5c
ae271905
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
52 行增加
和
40 行删除
Common/Common.csproj
DeviceLibrary/DeviceLibrary.csproj
DeviceLibrary/app.config
DeviceLibrary/theMachine/InOutDevice_IN.cs
LoadCVSLibrary/LoadCSVLibrary.csproj
TheMachine/App.config
TheMachine/Properties/Resources.Designer.cs
TheMachine/Properties/Settings.Designer.cs
TheMachine/TheMachine.csproj
Common/Common.csproj
查看文件 @
5f9a494
...
...
@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OnlineStore.Common</RootNamespace>
<AssemblyName>MyCommon</AssemblyName>
<TargetFrameworkVersion>v4.
6.1
</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.
8
</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
...
...
DeviceLibrary/DeviceLibrary.csproj
查看文件 @
5f9a494
...
...
@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DeviceLibrary</RootNamespace>
<AssemblyName>DeviceLibrary</AssemblyName>
<TargetFrameworkVersion>v4.
7.2
</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.
8
</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
...
...
DeviceLibrary/app.config
查看文件 @
5f9a494
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
runtime
>
<
assemblyBinding
xmlns
=
"urn:schemas-microsoft-com:asm.v1"
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"Newtonsoft.Json"
publicKeyToken
=
"30ad4fe6b2a6aeed"
culture
=
"neutral"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-13.0.0.0"
newVersion
=
"13.0.0.0"
/>
<
assemblyIdentity
name
=
"Newtonsoft.Json"
publicKeyToken
=
"30ad4fe6b2a6aeed"
culture
=
"neutral"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-13.0.0.0"
newVersion
=
"13.0.0.0"
/>
</
dependentAssembly
>
</
assemblyBinding
>
</
runtime
>
</
configuration
>
\ No newline at end of file
<
startup
><
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.8"
/></
startup
></
configuration
>
DeviceLibrary/theMachine/InOutDevice_IN.cs
查看文件 @
5f9a494
...
...
@@ -4,7 +4,6 @@ using OnlineStore.LoadCSVLibrary;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
DeviceLibrary
...
...
@@ -55,6 +54,7 @@ namespace DeviceLibrary
MoveInfo
.
NextMoveStep
(
MoveStep
.
In03
);
MoveInfo
.
log
(
"扫码失败重新扫码"
);
}
int
isScanErrorTimes
=
0
;
void
InProcess
()
{
if
(
mainMachine
.
CheckWait
(
MoveInfo
))
...
...
@@ -86,6 +86,7 @@ namespace DeviceLibrary
Lift
.
LiftDown
(
null
);
MoveInfo
.
log
(
"检测到周转箱2,升降台下降,前往中间阻挡"
);
IOMove
(
DO_Agv_Rsp
,
IO_VALUE
.
LOW
);
isScanErrorTimes
=
0
;
}
else
if
(
MoveInfo
.
IsTimeOut
(
3
))
{
...
...
@@ -226,7 +227,15 @@ namespace DeviceLibrary
Msg
.
add
(
"等待服务器返回库位"
,
MsgLevel
.
info
);
else
if
(
MoveInfo
.
IsTimeOut
(
15
))
{
//MoveInfo.NextMoveStep(MoveStep.Wait);
isScanErrorTimes
++;
if
(
isScanErrorTimes
<
3
)
{
MoveInfo
.
NextMoveStep
(
MoveStep
.
In03
);
}
else
{
MoveInfo
.
NextMoveStep
(
MoveStep
.
InNG1
);
Lift
.
LiftDown
(
MoveInfo
);
}
MoveInfo
.
log
(
$
"等待服务器返回库位超时"
);
}
break
;
...
...
@@ -272,7 +281,10 @@ namespace DeviceLibrary
MoveInfo
.
NextMoveStep
(
MoveStep
.
InNG3
);
Line
.
LineStop
(
"work"
);
MoveInfo
.
log
(
$
"料箱抵达出口"
);
Msg
.
add
(
"入库周转箱超重,已退出,请处理"
,
MsgLevel
.
alarm
);
if
(
isScanErrorTimes
>
2
)
Msg
.
add
(
"入库周转箱扫码失败,请确认料箱方向后重试"
,
MsgLevel
.
critical
);
else
Msg
.
add
(
"入库周转箱超重,已退出,请处理"
,
MsgLevel
.
critical
);
RobotManage
.
UserPause
(
"入库周转箱超重,退出线体"
);
break
;
case
MoveStep
.
InNG3
:
...
...
LoadCVSLibrary/LoadCSVLibrary.csproj
查看文件 @
5f9a494
...
...
@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OnlineStore.LoadCSVLibrary</RootNamespace>
<AssemblyName>LoadCSVLibrary</AssemblyName>
<TargetFrameworkVersion>v4.
6.1
</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.
8
</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
...
...
TheMachine/App.config
查看文件 @
5f9a494
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
configSections
>
<
section
name
=
"log4net"
type
=
"log4net.Config.Log4NetConfigurationSectionHandler,log4net"
/>
<
section
name
=
"log4net"
type
=
"log4net.Config.Log4NetConfigurationSectionHandler,log4net"
/>
</
configSections
>
<
appSettings
>
<!--是否开机自动启动料仓-->
<
add
key
=
"App_AutoRun"
value
=
"1"
/>
<
add
key
=
"CameraName"
value
=
"GigE:acA3800-10gc (23124327)#"
/>
<
add
key
=
"Config_Pwd"
value
=
"123456"
/>
<
add
key
=
"CodeType"
value
=
"QR Code#Data Matrix ECC 200#barcode"
/>
<
add
key
=
"App_AutoRun"
value
=
"1"
/>
<
add
key
=
"CameraName"
value
=
"GigE:acA3800-10gc (23124327)#"
/>
<
add
key
=
"Config_Pwd"
value
=
"123456"
/>
<
add
key
=
"CodeType"
value
=
"QR Code#Data Matrix ECC 200#barcode"
/>
<!--二维码参数文件所在路径,文件名与二维码类型名一样-->
<
add
key
=
"CodeParamPath"
value
=
"Conifg\"
/>
<
add
key
=
"CodeCount"
value
=
"3"
/>
<
add
key
=
"CodeParamPath"
value
=
"Conifg\"
/>
<
add
key
=
"CodeCount"
value
=
"3"
/>
</
appSettings
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
file
value
=
"logs/AutoScanAndLabel.log"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
file
value
=
"logs/AutoScanAndLabel.log"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
layout
type
=
"log4net.Layout.PatternLayout"
>
<
conversionPattern
value
=
"[%date][%t]%-5p %m%n"
/>
<
conversionPattern
value
=
"[%date][%t]%-5p %m%n"
/>
</
layout
>
</
appender
>
<
appender
name
=
"HCBOARD"
type
=
"log4net.Appender.RollingFileAppender"
>
<
file
value
=
"logs/HCBOARD.log"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
file
value
=
"logs/HCBOARD.log"
/>
<
param
name
=
"Encoding"
value
=
"UTF-8"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
layout
type
=
"log4net.Layout.PatternLayout"
>
<
conversionPattern
value
=
"[%date][%t]%-5p %m%n"
/>
<
conversionPattern
value
=
"[%date][%t]%-5p %m%n"
/>
</
layout
>
</
appender
>
<
logger
name
=
"RollingLogFileAppender"
>
<
level
value
=
"ALL"
/>
<
appender
-
ref
ref
=
"RollingLogFileAppender"
/>
<
level
value
=
"ALL"
/>
<
appender
-
ref
ref
=
"RollingLogFileAppender"
/>
</
logger
>
<
logger
name
=
"HCBOARD"
additivity
=
"false"
>
<
level
value
=
"ALL"
/>
<
appender
-
ref
ref
=
"HCBOARD"
/>
<
level
value
=
"ALL"
/>
<
appender
-
ref
ref
=
"HCBOARD"
/>
</
logger
>
<!--<
root
>
<
level
value
=
"Info"
/>
...
...
@@ -48,13 +48,13 @@
</
root
>-->
</
log4net
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.
7.2"
/>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.
8"
/>
</
startup
>
<
runtime
>
<
assemblyBinding
xmlns
=
"urn:schemas-microsoft-com:asm.v1"
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"Newtonsoft.Json"
publicKeyToken
=
"30ad4fe6b2a6aeed"
culture
=
"neutral"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-13.0.0.0"
newVersion
=
"13.0.0.0"
/>
<
assemblyIdentity
name
=
"Newtonsoft.Json"
publicKeyToken
=
"30ad4fe6b2a6aeed"
culture
=
"neutral"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-13.0.0.0"
newVersion
=
"13.0.0.0"
/>
</
dependentAssembly
>
</
assemblyBinding
>
</
runtime
>
...
...
TheMachine/Properties/Resources.Designer.cs
查看文件 @
5f9a494
...
...
@@ -19,7 +19,7 @@ namespace TheMachine.Properties {
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"System.Resources.Tools.StronglyTypedResourceBuilder"
,
"1
6
.0.0.0"
)]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"System.Resources.Tools.StronglyTypedResourceBuilder"
,
"1
7
.0.0.0"
)]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
internal
class
Resources
{
...
...
TheMachine/Properties/Settings.Designer.cs
查看文件 @
5f9a494
...
...
@@ -12,7 +12,7 @@ namespace TheMachine.Properties {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"1
6.10
.0.0"
)]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"1
7.14
.0.0"
)]
internal
sealed
partial
class
Settings
:
global
::
System
.
Configuration
.
ApplicationSettingsBase
{
private
static
Settings
defaultInstance
=
((
Settings
)(
global
::
System
.
Configuration
.
ApplicationSettingsBase
.
Synchronized
(
new
Settings
())));
...
...
TheMachine/TheMachine.csproj
查看文件 @
5f9a494
...
...
@@ -8,7 +8,7 @@
<OutputType>WinExe</OutputType>
<RootNamespace>TheMachine</RootNamespace>
<AssemblyName>XLC_Store</AssemblyName>
<TargetFrameworkVersion>v4.
7.2
</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.
8
</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>false</Deterministic>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论