Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
RC1271-DUOStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 9af14a7c
由
LN
编写于
2020-07-13 17:12:48 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加父类equipBase
1 个父辈
4f262f65
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
36 行增加
和
63 行删除
doc/马来西亚DUO料仓电器BOM.xlsx
source/DUOStore/FrmStore.cs
source/DeviceLibrary/DeviceLibrary.csproj
source/DeviceLibrary/duoStore/BoxBean.cs
source/DeviceLibrary/duoStore/BoxBean_Partial.cs
source/DeviceLibrary/duoStore/DUOStoreBean.cs
source/DeviceLibrary/duoStore/EquipBase.cs
source/DeviceLibrary/store/KTK_Store.cs
source/DeviceLibrary/store/StoreStep.cs
source/DeviceLibrary/store/model/StoreMoveInfo.cs
source/LoadCVSLibrary/storeConfig/config/StoreType.cs
doc/马来西亚DUO料仓电器BOM.xlsx
查看文件 @
9af14a7
此文件类型无法预览
source/DUOStore/FrmStore.cs
查看文件 @
9af14a7
...
...
@@ -128,7 +128,7 @@ namespace OnlineStore.DUOStore
private
void
ExitApp
()
{
DialogResult
result
=
MessageBox
.
Show
(
"是否确定退出
包装料
料仓客户端?"
,
"提示"
,
MessageBoxButtons
.
YesNo
);
DialogResult
result
=
MessageBox
.
Show
(
"是否确定退出
DUO
料仓客户端?"
,
"提示"
,
MessageBoxButtons
.
YesNo
);
if
(
result
.
Equals
(
DialogResult
.
Yes
))
{
//如果料仓还在运行状态,先关闭料仓
...
...
@@ -255,7 +255,7 @@ namespace OnlineStore.DUOStore
{
if
(
store
.
storeRunStatus
.
Equals
(
StoreRunStatus
.
Wait
))
{
MessageBox
.
Show
(
store
.
Name
+
"
包装料
料仓未启动,不需要停止"
);
MessageBox
.
Show
(
store
.
Name
+
"
DUO
料仓未启动,不需要停止"
);
return
;
}
if
(
store
!=
null
)
...
...
@@ -270,7 +270,7 @@ namespace OnlineStore.DUOStore
{
if
(
store
.
storeRunStatus
.
Equals
(
StoreRunStatus
.
Wait
))
{
MessageBox
.
Show
(
store
.
Name
+
"
包装料
料仓未启动,无法复位"
);
MessageBox
.
Show
(
store
.
Name
+
"
DUO
料仓未启动,无法复位"
);
return
;
}
store
.
Reset
();
...
...
@@ -316,7 +316,7 @@ namespace OnlineStore.DUOStore
var
prevCpuTime
=
TimeSpan
.
Zero
;
foreach
(
Process
process
in
processes
)
{
if
(
process
.
ProcessName
.
EndsWith
(
"
ACPacking
Store"
))
if
(
process
.
ProcessName
.
EndsWith
(
"
DUO
Store"
))
{
sbResult
.
AppendFormat
(
DateTime
.
Now
.
ToLongTimeString
()
+
", 名称:{0} 内存大小:{1}M "
,
process
.
ProcessName
,
process
.
PrivateMemorySize64
/
1024
/
1024F
);
totalMemery
+=
process
.
PrivateMemorySize64
/
1024
;
...
...
source/DeviceLibrary/DeviceLibrary.csproj
查看文件 @
9af14a7
...
...
@@ -79,6 +79,7 @@
<Compile Include="duoStore\BoxBean_Partial.cs" />
<Compile Include="duoStore\BoxBean_Shelf.cs" />
<Compile Include="duoStore\DUOStoreBean_Partial.cs" />
<Compile Include="duoStore\EquipBase.cs" />
<Compile Include="duoStore\HoisterCylinder.cs" />
<Compile Include="duoStore\HumitureBean.cs" />
<Compile Include="duoStore\DUOStoreBean.cs" />
...
...
source/DeviceLibrary/duoStore/BoxBean.cs
查看文件 @
9af14a7
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/duoStore/BoxBean_Partial.cs
查看文件 @
9af14a7
...
...
@@ -287,10 +287,7 @@ namespace OnlineStore.DeviceLibrary
TimeSpan
span
=
DateTime
.
Now
-
startInStoreTime
;
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosID
:
""
;
LogUtil
.
info
(
Name
+
" 【"
+
posId
+
"】入库结束,耗时【"
+
FormUtil
.
GetSpanStr
(
span
)
+
"】"
);
MoveInfo
.
EndMove
();
storeRunStatus
=
StoreRunStatus
.
Runing
;
//设备连接,入库后,BOX恢复原始状态
storeStatus
=
StoreStatus
.
StoreOnline
;
MoveEndP
();
AutoInout
.
InOutEndProcess
(
this
,
MoveType
.
InStore
);
}
...
...
@@ -341,9 +338,7 @@ namespace OnlineStore.DeviceLibrary
TimeSpan
span
=
DateTime
.
Now
-
startInStoreTime
;
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosID
:
""
;
LogUtil
.
info
(
Name
+
" 【"
+
posId
+
"】NG料送料结束,耗时【"
+
FormUtil
.
GetSpanStr
(
span
)
+
"】"
);
MoveInfo
.
EndMove
();
storeRunStatus
=
StoreRunStatus
.
Runing
;
storeStatus
=
StoreStatus
.
StoreOnline
;
MoveEndP
();
}
...
...
@@ -498,12 +493,10 @@ namespace OnlineStore.DeviceLibrary
else
if
(
MoveInfo
.
MoveStep
==
StoreMoveStep
.
SO_10_GoBack
)
{
TimeSpan
span
=
DateTime
.
Now
-
startOutStoreTime
;
string
posId
=
MoveInfo
.
MoveParam
.
PosID
;
storeStatus
=
StoreStatus
.
StoreOnline
;
string
posId
=
MoveInfo
.
MoveParam
.
PosID
;
LogUtil
.
info
(
Name
+
" 【"
+
posId
+
"】 出库结束,耗时【"
+
FormUtil
.
GetSpanStr
(
span
)
+
"】!"
);
MoveInfo
.
EndMove
();
storeRunStatus
=
StoreRunStatus
.
Runing
;
MoveEndP
()
;
AutoInout
.
InOutEndProcess
(
this
,
MoveType
.
OutStore
);
}
#
endregion
...
...
@@ -550,11 +543,10 @@ namespace OnlineStore.DeviceLibrary
else
if
(
MoveInfo
.
IsStep
(
StoreMoveStep
.
SO_26_GoBack
))
{
TimeSpan
span
=
DateTime
.
Now
-
startInStoreTime
;
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosID
:
""
;
storeStatus
=
StoreStatus
.
StoreOnline
;
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosID
:
""
;
LogUtil
.
info
(
Name
+
" 【"
+
posId
+
"】 单盘出库结束,耗时【"
+
FormUtil
.
GetSpanStr
(
span
)
+
"】!"
);
MoveInfo
.
EndMove
();
storeRunStatus
=
StoreRunStatus
.
Runing
;
MoveEndP
()
;
AutoInout
.
InOutEndProcess
(
this
,
MoveType
.
OutStore
);
}
...
...
source/DeviceLibrary/duoStore/DUOStoreBean.cs
查看文件 @
9af14a7
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/duoStore/EquipBase.cs
0 → 100644
查看文件 @
9af14a7
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/store/KTK_Store.cs
查看文件 @
9af14a7
...
...
@@ -41,7 +41,7 @@ namespace OnlineStore.DeviceLibrary
private
StoreRunStatus
storerunstatus
=
StoreRunStatus
.
Wait
;
protected
System
.
Timers
.
Timer
mainTimer
;
protected
System
.
Timers
.
Timer
serverCon
nect
Timer
=
new
System
.
Timers
.
Timer
();
protected
System
.
Timers
.
Timer
serverConTimer
=
new
System
.
Timers
.
Timer
();
protected
System
.
Timers
.
Timer
IoCheckTimer
=
new
System
.
Timers
.
Timer
();
private
bool
isInit
=
false
;
...
...
@@ -75,33 +75,7 @@ namespace OnlineStore.DeviceLibrary
public
AlarmInfo
alarmInfo
=
new
AlarmInfo
();
/// <summary>
/// 记录上一次的部分IO状态,主要是急停,气压检测信号,复位信号,用来判断是否io发生改变
/// </summary>
public
Dictionary
<
string
,
IO_VALUE
>
DILastValueMap
=
new
Dictionary
<
string
,
IO_VALUE
>();
public
object
lastDiListLock
=
""
;
public
void
addLastDI
(
string
type
,
IO_VALUE
value
)
{
try
{
lock
(
lastDiListLock
)
{
if
(
DILastValueMap
.
ContainsKey
(
type
))
{
DILastValueMap
.
Remove
(
type
);
}
DILastValueMap
.
Add
(
type
,
value
);
}
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
ex
.
ToString
());
}
}
/// <summary>
/// 获取料仓运行的时间
/// </summary>
...
...
@@ -144,7 +118,7 @@ namespace OnlineStore.DeviceLibrary
ResetProcess
();
isInPro
=
false
;
break
;
case
MoveType
.
Store
Reset
:
case
MoveType
.
Reset
:
ResetProcess
();
isInPro
=
false
;
break
;
...
...
@@ -236,10 +210,10 @@ namespace OnlineStore.DeviceLibrary
mainTimer
.
Elapsed
+=
timersTimer_Elapsed
;
mainTimer
.
AutoReset
=
true
;
serverCon
nect
Timer
=
new
System
.
Timers
.
Timer
();
serverCon
nect
Timer
.
Interval
=
1000
;
serverCon
nect
Timer
.
AutoReset
=
true
;
serverCon
nect
Timer
.
Enabled
=
false
;
serverConTimer
=
new
System
.
Timers
.
Timer
();
serverConTimer
.
Interval
=
1000
;
serverConTimer
.
AutoReset
=
true
;
serverConTimer
.
Enabled
=
false
;
IoCheckTimer
=
new
System
.
Timers
.
Timer
();
IoCheckTimer
.
Interval
=
200
;
...
...
source/DeviceLibrary/store/StoreStep.cs
查看文件 @
9af14a7
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/store/model/StoreMoveInfo.cs
查看文件 @
9af14a7
...
...
@@ -113,6 +113,20 @@ namespace OnlineStore.DeviceLibrary
{
return
moveStep
.
Equals
(
step
);
}
public
bool
IsTimeOut
(
int
timeOutSeconds
=
60
)
{
TimeSpan
span
=
DateTime
.
Now
-
LastSetpTime
;
if
(
span
.
TotalSeconds
>
timeOutSeconds
)
{
return
true
;
}
return
false
;
}
public
TimeSpan
StepSpan
()
{
TimeSpan
span
=
DateTime
.
Now
-
LastSetpTime
;
return
span
;
}
}
public
class
WaitResultInfo
...
...
@@ -377,14 +391,6 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 重置
/// </summary>
StoreReset
=
4
,
///// <summary>
///// 移栽装置的停止,需要先远点返回,然后停止
///// </summary>
//StopMove=5,
///// <summary>
///// 移栽检测托盘
///// </summary>
//CheckFixture=6,
Reset
=
4
,
}
}
source/LoadCVSLibrary/storeConfig/config/StoreType.cs
查看文件 @
9af14a7
...
...
@@ -40,7 +40,7 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary>
public
static
string
RC_AC_SA
=
"RC_AC_SA"
;
/// <summary>
/// 松下伺服控制的
包装料
料仓
/// 松下伺服控制的
DUO
料仓
/// </summary>
public
static
string
RC_AC_PA
=
"RC_AC_PA"
;
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论