Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-HCSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 60a0a316
由
LN
编写于
2020-10-20 13:03:54 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
bug修改
1 个父辈
d0b3f6b5
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
56 行增加
和
47 行删除
source/DeviceLibrary/acSingleStore/BoxBean.cs
source/DeviceLibrary/acSingleStore/StoreBean.cs
source/DeviceLibrary/bean/KTK_Store.cs
source/HCSingleStore/FrmBox.Designer.cs
source/HCSingleStore/FrmStore.cs
source/HuichuanLibrary/FrmHuiChuanTest.cs
source/DeviceLibrary/acSingleStore/BoxBean.cs
查看文件 @
60a0a31
...
...
@@ -112,6 +112,7 @@ namespace OnlineStore.DeviceLibrary
//急停按钮和气压检测需要一起判断
IO_VALUE
suddenBtn
=
IOValue
(
IO_Type
.
SuddenStop_BTN
);
IO_VALUE
airCheck
=
IOValue
(
IO_Type
.
Airpressure_Check
);
airCheck
=
IO_VALUE
.
HIGH
;
if
(
suddenBtn
.
Equals
(
IO_VALUE
.
HIGH
)
&&
(
airCheck
.
Equals
(
IO_VALUE
.
HIGH
)))
{
...
...
@@ -142,10 +143,12 @@ namespace OnlineStore.DeviceLibrary
{
if
(
suddenBtn
.
Equals
(
IO_VALUE
.
LOW
))
{
SetWarnMsg
(
"启动失败:急停未开"
);
LogUtil
.
error
(
" ("
+
Name
+
")启动出现错误:急停没开 !启动失败!"
);
}
else
{
SetWarnMsg
(
"启动失败:没有气压信号"
);
LogUtil
.
error
(
" ("
+
Name
+
")启动出现错误:没有气压信号 !启动失败!"
);
}
return
false
;
...
...
@@ -511,6 +514,7 @@ namespace OnlineStore.DeviceLibrary
private
void
IoCheckTimer_Elapsed
(
object
sender
,
System
.
Timers
.
ElapsedEventArgs
e
)
{
//return;
//判断急停
if
(
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
{
...
...
@@ -524,9 +528,9 @@ namespace OnlineStore.DeviceLibrary
if
(
IOValue
(
IO_Type
.
SuddenStop_BTN
).
Equals
(
IO_VALUE
.
LOW
))
{
isInSuddenDown
=
true
;
LogUtil
.
error
(
Name
+
"收到急停信号
,
报警急停"
);
WarnMsg
=
Name
+
"收到急停信号,报警急停"
;
LogUtil
.
error
(
Name
+
"收到急停信号
,
报警急停"
);
//
WarnMsg = Name + "收到急停信号,报警急停";
SetWarnMsg
(
"收到急停信号,报警急停"
);
//报警时会关闭所有轴
Alarm
(
StoreAlarmType
.
SuddenStop
,
"1"
,
WarnMsg
,
StoreMoveType
.
None
);
}
...
...
@@ -583,7 +587,7 @@ namespace OnlineStore.DeviceLibrary
TimeSpan
span
=
DateTime
.
Now
-
lastAirCloseTime
;
if
(
span
.
TotalSeconds
>
StoreManager
.
Config
.
AirCheckSeconds
)
{
WarnMsg
=
"未检测到气压信号"
;
SetWarnMsg
(
"未检测到气压信号"
)
;
preAirValue
=
IO_VALUE
.
LOW
;
LogUtil
.
info
(
"已持续【"
+
FormUtil
.
GetSpanStr
(
span
)
+
"】未检测到气压信号,报警"
);
Alarm
(
StoreAlarmType
.
NoAirCheck
,
"2"
,
WarnMsg
,
StoreMoveType
.
None
);
...
...
@@ -860,7 +864,7 @@ namespace OnlineStore.DeviceLibrary
AxisManager
.
instance
.
SuddenStop
(
Config
.
UpDown_Axis
.
DeviceName
,
Config
.
UpDown_Axis
.
GetAxisValue
());
AxisManager
.
instance
.
SuddenStop
(
Config
.
InOut_Axis
.
DeviceName
,
Config
.
InOut_Axis
.
GetAxisValue
());
AxisManager
.
instance
.
SuddenStop
(
Config
.
Comp_Axis
.
DeviceName
,
Config
.
Comp_Axis
.
GetAxisValue
());
Thread
.
Sleep
(
300
);
CloseAllAxis
();
LogUtil
.
info
(
Name
+
"StopMove"
);
...
...
source/DeviceLibrary/acSingleStore/StoreBean.cs
查看文件 @
60a0a31
...
...
@@ -384,36 +384,7 @@ namespace OnlineStore.DeviceLibrary
}
}
private
void
SetWarnMsg
(
string
msg
)
{
if
(
String
.
IsNullOrEmpty
(
WarnMsg
).
Equals
(
false
))
{
if
(
WarnMsg
.
Equals
(
msg
))
{
if
(
msg
.
StartsWith
(
Name
))
{
LogUtil
.
error
(
msg
,
105
);
}
else
{
LogUtil
.
error
(
Name
+
msg
,
105
);
}
}
else
{
if
(
msg
.
StartsWith
(
Name
))
{
LogUtil
.
error
(
msg
);
}
else
{
LogUtil
.
error
(
Name
+
msg
);
}
}
}
WarnMsg
=
msg
;
}
public
override
void
Alarm
(
StoreAlarmType
alarmType
,
string
alarmDetial
,
string
alarmMsg
,
StoreMoveType
storeMoveType
)
...
...
source/DeviceLibrary/bean/KTK_Store.cs
查看文件 @
60a0a31
...
...
@@ -428,7 +428,37 @@ namespace OnlineStore.DeviceLibrary
{
return
IOManager
.
IOValue
(
IoType
,
baseConfig
.
DeviceID
);
}
protected
void
SetWarnMsg
(
string
msg
)
{
if
(
String
.
IsNullOrEmpty
(
WarnMsg
).
Equals
(
false
))
{
if
(
WarnMsg
.
Equals
(
msg
))
{
if
(
msg
.
StartsWith
(
Name
))
{
LogUtil
.
error
(
msg
,
105
);
}
else
{
LogUtil
.
error
(
Name
+
msg
,
105
);
}
}
else
{
if
(
msg
.
StartsWith
(
Name
))
{
LogUtil
.
error
(
msg
);
}
else
{
msg
=
Name
+
msg
;
LogUtil
.
error
(
msg
);
}
}
}
WarnMsg
=
msg
;
}
public
bool
IsDoValue
(
string
ioType
,
IO_VALUE
ioValue
)
{
return
IOValue
(
ioType
).
Equals
(
ioValue
);
...
...
source/HCSingleStore/FrmBox.Designer.cs
查看文件 @
60a0a31
...
...
@@ -281,7 +281,7 @@
this
.
groupBox4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
532
,
264
);
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
472
,
12
9
);
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
472
,
12
6
);
this
.
groupBox4
.
TabIndex
=
108
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"DO写入"
;
...
...
@@ -336,7 +336,7 @@
//
this
.
btnOpenDoor
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDoor
.
Location
=
new
System
.
Drawing
.
Point
(
34
8
,
52
);
this
.
btnOpenDoor
.
Location
=
new
System
.
Drawing
.
Point
(
34
6
,
29
);
this
.
btnOpenDoor
.
Name
=
"btnOpenDoor"
;
this
.
btnOpenDoor
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
35
);
this
.
btnOpenDoor
.
TabIndex
=
248
;
...
...
@@ -360,7 +360,7 @@
//
this
.
btnCloseDoor
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseDoor
.
Location
=
new
System
.
Drawing
.
Point
(
34
8
,
92
);
this
.
btnCloseDoor
.
Location
=
new
System
.
Drawing
.
Point
(
34
6
,
69
);
this
.
btnCloseDoor
.
Name
=
"btnCloseDoor"
;
this
.
btnCloseDoor
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
35
);
this
.
btnCloseDoor
.
TabIndex
=
249
;
...
...
@@ -423,7 +423,7 @@
this
.
groupBox5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
775
,
3
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
2
52
);
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
2
49
);
this
.
groupBox5
.
TabIndex
=
107
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
Text
=
"DO列表"
;
...
...
@@ -440,7 +440,7 @@
this
.
tableLayoutPanel2
.
RowCount
=
2
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
2
32
);
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
2
29
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
// lblTemp
...
...
@@ -462,7 +462,7 @@
this
.
groupBox6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
532
,
3
);
this
.
groupBox6
.
Name
=
"groupBox6"
;
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
2
52
);
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
2
49
);
this
.
groupBox6
.
TabIndex
=
106
;
this
.
groupBox6
.
TabStop
=
false
;
this
.
groupBox6
.
Text
=
"DI列表"
;
...
...
@@ -479,7 +479,7 @@
this
.
tableLayoutPanel1
.
RowCount
=
2
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
2
32
);
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
2
29
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// groupInout
...
...
@@ -530,7 +530,7 @@
this
.
groupInout
.
Enabled
=
false
;
this
.
groupInout
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
groupInout
.
Name
=
"groupInout"
;
this
.
groupInout
.
Size
=
new
System
.
Drawing
.
Size
(
514
,
45
6
);
this
.
groupInout
.
Size
=
new
System
.
Drawing
.
Size
(
514
,
45
3
);
this
.
groupInout
.
TabIndex
=
100
;
this
.
groupInout
.
TabStop
=
false
;
this
.
groupInout
.
Text
=
"料仓操作"
;
...
...
@@ -1185,10 +1185,10 @@
this
.
tabPage1
.
Controls
.
Add
(
this
.
btnAxisOn
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
btnAxisOff
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
btnAxisP
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
2
9
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
2
6
);
this
.
tabPage1
.
Name
=
"tabPage1"
;
this
.
tabPage1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
1075
,
48
5
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
1075
,
48
8
);
this
.
tabPage1
.
TabIndex
=
0
;
this
.
tabPage1
.
Text
=
" 伺服调试 "
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
...
...
source/HCSingleStore/FrmStore.cs
查看文件 @
60a0a31
...
...
@@ -369,7 +369,7 @@ namespace OnlineStore.ACSingleStore
var
prevCpuTime
=
TimeSpan
.
Zero
;
foreach
(
Process
process
in
processes
)
{
if
(
process
.
ProcessName
.
EndsWith
(
"
ACPacking
Store"
))
if
(
process
.
ProcessName
.
EndsWith
(
"
HCSingle
Store"
))
{
sbResult
.
AppendFormat
(
DateTime
.
Now
.
ToLongTimeString
()
+
", 名称:{0} 内存大小:{1}M "
,
process
.
ProcessName
,
process
.
PrivateMemorySize64
/
1024
/
1024F
);
totalMemery
+=
process
.
PrivateMemorySize64
/
1024
;
...
...
@@ -398,7 +398,7 @@ namespace OnlineStore.ACSingleStore
string
msg
=
""
;
if
(
store
.
WarnMsg
!=
""
)
{
msg
=
store
.
Name
+
store
.
WarnMsg
;
msg
=
store
.
WarnMsg
;
}
foreach
(
BoxBean
box
in
store
.
BoxMap
.
Values
)
{
...
...
source/HuichuanLibrary/FrmHuiChuanTest.cs
查看文件 @
60a0a31
...
...
@@ -105,6 +105,10 @@ namespace HuichuanLibrary
{
cmbAxisIndex
.
SelectedIndex
=
0
;
}
else
{
tabControl1
.
TabPages
.
RemoveAt
(
0
);
}
}
}
private
short
GetAxisNo
()
...
...
@@ -292,7 +296,7 @@ namespace HuichuanLibrary
}
private
void
axStsMonitor_timer_Tick
(
object
sender
,
EventArgs
e
)
{
if
(
btnStartTimer
.
Visible
&&
HCBoardManager
.
CardInitOk
())
if
(
btnStartTimer
.
Visible
&&
HCBoardManager
.
CardInitOk
()
&&
HCBoardManager
.
AxisList
.
Count
>
0
)
{
btnStartTimer
.
Enabled
=
false
;
ReadAxisStatus
();
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论