Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 63afe22b
由
几米阳光
编写于
2018-06-22 11:25:15 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
报警修改
1 个父辈
59605f9f
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
8 行删除
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
63afe22
...
@@ -417,6 +417,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -417,6 +417,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
LOGGER
,
StoreName
+
"复位:进出轴回原点"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"复位:进出轴回原点"
);
//复位和回原点要等轴3进出轴ORG亮了以后才能返回其他轴
//复位和回原点要等轴3进出轴ORG亮了以后才能返回其他轴
ACAxisHomeMove
(
Config
.
InOut_Axis
);
ACAxisHomeMove
(
Config
.
InOut_Axis
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
break
;
break
;
case
StoreMoveStep
.
BOX_H_InOutBack
:
case
StoreMoveStep
.
BOX_H_InOutBack
:
...
@@ -734,12 +735,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -734,12 +735,14 @@ namespace OnlineStore.DeviceLibrary
if
(
alarmType
==
StoreAlarmType
.
AxisAlarm
)
if
(
alarmType
==
StoreAlarmType
.
AxisAlarm
)
{
{
LogUtil
.
error
(
LOGGER
,
StoreName
+
"轴报警,关闭轴,打开报警灯"
);
LogUtil
.
error
(
LOGGER
,
StoreName
+
"轴报警,关闭轴,打开报警灯"
);
StopMove
();
CloseAllAxis
();
CloseAllAxis
();
}
}
else
if
(
alarmType
==
StoreAlarmType
.
SuddenStop
)
else
if
(
alarmType
==
StoreAlarmType
.
SuddenStop
)
{
{
isInSuddenDown
=
true
;
isInSuddenDown
=
true
;
LogUtil
.
error
(
LOGGER
,
StoreName
+
"收到急停信号,关闭所有轴卡,关闭所有IO,停止所有运动"
);
LogUtil
.
error
(
LOGGER
,
StoreName
+
"收到急停信号,关闭所有轴卡,关闭所有IO,停止所有运动"
);
StopMove
();
CloseAllAxis
();
CloseAllAxis
();
StoreMove
.
EndMove
();
StoreMove
.
EndMove
();
storeStatus
=
StoreStatus
.
SuddenStop
;
storeStatus
=
StoreStatus
.
SuddenStop
;
...
@@ -748,15 +751,15 @@ namespace OnlineStore.DeviceLibrary
...
@@ -748,15 +751,15 @@ namespace OnlineStore.DeviceLibrary
{
{
isNoAirCheck
=
true
;
isNoAirCheck
=
true
;
LogUtil
.
error
(
LOGGER
,
StoreName
+
" 未检测到气压信号 ,关闭所有轴卡,关闭所有IO,停止所有运动"
);
LogUtil
.
error
(
LOGGER
,
StoreName
+
" 未检测到气压信号 ,关闭所有轴卡,关闭所有IO,停止所有运动"
);
CloseAllAxis
();
StopMove
();
CloseAllAxis
();
StoreMove
.
EndMove
();
StoreMove
.
EndMove
();
storeStatus
=
StoreStatus
.
SuddenStop
;
storeStatus
=
StoreStatus
.
SuddenStop
;
}
}
if
(
alarmType
!=
StoreAlarmType
.
IoSingleTimeOut
)
//
if (alarmType != StoreAlarmType.IoSingleTimeOut)
{
//
{
StopMove
();
//
StopMove();
}
//
}
}
}
private
bool
InProcess
=
false
;
private
bool
InProcess
=
false
;
private
DateTime
preProcessTime
=
DateTime
.
Now
;
private
DateTime
preProcessTime
=
DateTime
.
Now
;
...
@@ -1137,7 +1140,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1137,7 +1140,7 @@ namespace OnlineStore.DeviceLibrary
if
(
alarmIo
==
1
)
if
(
alarmIo
==
1
)
{
{
WarnMsg
=
StoreName
+
" 运动轴"
+
axisInfo
.
Explain
+
"报警"
;
WarnMsg
=
StoreName
+
" 运动轴"
+
axisInfo
.
Explain
+
"报警"
;
if
(
info
.
AlarmIoValue
!=
alarmIo
)
if
(
!
info
.
AlarmIoValue
.
Equals
(
alarmIo
)
)
{
{
LogUtil
.
error
(
LOGGER
,
WarnMsg
);
LogUtil
.
error
(
LOGGER
,
WarnMsg
);
int
alarmCode
=
GetAlarmCodeByAxis
(
axisInfo
);
int
alarmCode
=
GetAlarmCodeByAxis
(
axisInfo
);
...
@@ -1149,7 +1152,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1149,7 +1152,7 @@ namespace OnlineStore.DeviceLibrary
}
}
else
else
{
{
if
(
info
.
AlarmIoValue
!=
alarmIo
)
if
(
!
info
.
AlarmIoValue
.
Equals
(
alarmIo
)
)
{
{
LogUtil
.
error
(
LOGGER
,
StoreName
+
" 运动轴 "
+
axisInfo
.
Explain
+
",报警已解除!"
);
LogUtil
.
error
(
LOGGER
,
StoreName
+
" 运动轴 "
+
axisInfo
.
Explain
+
",报警已解除!"
);
info
.
AlarmIoValue
=
alarmIo
;
info
.
AlarmIoValue
=
alarmIo
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论