Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO775-DUOStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b1431631
由
LN
编写于
2020-08-04 14:23:12 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
料架入库处理
1 个父辈
aece1f17
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
409 行增加
和
148 行删除
source/Common/Setting_Init.cs
source/Common/util/HttpHelper.cs
source/DUOStore/App.config
source/DUOStore/FrmBox.cs
source/DUOStore/FrmIOStatus.Designer.cs
source/DUOStore/FrmStore.Designer.cs
source/DUOStore/FrmStore.cs
source/DeviceLibrary/duoStore/BoxBean.cs
source/DeviceLibrary/duoStore/BoxBean_Partial.cs
source/DeviceLibrary/duoStore/DUOStoreBean.cs
source/DeviceLibrary/duoStore/DUOStoreBean_Partial.cs
source/DeviceLibrary/duoStore/StoreManager.cs
source/DeviceLibrary/store/AutoInoutInfo.cs
source/DeviceLibrary/store/InOutParam.cs
source/DeviceLibrary/store/KTK_Store.cs
source/DeviceLibrary/store/StoreStep.cs
source/Common/Setting_Init.cs
查看文件 @
b143163
...
@@ -94,7 +94,10 @@ namespace OnlineStore.Common
...
@@ -94,7 +94,10 @@ namespace OnlineStore.Common
public
static
string
Tool_TargetSpeed
=
"Tool_TargetSpeed"
;
public
static
string
Tool_TargetSpeed
=
"Tool_TargetSpeed"
;
public
static
string
Tool_TargetPosition
=
"Tool_TargetPosition"
;
public
static
string
Tool_TargetPosition
=
"Tool_TargetPosition"
;
public
static
string
CodeCount
=
"CodeCount"
;
public
static
string
CodeCount
=
"CodeCount"
;
public
static
string
CurrShelfNum
=
"CurrShelfNum"
;
public
static
string
CurrShelfType
=
"CurrShelfType"
;
}
}
}
}
source/Common/util/HttpHelper.cs
查看文件 @
b143163
...
@@ -17,7 +17,7 @@ using System.Net.NetworkInformation;
...
@@ -17,7 +17,7 @@ using System.Net.NetworkInformation;
namespace
OnlineStore.Common
namespace
OnlineStore.Common
{
{
public
class
HttpHelper
public
class
HttpHelper
{
{
private
static
int
isLog
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
Server_Log_Open
);
private
static
int
isLog
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
Server_Log_Open
);
public
static
bool
PingURLIP
(
string
url
,
int
ms
=
100
)
public
static
bool
PingURLIP
(
string
url
,
int
ms
=
100
)
{
{
...
...
source/DUOStore/App.config
查看文件 @
b143163
...
@@ -55,6 +55,10 @@
...
@@ -55,6 +55,10 @@
<
add
key
=
"AutoShelfInstore"
value
=
"1"
/>
<
add
key
=
"AutoShelfInstore"
value
=
"1"
/>
<!--进出轴位置-->
<!--进出轴位置-->
<
add
key
=
"InOutDefaultPosition"
value
=
"3000"
/>
<
add
key
=
"InOutDefaultPosition"
value
=
"3000"
/>
<!--当前料架信息-料架号-->
<
add
key
=
"CurrShelfNum"
value
=
"-1"
/>
<!--当前料架信息-料架类型,
0
=空料架,
1
=入库料架,
2
=出库料架-->
<
add
key
=
"CurrShelfType"
value
=
"0"
/>
</
appSettings
>
</
appSettings
>
<
log4net
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
...
...
source/DUOStore/FrmBox.cs
查看文件 @
b143163
...
@@ -48,9 +48,9 @@ namespace OnlineStore.DUOStore
...
@@ -48,9 +48,9 @@ namespace OnlineStore.DUOStore
this
.
Close
();
this
.
Close
();
return
;
return
;
}
}
// this.groupBox3.Text = "设备[" + BoxBean.CID + "]状态";
// this.groupBox3.Text = "设备[" + BoxBean.CID + "]状态";
this
.
Text
=
BoxBean
.
Name
;
this
.
Text
=
BoxBean
.
Name
;
axisMoveControl1
.
LoadData
(
BoxBean
,
new
AxisBean
[]
{
BoxBean
.
MiddleAxis
,
BoxBean
.
UpdownAxis
,
BoxBean
.
InoutAxis
,
BoxBean
.
ComAxis
});
axisMoveControl1
.
LoadData
(
BoxBean
,
new
AxisBean
[]
{
BoxBean
.
MiddleAxis
,
BoxBean
.
UpdownAxis
,
BoxBean
.
InoutAxis
,
BoxBean
.
ComAxis
});
ACBoxPosition
acPosition
=
null
;
ACBoxPosition
acPosition
=
null
;
if
(
BoxBean
.
PositionNumList
.
Count
>
0
)
if
(
BoxBean
.
PositionNumList
.
Count
>
0
)
{
{
...
@@ -66,12 +66,12 @@ namespace OnlineStore.DUOStore
...
@@ -66,12 +66,12 @@ namespace OnlineStore.DUOStore
txtUpdownP12
.
Text
=
BoxBean
.
Config
.
UpDownAxis_P12
.
ToString
();
txtUpdownP12
.
Text
=
BoxBean
.
Config
.
UpDownAxis_P12
.
ToString
();
txtUpDownP1
.
Text
=
BoxBean
.
Config
.
UpDownAxis_P1
.
ToString
();
txtUpDownP1
.
Text
=
BoxBean
.
Config
.
UpDownAxis_P1
.
ToString
();
txtInOutP1
.
Text
=
BoxBean
.
Config
.
InOutAxis_P1
.
ToString
();
txtInOutP1
.
Text
=
BoxBean
.
Config
.
InOutAxis_P1
.
ToString
();
txtComP1
.
Text
=
BoxBean
.
Config
.
CompAxis_P1
.
ToString
();
txtComP1
.
Text
=
BoxBean
.
Config
.
CompAxis_P1
.
ToString
();
txtUpDownP2
.
Text
=
BoxBean
.
Config
.
UpDownAxis_P2
.
ToString
();
txtUpDownP2
.
Text
=
BoxBean
.
Config
.
UpDownAxis_P2
.
ToString
();
txtMiddleP11
.
Text
=
BoxBean
.
Config
.
MiddleAxis_P11
.
ToString
();
txtMiddleP11
.
Text
=
BoxBean
.
Config
.
MiddleAxis_P11
.
ToString
();
txtInoutP11
.
Text
=
BoxBean
.
Config
.
InOutAxis_P11
.
ToString
();
txtInoutP11
.
Text
=
BoxBean
.
Config
.
InOutAxis_P11
.
ToString
();
txtComP3
.
Text
=
BoxBean
.
Config
.
CompAxis_P3
.
ToString
();
txtComP3
.
Text
=
BoxBean
.
Config
.
CompAxis_P3
.
ToString
();
txtInOutP2
.
Text
=
BoxBean
.
Config
.
InOutAxis_P2
.
ToString
();
txtInOutP2
.
Text
=
BoxBean
.
Config
.
InOutAxis_P2
.
ToString
();
LoadPData
(
acPosition
);
LoadPData
(
acPosition
);
chbDebug
.
Checked
=
BoxBean
.
IsDebug
;
chbDebug
.
Checked
=
BoxBean
.
IsDebug
;
...
@@ -211,9 +211,9 @@ namespace OnlineStore.DUOStore
...
@@ -211,9 +211,9 @@ namespace OnlineStore.DUOStore
{
{
if
(
BoxBean
.
runStatus
>=
StoreRunStatus
.
HomeMoving
)
if
(
BoxBean
.
runStatus
>=
StoreRunStatus
.
HomeMoving
)
{
{
string
selectPositionNum
=
cmbPosition
.
Text
;
string
selectPositionNum
=
cmbPosition
.
Text
;
LineMoveP
ktk
=
LoadPostion
();
LineMoveP
ktk
=
LoadPostion
();
InOutParam
param
=
new
InOutParam
(
""
,
selectPositionNum
,
ktk
);
InOutParam
param
=
new
InOutParam
(
MoveType
.
OutStore
,
""
,
selectPositionNum
,
ktk
);
BoxBean
.
StartOutStoreMove
(
param
);
BoxBean
.
StartOutStoreMove
(
param
);
}
}
else
else
...
@@ -226,9 +226,9 @@ namespace OnlineStore.DUOStore
...
@@ -226,9 +226,9 @@ namespace OnlineStore.DUOStore
{
{
if
(
BoxBean
.
runStatus
>=
StoreRunStatus
.
HomeMoving
)
if
(
BoxBean
.
runStatus
>=
StoreRunStatus
.
HomeMoving
)
{
{
string
selectPositionNum
=
cmbPosition
.
Text
;
string
selectPositionNum
=
cmbPosition
.
Text
;
LineMoveP
ktk
=
LoadPostion
();
LineMoveP
ktk
=
LoadPostion
();
BoxBean
.
StartInStoreMove
(
new
InOutParam
(
""
,
selectPositionNum
,
ktk
));
BoxBean
.
StartInStoreMove
(
new
InOutParam
(
MoveType
.
InStore
,
""
,
selectPositionNum
,
ktk
));
}
}
else
else
{
{
...
@@ -253,7 +253,7 @@ namespace OnlineStore.DUOStore
...
@@ -253,7 +253,7 @@ namespace OnlineStore.DUOStore
ktk
.
UpDown_P3
=
FormUtil
.
GetIntValue
(
txtUpDownP3
);
ktk
.
UpDown_P3
=
FormUtil
.
GetIntValue
(
txtUpDownP3
);
ktk
.
UpDown_P4
=
FormUtil
.
GetIntValue
(
txtUpDownP4
);
ktk
.
UpDown_P4
=
FormUtil
.
GetIntValue
(
txtUpDownP4
);
ktk
.
UpDown_P5
=
FormUtil
.
GetIntValue
(
txtUpDownP5
);
ktk
.
UpDown_P5
=
FormUtil
.
GetIntValue
(
txtUpDownP5
);
ktk
.
UpDown_P6
=
FormUtil
.
GetIntValue
(
txtUpDownP6
);
ktk
.
UpDown_P6
=
FormUtil
.
GetIntValue
(
txtUpDownP6
);
return
ktk
;
return
ktk
;
}
}
...
@@ -278,9 +278,9 @@ namespace OnlineStore.DUOStore
...
@@ -278,9 +278,9 @@ namespace OnlineStore.DUOStore
txtUpDownP6
.
Text
=
acPosition
.
UpdownAxis_OL_P6
.
ToString
();
txtUpDownP6
.
Text
=
acPosition
.
UpdownAxis_OL_P6
.
ToString
();
txtInOutP3
.
Text
=
acPosition
.
InoutAxis_P3
.
ToString
();
txtInOutP3
.
Text
=
acPosition
.
InoutAxis_P3
.
ToString
();
txtMiddleP2
.
Text
=
acPosition
.
MiddleAxis_P2
.
ToString
();
txtMiddleP2
.
Text
=
acPosition
.
MiddleAxis_P2
.
ToString
();
int
comP2
=
BoxBean
.
Config
.
GetComP2
(
acPosition
.
BagHigh
);
int
comP2
=
BoxBean
.
Config
.
GetComP2
(
acPosition
.
BagHigh
);
txtComP2
.
Text
=
comP2
.
ToString
();
txtComP2
.
Text
=
comP2
.
ToString
();
lblSize
.
Text
=
"尺寸:"
+
acPosition
.
BagWidth
+
"*"
+
acPosition
.
BagHigh
;
lblSize
.
Text
=
"尺寸:"
+
acPosition
.
BagWidth
+
"*"
+
acPosition
.
BagHigh
;
}
}
}
}
...
@@ -295,9 +295,9 @@ namespace OnlineStore.DUOStore
...
@@ -295,9 +295,9 @@ namespace OnlineStore.DUOStore
acPosition
.
MiddleAxis_P2
=
FormUtil
.
GetIntValue
(
txtMiddleP2
);
acPosition
.
MiddleAxis_P2
=
FormUtil
.
GetIntValue
(
txtMiddleP2
);
acPosition
.
InoutAxis_P3
=
FormUtil
.
GetIntValue
(
txtInOutP3
);
acPosition
.
InoutAxis_P3
=
FormUtil
.
GetIntValue
(
txtInOutP3
);
acPosition
.
UpdownAxis_IH_P3
=
FormUtil
.
GetIntValue
(
txtUpDownP3
);
acPosition
.
UpdownAxis_IH_P3
=
FormUtil
.
GetIntValue
(
txtUpDownP3
);
acPosition
.
UpdownAxis_IL_P4
=
FormUtil
.
GetIntValue
(
txtUpDownP4
);
acPosition
.
UpdownAxis_IL_P4
=
FormUtil
.
GetIntValue
(
txtUpDownP4
);
acPosition
.
UpdownAxis_OH_P5
=
FormUtil
.
GetIntValue
(
txtUpDownP5
);
acPosition
.
UpdownAxis_OH_P5
=
FormUtil
.
GetIntValue
(
txtUpDownP5
);
acPosition
.
UpdownAxis_OL_P6
=
FormUtil
.
GetIntValue
(
txtUpDownP6
);
acPosition
.
UpdownAxis_OL_P6
=
FormUtil
.
GetIntValue
(
txtUpDownP6
);
}
}
//位置配置
//位置配置
string
appPath
=
Application
.
StartupPath
;
string
appPath
=
Application
.
StartupPath
;
...
@@ -323,13 +323,13 @@ namespace OnlineStore.DUOStore
...
@@ -323,13 +323,13 @@ namespace OnlineStore.DUOStore
int
comp2
=
FormUtil
.
GetIntValue
(
txtComP2
);
int
comp2
=
FormUtil
.
GetIntValue
(
txtComP2
);
int
comp3
=
FormUtil
.
GetIntValue
(
txtComP3
);
int
comp3
=
FormUtil
.
GetIntValue
(
txtComP3
);
int
mP1
=
FormUtil
.
GetIntValue
(
txtMiddleP1
);
int
mP1
=
FormUtil
.
GetIntValue
(
txtMiddleP1
);
int
mp11
=
FormUtil
.
GetIntValue
(
txtMiddleP11
);
int
mp11
=
FormUtil
.
GetIntValue
(
txtMiddleP11
);
int
udp1
=
FormUtil
.
GetIntValue
(
txtUpDownP1
);
int
udp1
=
FormUtil
.
GetIntValue
(
txtUpDownP1
);
int
upp2
=
FormUtil
.
GetIntValue
(
txtUpDownP2
);
int
upp2
=
FormUtil
.
GetIntValue
(
txtUpDownP2
);
int
upp11
=
FormUtil
.
GetIntValue
(
txtUpdownP11
);
int
upp11
=
FormUtil
.
GetIntValue
(
txtUpdownP11
);
int
upp12
=
FormUtil
.
GetIntValue
(
txtUpdownP12
);
int
upp12
=
FormUtil
.
GetIntValue
(
txtUpdownP12
);
if
(
BoxBean
.
Config
.
MiddleAxis_P1
!=
mP1
)
if
(
BoxBean
.
Config
.
MiddleAxis_P1
!=
mP1
)
...
@@ -342,7 +342,7 @@ namespace OnlineStore.DUOStore
...
@@ -342,7 +342,7 @@ namespace OnlineStore.DUOStore
BoxBean
.
Config
.
MiddleAxis_P11
=
mp11
;
BoxBean
.
Config
.
MiddleAxis_P11
=
mp11
;
needUpdate
=
true
;
needUpdate
=
true
;
}
}
if
(
BoxBean
.
Config
.
InOutAxis_P1
!=
inoup1
)
if
(
BoxBean
.
Config
.
InOutAxis_P1
!=
inoup1
)
{
{
BoxBean
.
Config
.
InOutAxis_P1
=
inoup1
;
BoxBean
.
Config
.
InOutAxis_P1
=
inoup1
;
...
@@ -365,7 +365,7 @@ namespace OnlineStore.DUOStore
...
@@ -365,7 +365,7 @@ namespace OnlineStore.DUOStore
needUpdate
=
true
;
needUpdate
=
true
;
}
}
if
(
BoxBean
.
Config
.
UpDownAxis_P2
!=
upp2
)
if
(
BoxBean
.
Config
.
UpDownAxis_P2
!=
upp2
)
{
{
BoxBean
.
Config
.
UpDownAxis_P2
=
upp2
;
BoxBean
.
Config
.
UpDownAxis_P2
=
upp2
;
needUpdate
=
true
;
needUpdate
=
true
;
...
@@ -376,25 +376,25 @@ namespace OnlineStore.DUOStore
...
@@ -376,25 +376,25 @@ namespace OnlineStore.DUOStore
BoxBean
.
Config
.
UpDownAxis_P11
=
upp11
;
BoxBean
.
Config
.
UpDownAxis_P11
=
upp11
;
needUpdate
=
true
;
needUpdate
=
true
;
}
}
if
(
BoxBean
.
Config
.
UpDownAxis_P12
!=
upp12
)
if
(
BoxBean
.
Config
.
UpDownAxis_P12
!=
upp12
)
{
{
BoxBean
.
Config
.
UpDownAxis_P12
=
upp12
;
BoxBean
.
Config
.
UpDownAxis_P12
=
upp12
;
needUpdate
=
true
;
needUpdate
=
true
;
}
}
if
(
BoxBean
.
Config
.
CompAxis_P3
!=
comp3
)
if
(
BoxBean
.
Config
.
CompAxis_P3
!=
comp3
)
{
{
BoxBean
.
Config
.
CompAxis_P3
=
comp3
;
BoxBean
.
Config
.
CompAxis_P3
=
comp3
;
needUpdate
=
true
;
needUpdate
=
true
;
}
}
if
(
BoxBean
.
Config
.
GetComP2
(
acPosition
.
BagHigh
)
!=
comp2
)
if
(
BoxBean
.
Config
.
GetComP2
(
acPosition
.
BagHigh
)
!=
comp2
)
{
{
BoxBean
.
Config
.
UpdateComP2
(
acPosition
.
BagHigh
,
comp2
);
BoxBean
.
Config
.
UpdateComP2
(
acPosition
.
BagHigh
,
comp2
);
needUpdate
=
true
;
needUpdate
=
true
;
}
}
if
(
BoxBean
.
Config
.
CompAxis_P1
!=
comp1
)
if
(
BoxBean
.
Config
.
CompAxis_P1
!=
comp1
)
{
{
BoxBean
.
Config
.
CompAxis_P1
=
comp1
;
BoxBean
.
Config
.
CompAxis_P1
=
comp1
;
needUpdate
=
true
;
needUpdate
=
true
;
...
@@ -406,7 +406,7 @@ namespace OnlineStore.DUOStore
...
@@ -406,7 +406,7 @@ namespace OnlineStore.DUOStore
}
}
}
}
private
bool
InOutIsIsP1
()
private
bool
InOutIsIsP1
()
{
{
int
InOutDefaultPosition
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
InOutDefaultPosition
);
int
InOutDefaultPosition
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
InOutDefaultPosition
);
...
@@ -461,7 +461,7 @@ namespace OnlineStore.DUOStore
...
@@ -461,7 +461,7 @@ namespace OnlineStore.DUOStore
{
{
AxisABSMove
(
BoxBean
.
Config
.
UpDown_Axis
,
txtUpDownP6
,
BoxBean
.
Config
.
UpDownAxis_P6_Speed
);
AxisABSMove
(
BoxBean
.
Config
.
UpDown_Axis
,
txtUpDownP6
,
BoxBean
.
Config
.
UpDownAxis_P6_Speed
);
}
}
private
void
btnUpdownP11_Click
(
object
sender
,
EventArgs
e
)
private
void
btnUpdownP11_Click
(
object
sender
,
EventArgs
e
)
{
{
...
@@ -542,7 +542,7 @@ namespace OnlineStore.DUOStore
...
@@ -542,7 +542,7 @@ namespace OnlineStore.DUOStore
BoxBean
.
AutoInout
.
autoMsg
=
"自动出库:"
+
poText
;
BoxBean
.
AutoInout
.
autoMsg
=
"自动出库:"
+
poText
;
LogUtil
.
info
(
BoxBean
.
Name
+
"开启自动出入库模式,开始位置【"
+
poText
+
"】(索引="
+
currIndex
+
"),间隔="
+
jiange
+
",入库开始!"
);
LogUtil
.
info
(
BoxBean
.
Name
+
"开启自动出入库模式,开始位置【"
+
poText
+
"】(索引="
+
currIndex
+
"),间隔="
+
jiange
+
",入库开始!"
);
//BoxBean.StartOutStoreMove(new InOutStoreParam("", poText));
//BoxBean.StartOutStoreMove(new InOutStoreParam("", poText));
BoxBean
.
StartInStoreMove
(
new
InOutParam
(
""
,
poText
));
BoxBean
.
StartInStoreMove
(
new
InOutParam
(
MoveType
.
InStore
,
""
,
poText
));
btnStartAuTo
.
Text
=
"停止自动出入库"
;
btnStartAuTo
.
Text
=
"停止自动出入库"
;
}
}
...
@@ -614,15 +614,15 @@ namespace OnlineStore.DUOStore
...
@@ -614,15 +614,15 @@ namespace OnlineStore.DUOStore
btnAxisOn
.
Enabled
=
false
;
btnAxisOn
.
Enabled
=
false
;
LogUtil
.
info
(
BoxBean
.
Name
+
"点击:"
+
btnAxisOn
.
Text
);
LogUtil
.
info
(
BoxBean
.
Name
+
"点击:"
+
btnAxisOn
.
Text
);
BoxBean
.
OpenAllAxis
(
false
);
BoxBean
.
OpenAllAxis
(
false
);
btnAxisOn
.
Enabled
=
true
;
btnAxisOn
.
Enabled
=
true
;
}
}
private
void
料仓运转
OFFToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
private
void
料仓运转
OFFToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
{
LogUtil
.
info
(
BoxBean
.
Name
+
"点击:"
+
btnAxisOff
.
Text
);
LogUtil
.
info
(
BoxBean
.
Name
+
"点击:"
+
btnAxisOff
.
Text
);
BoxBean
.
CloseAllAxis
();
BoxBean
.
CloseAllAxis
();
}
}
private
void
FrmStoreBox_Shown
(
object
sender
,
EventArgs
e
)
private
void
FrmStoreBox_Shown
(
object
sender
,
EventArgs
e
)
{
{
...
@@ -759,7 +759,7 @@ namespace OnlineStore.DUOStore
...
@@ -759,7 +759,7 @@ namespace OnlineStore.DUOStore
roleindex
++;
roleindex
++;
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
}
}
this
.
SuspendLayout
();
this
.
SuspendLayout
();
}
}
private
void
ReadIOList
()
private
void
ReadIOList
()
...
@@ -796,7 +796,7 @@ namespace OnlineStore.DUOStore
...
@@ -796,7 +796,7 @@ namespace OnlineStore.DUOStore
}
}
private
void
btnDoorDown_Click
(
object
sender
,
EventArgs
e
)
private
void
btnDoorDown_Click
(
object
sender
,
EventArgs
e
)
{
{
BoxBean
.
CylinderMove
(
null
,
IO_Type
.
OutDoor_Up
,
IO_Type
.
OutDoor_Down
);
BoxBean
.
CylinderMove
(
null
,
IO_Type
.
OutDoor_Up
,
IO_Type
.
OutDoor_Down
);
}
}
...
@@ -806,7 +806,7 @@ namespace OnlineStore.DUOStore
...
@@ -806,7 +806,7 @@ namespace OnlineStore.DUOStore
{
{
string
selectPositionNum
=
cmbPosition
.
Text
;
string
selectPositionNum
=
cmbPosition
.
Text
;
LineMoveP
ktk
=
LoadPostion
();
LineMoveP
ktk
=
LoadPostion
();
BoxBean
.
StartInStoreMove
(
new
InOutParam
(
""
,
selectPositionNum
,
ktk
,
1
));
BoxBean
.
StartInStoreMove
(
new
InOutParam
(
MoveType
.
InStore
,
""
,
selectPositionNum
,
ktk
,
1
));
}
}
else
else
{
{
...
@@ -820,7 +820,7 @@ namespace OnlineStore.DUOStore
...
@@ -820,7 +820,7 @@ namespace OnlineStore.DUOStore
{
{
string
selectPositionNum
=
cmbPosition
.
Text
;
string
selectPositionNum
=
cmbPosition
.
Text
;
LineMoveP
ktk
=
LoadPostion
();
LineMoveP
ktk
=
LoadPostion
();
InOutParam
param
=
new
InOutParam
(
""
,
selectPositionNum
,
ktk
,
1
);
InOutParam
param
=
new
InOutParam
(
MoveType
.
OutStore
,
""
,
selectPositionNum
,
ktk
,
1
);
BoxBean
.
StartOutStoreMove
(
param
);
BoxBean
.
StartOutStoreMove
(
param
);
}
}
else
else
...
...
source/DUOStore/FrmIOStatus.Designer.cs
查看文件 @
b143163
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
//
//
this
.
button1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
button1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
button1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
6
53
,
572
);
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
6
89
,
563
);
this
.
button1
.
Name
=
"button1"
;
this
.
button1
.
Name
=
"button1"
;
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
37
);
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
37
);
this
.
button1
.
TabIndex
=
254
;
this
.
button1
.
TabIndex
=
254
;
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
this
.
groupBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
524
,
3
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
524
,
3
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
32
3
,
544
);
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
32
2
,
544
);
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
this
.
groupBox1
.
Text
=
"DO写入"
;
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
//
//
this
.
btnCloseAll
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseAll
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseAll
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseAll
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
16
8
,
358
);
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
16
7
,
358
);
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnCloseAll
.
TabIndex
=
302
;
this
.
btnCloseAll
.
TabIndex
=
302
;
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
//
//
this
.
btnRelax
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnRelax
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnRelax
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnRelax
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnRelax
.
Location
=
new
System
.
Drawing
.
Point
(
16
8
,
300
);
this
.
btnRelax
.
Location
=
new
System
.
Drawing
.
Point
(
16
7
,
300
);
this
.
btnRelax
.
Name
=
"btnRelax"
;
this
.
btnRelax
.
Name
=
"btnRelax"
;
this
.
btnRelax
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnRelax
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnRelax
.
TabIndex
=
297
;
this
.
btnRelax
.
TabIndex
=
297
;
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
//
//
this
.
btnClamp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClamp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClamp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClamp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClamp
.
Location
=
new
System
.
Drawing
.
Point
(
16
8
,
263
);
this
.
btnClamp
.
Location
=
new
System
.
Drawing
.
Point
(
16
7
,
263
);
this
.
btnClamp
.
Name
=
"btnClamp"
;
this
.
btnClamp
.
Name
=
"btnClamp"
;
this
.
btnClamp
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnClamp
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnClamp
.
TabIndex
=
296
;
this
.
btnClamp
.
TabIndex
=
296
;
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
//
//
this
.
btnLineStop
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLineStop
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLineStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLineStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLineStop
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
300
);
this
.
btnLineStop
.
Location
=
new
System
.
Drawing
.
Point
(
31
,
300
);
this
.
btnLineStop
.
Name
=
"btnLineStop"
;
this
.
btnLineStop
.
Name
=
"btnLineStop"
;
this
.
btnLineStop
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnLineStop
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnLineStop
.
TabIndex
=
295
;
this
.
btnLineStop
.
TabIndex
=
295
;
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
//
//
this
.
btnLineRun
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLineRun
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLineRun
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLineRun
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLineRun
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
263
);
this
.
btnLineRun
.
Location
=
new
System
.
Drawing
.
Point
(
31
,
263
);
this
.
btnLineRun
.
Name
=
"btnLineRun"
;
this
.
btnLineRun
.
Name
=
"btnLineRun"
;
this
.
btnLineRun
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnLineRun
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnLineRun
.
TabIndex
=
294
;
this
.
btnLineRun
.
TabIndex
=
294
;
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
//
//
this
.
btnDeviceLed
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnDeviceLed
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnDeviceLed
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnDeviceLed
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnDeviceLed
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
398
);
this
.
btnDeviceLed
.
Location
=
new
System
.
Drawing
.
Point
(
31
,
398
);
this
.
btnDeviceLed
.
Name
=
"btnDeviceLed"
;
this
.
btnDeviceLed
.
Name
=
"btnDeviceLed"
;
this
.
btnDeviceLed
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnDeviceLed
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnDeviceLed
.
TabIndex
=
293
;
this
.
btnDeviceLed
.
TabIndex
=
293
;
...
@@ -173,7 +173,7 @@
...
@@ -173,7 +173,7 @@
//
//
this
.
btnCamerLed
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCamerLed
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCamerLed
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCamerLed
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCamerLed
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
358
);
this
.
btnCamerLed
.
Location
=
new
System
.
Drawing
.
Point
(
31
,
358
);
this
.
btnCamerLed
.
Name
=
"btnCamerLed"
;
this
.
btnCamerLed
.
Name
=
"btnCamerLed"
;
this
.
btnCamerLed
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnCamerLed
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnCamerLed
.
TabIndex
=
290
;
this
.
btnCamerLed
.
TabIndex
=
290
;
...
@@ -185,7 +185,7 @@
...
@@ -185,7 +185,7 @@
//
//
this
.
btnTopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopDown
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
206
);
this
.
btnTopDown
.
Location
=
new
System
.
Drawing
.
Point
(
31
,
206
);
this
.
btnTopDown
.
Name
=
"btnTopDown"
;
this
.
btnTopDown
.
Name
=
"btnTopDown"
;
this
.
btnTopDown
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnTopDown
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnTopDown
.
TabIndex
=
289
;
this
.
btnTopDown
.
TabIndex
=
289
;
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
//
//
this
.
btnTopUp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTopUp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTopUp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopUp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopUp
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
169
);
this
.
btnTopUp
.
Location
=
new
System
.
Drawing
.
Point
(
31
,
169
);
this
.
btnTopUp
.
Name
=
"btnTopUp"
;
this
.
btnTopUp
.
Name
=
"btnTopUp"
;
this
.
btnTopUp
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnTopUp
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnTopUp
.
TabIndex
=
288
;
this
.
btnTopUp
.
TabIndex
=
288
;
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
this
.
btnCloseDO
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCloseDO
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCloseDO
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseDO
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseDO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseDO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseDO
.
Location
=
new
System
.
Drawing
.
Point
(
16
5
,
111
);
this
.
btnCloseDO
.
Location
=
new
System
.
Drawing
.
Point
(
16
7
,
111
);
this
.
btnCloseDO
.
Name
=
"btnCloseDO"
;
this
.
btnCloseDO
.
Name
=
"btnCloseDO"
;
this
.
btnCloseDO
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnCloseDO
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnCloseDO
.
TabIndex
=
281
;
this
.
btnCloseDO
.
TabIndex
=
281
;
...
@@ -289,7 +289,7 @@
...
@@ -289,7 +289,7 @@
//
//
this
.
btnBack
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnBack
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnBack
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnBack
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnBack
.
Location
=
new
System
.
Drawing
.
Point
(
16
8
,
206
);
this
.
btnBack
.
Location
=
new
System
.
Drawing
.
Point
(
16
7
,
206
);
this
.
btnBack
.
Name
=
"btnBack"
;
this
.
btnBack
.
Name
=
"btnBack"
;
this
.
btnBack
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnBack
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnBack
.
TabIndex
=
251
;
this
.
btnBack
.
TabIndex
=
251
;
...
@@ -313,7 +313,7 @@
...
@@ -313,7 +313,7 @@
//
//
this
.
btnFoward
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnFoward
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnFoward
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnFoward
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnFoward
.
Location
=
new
System
.
Drawing
.
Point
(
16
8
,
169
);
this
.
btnFoward
.
Location
=
new
System
.
Drawing
.
Point
(
16
7
,
169
);
this
.
btnFoward
.
Name
=
"btnFoward"
;
this
.
btnFoward
.
Name
=
"btnFoward"
;
this
.
btnFoward
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnFoward
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnFoward
.
TabIndex
=
250
;
this
.
btnFoward
.
TabIndex
=
250
;
...
@@ -396,7 +396,7 @@
...
@@ -396,7 +396,7 @@
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
904
,
621
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
858
,
621
);
this
.
Controls
.
Add
(
this
.
button1
);
this
.
Controls
.
Add
(
this
.
button1
);
this
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
Controls
.
Add
(
this
.
groupBox4
);
this
.
Controls
.
Add
(
this
.
groupBox4
);
...
...
source/DUOStore/FrmStore.Designer.cs
查看文件 @
b143163
...
@@ -32,6 +32,8 @@
...
@@ -32,6 +32,8 @@
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
FrmStore
));
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
FrmStore
));
this
.
tabControl1
=
new
System
.
Windows
.
Forms
.
TabControl
();
this
.
tabControl1
=
new
System
.
Windows
.
Forms
.
TabControl
();
this
.
tabPage1
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
tabPage1
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
listView1
=
new
System
.
Windows
.
Forms
.
ListView
();
this
.
chbSendShelfOut
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
lblServerMsg
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblServerMsg
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
chbUseBuzzer
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
chbUseBuzzer
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
chkDebug
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
chkDebug
=
new
System
.
Windows
.
Forms
.
CheckBox
();
...
@@ -91,6 +93,8 @@
...
@@ -91,6 +93,8 @@
//
//
// tabPage1
// tabPage1
//
//
this
.
tabPage1
.
Controls
.
Add
(
this
.
listView1
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
chbSendShelfOut
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
lblServerMsg
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
lblServerMsg
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
chbUseBuzzer
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
chbUseBuzzer
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
chkDebug
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
chkDebug
);
...
@@ -105,6 +109,35 @@
...
@@ -105,6 +109,35 @@
this
.
tabPage1
.
Text
=
" 日志信息 "
;
this
.
tabPage1
.
Text
=
" 日志信息 "
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
//
//
// listView1
//
this
.
listView1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
listView1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
listView1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
listView1
.
FullRowSelect
=
true
;
this
.
listView1
.
GridLines
=
true
;
this
.
listView1
.
HideSelection
=
false
;
this
.
listView1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
listView1
.
MultiSelect
=
false
;
this
.
listView1
.
Name
=
"listView1"
;
this
.
listView1
.
Size
=
new
System
.
Drawing
.
Size
(
1110
,
117
);
this
.
listView1
.
TabIndex
=
203
;
this
.
listView1
.
UseCompatibleStateImageBehavior
=
false
;
this
.
listView1
.
View
=
System
.
Windows
.
Forms
.
View
.
Details
;
//
// chbSendShelfOut
//
this
.
chbSendShelfOut
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
chbSendShelfOut
.
AutoSize
=
true
;
this
.
chbSendShelfOut
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbSendShelfOut
.
Location
=
new
System
.
Drawing
.
Point
(
1132
,
142
);
this
.
chbSendShelfOut
.
Name
=
"chbSendShelfOut"
;
this
.
chbSendShelfOut
.
Size
=
new
System
.
Drawing
.
Size
(
112
,
24
);
this
.
chbSendShelfOut
.
TabIndex
=
202
;
this
.
chbSendShelfOut
.
Text
=
"送出出料料架"
;
this
.
chbSendShelfOut
.
UseVisualStyleBackColor
=
true
;
//
// lblServerMsg
// lblServerMsg
//
//
this
.
lblServerMsg
.
AutoSize
=
true
;
this
.
lblServerMsg
.
AutoSize
=
true
;
...
@@ -119,7 +152,7 @@
...
@@ -119,7 +152,7 @@
this
.
chbUseBuzzer
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
chbUseBuzzer
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
chbUseBuzzer
.
AutoSize
=
true
;
this
.
chbUseBuzzer
.
AutoSize
=
true
;
this
.
chbUseBuzzer
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbUseBuzzer
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbUseBuzzer
.
Location
=
new
System
.
Drawing
.
Point
(
1132
,
5
5
);
this
.
chbUseBuzzer
.
Location
=
new
System
.
Drawing
.
Point
(
1132
,
5
6
);
this
.
chbUseBuzzer
.
Name
=
"chbUseBuzzer"
;
this
.
chbUseBuzzer
.
Name
=
"chbUseBuzzer"
;
this
.
chbUseBuzzer
.
Size
=
new
System
.
Drawing
.
Size
(
98
,
24
);
this
.
chbUseBuzzer
.
Size
=
new
System
.
Drawing
.
Size
(
98
,
24
);
this
.
chbUseBuzzer
.
TabIndex
=
195
;
this
.
chbUseBuzzer
.
TabIndex
=
195
;
...
@@ -132,7 +165,7 @@
...
@@ -132,7 +165,7 @@
this
.
chkDebug
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
chkDebug
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
chkDebug
.
AutoSize
=
true
;
this
.
chkDebug
.
AutoSize
=
true
;
this
.
chkDebug
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chkDebug
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chkDebug
.
Location
=
new
System
.
Drawing
.
Point
(
1132
,
9
7
);
this
.
chkDebug
.
Location
=
new
System
.
Drawing
.
Point
(
1132
,
9
9
);
this
.
chkDebug
.
Name
=
"chkDebug"
;
this
.
chkDebug
.
Name
=
"chkDebug"
;
this
.
chkDebug
.
Size
=
new
System
.
Drawing
.
Size
(
132
,
24
);
this
.
chkDebug
.
Size
=
new
System
.
Drawing
.
Size
(
132
,
24
);
this
.
chkDebug
.
TabIndex
=
194
;
this
.
chkDebug
.
TabIndex
=
194
;
...
@@ -158,7 +191,7 @@
...
@@ -158,7 +191,7 @@
this
.
btnCopyLog
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnCopyLog
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnCopyLog
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCopyLog
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCopyLog
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCopyLog
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCopyLog
.
Location
=
new
System
.
Drawing
.
Point
(
11
32
,
139
);
this
.
btnCopyLog
.
Location
=
new
System
.
Drawing
.
Point
(
11
45
,
546
);
this
.
btnCopyLog
.
Name
=
"btnCopyLog"
;
this
.
btnCopyLog
.
Name
=
"btnCopyLog"
;
this
.
btnCopyLog
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
35
);
this
.
btnCopyLog
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
35
);
this
.
btnCopyLog
.
TabIndex
=
191
;
this
.
btnCopyLog
.
TabIndex
=
191
;
...
@@ -171,7 +204,7 @@
...
@@ -171,7 +204,7 @@
this
.
btnClearLog
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnClearLog
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnClearLog
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnClearLog
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnClearLog
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClearLog
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClearLog
.
Location
=
new
System
.
Drawing
.
Point
(
11
32
,
192
);
this
.
btnClearLog
.
Location
=
new
System
.
Drawing
.
Point
(
11
45
,
599
);
this
.
btnClearLog
.
Name
=
"btnClearLog"
;
this
.
btnClearLog
.
Name
=
"btnClearLog"
;
this
.
btnClearLog
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
35
);
this
.
btnClearLog
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
35
);
this
.
btnClearLog
.
TabIndex
=
190
;
this
.
btnClearLog
.
TabIndex
=
190
;
...
@@ -185,9 +218,9 @@
...
@@ -185,9 +218,9 @@
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
logBox
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
logBox
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
logBox
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
logBox
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
126
);
this
.
logBox
.
Name
=
"logBox"
;
this
.
logBox
.
Name
=
"logBox"
;
this
.
logBox
.
Size
=
new
System
.
Drawing
.
Size
(
1110
,
635
);
this
.
logBox
.
Size
=
new
System
.
Drawing
.
Size
(
1110
,
512
);
this
.
logBox
.
TabIndex
=
106
;
this
.
logBox
.
TabIndex
=
106
;
this
.
logBox
.
Text
=
""
;
this
.
logBox
.
Text
=
""
;
this
.
logBox
.
VisibleChanged
+=
new
System
.
EventHandler
(
this
.
logBox_VisibleChanged
);
this
.
logBox
.
VisibleChanged
+=
new
System
.
EventHandler
(
this
.
logBox_VisibleChanged
);
...
@@ -199,9 +232,9 @@
...
@@ -199,9 +232,9 @@
this
.
lblWarnMsg
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
lblWarnMsg
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
lblWarnMsg
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblWarnMsg
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblWarnMsg
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lblWarnMsg
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lblWarnMsg
.
Location
=
new
System
.
Drawing
.
Point
(
5
26
,
4
);
this
.
lblWarnMsg
.
Location
=
new
System
.
Drawing
.
Point
(
5
11
,
4
);
this
.
lblWarnMsg
.
Name
=
"lblWarnMsg"
;
this
.
lblWarnMsg
.
Name
=
"lblWarnMsg"
;
this
.
lblWarnMsg
.
Size
=
new
System
.
Drawing
.
Size
(
7
75
,
72
);
this
.
lblWarnMsg
.
Size
=
new
System
.
Drawing
.
Size
(
7
90
,
72
);
this
.
lblWarnMsg
.
TabIndex
=
96
;
this
.
lblWarnMsg
.
TabIndex
=
96
;
this
.
lblWarnMsg
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
this
.
lblWarnMsg
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
//
...
@@ -463,6 +496,8 @@
...
@@ -463,6 +496,8 @@
private
System
.
Windows
.
Forms
.
Label
lblServerMsg
;
private
System
.
Windows
.
Forms
.
Label
lblServerMsg
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
扫码测试
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
扫码测试
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator9
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator9
;
private
System
.
Windows
.
Forms
.
CheckBox
chbSendShelfOut
;
private
System
.
Windows
.
Forms
.
ListView
listView1
;
}
}
}
}
source/DUOStore/FrmStore.cs
查看文件 @
b143163
...
@@ -91,6 +91,118 @@ namespace OnlineStore.DUOStore
...
@@ -91,6 +91,118 @@ namespace OnlineStore.DUOStore
tabPageList
.
Add
(
lineTabPage
);
tabPageList
.
Add
(
lineTabPage
);
tabControl1
.
Controls
.
Add
(
lineTabPage
);
tabControl1
.
Controls
.
Add
(
lineTabPage
);
}
}
private
void
LoadListView
()
{
this
.
listView1
.
Columns
.
Clear
();
AddHealder
(
"名称"
,
90
);
AddHealder
(
"启用"
,
50
);
AddHealder
(
"报警"
,
130
);
AddHealder
(
"状态"
,
110
);
AddHealder
(
"料盘信息"
,
listView1
.
Size
.
Width
-
110
-
130
-
50
-
90
-
10
);
//AddHealder("BOX状态", listView1.Size.Width - 100 - 80 - 80 - 100 - 100 - 100 -40- 8);
AddRow
(
store
,
true
);
AddRow
(
store
.
BoxMap
[
1
],
store
.
BoxMap
[
1
].
IsDebug
);
AddRow
(
store
.
BoxMap
[
2
],
store
.
BoxMap
[
2
].
IsDebug
);
}
private
void
AddHealder
(
string
name
,
int
widht
)
{
ColumnHeader
preSendwire
=
new
ColumnHeader
();
preSendwire
.
Text
=
name
;
//设置列标题
preSendwire
.
Width
=
widht
;
//设置列宽度
preSendwire
.
TextAlign
=
HorizontalAlignment
.
Left
;
//设置列的对齐方式
this
.
listView1
.
Columns
.
Add
(
preSendwire
);
//将列头添加到ListView控件。
}
private
void
AddRow
(
EquipBase
equip
,
bool
isDebug
)
{
ListViewItem
lvi
=
new
ListViewItem
();
lvi
.
Text
=
equip
.
Name
;
lvi
.
SubItems
.
Add
(
isDebug
?
"✘"
:
"✔"
);
lvi
.
SubItems
.
Add
(
equip
.
alarmType
.
ToString
());
lvi
.
SubItems
.
Add
(
equip
.
GetRunStr
());
lvi
.
SubItems
.
Add
(
""
);
this
.
listView1
.
Items
.
Add
(
lvi
);
}
private
void
UpdateListBox
()
{
int
item_debug_index
=
1
;
int
item_alarm_index
=
2
;
int
item_runStr_index
=
3
;
int
item_move_info_index
=
4
;
int
i
=
0
;
List
<
EquipBase
>
eqList
=
new
List
<
EquipBase
>(
store
.
BoxMap
.
Values
);
eqList
.
Insert
(
0
,
store
);
foreach
(
EquipBase
equip
in
store
.
BoxMap
.
Values
)
{
if
(
i
.
Equals
(
0
))
{
}
else
{
SetItemText
(
i
,
item_debug_index
,
equip
.
IsDebug
?
"✘"
:
"✔"
);
}
SetItemText
(
i
,
item_alarm_index
,
equip
.
alarmType
.
ToString
());
SetItemText
(
i
,
item_runStr_index
,
equip
.
GetRunStr
());
StoreRunStatus
s
=
equip
.
runStatus
;
string
trayInfo
=
""
;
if
(!
equip
.
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
None
))
{
s
=
StoreRunStatus
.
Busy
;
trayInfo
=
equip
.
MoveInfo
.
MoveParam
.
ToStr
();
}
SetItemText
(
i
,
item_move_info_index
,
trayInfo
);
SetItemColor
(
i
,
s
,
equip
.
alarmType
);
i
++;
}
}
private
void
SetItemColor
(
int
i
,
StoreRunStatus
runStatus
,
AlarmType
alarmType
)
{
if
(
runStatus
.
Equals
(
StoreRunStatus
.
Wait
))
{
SetItemColor
(
i
,
Color
.
White
);
//listView1.Items[i].BackColor = Color.White;
}
else
if
(
alarmType
.
Equals
(
AlarmType
.
IoSingleTimeOut
))
{
SetItemColor
(
i
,
Color
.
LightCoral
);
}
else
if
(
alarmType
.
Equals
(
AlarmType
.
None
).
Equals
(
false
))
{
SetItemColor
(
i
,
Color
.
Red
);
}
else
if
(
runStatus
.
Equals
(
StoreRunStatus
.
HomeMoving
)
||
runStatus
.
Equals
(
StoreRunStatus
.
Reset
))
{
SetItemColor
(
i
,
Color
.
Orange
);
}
else
if
(
runStatus
.
Equals
(
StoreRunStatus
.
Busy
))
{
SetItemColor
(
i
,
Color
.
LimeGreen
);
}
else
if
(
runStatus
.
Equals
(
StoreRunStatus
.
Runing
))
{
SetItemColor
(
i
,
Color
.
LightBlue
);
}
}
private
void
SetItemColor
(
int
i
,
Color
color
)
{
if
(!
listView1
.
Items
[
i
].
BackColor
.
Equals
(
color
))
{
listView1
.
Items
[
i
].
BackColor
=
color
;
}
}
private
void
SetItemText
(
int
rowIndex
,
int
subIndex
,
string
value
)
{
if
(
this
.
listView1
.
Items
[
rowIndex
].
SubItems
.
Count
>
subIndex
)
{
if
(!
this
.
listView1
.
Items
[
rowIndex
].
SubItems
[
subIndex
].
Text
.
Equals
(
value
))
{
this
.
listView1
.
Items
[
rowIndex
].
SubItems
[
subIndex
].
Text
=
value
;
}
}
}
/// <summary>
/// <summary>
/// 隐藏窗口
/// 隐藏窗口
/// </summary>
/// </summary>
...
@@ -339,8 +451,7 @@ namespace OnlineStore.DUOStore
...
@@ -339,8 +451,7 @@ namespace OnlineStore.DUOStore
if
(!
this
.
Visible
)
if
(!
this
.
Visible
)
{
{
return
;
return
;
}
}
lblServerMsg
.
Text
=
HttpHelper
.
LastServerMsg
;
string
msg
=
""
;
string
msg
=
""
;
foreach
(
BoxBean
box
in
StoreManager
.
Store
.
BoxMap
.
Values
)
foreach
(
BoxBean
box
in
StoreManager
.
Store
.
BoxMap
.
Values
)
...
...
source/DeviceLibrary/duoStore/BoxBean.cs
查看文件 @
b143163
...
@@ -13,10 +13,7 @@ using System.Threading;
...
@@ -13,10 +13,7 @@ using System.Threading;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
namespace
OnlineStore.DeviceLibrary
namespace
OnlineStore.DeviceLibrary
{
{
/// <summary>
/// 流水线自动料仓-Box类
/// </summary>
public
partial
class
BoxBean
:
EquipBase
public
partial
class
BoxBean
:
EquipBase
{
{
private
bool
IsIntSlvBlock
=
false
;
private
bool
IsIntSlvBlock
=
false
;
...
@@ -362,15 +359,18 @@ namespace OnlineStore.DeviceLibrary
...
@@ -362,15 +359,18 @@ namespace OnlineStore.DeviceLibrary
public
override
void
StopMove
()
public
override
void
StopMove
()
{
{
IOMove
(
IO_Type
.
UpdownAxis_Break
,
IO_VALUE
.
LOW
);
MoveInfo
.
EndMove
();
MoveInfo
.
EndMove
();
IOMove
(
IO_Type
.
UpdownAxis_Break
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
UpdownAxis_Break
,
IO_VALUE
.
LOW
);
//运动版停止
//运动版停止
ACServerManager
.
SuddenStop
(
Config
.
Middle_Axis
.
DeviceName
,
Config
.
Middle_Axis
.
GetAxisValue
());
MiddleAxis
.
SuddenStop
(
true
);
ACServerManager
.
SuddenStop
(
Config
.
UpDown_Axis
.
DeviceName
,
Config
.
UpDown_Axis
.
GetAxisValue
());
UpdownAxis
.
SuddenStop
(
true
);
ACServerManager
.
SuddenStop
(
Config
.
InOut_Axis
.
DeviceName
,
Config
.
InOut_Axis
.
GetAxisValue
());
InoutAxis
.
SuddenStop
(
true
);
ACServerManager
.
SuddenStop
(
Config
.
Comp_Axis
.
DeviceName
,
Config
.
Comp_Axis
.
GetAxisValue
());
ComAxis
.
SuddenStop
(
true
);
//ACServerManager.SuddenStop(Config.Middle_Axis.DeviceName, Config.Middle_Axis.GetAxisValue());
//ACServerManager.SuddenStop(Config.UpDown_Axis.DeviceName, Config.UpDown_Axis.GetAxisValue());
//ACServerManager.SuddenStop(Config.InOut_Axis.DeviceName, Config.InOut_Axis.GetAxisValue());
//ACServerManager.SuddenStop(Config.Comp_Axis.DeviceName, Config.Comp_Axis.GetAxisValue());
CloseAllAxis
();
CloseAllAxis
();
LogInfo
(
"StopMove"
);
LogInfo
(
"StopMove"
);
isInPro
=
false
;
isInPro
=
false
;
...
...
source/DeviceLibrary/duoStore/BoxBean_Partial.cs
查看文件 @
b143163
...
@@ -16,7 +16,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -16,7 +16,7 @@ namespace OnlineStore.DeviceLibrary
{
{
public
ConcurrentQueue
<
InOutParam
>
waitOutStoreList
=
new
ConcurrentQueue
<
InOutParam
>();
public
ConcurrentQueue
<
InOutParam
>
waitOutStoreList
=
new
ConcurrentQueue
<
InOutParam
>();
// public InOutParam waitOut
StoreList = null;
public
InOutParam
waitIn
StoreList
=
null
;
#
region
出入库结果验证
#
region
出入库结果验证
private
bool
AcInPosition
(
ConfigMoveAxis
axis
,
int
p
)
private
bool
AcInPosition
(
ConfigMoveAxis
axis
,
int
p
)
...
@@ -42,7 +42,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -42,7 +42,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
///是否已经接收到过出库信息
///是否已经接收到过出库信息
///</summary>
///</summary>
public
bool
IsReviceInPosId
(
string
posId
)
public
bool
IsReviceInPosId
(
string
posId
)
{
{
bool
isReviceInfo
=
false
;
bool
isReviceInfo
=
false
;
try
try
...
@@ -52,17 +52,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -52,17 +52,13 @@ namespace OnlineStore.DeviceLibrary
LogInfo
(
" IsReviceInPosId 正在入库中:"
+
MoveInfo
.
MoveParam
.
ToStr
());
LogInfo
(
" IsReviceInPosId 正在入库中:"
+
MoveInfo
.
MoveParam
.
ToStr
());
isReviceInfo
=
true
;
isReviceInfo
=
true
;
}
}
if
(!
isReviceInfo
&&
.
Count
>
0
)
if
(!
isReviceInfo
&&
(
waitInStoreList
!=
null
)
)
{
{
//foreach (InOutParam inout in waitOutStoreList)
if
(
waitInStoreList
.
PosID
.
Equals
(
posId
)
&&
(!
waitInStoreList
.
WareCode
.
Equals
(
""
)))
//{
{
// if (inout.PosID.Equals(posId) && (!inout.WareCode.Equals("")))
LogInfo
(
" IsReviceInPosId 已存在入库任务:"
+
waitInStoreList
.
ToStr
());
// {
isReviceInfo
=
true
;
// LogInfo(" IsReviceInPosId 已存在入库任务:" + inout.ToStr());
}
// isReviceInfo = true;
// break;
// }
//}
}
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
@@ -77,7 +73,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -77,7 +73,7 @@ namespace OnlineStore.DeviceLibrary
private
DateTime
startInStoreTime
=
DateTime
.
Now
;
private
DateTime
startInStoreTime
=
DateTime
.
Now
;
public
override
void
StartInStoreMove
(
InOutParam
param
)
public
override
bool
StartInStoreMove
(
InOutParam
param
)
{
{
startInStoreTime
=
DateTime
.
Now
;
startInStoreTime
=
DateTime
.
Now
;
string
posId
=
param
!=
null
?
param
.
PosID
:
""
;
string
posId
=
param
!=
null
?
param
.
PosID
:
""
;
...
@@ -86,13 +82,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -86,13 +82,13 @@ namespace OnlineStore.DeviceLibrary
||
(!
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
None
)))
||
(!
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
None
)))
{
{
LogUtil
.
error
(
Name
+
" 启动出库出错,忙碌或报警中 ,storeStatus="
+
runStatus
+
",MoveType="
+
MoveInfo
.
MoveType
+
",isInSuddenDown="
+
isInSuddenDown
+
",isNoAirCheck"
+
isNoAirCheck
);
LogUtil
.
error
(
Name
+
" 启动出库出错,忙碌或报警中 ,storeStatus="
+
runStatus
+
",MoveType="
+
MoveInfo
.
MoveType
+
",isInSuddenDown="
+
isInSuddenDown
+
",isNoAirCheck"
+
isNoAirCheck
);
return
;
return
false
;
}
}
if
(!
StoreManager
.
LoadInoutParam
(
param
,
MoveType
.
InStore
,
true
,
this
))
if
(!
StoreManager
.
LoadInoutParam
(
param
,
MoveType
.
InStore
,
true
,
this
))
{
{
LogUtil
.
error
(
Name
+
" 启动入库【"
+
param
.
ToStr
()
+
"】出错,找不到库位信息"
);
LogUtil
.
error
(
Name
+
" 启动入库【"
+
param
.
ToStr
()
+
"】出错,找不到库位信息"
);
return
;
return
false
;
}
}
LogInfo
(
" 启动入库【"
+
param
.
ToStr
()
+
"】 "
);
LogInfo
(
" 启动入库【"
+
param
.
ToStr
()
+
"】 "
);
runStatus
=
StoreRunStatus
.
Busy
;
runStatus
=
StoreRunStatus
.
Busy
;
...
@@ -100,12 +96,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -100,12 +96,14 @@ namespace OnlineStore.DeviceLibrary
{
{
storeStatus
=
StoreStatus
.
InStoreExecute
;
storeStatus
=
StoreStatus
.
InStoreExecute
;
}
}
param
.
moveType
=
MoveType
.
InStore
;
MoveInfo
.
NewMove
(
MoveType
.
InStore
,
param
);
MoveInfo
.
NewMove
(
MoveType
.
InStore
,
param
);
//新的料架库位
//新的料架库位
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
SI_01_InoutToP1
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
SI_01_InoutToP1
);
InOutStoreLog
(
"启动入料: 进出轴返回P1"
);
InOutStoreLog
(
"启动入料: 进出轴返回P1"
);
InoutAxis
.
AbsMove
(
MoveInfo
,
Config
.
InOutAxis_P1
,
Config
.
InOutAxis_P1_Speed
);
InoutAxis
.
AbsMove
(
MoveInfo
,
Config
.
InOutAxis_P1
,
Config
.
InOutAxis_P1_Speed
);
return
true
;
}
}
protected
override
void
InStoreProcess
()
protected
override
void
InStoreProcess
()
...
@@ -307,6 +305,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -307,6 +305,7 @@ namespace OnlineStore.DeviceLibrary
storeStatus
=
StoreStatus
.
OutStoreExecute
;
storeStatus
=
StoreStatus
.
OutStoreExecute
;
runStatus
=
StoreRunStatus
.
Busy
;
runStatus
=
StoreRunStatus
.
Busy
;
param
.
moveType
=
MoveType
.
OutStore
;
MoveInfo
.
NewMove
(
MoveType
.
OutStore
,
param
);
MoveInfo
.
NewMove
(
MoveType
.
OutStore
,
param
);
LogInfo
(
"启动出库【"
+
param
.
ToStr
()
+
"】 "
);
LogInfo
(
"启动出库【"
+
param
.
ToStr
()
+
"】 "
);
//出库前shelfPosID需要固定,出库时根据rfid判断是否需要出入料架
//出库前shelfPosID需要固定,出库时根据rfid判断是否需要出入料架
...
...
source/DeviceLibrary/duoStore/DUOStoreBean.cs
查看文件 @
b143163
...
@@ -4,6 +4,7 @@ using OnlineStore.Common;
...
@@ -4,6 +4,7 @@ using OnlineStore.Common;
using
OnlineStore.LoadCSVLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Diagnostics
;
using
System.Drawing
;
using
System.Drawing
;
using
System.Linq
;
using
System.Linq
;
using
System.Net
;
using
System.Net
;
...
@@ -22,12 +23,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -22,12 +23,14 @@ namespace OnlineStore.DeviceLibrary
public
Store_Config
Config
{
get
;
set
;
}
public
Store_Config
Config
{
get
;
set
;
}
public
bool
UseBuzzer
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
UseBuzzer
).
Equals
(
1
);
public
bool
UseBuzzer
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
UseBuzzer
).
Equals
(
1
);
/// <summary>
/// <summary>
/// 取料提升机构
/// 取料提升机构
气缸
/// </summary>
/// </summary>
public
HoisterCylinder
hoisterCylinder
=
new
HoisterCylinder
(
0
);
public
HoisterCylinder
hoisterCylinder
=
new
HoisterCylinder
(
0
);
public
AxisBean
T1_BatchAxis
=
null
;
public
AxisBean
T1_BatchAxis
=
null
;
public
AxisBean
T2_MiddleAxis
=
null
;
public
AxisBean
T2_MiddleAxis
=
null
;
public
AxisBean
T3_UpdownAxis
=
null
;
public
AxisBean
T3_UpdownAxis
=
null
;
#
region
初始化
#
region
初始化
internal
bool
canStart
=
false
;
internal
bool
canStart
=
false
;
...
@@ -290,6 +293,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -290,6 +293,13 @@ namespace OnlineStore.DeviceLibrary
equip
.
StopMove
();
equip
.
StopMove
();
}
}
MoveInfo
.
EndMove
();
MoveInfo
.
EndMove
();
hoisterCylinder
.
Stop
();
//轴运动停止
T3_UpdownAxis
.
SuddenStop
(
true
);
T2_MiddleAxis
.
SuddenStop
(
true
);
T1_BatchAxis
.
SuddenStop
(
true
);
CloseAllAxis
();
}
}
...
@@ -546,12 +556,60 @@ namespace OnlineStore.DeviceLibrary
...
@@ -546,12 +556,60 @@ namespace OnlineStore.DeviceLibrary
CheckAxisAlarm
(
new
AxisBean
[]
{
T1_BatchAxis
,
T2_MiddleAxis
,
T3_UpdownAxis
});
CheckAxisAlarm
(
new
AxisBean
[]
{
T1_BatchAxis
,
T2_MiddleAxis
,
T3_UpdownAxis
});
ShowTimeLog
(
"轴报警检测完成"
);
ShowTimeLog
(
"轴报警检测完成"
);
}
}
if
(
runStatus
.
Equals
(
StoreRunStatus
.
Runing
)
||
runStatus
.
Equals
(
StoreRunStatus
.
Busy
))
{
ShelfOutProcess
();
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
Name
+
"定时处理出错"
+
ex
.
ToString
());
LogUtil
.
error
(
Name
+
"定时处理出错"
+
ex
.
ToString
());
}
}
}
}
private
bool
LowProcess
=
false
;
private
Stopwatch
lowWatch
=
new
Stopwatch
();
private
void
ShelfOutProcess
()
{
try
{
if
(
IOValue
(
IO_Type
.
Line_OutCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOValue
(
IO_Type
.
Line_BackRun
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOValue
(
IO_Type
.
Line_Run
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOValue
(
IO_Type
.
Line_BufferCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
Line_Stop3_Buffer
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOValue
(
IO_Type
.
Line_Stop4_Out
).
Equals
(
IO_VALUE
.
LOW
)
&&
LowProcess
.
Equals
(
false
))
{
if
(
StoreManager
.
checkWatch
(
lowWatch
,
3000
))
{
//左侧下层需要放个料架
Task
.
Factory
.
StartNew
(
delegate
{
LowProcess
=
true
;
LogUtil
.
info
(
Name
+
"从料架堆积处放一个料架到后端"
);
IOMove
(
IO_Type
.
Line_Run
,
IO_VALUE
.
HIGH
,
false
,
30000
);
IOMove
(
IO_Type
.
Line_Stop3_Buffer
,
IO_VALUE
.
HIGH
,
false
,
2000
);
if
(
WaitIo
(
IO_Type
.
Line_OutCheck
,
IO_VALUE
.
HIGH
,
30000
,
"堆积处放料架到后端"
))
{
LineStop
();
}
LowProcess
=
false
;
});
}
}
else
{
lowWatch
.
Stop
();
}
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
Name
+
" ShelfOutProcess 出错:"
+
ex
.
ToString
());
}
}
#
endregion
#
endregion
public
int
GetShelfNum
()
public
int
GetShelfNum
()
...
...
source/DeviceLibrary/duoStore/DUOStoreBean_Partial.cs
查看文件 @
b143163
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/duoStore/StoreManager.cs
查看文件 @
b143163
...
@@ -3,6 +3,7 @@ using OnlineStore.Common;
...
@@ -3,6 +3,7 @@ using OnlineStore.Common;
using
OnlineStore.LoadCSVLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Diagnostics
;
using
System.IO
;
using
System.IO
;
using
System.IO.Ports
;
using
System.IO.Ports
;
using
System.Linq
;
using
System.Linq
;
...
@@ -209,13 +210,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -209,13 +210,13 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
error
(
box
.
Name
+
"GetPositon["
+
param
.
PosID
+
"]=null,没有库位不能执行出入库"
);
LogUtil
.
error
(
box
.
Name
+
"GetPositon["
+
param
.
PosID
+
"]=null,没有库位不能执行出入库"
);
return
false
;
return
false
;
}
}
if
(
String
.
IsNullOrEmpty
(
param
.
PlateH
)
)
if
(
param
.
PlateH
<=
0
)
{
{
param
.
PlateH
=
position
.
BagHigh
.
ToString
()
;
param
.
PlateH
=
position
.
BagHigh
;
}
}
if
(
string
.
IsNullOrEmpty
(
param
.
PlateW
)
)
if
(
param
.
PlateW
<=
0
)
{
{
param
.
PlateW
=
position
.
BagWidth
.
ToString
()
;
param
.
PlateW
=
position
.
BagWidth
;
}
}
p
.
ComPress_P2
=
box
.
Config
.
GetComP2
(
position
.
BagHigh
);
p
.
ComPress_P2
=
box
.
Config
.
GetComP2
(
position
.
BagHigh
);
p
.
ComPress_P3
=
box
.
Config
.
CompAxis_P3
;
p
.
ComPress_P3
=
box
.
Config
.
CompAxis_P3
;
...
@@ -374,14 +375,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -374,14 +375,14 @@ namespace OnlineStore.DeviceLibrary
{
{
result
.
Msg
=
deviceName
+
" 【"
+
codeStr
+
"】结果:没有收到服务器反馈,调用 cancelPutInTask "
;
result
.
Msg
=
deviceName
+
" 【"
+
codeStr
+
"】结果:没有收到服务器反馈,调用 cancelPutInTask "
;
cancelPutInTask
(
deviceName
,
codeStr
);
cancelPutInTask
(
deviceName
,
codeStr
);
result
.
Param
=
new
InOutParam
(
codeStr
,
""
,
width
,
height
,
1
,
shelfNum
,
true
,
"没有收到服务器反馈"
);
result
.
Param
=
new
InOutParam
(
MoveType
.
InStore
,
codeStr
,
""
,
width
,
height
,
1
,
shelfNum
,
true
,
"没有收到服务器反馈"
);
return
result
;
return
result
;
}
}
else
if
((!
string
.
IsNullOrEmpty
(
serverResult
.
msg
))
||
serverResult
.
result
.
Equals
(
0
).
Equals
(
false
))
else
if
((!
string
.
IsNullOrEmpty
(
serverResult
.
msg
))
||
serverResult
.
result
.
Equals
(
0
).
Equals
(
false
))
{
{
result
.
Result
=
serverResult
.
result
;
result
.
Result
=
serverResult
.
result
;
result
.
Msg
=
deviceName
+
" 【"
+
codeStr
+
"】结果:"
+
serverResult
.
msg
;
result
.
Msg
=
deviceName
+
" 【"
+
codeStr
+
"】结果:"
+
serverResult
.
msg
;
result
.
Param
=
new
InOutParam
(
codeStr
,
""
,
width
,
height
,
1
,
shelfNum
,
true
,
serverResult
.
msg
);
result
.
Param
=
new
InOutParam
(
MoveType
.
InStore
,
codeStr
,
""
,
width
,
height
,
1
,
shelfNum
,
true
,
serverResult
.
msg
);
return
result
;
return
result
;
}
}
...
@@ -392,7 +393,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -392,7 +393,7 @@ namespace OnlineStore.DeviceLibrary
//根据库位号查找移栽
//根据库位号查找移栽
// 判断PosID是否已经在入库或者在排队列表中,如果已经存在,加入列表失败
// 判断PosID是否已经在入库或者在排队列表中,如果已经存在,加入列表失败
result
.
Param
=
new
InOutParam
(
serverResult
.
barcode
,
posId
,
width
,
height
,
0
,
shelfNum
,
false
,
""
);
result
.
Param
=
new
InOutParam
(
MoveType
.
InStore
,
serverResult
.
barcode
,
posId
,
width
,
height
,
0
,
shelfNum
,
false
,
""
);
int
storeId
=
result
.
Param
.
GetStoreId
();
int
storeId
=
result
.
Param
.
GetStoreId
();
if
(
Store
.
BoxMap
.
ContainsKey
(
storeId
))
if
(
Store
.
BoxMap
.
ContainsKey
(
storeId
))
{
{
...
@@ -401,16 +402,24 @@ namespace OnlineStore.DeviceLibrary
...
@@ -401,16 +402,24 @@ namespace OnlineStore.DeviceLibrary
{
{
result
.
Param
.
InStoreNg
=
true
;
result
.
Param
.
InStoreNg
=
true
;
result
.
Param
.
NgMsg
=
"入库库位重复"
;
result
.
Param
.
NgMsg
=
"入库库位重复"
;
result
.
Msg
=
deviceName
+
(
"收到
服务器入库命令
"
+
"入库库位重复: "
+
result
.
Param
.
ToStr
()
+
" ,入库失败!"
);
result
.
Msg
=
deviceName
+
(
"收到
入库命令:
"
+
"入库库位重复: "
+
result
.
Param
.
ToStr
()
+
" ,入库失败!"
);
return
result
;
return
result
;
}
}
LogUtil
.
info
(
deviceName
+
"收到入库命令: "
+
result
.
Param
.
ToStr
()
+
" "
);
LogUtil
.
info
(
deviceName
+
"收到入库命令: "
+
result
.
Param
.
ToStr
()
+
" "
);
if
(!
box
.
StartInStoreMove
(
result
.
Param
))
{
if
(
box
.
waitInStoreList
==
null
)
{
result
.
Msg
=
deviceName
+
(
"收到入库命令:"
+
"启动入库失败,缓存到waitInStoreList等待稍后入库: "
+
result
.
Param
.
ToStr
()
+
" "
);
box
.
waitInStoreList
=
result
.
Param
;
}
}
}
}
else
else
{
{
result
.
Param
.
InStoreNg
=
true
;
result
.
Param
.
InStoreNg
=
true
;
result
.
Param
.
NgMsg
=
"未找到料仓["
+
storeId
+
"]"
;
result
.
Param
.
NgMsg
=
"未找到料仓["
+
storeId
+
"]"
;
result
.
Msg
=
deviceName
+
(
"收到
服务器入库命令
"
+
"未找到料仓["
+
storeId
+
"]: "
+
result
.
Param
.
ToStr
()
+
" ,入库失败!"
);
result
.
Msg
=
deviceName
+
(
"收到
入库命令:
"
+
"未找到料仓["
+
storeId
+
"]: "
+
result
.
Param
.
ToStr
()
+
" ,入库失败!"
);
return
result
;
return
result
;
}
}
}
}
...
@@ -421,34 +430,51 @@ namespace OnlineStore.DeviceLibrary
...
@@ -421,34 +430,51 @@ namespace OnlineStore.DeviceLibrary
}
}
return
result
;
return
result
;
}
}
public
static
void
SendPosToStoreCheck
(
string
deviceName
,
InOutParam
param
)
//public static void SendPosToStoreCheck(string deviceName, InOutParam param)
//{
// if (param == null || param.InStoreNg)
// {
// return;
// }
// int storeId = param.GetStoreId();
// BoxBean moveEquip = Store.BoxMap[storeId];
// if (LineServer.BoxCanInStore(moveEquip.DeviceID))
// {
// LineServer.CheckInStorePos(storeId, param);
// }
// else
// {
// //等待3秒后重发验证
// Task.Factory.StartNew(delegate
// {
// LogUtil.error(deviceName + "[" + moveEquip.Name + " ]入库命令: " + param.ToStr() + " 给料仓发送验证失败,等待3秒后重发 ");
// Thread.Sleep(3000);
// LineServer.CheckInStorePos(storeId, param);
// });
// }
// lock (moveEquip.waitInListLock)
// {
// //如果当前正在出入库中,需要记录下来,等待空闲时执行
// LogUtil.info(deviceName + "[" + moveEquip.Name + " ]入库命令: " + param.ToStr() + "加入等待列表中!");
// moveEquip.waitInStoreList.Add(param);
// }
//}
public
static
bool
checkWatch
(
Stopwatch
watch
,
int
targetMs
,
bool
isStop
=
true
)
{
{
if
(
param
==
null
||
param
.
InStoreNg
)
if
(!
watch
.
IsRunning
)
{
return
;
}
int
storeId
=
param
.
GetStoreId
();
MoveEquip
moveEquip
=
LineManager
.
Line
.
MoveEquipMap
[
storeId
];
if
(
LineServer
.
BoxCanInStore
(
moveEquip
.
DeviceID
))
{
{
LineServer
.
CheckInStorePos
(
storeId
,
param
);
watch
.
Restart
();
return
false
;
}
}
else
else
if
(
watch
.
ElapsedMilliseconds
>=
targetMs
)
{
{
//等待3秒后重发验证
if
(
isStop
)
Task
.
Factory
.
StartNew
(
delegate
{
{
LogUtil
.
error
(
deviceName
+
"["
+
moveEquip
.
Name
+
" ]入库命令: "
+
param
.
ToStr
()
+
" 给料仓发送验证失败,等待3秒后重发 "
);
watch
.
Stop
();
Thread
.
Sleep
(
3000
);
}
LineServer
.
CheckInStorePos
(
storeId
,
param
);
return
true
;
});
}
lock
(
moveEquip
.
waitInListLock
)
{
//如果当前正在出入库中,需要记录下来,等待空闲时执行
LogUtil
.
info
(
deviceName
+
"["
+
moveEquip
.
Name
+
" ]入库命令: "
+
param
.
ToStr
()
+
"加入等待列表中!"
);
moveEquip
.
waitInStoreList
.
Add
(
param
);
}
}
return
false
;
}
}
}
}
public
class
GetPosResult
public
class
GetPosResult
...
...
source/DeviceLibrary/store/AutoInoutInfo.cs
查看文件 @
b143163
...
@@ -75,7 +75,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -75,7 +75,7 @@ namespace OnlineStore.DeviceLibrary
positionIndex
=
newIndex
;
positionIndex
=
newIndex
;
string
posid
=
boxBean
.
PositionNumList
[
positionIndex
];
string
posid
=
boxBean
.
PositionNumList
[
positionIndex
];
InOutParam
param
=
new
InOutParam
(
"AutoOut"
,
posid
);
InOutParam
param
=
new
InOutParam
(
MoveType
.
OutStore
,
"AutoOut"
,
posid
);
//param.NeedOutShelf = false;
//param.NeedOutShelf = false;
//param.NeedEnterShelf = false;
//param.NeedEnterShelf = false;
//判断是否需要重置
//判断是否需要重置
...
@@ -114,7 +114,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -114,7 +114,7 @@ namespace OnlineStore.DeviceLibrary
else
else
{
{
string
posid
=
boxBean
.
PositionNumList
[
newIndex
];
string
posid
=
boxBean
.
PositionNumList
[
newIndex
];
InOutParam
param
=
new
InOutParam
(
"AutoIn"
,
posid
);
InOutParam
param
=
new
InOutParam
(
MoveType
.
InStore
,
"AutoIn"
,
posid
);
// param.NeedOutShelf = false;
// param.NeedOutShelf = false;
//判断是否需要重置
//判断是否需要重置
if
(
CurrInOutACount
>=
StoreManager
.
Config
.
Box_ResetACount
)
if
(
CurrInOutACount
>=
StoreManager
.
Config
.
Box_ResetACount
)
...
...
source/DeviceLibrary/store/InOutParam.cs
查看文件 @
b143163
...
@@ -12,7 +12,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -12,7 +12,7 @@ namespace OnlineStore.DeviceLibrary
{
{
public
class
InOutParam
public
class
InOutParam
{
{
public
InOutParam
(
string
wareNo
=
""
,
string
posId
=
""
,
int
platew
=
0
,
int
plateh
=
0
,
int
targetP
=
0
,
int
shefNum
,
bool
IsNg
=
false
,
string
ngMsg
=
""
)
public
InOutParam
(
MoveType
type
,
string
wareNo
=
""
,
string
posId
=
""
,
int
platew
=
0
,
int
plateh
=
0
,
int
targetP
=
0
,
int
shefNum
=
0
,
bool
IsNg
=
false
,
string
ngMsg
=
""
)
{
{
WareCode
=
wareNo
;
WareCode
=
wareNo
;
PosID
=
posId
;
PosID
=
posId
;
...
@@ -23,20 +23,19 @@ namespace OnlineStore.DeviceLibrary
...
@@ -23,20 +23,19 @@ namespace OnlineStore.DeviceLibrary
this
.
shelfNum
=
shefNum
;
this
.
shelfNum
=
shefNum
;
this
.
InStoreNg
=
IsNg
;
this
.
InStoreNg
=
IsNg
;
this
.
NgMsg
=
ngMsg
;
this
.
NgMsg
=
ngMsg
;
this
.
moveType
=
type
;
}
}
public
InOutParam
(
string
wareNo
,
string
posId
,
LineMoveP
linePosition
,
int
targetP
=
0
)
public
InOutParam
(
MoveType
type
,
string
wareNo
,
string
posId
,
LineMoveP
linePosition
,
int
targetP
=
0
)
{
{
WareCode
=
wareNo
;
WareCode
=
wareNo
;
PosID
=
posId
;
PosID
=
posId
;
MoveP
=
linePosition
;
MoveP
=
linePosition
;
this
.
TargetPosition
=
targetP
;
this
.
TargetPosition
=
targetP
;
this
.
moveType
=
type
;
}
public
InOutParam
NewParam
()
{
InOutParam
newp
=
new
InOutParam
(
WareCode
,
PosID
,
PlateW
,
PlateH
);
return
newp
;
}
}
public
MoveType
moveType
=
MoveType
.
None
;
/// <summary>
/// <summary>
/// 物品二维码信息
/// 物品二维码信息
/// </summary>
/// </summary>
...
@@ -50,7 +49,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -50,7 +49,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
/// 料盘高度
/// 料盘高度
/// </summary>
/// </summary>
public
int
PlateH
{
get
;
set
;
}
public
int
PlateH
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 料盘宽度
/// 料盘宽度
/// </summary>
/// </summary>
...
@@ -67,7 +66,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -67,7 +66,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
/// 料架编号
/// 料架编号
/// </summary>
/// </summary>
public
int
shelfNum
=
0
;
public
int
shelfNum
=
0
;
/// <summary>
/// <summary>
/// 出入库目标位置,
/// 出入库目标位置,
...
@@ -76,6 +75,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -76,6 +75,12 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
public
int
TargetPosition
=
0
;
public
int
TargetPosition
=
0
;
/// <summary>
/// 目标料仓,1=左侧,2=右侧
/// </summary>
public
int
TargetBox
=
0
;
/// <summary>
/// <summary>
/// 根据PosId获取对应的料仓ID,若PosId=="",返回-1
/// 根据PosId获取对应的料仓ID,若PosId=="",返回-1
/// </summary>
/// </summary>
...
@@ -109,7 +114,21 @@ namespace OnlineStore.DeviceLibrary
...
@@ -109,7 +114,21 @@ namespace OnlineStore.DeviceLibrary
}
}
public
string
ToStr
()
public
string
ToStr
()
{
{
return
" 库位 ["
+
PosID
+
"] ["
+
WareCode
+
"], ["
+
PlateW
+
"x"
+
PlateH
+
"] "
;
if
(
InStoreNg
)
{
return
" 入库失败[BOX_"
+
TargetBox
+
"] ["
+
WareCode
+
"], ["
+
PlateW
+
"x"
+
PlateH
+
"] "
;
}
else
{
if
(
moveType
.
Equals
(
MoveType
.
InStore
))
{
return
" 入库 ["
+
PosID
+
"] ["
+
WareCode
+
"], ["
+
PlateW
+
"x"
+
PlateH
+
"] "
;
}
else
{
return
" 出库 ["
+
PosID
+
"] ["
+
WareCode
+
"], ["
+
PlateW
+
"x"
+
PlateH
+
"] "
;
}
}
}
}
...
...
source/DeviceLibrary/store/KTK_Store.cs
查看文件 @
b143163
...
@@ -251,7 +251,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -251,7 +251,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
/// 开始入库移动移动
/// 开始入库移动移动
/// </summary>
/// </summary>
public
abstract
void
StartInStoreMove
(
InOutParam
param
);
public
abstract
bool
StartInStoreMove
(
InOutParam
param
);
protected
abstract
void
InStoreProcess
();
protected
abstract
void
InStoreProcess
();
#
endregion
#
endregion
...
...
source/DeviceLibrary/store/StoreStep.cs
查看文件 @
b143163
...
@@ -406,32 +406,33 @@ namespace OnlineStore.DeviceLibrary
...
@@ -406,32 +406,33 @@ namespace OnlineStore.DeviceLibrary
LI_18_GetPosID
,
LI_18_GetPosID
,
/// <summary>
/// <summary>
/// 料盘移栽:等待料仓门口无料盘信号
/// </summary>
LI_21_WaitToBox
,
/// <summary>
/// 料盘移栽:获取库位号完成,升降轴到料门口高点,旋转轴到料仓门口
/// 料盘移栽:获取库位号完成,升降轴到料门口高点,旋转轴到料仓门口
/// </summary>
/// </summary>
LI_
19
_ToBoxDoor
,
LI_
22
_ToBoxDoor
,
/// <summary>
/// <summary>
/// 料盘移栽: 升降轴到料门口低点,开始预扫码
/// 料盘移栽: 升降轴到料门口低点,开始预扫码
/// </summary>
/// </summary>
LI_2
0
_UpdownDown
,
LI_2
3
_UpdownDown
,
/// <summary>
/// <summary>
/// 料盘移栽: 上料气缸放松
/// 料盘移栽: 上料气缸放松
/// </summary>
/// </summary>
LI_2
1
_CylinderRelax
,
LI_2
4
_CylinderRelax
,
/// <summary>
/// <summary>
/// 料盘移栽: 升降轴到料门口高点
/// 料盘移栽: 升降轴到料门口高点
/// </summary>
/// </summary>
LI_2
2
_UpdownUp
,
LI_2
5
_UpdownUp
,
/// <summary>
/// <summary>
/// 料盘移栽:旋转轴返回待机点P1,升降轴到料串高点P2
/// 料盘移栽:旋转轴返回待机点P1,升降轴到料串高点P2
/// </summary>
/// </summary>
LI_23_AxisToWait
,
LI_26_AxisToWait
,
/// <summary>
/// 料盘移栽:判断是否还有料
/// </summary>
LI_24_ToNexTray
,
/// <summary>
/// <summary>
...
@@ -460,9 +461,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -460,9 +461,14 @@ namespace OnlineStore.DeviceLibrary
///送出料架, 流水线再转动3秒,
///送出料架, 流水线再转动3秒,
/// </summary>
/// </summary>
LI_36_LineRun
,
LI_36_LineRun
,
/// <summary>
///送出料架, 流水线停止转动,
/// </summary>
LI_37_LineStop
,
#
endregion
#
endregion
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论