Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO815-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ca04aead
由
几米阳光
编写于
2018-12-10 21:13:12 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
321f205e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
38 行增加
和
44 行删除
source/ACSingleStore/FrmStoreBox.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
ca04aea
...
...
@@ -308,20 +308,7 @@ namespace OnlineStore.AutoInOutStore
if
(
AutomaticBaiting
.
DoorStatus
.
Equals
(
2
))
{
lblDoorStatus
.
Text
=
"仓门状态:关闭"
;
UpdateFormDoorStats
(
false
);
//if (store.StoreMove.MoveType.Equals(StoreMoveType.None) && AutomaticBaiting.StoreMove.MoveType.Equals(StoreMoveType.None))
//{
// if (AutomaticBaiting.BatchOutStoreCount > 0)
// {
// btnGetOutTray.Enabled = true;
// btnBatchInStore.Enabled = false;
// }
// else
// {
// btnGetOutTray.Enabled = false;
// btnBatchInStore.Enabled = true;
// }
//}
UpdateFormDoorStats
(
false
);
}
else
{
...
...
@@ -1577,37 +1564,36 @@ namespace OnlineStore.AutoInOutStore
}
private
void
btnBatchInStore_Click
(
object
sender
,
EventArgs
e
)
{
if
(
!
AutomaticBaiting
.
DoorStatus
.
Equals
(
1
))
if
(
AutomaticBaiting
.
DoorStatus
.
Equals
(
1
))
{
MessageBox
.
Show
(
"请先关闭批量上下料门"
);
return
;
}
if
(
AutomaticBaiting
.
DoorIsClose
())
{
AutomaticBaiting
.
IsNeedStartInout
=
true
;
AutomaticBaiting
.
BatchDoorClose
(
false
);
AutomaticBaiting
.
Reset
();
}
else
if
(!
AutomaticBaiting
.
DoorIsClose
())
{
MessageBox
.
Show
(
"请先关闭批量上下料门"
);
}
return
;
}
AutomaticBaiting
.
IsNeedStartInout
=
true
;
AutomaticBaiting
.
BatchDoorClose
(
false
);
AutomaticBaiting
.
Reset
();
}
private
void
btnStartBatchInStore_Click
(
object
sender
,
EventArgs
e
)
{
if
(
!
AutomaticBaiting
.
DoorStatus
.
Equals
(
1
))
if
(
AutomaticBaiting
.
DoorStatus
.
Equals
(
1
))
{
MessageBox
.
Show
(
"请先关闭批量上下料门"
);
return
;
}
if
(
AutomaticBaiting
.
DoorIsClose
())
{
AutomaticBaiting
.
BatchDoorClose
(
false
);
AutomaticBaiting
.
Reset
();
}
else
if
(!
AutomaticBaiting
.
DoorIsClose
())
{
MessageBox
.
Show
(
"请先关闭批量上下料门"
);
return
;
}
AutomaticBaiting
.
BatchDoorClose
(
false
);
AutomaticBaiting
.
Reset
();
}
private
void
btnGetOutTray_Click
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -1630,20 +1616,19 @@ namespace OnlineStore.AutoInOutStore
private
void
btnBatchOutEnd_Click
(
object
sender
,
EventArgs
e
)
{
if
(
!
AutomaticBaiting
.
DoorStatus
.
Equals
(
1
))
if
(
AutomaticBaiting
.
DoorStatus
.
Equals
(
1
))
{
MessageBox
.
Show
(
"请先关闭批量上下料门"
);
return
;
}
if
(
AutomaticBaiting
.
DoorIsClose
())
{
AutomaticBaiting
.
BatchDoorClose
(
false
);
bool
result
=
AutomaticBaiting
.
Reset
();
}
else
{
if
(!
AutomaticBaiting
.
DoorIsClose
())
{
MessageBox
.
Show
(
"请先关闭批量上下料门"
);
return
;
}
AutomaticBaiting
.
BatchDoorClose
(
false
);
bool
result
=
AutomaticBaiting
.
Reset
();
}
private
void
btnTempInit_Click
(
object
sender
,
EventArgs
e
)
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
ca04aea
...
...
@@ -97,12 +97,17 @@ namespace OnlineStore.DeviceLibrary
{
if
(
isInSuddenDown
.
Equals
(
false
))
{
isInSuddenDown
=
true
;
LogUtil
.
error
(
LOGGER
,
StoreName
+
"收到急停信号,报警急停"
);
WarnMsg
=
StoreName
+
"收到急停信号,报警急停"
;
LogUtil
.
error
(
LOGGER
,
StoreName
+
"收到急停信号,等待200后再次判断"
);
Thread
.
Sleep
(
200
);
if
(
KND
.
IOValue
(
IO_Type
.
SuddenStop_BTN
).
Equals
(
IO_VALUE
.
LOW
))
{
isInSuddenDown
=
true
;
LogUtil
.
error
(
LOGGER
,
StoreName
+
"收到急停信号,报警急停"
);
WarnMsg
=
StoreName
+
"收到急停信号,报警急停"
;
//报警时会关闭所有轴
Alarm
(
StoreAlarmType
.
SuddenStop
,
"1"
,
WarnMsg
,
StoreMoveType
.
None
);
//报警时会关闭所有轴
Alarm
(
StoreAlarmType
.
SuddenStop
,
"1"
,
WarnMsg
,
StoreMoveType
.
None
);
}
}
}
else
...
...
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
查看文件 @
ca04aea
...
...
@@ -108,6 +108,10 @@ namespace OnlineStore.DeviceLibrary
}
public
static
bool
Reset
()
{
if
(!
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
None
))
{
StopMove
();
}
string
msg
=
CanStart
();
if
(!
String
.
IsNullOrEmpty
(
msg
))
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论