Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0aff01d6
由
几米阳光
编写于
2019-04-30 15:35:13 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
温湿度报警时间可配置
1 个父辈
981e0e18
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
17 行增加
和
1 行删除
source/ACSingleStore/App.config
source/ACSingleStore/记录.txt
source/Common/Setting_Init.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/ACSingleStore/App.config
查看文件 @
0aff01d
...
@@ -37,6 +37,8 @@
...
@@ -37,6 +37,8 @@
<
add
key
=
"OutStoreWaitSeconds"
value
=
"10"
/>
<
add
key
=
"OutStoreWaitSeconds"
value
=
"10"
/>
<!--压紧轴对应
1
mm
的脉冲-->
<!--压紧轴对应
1
mm
的脉冲-->
<
add
key
=
"ComAxisChangeValue"
value
=
"2400"
/>
<
add
key
=
"ComAxisChangeValue"
value
=
"2400"
/>
<!--温湿度报警多久后报警,单位为秒-->
<
add
key
=
"HumidityAlarmSecond"
value
=
"1800"
/>
</
appSettings
>
</
appSettings
>
<
log4net
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
...
...
source/ACSingleStore/记录.txt
查看文件 @
0aff01d
...
@@ -69,6 +69,11 @@ statusBean.addServerData("needInAfterOut",needInAfterOut);
...
@@ -69,6 +69,11 @@ statusBean.addServerData("needInAfterOut",needInAfterOut);
20190319
20190319
增加调试屏蔽的功能。
增加调试屏蔽的功能。
20190430
温湿度报警时间可配置
<!--温湿度报警多久后报警,单位为秒-->
<add key ="HumidityAlarmSecond" value ="1800"/>
...
...
source/Common/Setting_Init.cs
查看文件 @
0aff01d
...
@@ -79,5 +79,9 @@ namespace OnlineStore.Common
...
@@ -79,5 +79,9 @@ namespace OnlineStore.Common
/// 压紧轴1mm对应的脉冲
/// 压紧轴1mm对应的脉冲
/// </summary>
/// </summary>
public
static
string
ComAxisChangeValue
=
"ComAxisChangeValue"
;
public
static
string
ComAxisChangeValue
=
"ComAxisChangeValue"
;
/// <summary>
/// 温湿度报警,不配置默认是30分钟,即1800
/// </summary>
public
static
string
HumidityAlarmSecond
=
"HumidityAlarmSecond"
;
}
}
}
}
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
0aff01d
...
@@ -836,6 +836,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -836,6 +836,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
"【"
+
info
+
"】 处理完成,耗时:"
+
stopwatch
.
Elapsed
.
ToString
());
LogUtil
.
info
(
"【"
+
info
+
"】 处理完成,耗时:"
+
stopwatch
.
Elapsed
.
ToString
());
}
}
}
}
private
int
ss
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
HumidityAlarmSecond
);
private
void
LedProcess
()
private
void
LedProcess
()
{
{
try
try
...
@@ -856,8 +857,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -856,8 +857,12 @@ namespace OnlineStore.DeviceLibrary
bool
isTemp30M
=
false
;
bool
isTemp30M
=
false
;
if
(
TempOrHumidityIsAlarm
)
if
(
TempOrHumidityIsAlarm
)
{
{
if
(
ss
<=
0
)
{
ss
=
1800
;
}
TimeSpan
span
=
DateTime
.
Now
-
TempAlarmTime
;
TimeSpan
span
=
DateTime
.
Now
-
TempAlarmTime
;
if
(
span
.
Minutes
>
30
)
if
(
span
.
TotalSeconds
>
ss
)
{
{
isTemp30M
=
true
;
isTemp30M
=
true
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论