Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 9271efd9
由
刘韬
编写于
2023-05-18 09:17:52 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
1
2 个父辈
9d4317d5
5a47a851
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
17 个修改的文件
包含
56 行增加
和
31 行删除
source/ACSingleStore/FormManager.cs
source/ACSingleStore/FrmStoreBox.cs
source/ACSingleStore/Properties/AssemblyInfo.cs
source/ACSingleStore/resources/en-US.lngres
source/ACSingleStore/resources/ja-JP.lngres
source/ACSingleStore/resources/server_wiston/en-US.lngres
source/ACSingleStore/resources/server_wiston/ja-JP.lngres
source/ACSingleStore/resources/server_wiston/zh-CN.lngres
source/ACSingleStore/resources/zh-CN - 副本.lngres
source/ACSingleStore/resources/zh-CN.lngres
source/Common/Common.csproj
source/DeviceLibrary/DeviceLibrary.csproj
source/DeviceLibrary/ResourceControl.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/store/model/StoreMoveInfo.cs
source/LoadCVSLibrary/LoadCSVLibrary.csproj
source/ACSingleStore/FormManager.cs
查看文件 @
9271efd
...
...
@@ -12,8 +12,6 @@ namespace OnlineStore.ACSingleStore
{
public
class
FormManager
{
//#03A9F4
public
static
Color
buttonColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
128
)))),
((
int
)(((
byte
)(
128
)))),
((
int
)(((
byte
)(
255
)))));
//public static Color buttonColor = System.Drawing.SystemColors.ActiveCaption;
...
...
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
9271efd
...
...
@@ -376,10 +376,12 @@ namespace OnlineStore.ACSingleStore
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
;
StoreManager
.
Store
.
SetWarnMsg
(
"左侧门未关"
,
"左侧门未关"
);
}
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
;
StoreManager
.
Store
.
SetWarnMsg
(
"右侧门未关"
,
"右侧门未关"
);
}
else
{
...
...
source/ACSingleStore/Properties/AssemblyInfo.cs
查看文件 @
9271efd
...
...
@@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SO951-HC-ACSingleStore
ae38ff02713c40eeb236c27ade9cb6698e5aa49a
")]
[assembly: AssemblyProduct("SO951-HC-ACSingleStore
84085011622eb8df3361eb4caec4c3cefe70c3dd
")]
[assembly: AssemblyCopyright("Copyright ? 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
...
...
source/ACSingleStore/resources/en-US.lngres
查看文件 @
9271efd
此文件的差异被折叠,
点击展开。
source/ACSingleStore/resources/ja-JP.lngres
查看文件 @
9271efd
...
...
@@ -225,7 +225,7 @@ OpenAxisFail 打开轴{0}失败 軸を開けることが不可{0}
NoAIr 未检测到气压信号 気圧信号はまだ検出していません。
AutoReset 收到复位信号,自动复位 リセット信号を受け、自動初期化に戻す
AxisAlarm 运动轴{0}报警 運転軸がアラームする{0}
CustAlarm
{0} {0}
CustAlarm
湿度超限{0}分钟 湿度制限{0}分超過
startFail 启动失败:急停未开 設備が立ち上がらなく、急に止まる
WaitSingleTimeOut 等待信号{0}={1}超时 信号を待つ、タイムオーバーする{0}={1}
startFailAir 启动失败:没有气压信号 起動失敗し、気圧信号がない
...
...
@@ -344,3 +344,10 @@ AxisTipControl_label_speed_Text 点动速度: タップスピード
safety_grating_covered "开门时安全光栅被遮挡,料仓暂停运行." ドアを開けると安全格子が遮られ、設備は運転を一時停止します。
take_out_reel_failure "料叉没有成功取出料盘,请检查库位[{0}],取出料盘后请复位." フォークはトレイの取り出しに成功しなかった。保管場所[{0}]を確認し、手動でパレットを取り出し、リセットしてください。
InStoreExecute 入库执行中 入庫実行中
InStoreEnd 料盘入仓位完成 リール入庫完成
Busy 忙碌 実行中
humiOver 当前湿度:{0}%超出最大湿度{1}% 現在湿度:{0}%最大{1}%より高い
tempOver 当前温度:{0}℃超出最高温度{1}℃ 現在温度:{0}℃最高温度{1}℃より高い
\ No newline at end of file
source/ACSingleStore/resources/server_wiston/en-US.lngres
0 → 100644
查看文件 @
9271efd
此文件的差异被折叠,
点击展开。
source/ACSingleStore/resources/server_wiston/ja-JP.lngres
0 → 100644
查看文件 @
9271efd
此文件的差异被折叠,
点击展开。
source/ACSingleStore/resources/server_wiston/zh-CN.lngres
0 → 100644
查看文件 @
9271efd
此文件的差异被折叠,
点击展开。
source/ACSingleStore/resources/zh-CN - 副本.lngres
0 → 100644
查看文件 @
9271efd
此文件的差异被折叠,
点击展开。
source/ACSingleStore/resources/zh-CN.lngres
查看文件 @
9271efd
此文件的差异被折叠,
点击展开。
source/Common/Common.csproj
查看文件 @
9271efd
...
...
@@ -35,9 +35,8 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\HuichuanLibrary\HuichuanLibrary\bin\Debug\log4net.dll</HintPath>
<Reference Include="log4net">
<HintPath>..\ACSingleStore\bin\Debug\log4net.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\dll\Newtonsoft.Json.dll</HintPath>
...
...
source/DeviceLibrary/DeviceLibrary.csproj
查看文件 @
9271efd
...
...
@@ -38,23 +38,22 @@
<ItemGroup>
<Reference Include="Asa.Camera.VisionLib, Version=1.3.7927.28975, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\
..\..\Camera\CameraVisionLib
\bin\Debug\Asa.Camera.VisionLib.dll</HintPath>
<HintPath>..\
ACSingleStore
\bin\Debug\Asa.Camera.VisionLib.dll</HintPath>
</Reference>
<Reference Include="Asa.IOModule.AIOBOX">
<HintPath>..\..\dll\Asa.IOModule.AIOBOX.dll</HintPath>
</Reference>
<Reference Include="CodeLibrary">
<HintPath>..\
..\..\GeneralClassLibrary\CodeLibraryProject\CodeLibrary
\bin\Debug\CodeLibrary.dll</HintPath>
<HintPath>..\
ACSingleStore
\bin\Debug\CodeLibrary.dll</HintPath>
</Reference>
<Reference Include="halcondotnet">
<HintPath>..\
..\..\GeneralClassLibrary\CodeLibraryProject\CodeLibrary
\bin\Debug\halcondotnet.dll</HintPath>
<HintPath>..\
ACSingleStore
\bin\Debug\halcondotnet.dll</HintPath>
</Reference>
<Reference Include="HuichuanLibrary">
<HintPath>..\
..\..\HuichuanLibrary\HuichuanLibrary
\bin\Debug\HuichuanLibrary.dll</HintPath>
<HintPath>..\
ACSingleStore
\bin\Debug\HuichuanLibrary.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\HuichuanLibrary\HuichuanLibrary\bin\Debug\log4net.dll</HintPath>
<Reference Include="log4net">
<HintPath>..\ACSingleStore\bin\Debug\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
...
...
source/DeviceLibrary/ResourceControl.cs
查看文件 @
9271efd
...
...
@@ -403,5 +403,7 @@ namespace OnlineStore.DeviceLibrary
public
static
string
take_out_reel_failure
=
"take_out_reel_failure"
;
public
static
string
safety_grating_covered
=
"safety_grating_covered"
;
public
static
string
humiOver
=
"humiOver"
;
public
static
string
tempOver
=
"tempOver"
;
}
}
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
9271efd
...
...
@@ -895,12 +895,12 @@ namespace OnlineStore.DeviceLibrary
// 绿 黄 红
//机器复位中 闪 灭 灭
//机器待机中 亮 灭 灭
//机器出入库中 闪 闪 灭
//
关闭
机器出入库中 闪 闪 灭
//温湿度超限报警中 亮 闪 灭
//温湿度超限报警中超过30分钟 亮 闪 闪
//机器未启动 灭 灭 灭
//机器设备故障(非温湿度)报警 亮 灭 闪
//开启 机器出入库中 灭 闪 灭
//报警时只需要亮红灯
DateTime
time
=
DateTime
.
Now
;
...
...
@@ -908,10 +908,11 @@ namespace OnlineStore.DeviceLibrary
if
(
TempOrHumidityIsAlarm
)
{
TimeSpan
span
=
DateTime
.
Now
-
TempAlarmTime
;
if
(
span
.
Minutes
>
40
)
int
minute
=
30
;
if
(
span
.
Minutes
>
minute
)
//
{
isTemp30M
=
true
;
SetWarnMsg
(
ResourceControl
.
CustAlarm
,
"湿度超限30分钟"
);
//1084
SetWarnMsg
(
ResourceControl
.
CustAlarm
,
minute
.
ToString
());
//1084"湿度超限30分钟"
//LogUtil.info("湿度超限30分钟:"+ TempAlarmTime.ToString());
}
}
...
...
@@ -990,8 +991,7 @@ namespace OnlineStore.DeviceLibrary
//黄灯
if
(
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
InStore
)
||
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
OutStore
)
||
TempOrHumidityIsAlarm
||
isTemp30M
)
if
(
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
InStore
)
||
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
OutStore
)
||
TempOrHumidityIsAlarm
||
isTemp30M
)
{
if
(
IOManager
.
IOValue
(
IO_Type
.
RunSign_HddLed
).
Equals
(
IO_VALUE
.
HIGH
))
{
...
...
@@ -1529,6 +1529,7 @@ namespace OnlineStore.DeviceLibrary
{
CodeMsg
=
ResourceControl
.
GetChinaString
(
ResourceControl
.
NoCodeMsg
,
"没有收到二维码信息,请重新放入料盘"
);
CodeMsgEn
=
ResourceControl
.
GetEnglishString
(
ResourceControl
.
NoCodeMsg
,
"没有收到二维码信息,请重新放入料盘"
);
CodeMsgJp
=
ResourceControl
.
GetJapaneseString
(
ResourceControl
.
NoCodeMsg
,
"没有收到二维码信息,请重新放入料盘"
);
if
(
CurrScanCount
>=
MaxScanCount
)
{
InStoreFail
=
true
;
...
...
@@ -1578,6 +1579,8 @@ namespace OnlineStore.DeviceLibrary
InStoreFail
=
true
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
$
"[{src}]"
+
" 二维码【"
+
message
+
"】 服务器反馈 :"
+
resultOperation
.
msg
);
CodeMsg
=
resultOperation
.
msg
;
CodeMsgEn
=
resultOperation
.
msgEn
;
CodeMsgJp
=
resultOperation
.
msgJp
;
//SetWarnMsg("");
IsScanCode
=
false
;
return
;
...
...
@@ -2017,19 +2020,21 @@ namespace OnlineStore.DeviceLibrary
}
bool
needAlarm
=
false
;
Debug
.
WriteLine
(
$
"IsInBlowing:{IsInBlowing},Max_Humidity:{Max_Humidity},humidity:{humidity}"
);
if
(
humidity
<=
Max_Humidity
)
{
TempOrHumidityIsAlarm
=
false
;
TempAlarmTime
=
DateTime
.
Now
;
}
else
//
if (humidity <= Max_Humidity) {
//
TempOrHumidityIsAlarm = false;
//
TempAlarmTime = DateTime.Now;
//
}
//
else
if
(
IsInBlowing
&&
humidity
>
Max_Humidity
)
//如果开始吹气并且当前达到报警值
{
needAlarm
=
true
;
SetWarnMsg
(
ResourceControl
.
humiOver
,
humidity
.
ToString
(),
Max_Humidity
.
ToString
());
}
else
if
(
temp
>
Max_Temperature
&&
Max_Temperature
>
0
)
{
LOGGER
.
Info
(
"当前温度【"
+
param
.
Temperate
+
"】超过最高温度【"
+
Max_Temperature
+
"】,开始报警!"
);
needAlarm
=
true
;
SetWarnMsg
(
ResourceControl
.
tempOver
,
param
.
Temperate
.
ToString
(),
Max_Temperature
.
ToString
());
//Thread.Sleep(100);
IOManager
.
IOMove
(
IO_Type
.
StartOrStopBlow
,
IO_VALUE
.
LOW
);
}
...
...
@@ -2048,6 +2053,7 @@ namespace OnlineStore.DeviceLibrary
{
TempOrHumidityIsAlarm
=
false
;
TempAlarmTime
=
DateTime
.
Now
;
SetWarnMsg
(
""
);
}
if
(
needAlarm
)
{
...
...
@@ -2075,6 +2081,7 @@ namespace OnlineStore.DeviceLibrary
private
string
CodeMsg
=
""
;
private
string
CodeMsgEn
=
""
;
private
string
CodeMsgJp
=
""
;
private
bool
isInProcess
=
false
;
public
void
server_connect_timer_Tick
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -2158,8 +2165,10 @@ namespace OnlineStore.DeviceLibrary
{
boxStatus
.
msg
=
CodeMsg
;
boxStatus
.
msgEn
=
CodeMsgEn
;
boxStatus
.
msgJp
=
CodeMsgJp
;
lineOperation
.
msg
=
CodeMsg
;
lineOperation
.
msgEn
=
CodeMsgEn
;
lineOperation
.
msgJp
=
CodeMsgJp
;
}
//if (CodeMsg.Equals(""))
if
(
WarnObj
.
WarnMsg
.
Equals
(
""
))
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
9271efd
...
...
@@ -933,15 +933,15 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitHeight
(
0
));
OpenDoor
();
}
else
if
(
StoreMove
.
TimeOutSeconds
>
60
*
10
)
{
else
if
(
StoreMove
.
IsTimeOut
(
out
double
timeout
)
)
{
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
).
Equals
(
IO_VALUE
.
HIGH
))
{
SetWarnMsg
(
ResourceControl
.
MoveTimeOut
,
StoreMove
.
MoveStep
+
""
,
IO_Type
.
TrayCheck_Door
.
ToString
()
+
"=LOW"
,
"
"
);
//1085
SetWarnMsg
(
ResourceControl
.
MoveTimeOut
,
StoreMove
.
MoveStep
+
""
,
IO_Type
.
TrayCheck_Door
.
ToString
()
+
"=LOW"
,
timeout
.
ToString
(
"f1"
)+
"s
"
);
//1085
LogUtil
.
error
(
LOGGER
,
WarnObj
.
WarnMsg
,
100
);
}
else
if
(
IOManager
.
IOValue
(
IO_Type
.
SafetyLightCurtains
).
Equals
(
IO_VALUE
.
LOW
))
{
SetWarnMsg
(
ResourceControl
.
MoveTimeOut
,
StoreMove
.
MoveStep
+
""
,
IO_Type
.
SafetyLightCurtains
.
ToString
()+
"=HIGH"
,
"
"
);
//1085
SetWarnMsg
(
ResourceControl
.
MoveTimeOut
,
StoreMove
.
MoveStep
+
""
,
IO_Type
.
SafetyLightCurtains
.
ToString
()+
"=HIGH"
,
timeout
.
ToString
(
"f1"
)
+
"s
"
);
//1085
LogUtil
.
error
(
LOGGER
,
WarnObj
.
WarnMsg
,
100
);
}
}
...
...
source/DeviceLibrary/store/model/StoreMoveInfo.cs
查看文件 @
9271efd
...
...
@@ -90,6 +90,16 @@ namespace OnlineStore.DeviceLibrary
OneWaitCanEndStep
=
false
;
CanWhileCount
=
5
;
}
public
bool
IsTimeOut
(
out
double
timeoutSec
,
int
timeOutSeconds
=
60
)
{
TimeSpan
span
=
DateTime
.
Now
-
LastSetpTime
;
timeoutSec
=
span
.
TotalSeconds
-
timeOutSeconds
;
if
(
timeoutSec
>
0
)
{
return
true
;
}
return
false
;
}
/// <summary>
/// 当前步骤执行完成
/// </summary>
...
...
source/LoadCVSLibrary/LoadCSVLibrary.csproj
查看文件 @
9271efd
...
...
@@ -33,9 +33,8 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\HuichuanLibrary\HuichuanLibrary\bin\Debug\log4net.dll</HintPath>
<Reference Include="log4net">
<HintPath>..\ACSingleStore\bin\Debug\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论