Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 066a96c2
由
LN
编写于
2019-12-09 16:14:48 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
报警验证修改
1 个父辈
547fd939
显示空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
117 行增加
和
118 行删除
source/AssemblyLineClient/FrmLineStore.cs
source/DeviceLibrary/assemblyLine/DischargeLine.cs
source/DeviceLibrary/assemblyLine/DischargeLine_Partial.cs
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblyLine/LineBean.cs
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
source/DeviceLibrary/assemblymanager/TrayManager.cs
source/DeviceLibrary/model/KTK_Store.cs
source/DeviceLibrary/model/StoreStep.cs
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
066a96c
...
...
@@ -260,7 +260,7 @@ namespace OnlineStore.AssemblyLine
//AIManager.CloseConnect();
ACServerManager
.
CloseAllPort
();
// CodeManager.CloseAllCamera();
//
TrayManager.RfidReader.Close();
TrayManager
.
RfidReader
.
Close
();
//this.Close();
System
.
Environment
.
Exit
(
System
.
Environment
.
ExitCode
);
}
...
...
@@ -492,7 +492,8 @@ namespace OnlineStore.AssemblyLine
if
((
lineBean
.
runStatus
.
Equals
(
LineRunStatus
.
HomeMoving
)
||
lineBean
.
runStatus
.
Equals
(
LineRunStatus
.
Reset
))
&&
lineBean
.
alarmType
.
Equals
(
LineAlarmType
.
None
))
{
SetMenuS
(
复位
RToolStripMenuItem
,
false
);
SetMenuS
(
启动
AToolStripMenuItem
,
false
);
SetMenuS
(
复位
RToolStripMenuItem
,
false
);
SetMenuS
(
启动
AToolStripMenuItem
,
false
);
}
else
{
...
...
source/DeviceLibrary/assemblyLine/DischargeLine.cs
查看文件 @
066a96c
...
...
@@ -166,7 +166,7 @@ namespace OnlineStore.DeviceLibrary
if
(
IOValue
(
IO_Type
.
DLine_Reset
).
Equals
(
IO_VALUE
.
HIGH
))
{
if
(
alarmType
.
Equals
(
LineAlarmType
.
None
))
if
(
NoAlarm
(
))
{
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
{
...
...
@@ -188,7 +188,7 @@ namespace OnlineStore.DeviceLibrary
BusyMoveProcess
();
//判断流水线打开了才可以运行
if
(
runStatus
.
Equals
(
LineRunStatus
.
Runing
)
&&
alarmType
.
Equals
(
LineAlarm
.
None
))
if
(
runStatus
.
Equals
(
LineRunStatus
.
Runing
)
&&
NoAlarm
(
))
{
//判断是否需要入库
if
(
IOValue
(
IO_Type
.
DLine_Exit_Check3
).
Equals
(
IO_VALUE
.
LOW
)
&&
LineRuning
.
Equals
(
false
))
...
...
@@ -218,7 +218,7 @@ namespace OnlineStore.DeviceLibrary
IOTimeOutProcess
();
//判断红灯状态
if
(
alarmType
.
Equals
(
LineAlarmType
.
None
))
if
(
NoAlarm
(
))
{
IOMove
(
IO_Type
.
DLine_RunAlarm
,
IO_VALUE
.
LOW
);
}
...
...
source/DeviceLibrary/assemblyLine/DischargeLine_Partial.cs
查看文件 @
066a96c
...
...
@@ -16,7 +16,7 @@ namespace OnlineStore.DeviceLibrary
internal
bool
CanStartOut
(
int
lineNum
)
{
if
(
alarmType
.
Equals
(
LineAlarm
.
None
).
Equals
(
false
)
||
runStatus
.
Equals
(
LineRunStatus
.
Runing
).
Equals
(
false
))
if
(
NoAlarm
(
)
||
runStatus
.
Equals
(
LineRunStatus
.
Runing
).
Equals
(
false
))
{
return
false
;
}
...
...
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
066a96c
...
...
@@ -392,7 +392,7 @@ namespace OnlineStore.DeviceLibrary
{
TimeSpan
rwSpan
=
DateTime
.
Now
-
preRWTime
;
//一分钟还未检测到
if
(
span
.
TotalMilliseconds
>
LineManager
.
Config
.
IOSingle_TimerOut
)
if
(
span
.
TotalMilliseconds
>
LineManager
.
Config
.
IOSingle_TimerOut
&&
NoAlarm
()
)
{
ConfigIO
io
=
baseConfig
.
getWaitIO
(
wait
.
IoType
);
WarnMsg
=
Name
+
"等待"
+
NotOkMsg
+
" 超时"
;
...
...
@@ -461,7 +461,7 @@ namespace OnlineStore.DeviceLibrary
{
moveInfo
.
EndStepWait
();
}
else
if
(
span
.
TotalSeconds
>
moveInfo
.
TimeOutSeconds
)
else
if
(
span
.
TotalSeconds
>
moveInfo
.
TimeOutSeconds
)
{
WarnMsg
=
moveInfo
.
Name
+
"["
+
moveInfo
.
MoveType
+
"]["
+
moveInfo
.
MoveStep
+
"]等待["
+
NotOkMsg
+
"]超时["
+
Math
.
Round
(
span
.
TotalSeconds
,
1
)
+
"]秒"
;
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
查看文件 @
066a96c
...
...
@@ -323,7 +323,7 @@ namespace OnlineStore.DeviceLibrary
}
if
(
IOValue
(
IO_Type
.
SL_Reset_BTN
).
Equals
(
IO_VALUE
.
HIGH
))
{
if
(
alarmType
.
Equals
(
LineAlarmType
.
None
))
if
(
NoAlarm
(
))
{
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
{
...
...
@@ -343,7 +343,7 @@ namespace OnlineStore.DeviceLibrary
}
BusyMoveProcess
();
//判断流水线打开了才可以运行
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
)&&
alarmType
.
Equals
(
LineAlarmType
.
None
))
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
)&&
NoErrorAlarm
(
))
{
if
(
Config
.
IsCanOut
.
Equals
(
0
))
{
...
...
@@ -354,7 +354,7 @@ namespace OnlineStore.DeviceLibrary
StartOutStoreP
();
}
}
if
(
SecondMoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
)
&&
(
isInSuddenDown
.
Equals
(
false
)&&
isNoAirCheck
.
Equals
(
false
)
))
if
(
SecondMoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
)
&&
NoErrorAlarm
(
))
{
StartCheckFixture
();
}
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
066a96c
...
...
@@ -85,7 +85,7 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_01_StopCylinder1Down
);
CheckLog
(
"检测到SW_StopCheck:"
+
SecondMoveInfo
.
SLog
+
"阻挡气缸下降 ,最多等待1秒"
);
IOMove
(
IO_Type
.
SW_StopDown
,
IO_VALUE
.
HIGH
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW_StopDown
,
IO_VALUE
.
LOW
));
//
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_StopDown, IO_VALUE.LOW));
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
500
));
//}
//else
...
...
@@ -103,7 +103,7 @@ namespace OnlineStore.DeviceLibrary
{
// int num = TrayManager.GetTrayNum(DeviceID);
//托盘在两个阻挡内
if
(
IOValue
(
IO_Type
.
FL_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
))
if
(
IOValue
(
IO_Type
.
FL_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
))
{
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
CheckLog
(
"检测到FL_TrayCheck:"
+
SecondMoveInfo
.
SLog
+
" FL阻挡1上升)"
);
...
...
@@ -155,7 +155,7 @@ namespace OnlineStore.DeviceLibrary
{
CheckLog
(
"托盘检测:"
+
SecondMoveInfo
.
SLog
+
"阻挡气缸上升,等待SW_TrayCheck=1)"
);
IOMove
(
IO_Type
.
SW_StopDown
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW_StopDown
,
IO_VALUE
.
LOW
));
//
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_StopDown, IO_VALUE.LOW));
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW_TrayCheck
,
IO_VALUE
.
HIGH
));
}
}
...
...
@@ -710,23 +710,6 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_25_MoveCylinder_Up
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料横移机构上升, 托盘开始放行"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Down
,
IO_Type
.
SL_MoveCylinder_Up
);
//Task.Factory.StartNew(delegate
//{
// //更新托盘条码信息
// string code = CodeManager.ProcessCode(LastCodeList);
// TrayManager.UpdateTrayInfo(currTrayNum, true, 1, code, "", LastHeight, LastWidth);
// if (code.Equals(""))
// {
// TrayManager.UpdateInStoreNG(currTrayNum, true, "扫码失败");
// }
// //从服务器获取库位号
// string result = StoreServerManager.CodeReceived(Name, currTrayNum, LastCodeList, LastHeight, LastWidth);
// if (!result.Equals(""))
// {
// TrayManager.UpdateInStoreNG(currTrayNum, true, result);
// LogUtil.error(Name + "托盘【" + currTrayNum + "】" + result);
// }
//});
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_12_MoveOk
);
}
...
...
@@ -876,8 +859,9 @@ namespace OnlineStore.DeviceLibrary
if
(
LastHeight
<=
8
)
{
LastHeight
=
8
;
}
else
{
LastHeight
=
(
int
)
Math
.
Ceiling
(
1F
*
(
LastHeight
-
2
)
/
4
)
*
4
;
LastHeight
=
(
int
)
Math
.
Ceiling
(
1F
*
(
LastHeight
-
2
-
4
)
/
4
)
*
4
;
}
if
(
LastHeight
<=
8
)
{
LastHeight
=
8
;
}
LogUtil
.
info
(
msg
+
",归类为"
+
LastHeight
);
return
LastHeight
;
}
...
...
source/DeviceLibrary/assemblyLine/LineBean.cs
查看文件 @
066a96c
...
...
@@ -125,9 +125,9 @@ namespace OnlineStore.DeviceLibrary
if
(
IsDebug
)
{
rfidList
=
new
List
<
string
>()
{
"192.168.210.116"
,
"192.168.210.120"
,
"192.168.210.121"
};
//
rfidList = new List<string>() {
//
"192.168.210.116","192.168.210.120","192.168.210.121"
//
};
try
{
cioList
=
new
List
<
string
>();
...
...
@@ -183,15 +183,15 @@ namespace OnlineStore.DeviceLibrary
{
IOManager
.
instance
.
ConnectionIOList
(
cioList
);
Thread
.
Sleep
(
5
);
if
(!
IsDebug
)
{
//Task.Factory.StartNew(delegate
// if (!IsDebug)
//{
// Task.Factory.StartNew(delegate
// {
// string[] rfidArray = rfidList.ToArray();
// //连接rfip
// TrayManager.RfidReader.Open(rfidArray);
//
});
}
//
});
//
}
addLastDI
(
IO_Type
.
Airpressure_Check
,
IOValue
(
IO_Type
.
Airpressure_Check
));
addLastDI
(
IO_Type
.
SuddenStop_BTN
,
IOValue
(
IO_Type
.
SuddenStop_BTN
));
addLastDI
(
IO_Type
.
Reset_BTN
,
IOValue
(
IO_Type
.
Reset_BTN
));
...
...
@@ -323,7 +323,6 @@ namespace OnlineStore.DeviceLibrary
isInprocess
=
false
;
isInSuddenDown
=
false
;
isNoAirCheck
=
false
;
alarmType
=
LineAlarmType
.
None
;
TrayManager
.
TrayErrorMsg
=
""
;
SetWarnMsg
(
""
);
PreIsHasProcess
=
true
;
...
...
@@ -376,7 +375,7 @@ namespace OnlineStore.DeviceLibrary
isNeedAllReset
=
true
;
LogUtil
.
error
(
Name
+
"收到复位信号,在急停中或没有气压中,强制所有设备复位,清理出库需要的托盘数量~"
);
}
else
if
((
runStatus
==
LineRunStatus
.
HomeMoving
||
runStatus
==
LineRunStatus
.
Reset
)
&&
alarmType
.
Equals
(
LineAlarmType
.
None
))
else
if
((
runStatus
==
LineRunStatus
.
HomeMoving
||
runStatus
==
LineRunStatus
.
Reset
)
&&
NoAlarm
(
))
{
LogUtil
.
error
(
Name
+
"收到复位信号,已经在复位或原点返回中,且当前无报警,不处理复位"
);
return
false
;
...
...
@@ -405,7 +404,7 @@ namespace OnlineStore.DeviceLibrary
//调试状态不再重置
if
(!
equip
.
IsDebug
)
{
if
(
isNeedAllReset
||
TrayManager
.
ErrorDeviceId
.
Equals
(
equip
.
DeviceID
)
||
(!
equip
.
alarmType
.
Equals
(
LineAlarmType
.
None
)))
if
(
isNeedAllReset
||
TrayManager
.
ErrorDeviceId
.
Equals
(
equip
.
DeviceID
)
||
(!
NoAlarm
(
)))
{
LogUtil
.
info
(
Name
+
"收到复位信号,"
+
equip
.
Name
+
" 需要复位"
);
equip
.
Reset
();
...
...
@@ -608,14 +607,14 @@ namespace OnlineStore.DeviceLibrary
bool
isNeedAlarmLed
=
false
;
bool
isInOut
=
false
;
if
(
alarmType
.
Equals
(
LineAlarmType
.
None
).
Equals
(
false
)
||
isNoAirCheck
||
isInSuddenDown
||
TrayManager
.
TrayErrorMsg
!=
""
)
if
(
NoAlarm
().
Equals
(
false
)
||
TrayManager
.
TrayErrorMsg
!=
""
)
{
isNeedAlarmLed
=
true
;
}
foreach
(
MoveEquip
moveEquip
in
MoveEquipMap
.
Values
)
{
if
(!
moveEquip
.
alarmType
.
Equals
(
LineAlarmType
.
None
))
if
(!
moveEquip
.
NoAlarm
(
))
{
isNeedAlarmLed
=
true
;
}
...
...
@@ -908,7 +907,7 @@ namespace OnlineStore.DeviceLibrary
{
if
((
moveEquip
.
runStatus
.
Equals
(
LineRunStatus
.
HomeMoving
)
||
moveEquip
.
runStatus
.
Equals
(
LineRunStatus
.
Reset
))
&&
moveEquip
.
IsDebug
.
Equals
(
false
))
{
if
(
moveEquip
.
alarmType
.
Equals
(
LineAlarmType
.
None
))
if
(
moveEquip
.
NoAlarm
(
))
{
isOk
=
false
;
break
;
...
...
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
查看文件 @
066a96c
...
...
@@ -200,7 +200,7 @@ namespace OnlineStore.DeviceLibrary
if
(
span
.
TotalMilliseconds
>
LineManager
.
Config
.
IOSingle_TimerOut
)
{
ConfigIO
io
=
Config
.
getWaitIO
(
wait
.
IoType
);
if
(
alarmType
.
Equals
(
LineAlarmType
.
None
))
if
(
NoAlarm
(
))
{
WarnMsg
=
Name
+
" 等待"
+
NotOkMsg
+
"超时"
;
Alarm
(
LineAlarmType
.
IoSingleTimeOut
);
...
...
@@ -252,7 +252,7 @@ namespace OnlineStore.DeviceLibrary
{
checkWaitInfo
.
EndStepWait
();
}
else
if
(
span
.
TotalSeconds
>
checkWaitInfo
.
TimeOutSeconds
&&
alarmType
.
Equals
(
LineAlarmType
.
None
)
)
else
if
(
span
.
TotalSeconds
>
checkWaitInfo
.
TimeOutSeconds
)
{
WarnMsg
=
checkWaitInfo
.
Name
+
"["
+
checkWaitInfo
.
MoveStep
+
"]["
+
NotOkMsg
+
"]已等待["
+
Math
.
Round
(
span
.
TotalSeconds
,
1
)
+
"]秒"
;
LogUtil
.
error
(
WarnMsg
,
100
);
...
...
@@ -852,7 +852,7 @@ namespace OnlineStore.DeviceLibrary
/// <returns></returns>
public
bool
CanOutStore
(
int
id
)
{
if
(!
alarmType
.
Equals
(
LineAlarmType
.
None
)
||
isInSuddenDown
||
isNoAirCheck
)
if
(!
NoErrorAlarm
()
)
{
return
false
;
}
...
...
@@ -861,7 +861,7 @@ namespace OnlineStore.DeviceLibrary
return
false
;
}
MoveEquip
move
=
MoveEquipMap
[
id
];
if
(!
move
.
alarmType
.
Equals
(
LineAlarmType
.
None
)
||
move
.
waitInStoreList
.
Count
>
0
||
move
.
IsDebug
||
move
.
waitOutStoreList
.
Count
>
0
)
if
(!
move
.
NoAlarm
(
)
||
move
.
waitInStoreList
.
Count
>
0
||
move
.
IsDebug
||
move
.
waitOutStoreList
.
Count
>
0
)
{
return
false
;
}
...
...
@@ -882,7 +882,7 @@ namespace OnlineStore.DeviceLibrary
public
bool
CanIntore
(
int
id
)
{
if
(
isInSuddenDown
||
isNoAirCheck
)
if
(
!
NoErrorAlarm
()
)
{
return
false
;
}
...
...
@@ -891,7 +891,7 @@ namespace OnlineStore.DeviceLibrary
return
false
;
}
MoveEquip
move
=
MoveEquipMap
[
id
];
if
(!
move
.
alarmType
.
Equals
(
LineAlarmType
.
None
)
||
move
.
IsDebug
||
move
.
waitOutStoreList
.
Count
>
0
)
if
(!
move
.
NoAlarm
(
)
||
move
.
IsDebug
||
move
.
waitOutStoreList
.
Count
>
0
)
{
return
false
;
}
...
...
source/DeviceLibrary/assemblymanager/TrayManager.cs
查看文件 @
066a96c
...
...
@@ -13,7 +13,7 @@ namespace OnlineStore.DeviceLibrary
public
class
TrayManager
{
public
static
int
StopDownWaitTime
=
1000
;
//
public static RFID RfidReader = new RFID();
public
static
RFID
RfidReader
=
new
RFID
();
///// <summary>
///// 出库时,可以不下降直接放料盘的宽度
///// </summary>
...
...
@@ -185,34 +185,27 @@ namespace OnlineStore.DeviceLibrary
public
static
int
GetTrayNum
(
int
subType
,
bool
isClear
=
false
)
{
return
9
;
//if (subType.Equals(104))
//{
// return LineManager.Line.Sw23TrayNum;
//}
//else if (subType.Equals(101))
//{
// return LineManager.Line.Sw41TrayNum;
//}
//string ip = GetRFIP(subType);
////获取盘号
//RFIDData data = ReadRFID(ip);
//if (data != null)
//{
// if (data.RFType.Equals((byte)'E'))
// {
// return data.Num;
// }
// return 0;
// //else
// //{
// // LogUtil.error("读取托盘RFID[" + subType + "][" + ip + "]的数据出错:" + data.ToStr());
// //}
//}
//if (isClear)
//{
// RfidReader.Clear(ip);
//}
if
(
subType
.
Equals
(
104
))
{
return
LineManager
.
Line
.
Sw23TrayNum
;
}
else
if
(
subType
.
Equals
(
101
))
{
return
LineManager
.
Line
.
Sw41TrayNum
;
}
string
ip
=
GetRFIP
(
subType
);
//获取盘号
RFIDData
data
=
ReadRFID
(
ip
,
isClear
);
if
(
data
!=
null
)
{
if
(
data
.
RFType
.
Equals
((
byte
)
'E'
))
{
return
data
.
Num
;
}
return
0
;
}
return
0
;
}
public
static
RFIDData
GetShelfData
(
int
subType
)
...
...
@@ -222,25 +215,24 @@ namespace OnlineStore.DeviceLibrary
}
public
static
RFIDData
ReadRFID
(
string
ip
)
{
//try
//{
// if (String.IsNullOrEmpty(ip).Equals(false) && LineManager.Line.rfidList.Contains(ip))
// {
// //获取盘号
// byte[] data = RfidReader.Read(ip);
// if (data != null && data.Length >= 2)
// {
// RFIDData d = new RFIDData(data);
// return d;
// }
// }
//}
//catch (Exception ex)
//{
// //LogUtil.error("ReadRFID["+ip+"]出错:" + ex.ToString());
//}
public
static
RFIDData
ReadRFID
(
string
ip
,
bool
isClear
=
false
)
{
try
{
if
(
String
.
IsNullOrEmpty
(
ip
).
Equals
(
false
)
&&
LineManager
.
Line
.
rfidList
.
Contains
(
ip
))
{
RFIDData
data
=
new
RFIDData
(
RfidReader
.
Read
(
ip
));
if
(
isClear
)
{
RfidReader
.
Clear
(
ip
);
}
return
data
;
}
}
catch
(
Exception
ex
)
{
//LogUtil.error("ReadRFID["+ip+"]出错:" + ex.ToString());
}
return
new
RFIDData
(-
1
,
-
1
);
}
...
...
@@ -363,9 +355,12 @@ namespace OnlineStore.DeviceLibrary
{
try
{
if
(
data
!=
null
&&
data
.
Length
>
2
)
{
RFType
=
data
[
1
];
Num
=
Convert
.
ToInt32
(
data
[
2
]);
}
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"RFIP 数据【"
+
data
+
"】 获取编码失败"
);
...
...
source/DeviceLibrary/model/KTK_Store.cs
查看文件 @
066a96c
...
...
@@ -167,15 +167,37 @@ namespace OnlineStore.DeviceLibrary
case
LineAlarmType
.
IoSingleTimeOut
:
aType
=
3
;
break
;
case
LineAlarmType
.
StellAlarm
:
aType
=
2
;
alarmDetial
=
"5"
;
break
;
default
:
break
;
}
alarmInfo
=
new
AlarmInfo
(
DeviceID
,
aType
,
alarmDetial
,
alarmMsg
,
inoutStatus
);
}
protected
bool
NoErrorAlarm
()
{
if
(
isInSuddenDown
||
isNoAirCheck
)
{
return
false
;
}
if
(
alarmType
>
LineAlarmType
.
IoSingleTimeOut
)
{
return
false
;
}
return
true
;
}
internal
bool
NoAlarm
()
{
if
(
isInSuddenDown
||
isNoAirCheck
)
{
return
false
;
}
if
(
alarmType
.
Equals
(
LineAlarmType
.
None
))
{
return
true
;
}
return
false
;
}
/// <summary>
/// 开始运行
/// </summary>
...
...
source/DeviceLibrary/model/StoreStep.cs
查看文件 @
066a96c
...
...
@@ -928,32 +928,30 @@ namespace OnlineStore.DeviceLibrary
public
enum
LineAlarmType
{
/// <summary>
/// 没有报警
/// 没有报警
,数字越大报警级别越大
/// </summary>
None
=
0
,
/// <summary>
/// 轴报警
/// </summary>
AxisAlarm
=
1
,
/// <summary>
/// 收到急停
/// io信号超时未收到
/// </summary>
SuddenStop
=
10
,
IoSingleTimeOut
=
10
,
/// <summary>
///
没有气压信号
///
轴报警
/// </summary>
NoAirCheck
=
11
,
AxisAlarm
=
1000
,
/// <summary>
/// 轴运动错误,没有达到指定脉冲,但是io判断已停止运动
/// </summary>
AxisMoveError
=
20
,
AxisMoveError
=
1001
,
/// <summary>
///
io信号超时未收到
///
没有气压信号
/// </summary>
IoSingleTimeOut
=
30
,
NoAirCheck
=
9999
,
/// <summary>
///
电钢报警
///
收到急停
/// </summary>
StellAlarm
=
50
,
SuddenStop
=
10000
,
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论