Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSquareStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 66b448fb
由
LN
编写于
2023-05-12 16:23:48 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
温湿度修改
1 个父辈
5e3c2562
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
8 行删除
source/DeviceLibrary/acSquareStore/Square_BoxBean.cs
source/DeviceLibrary/acSquareStore/Square_BoxBean.cs
查看文件 @
66b448f
...
@@ -537,7 +537,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -537,7 +537,6 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
IsIntSlvBlock
=
true
;
IsIntSlvBlock
=
true
;
Thread
.
Sleep
(
200
);
IOManager
.
IOMove
(
IO_Type
.
Axis_Brake
,
IO_VALUE
.
HIGH
);
IOManager
.
IOMove
(
IO_Type
.
Axis_Brake
,
IO_VALUE
.
HIGH
);
return
true
;
return
true
;
}
}
...
@@ -552,26 +551,26 @@ namespace OnlineStore.DeviceLibrary
...
@@ -552,26 +551,26 @@ namespace OnlineStore.DeviceLibrary
{
{
if
(
ACServerManager
.
ServerOnStatus
(
axis
.
DeviceName
,
axis
.
GetAxisValue
()))
if
(
ACServerManager
.
ServerOnStatus
(
axis
.
DeviceName
,
axis
.
GetAxisValue
()))
{
{
LogUtil
.
info
(
LOGGER
,
StoreName
+
"成功打开轴:"
+
axis
.
Explain
);
LogUtil
.
info
(
StoreName
+
"成功打开轴:"
+
axis
.
Explain
);
}
}
else
else
{
{
//清理报警,再重新打开一次
//清理报警,再重新打开一次
LogUtil
.
info
(
LOGGER
,
StoreName
+
"第一次打开轴"
+
axis
.
Explain
+
"失败,先清理一下报警,再重新打开一次"
);
LogUtil
.
info
(
StoreName
+
"第一次打开轴"
+
axis
.
Explain
+
"失败,先清理一下报警,再重新打开一次"
);
ACServerManager
.
AlarmClear
(
axis
.
DeviceName
,
axis
.
GetAxisValue
());
ACServerManager
.
AlarmClear
(
axis
.
DeviceName
,
axis
.
GetAxisValue
());
System
.
Threading
.
Thread
.
Sleep
(
1200
);
System
.
Threading
.
Thread
.
Sleep
(
1200
);
ACServerManager
.
ServoOn
(
axis
.
DeviceName
,
axis
.
GetAxisValue
());
ACServerManager
.
ServoOn
(
axis
.
DeviceName
,
axis
.
GetAxisValue
());
System
.
Threading
.
Thread
.
Sleep
(
100
);
System
.
Threading
.
Thread
.
Sleep
(
100
);
if
(
ACServerManager
.
ServerOnStatus
(
axis
.
DeviceName
,
axis
.
GetAxisValue
()))
if
(
ACServerManager
.
ServerOnStatus
(
axis
.
DeviceName
,
axis
.
GetAxisValue
()))
{
{
LogUtil
.
info
(
LOGGER
,
StoreName
+
"清理报警后重新打卡轴成功:"
+
axis
.
Explain
);
LogUtil
.
info
(
StoreName
+
"清理报警后重新打卡轴成功:"
+
axis
.
Explain
);
}
}
else
else
{
{
ACServerManager
.
ServoOff
(
axis
.
DeviceName
,
axis
.
GetAxisValue
());
ACServerManager
.
ServoOff
(
axis
.
DeviceName
,
axis
.
GetAxisValue
());
int
alarmCode
=
GetAlarmCodeByAxis
(
axis
);
int
alarmCode
=
GetAlarmCodeByAxis
(
axis
);
WarnMsg
=
StoreName
+
"打开轴"
+
axis
.
Explain
+
"失败 "
;
WarnMsg
=
StoreName
+
"打开轴"
+
axis
.
Explain
+
"失败 "
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
WarnMsg
);
LogUtil
.
error
(
StoreName
+
WarnMsg
);
Alarm
(
StoreAlarmType
.
AxisAlarm
,
GetAlarmCodeByAxis
(
axis
).
ToString
(),
WarnMsg
,
StoreMove
.
MoveType
);
Alarm
(
StoreAlarmType
.
AxisAlarm
,
GetAlarmCodeByAxis
(
axis
).
ToString
(),
WarnMsg
,
StoreMove
.
MoveType
);
return
false
;
return
false
;
}
}
...
@@ -588,7 +587,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -588,7 +587,7 @@ namespace OnlineStore.DeviceLibrary
{
{
ACServerManager
.
ServoOff
(
axis
.
DeviceName
,
axis
.
GetAxisValue
());
ACServerManager
.
ServoOff
(
axis
.
DeviceName
,
axis
.
GetAxisValue
());
//关闭串口,等下次重新打开
//关闭串口,等下次重新打开
// ACServerManager.ColsePort(axis.DeviceName);
// ACServerManager.ColsePort(axis.DeviceName);
}
}
Thread
.
Sleep
(
100
);
Thread
.
Sleep
(
100
);
IOManager
.
IOMove
(
IO_Type
.
Run_Signal
,
IO_VALUE
.
LOW
);
IOManager
.
IOMove
(
IO_Type
.
Run_Signal
,
IO_VALUE
.
LOW
);
...
@@ -1480,7 +1479,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1480,7 +1479,7 @@ namespace OnlineStore.DeviceLibrary
}
}
// HumitureController.QueryData(Config.GetHumpPortList().ToArray());
// HumitureController.QueryData(Config.GetHumpPortList().ToArray());
//
HumidityProcess();
HumidityProcess
();
LedProcess
();
LedProcess
();
}
catch
(
Exception
ex
)
}
catch
(
Exception
ex
)
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论