Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-ACPackingStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 13d111d8
由
LN
编写于
2020-04-09 19:32:27 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
料架号不一致,送出料架时料架信息使用上次的。日志修改
1 个父辈
74f9149e
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
98 行增加
和
81 行删除
source/ACPackingStore/FrmBox.Designer.cs
source/ACPackingStore/记录.txt
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean.cs
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Partial.cs
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Shelf.cs
source/DeviceLibrary/store/InOutParam.cs
source/DeviceLibrary/store/KTK_Store.cs
source/DeviceLibrary/store/StoreStep.cs
source/DeviceLibrary/store/model/StoreMoveInfo.cs
source/ACPackingStore/FrmBox.Designer.cs
查看文件 @
13d111d
...
@@ -54,6 +54,8 @@
...
@@ -54,6 +54,8 @@
this
.
lblSize
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblSize
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtUpdownP11
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtUpdownP11
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtCom7_P3_P2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtComP3_P2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtComP3_P2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btnComP4
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnComP4
=
new
System
.
Windows
.
Forms
.
Button
();
...
@@ -137,8 +139,6 @@
...
@@ -137,8 +139,6 @@
this
.
btnTempClose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTempClose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTempInit
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTempInit
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
axisMoveControl1
=
new
OnlineStore
.
ACPackingStore
.
AxisMoveControl
();
this
.
axisMoveControl1
=
new
OnlineStore
.
ACPackingStore
.
AxisMoveControl
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtCom7_P3_P2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
groupShelf
.
SuspendLayout
();
this
.
groupShelf
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabControl1
.
SuspendLayout
();
...
@@ -611,6 +611,35 @@
...
@@ -611,6 +611,35 @@
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"压紧轴位置配置"
;
this
.
groupBox1
.
Text
=
"压紧轴位置配置"
;
//
//
// label5
//
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
label5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label5
.
ForeColor
=
System
.
Drawing
.
Color
.
Purple
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
141
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
193
,
17
);
this
.
label5
.
TabIndex
=
265
;
this
.
label5
.
Text
=
"七寸盘_压紧前点P3-压紧点P2差值:"
;
this
.
label5
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// txtCom7_P3_P2
//
this
.
txtCom7_P3_P2
.
AcceptsReturn
=
true
;
this
.
txtCom7_P3_P2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtCom7_P3_P2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtCom7_P3_P2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtCom7_P3_P2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtCom7_P3_P2
.
Location
=
new
System
.
Drawing
.
Point
(
201
,
138
);
this
.
txtCom7_P3_P2
.
MaxLength
=
0
;
this
.
txtCom7_P3_P2
.
Name
=
"txtCom7_P3_P2"
;
this
.
txtCom7_P3_P2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtCom7_P3_P2
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
23
);
this
.
txtCom7_P3_P2
.
TabIndex
=
264
;
this
.
txtCom7_P3_P2
.
Text
=
"999"
;
//
// label2
// label2
//
//
this
.
label2
.
AutoSize
=
true
;
this
.
label2
.
AutoSize
=
true
;
...
@@ -1520,7 +1549,7 @@
...
@@ -1520,7 +1549,7 @@
//
//
this
.
lblMoveInfo
.
AutoSize
=
true
;
this
.
lblMoveInfo
.
AutoSize
=
true
;
this
.
lblMoveInfo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblMoveInfo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblMoveInfo
.
Location
=
new
System
.
Drawing
.
Point
(
9
75
,
12
);
this
.
lblMoveInfo
.
Location
=
new
System
.
Drawing
.
Point
(
9
65
,
13
);
this
.
lblMoveInfo
.
Name
=
"lblMoveInfo"
;
this
.
lblMoveInfo
.
Name
=
"lblMoveInfo"
;
this
.
lblMoveInfo
.
Size
=
new
System
.
Drawing
.
Size
(
56
,
17
);
this
.
lblMoveInfo
.
Size
=
new
System
.
Drawing
.
Size
(
56
,
17
);
this
.
lblMoveInfo
.
TabIndex
=
269
;
this
.
lblMoveInfo
.
TabIndex
=
269
;
...
@@ -1557,7 +1586,7 @@
...
@@ -1557,7 +1586,7 @@
this
.
lblWarnMsg
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lblWarnMsg
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lblWarnMsg
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
38
);
this
.
lblWarnMsg
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
38
);
this
.
lblWarnMsg
.
Name
=
"lblWarnMsg"
;
this
.
lblWarnMsg
.
Name
=
"lblWarnMsg"
;
this
.
lblWarnMsg
.
Size
=
new
System
.
Drawing
.
Size
(
892
,
6
7
);
this
.
lblWarnMsg
.
Size
=
new
System
.
Drawing
.
Size
(
939
,
7
7
);
this
.
lblWarnMsg
.
TabIndex
=
224
;
this
.
lblWarnMsg
.
TabIndex
=
224
;
this
.
lblWarnMsg
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
this
.
lblWarnMsg
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
//
...
@@ -1811,35 +1840,6 @@
...
@@ -1811,35 +1840,6 @@
this
.
axisMoveControl1
.
Size
=
new
System
.
Drawing
.
Size
(
547
,
449
);
this
.
axisMoveControl1
.
Size
=
new
System
.
Drawing
.
Size
(
547
,
449
);
this
.
axisMoveControl1
.
TabIndex
=
0
;
this
.
axisMoveControl1
.
TabIndex
=
0
;
//
//
// label5
//
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
label5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label5
.
ForeColor
=
System
.
Drawing
.
Color
.
Purple
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
141
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
193
,
17
);
this
.
label5
.
TabIndex
=
265
;
this
.
label5
.
Text
=
"七寸盘_压紧前点P3-压紧点P2差值:"
;
this
.
label5
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// txtCom7_P3_P2
//
this
.
txtCom7_P3_P2
.
AcceptsReturn
=
true
;
this
.
txtCom7_P3_P2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtCom7_P3_P2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtCom7_P3_P2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtCom7_P3_P2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtCom7_P3_P2
.
Location
=
new
System
.
Drawing
.
Point
(
201
,
138
);
this
.
txtCom7_P3_P2
.
MaxLength
=
0
;
this
.
txtCom7_P3_P2
.
Name
=
"txtCom7_P3_P2"
;
this
.
txtCom7_P3_P2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtCom7_P3_P2
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
23
);
this
.
txtCom7_P3_P2
.
TabIndex
=
264
;
this
.
txtCom7_P3_P2
.
Text
=
"999"
;
//
// FrmBox
// FrmBox
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
96F
,
96F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
96F
,
96F
);
...
...
source/ACPackingStore/记录.txt
查看文件 @
13d111d
...
@@ -100,7 +100,19 @@ shelfLoc问题修改。
...
@@ -100,7 +100,19 @@ shelfLoc问题修改。
扫码修改
扫码修改
20200409修改
压紧轴压紧前点P3-压紧轴压紧点P2的差值,7寸盘和其他的分开配置。
BoxConfig_1.csv 和 BoxConfig_2.csv 需要增加一行配置:
PRO,压紧轴(轴4)七寸盘压紧前点相对压紧点的位置,CompAxis7_P3_P2_Value,-50000,,,,,,,
修改问题:
料架号不一致,送出料架时料架信息使用上次的。
出库时发现料架对不上,送出料架时发的mark应该用原来的
...
...
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean.cs
查看文件 @
13d111d
...
@@ -326,7 +326,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -326,7 +326,7 @@ namespace OnlineStore.DeviceLibrary
return
;
return
;
}
}
//复位和回原点要等轴3进出轴ORG亮了以后才能返回其他轴
//复位和回原点要等轴3进出轴ORG亮了以后才能返回其他轴
LogInfo
(
MoveInfo
.
MoveType
+
":
线体停止转动
, 压紧轴,旋转轴,上下轴开始 原点返回"
);
LogInfo
(
MoveInfo
.
MoveType
+
":
停止线体
, 压紧轴,旋转轴,上下轴开始 原点返回"
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BOX_H05_OtherAxisBack
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BOX_H05_OtherAxisBack
);
ACAxisHomeMove
(
Config
.
Comp_Axis
);
ACAxisHomeMove
(
Config
.
Comp_Axis
);
ACAxisHomeMove
(
Config
.
Middle_Axis
);
ACAxisHomeMove
(
Config
.
Middle_Axis
);
...
@@ -692,6 +692,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -692,6 +692,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
MoveType
.
Equals
(
StoreMoveType
.
None
)
&&
MoveInfo
.
MoveType
.
Equals
(
StoreMoveType
.
None
)
&&
(
IOValue
(
IO_Type
.
LineIn_Check
).
Equals
(
IO_VALUE
.
HIGH
)
||
IOValue
(
IO_Type
.
LineTake_Check
).
Equals
(
IO_VALUE
.
HIGH
)))
(
IOValue
(
IO_Type
.
LineIn_Check
).
Equals
(
IO_VALUE
.
HIGH
)
||
IOValue
(
IO_Type
.
LineTake_Check
).
Equals
(
IO_VALUE
.
HIGH
)))
{
{
LogUtil
.
info
(
Name
+
"AutoShelfInstore=true ,检测到料架,开始料架入库"
);
StartShelfInStore
();
StartShelfInStore
();
}
}
//判断是否要更新状态为None 顶升下降时才需要needEnter
//判断是否要更新状态为None 顶升下降时才需要needEnter
...
@@ -774,7 +775,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -774,7 +775,7 @@ namespace OnlineStore.DeviceLibrary
bool
result
=
waitOutStoreList
.
TryDequeue
(
out
param
);
bool
result
=
waitOutStoreList
.
TryDequeue
(
out
param
);
if
(
result
&&
param
!=
null
)
if
(
result
&&
param
!=
null
)
{
{
LogInfo
(
"
开始执行排队中
的出库【"
+
param
.
ToStr
()
+
"】"
);
LogInfo
(
"
执行排队
的出库【"
+
param
.
ToStr
()
+
"】"
);
StartExecuctOut
(
param
);
StartExecuctOut
(
param
);
}
}
}
}
...
@@ -869,13 +870,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -869,13 +870,13 @@ namespace OnlineStore.DeviceLibrary
}
}
public
string
GetMoveStr
()
public
string
GetMoveStr
()
{
{
string
msg
=
""
;
string
msg
=
""
;
msg
+=
"
runS: "
+
storeRun
Status
+
"\n"
;
msg
+=
"
状态: "
+
storeRunStatus
+
" "
+
store
Status
+
"\n"
;
msg
+=
"lineS: "
+
storeStatus
+
"\n"
;
//
msg += "lineS: " + storeStatus + "\n";
msg
+=
"
alarm
: "
+
alarmType
+
"\n"
;
msg
+=
"
报警
: "
+
alarmType
+
"\n"
;
msg
+=
MoveInfo
.
MoveType
+
" "
+
MoveInfo
.
SLog
+
"\n"
;
msg
+=
MoveInfo
.
MoveType
+
" "
+
MoveInfo
.
SLog
+
"\n"
;
// msg += "MoveS: " + MoveInfo.SLog + "\n";
// msg += "MoveS: " + MoveInfo.SLog + "\n";
msg
+=
"
Shlef: "
+
CurrShelfID
+
"\n"
;
msg
+=
"
料架: "
+
CurrShelfID
+
" "
+
LastOutParam
.
rfid
+
"\n"
;
msg
+=
Config
.
AgvNodeName
+
":"
+
AgvClient
.
GetAction
(
Config
.
AgvNodeName
);
msg
+=
Config
.
AgvNodeName
+
":"
+
AgvClient
.
GetAction
(
Config
.
AgvNodeName
);
return
msg
;
return
msg
;
}
}
...
...
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Partial.cs
查看文件 @
13d111d
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Shelf.cs
查看文件 @
13d111d
...
@@ -27,12 +27,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -27,12 +27,12 @@ namespace OnlineStore.DeviceLibrary
private
void
ShelfEnterProcess
()
private
void
ShelfEnterProcess
()
{
{
string
mark
=
GetMarkInfo
();
string
mark
=
GetMarkInfo
();
string
moveName
=
"
料架入库
["
+
mark
+
"]"
;
string
moveName
=
"
入库料架
["
+
mark
+
"]"
;
bool
instoreShelf
=
true
;
bool
instoreShelf
=
true
;
if
(
MoveInfo
.
MoveType
.
Equals
(
StoreMoveType
.
OutStore
))
if
(
MoveInfo
.
MoveType
.
Equals
(
StoreMoveType
.
OutStore
))
{
{
instoreShelf
=
false
;
instoreShelf
=
false
;
moveName
=
"
空料架进入["
+
mark
+
"]"
;
moveName
=
"
出库料架["
+
CurrShelfID
+
"]["
+
mark
+
"]"
;
}
}
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BI_00_ReadyShelf
))
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BI_00_ReadyShelf
))
{
{
...
@@ -104,26 +104,28 @@ namespace OnlineStore.DeviceLibrary
...
@@ -104,26 +104,28 @@ namespace OnlineStore.DeviceLibrary
{
{
LineStop
();
LineStop
();
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_08_LocationUp
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_08_LocationUp
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"
线体停止转动,定位装置上升,读取料架编号,设置状态为
None"
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"
停止线体,读取料架号,设置"
+
Config
.
AgvNodeName
+
"=
None"
);
AgvClient
.
SetStatus
(
Config
.
AgvNodeName
);
AgvClient
.
SetStatus
(
Config
.
AgvNodeName
);
// CylinderMove(MoveInfo, IO_Type.LocationCylinder_Down, IO_Type.LocationCylinder_Up);
// CylinderMove(MoveInfo, IO_Type.LocationCylinder_Down, IO_Type.LocationCylinder_Up);
if
(!
instoreShelf
)
if
(!
instoreShelf
)
{
{
LastRfidID
=
MoveInfo
.
MoveParam
.
rfid
;
// LastRfidID = MoveInfo.MoveParam.rfid;
LastOutParam
=
MoveInfo
.
MoveParam
;
InOutStoreLog
(
"出库 "
+
MoveInfo
.
SLog
+
":叉子进入库位中, 进出轴至P3(库位取放料点) "
);
InOutStoreLog
(
"出库 "
+
MoveInfo
.
SLog
+
":叉子进入库位中, 进出轴至P3(库位取放料点) "
);
ACAxisMove
(
Config
.
InOut_Axis
,
MoveInfo
.
MoveParam
.
MoveP
.
InOut_P3
,
Config
.
InOutAxis_P3_Speed
);
ACAxisMove
(
Config
.
InOut_Axis
,
MoveInfo
.
MoveParam
.
MoveP
.
InOut_P3
,
Config
.
InOutAxis_P3_Speed
);
}
}
else
else
{
{
LastRfidID
=
""
;
LastOutParam
=
new
InOutParam
();
// LastRfidID = "";
}
}
UpdateShelfId
();
UpdateShelfId
();
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BI_08_LocationUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BI_08_LocationUp
))
{
{
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_09_TopCylinderUp
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_09_TopCylinderUp
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"
顶升装置
上升"
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"
"
+
CurrShelfID
+
"顶升
上升"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_Up
);
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_Up
);
if
(!
instoreShelf
)
if
(!
instoreShelf
)
...
@@ -142,7 +144,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -142,7 +144,7 @@ namespace OnlineStore.DeviceLibrary
}
}
else
else
{
{
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
SO_06_
BagDevice
Back
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
SO_06_
Inout
Back
);
InOutStoreLog
(
"出库 "
+
MoveInfo
.
SLog
+
":叉子从库位返回,进出轴至P1(待机点) "
);
InOutStoreLog
(
"出库 "
+
MoveInfo
.
SLog
+
":叉子从库位返回,进出轴至P1(待机点) "
);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed);
InOutBackToP1
(
MoveInfo
.
MoveParam
.
MoveP
.
InOut_P1
);
InOutBackToP1
(
MoveInfo
.
MoveParam
.
MoveP
.
InOut_P1
);
...
@@ -161,12 +163,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -161,12 +163,12 @@ namespace OnlineStore.DeviceLibrary
if
(
MoveInfo
.
MoveType
.
Equals
(
StoreMoveType
.
OutStore
))
if
(
MoveInfo
.
MoveType
.
Equals
(
StoreMoveType
.
OutStore
))
{
{
string
mark
=
GetMarkInfo
();
string
mark
=
GetMarkInfo
();
InOutStoreLog
(
"送出
出库料架:顶升气缸
下降,调用 NeedLeave["
+
mark
+
"]["
+
CurrShelfID
+
"] "
);
InOutStoreLog
(
"送出
["
+
CurrShelfID
+
"]["
+
mark
+
"]:顶升
下降,调用 NeedLeave["
+
mark
+
"]["
+
CurrShelfID
+
"] "
);
AgvClient
.
NeedLeave
(
Config
.
AgvNodeName
,
mark
,
CurrShelfID
);
AgvClient
.
NeedLeave
(
Config
.
AgvNodeName
,
mark
,
CurrShelfID
);
}
}
else
else
{
{
InOutStoreLog
(
"送出空料架
:顶升气缸下降,调用 NeedLeave[0]["
+
CurrShelfID
+
"],清空料架
clearPutInRfid["
+
CurrShelfID
+
"]"
);
InOutStoreLog
(
"送出空料架
["
+
CurrShelfID
+
"]:顶升下降,调用 NeedLeave[0]["
+
CurrShelfID
+
"],
clearPutInRfid["
+
CurrShelfID
+
"]"
);
AgvClient
.
NeedLeave
(
Config
.
AgvNodeName
,
"0"
,
CurrShelfID
);
AgvClient
.
NeedLeave
(
Config
.
AgvNodeName
,
"0"
,
CurrShelfID
);
StoreManager
.
clearPutInRfid
(
Name
,
CurrShelfID
);
StoreManager
.
clearPutInRfid
(
Name
,
CurrShelfID
);
}
}
...
@@ -215,7 +217,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -215,7 +217,7 @@ namespace OnlineStore.DeviceLibrary
if
(
process
.
ProcessName
.
EndsWith
(
"ACPackingStore"
))
if
(
process
.
ProcessName
.
EndsWith
(
"ACPackingStore"
))
{
{
sbResult
.
AppendFormat
(
DateTime
.
Now
.
ToLongTimeString
()
+
Name
+
", 名称:{0} 内存
大小
:{1}M "
,
process
.
ProcessName
,
process
.
PrivateMemorySize64
/
1024
/
1024F
);
sbResult
.
AppendFormat
(
DateTime
.
Now
.
ToLongTimeString
()
+
Name
+
", 名称:{0} 内存:{1}M "
,
process
.
ProcessName
,
process
.
PrivateMemorySize64
/
1024
/
1024F
);
totalMemery
+=
process
.
PrivateMemorySize64
/
1024
;
totalMemery
+=
process
.
PrivateMemorySize64
/
1024
;
double
value
=
(
process
.
TotalProcessorTime
-
prevCpuTime
).
TotalMilliseconds
/
interval
/
Environment
.
ProcessorCount
;
double
value
=
(
process
.
TotalProcessorTime
-
prevCpuTime
).
TotalMilliseconds
/
interval
/
Environment
.
ProcessorCount
;
sbResult
.
AppendFormat
(
" CPU : "
+
Math
.
Round
(
value
,
2
)
+
"%"
);
sbResult
.
AppendFormat
(
" CPU : "
+
Math
.
Round
(
value
,
2
)
+
"%"
);
...
@@ -232,11 +234,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -232,11 +234,11 @@ namespace OnlineStore.DeviceLibrary
private
void
ShelfOutProcess
()
private
void
ShelfOutProcess
()
{
{
string
mark
=
GetMarkInfo
();
string
mark
=
GetMarkInfo
();
string
moveName
=
"送出空料架["
+
mark
+
"]"
;
string
moveName
=
"送出空料架["
+
CurrShelfID
+
"]"
;
if
(
MoveInfo
.
MoveType
.
Equals
(
StoreMoveType
.
OutStore
))
if
(
MoveInfo
.
MoveType
.
Equals
(
StoreMoveType
.
OutStore
))
{
{
moveName
=
"送出
出库料架
["
+
mark
+
"]"
;
moveName
=
"送出
["
+
CurrShelfID
+
"]
["
+
mark
+
"]"
;
}
}
// LogCPU();
// LogCPU();
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BS_01_TopDown
))
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BS_01_TopDown
))
...
@@ -309,14 +311,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -309,14 +311,14 @@ namespace OnlineStore.DeviceLibrary
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.LineIn_Check, IO_VALUE.HIGH));
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.LineIn_Check, IO_VALUE.HIGH));
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BS_07_WaitShelfOut
))
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BS_07_WaitShelfOut
))
{
{
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BS_08_Wait
InLineSingle
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BS_08_Wait
LineIn
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
":等待 入料口有信号,最多等待30秒"
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
":等待 入料口有信号,最多等待30秒"
);
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.LineTake_Check, IO_VALUE.LOW));
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.LineTake_Check, IO_VALUE.LOW));
MoveInfo
.
OneWaitCanEndStep
=
true
;
MoveInfo
.
OneWaitCanEndStep
=
true
;
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
30000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
30000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LineIn_Check
,
IO_VALUE
.
HIGH
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LineIn_Check
,
IO_VALUE
.
HIGH
));
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BS_08_Wait
InLineSingle
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BS_08_Wait
LineIn
))
{
{
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BS_09_WaitTime
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BS_09_WaitTime
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
":再转动1000 , 等待入料口无信号"
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
":再转动1000 , 等待入料口无信号"
);
...
@@ -348,9 +350,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -348,9 +350,10 @@ namespace OnlineStore.DeviceLibrary
//结束
//结束
MoveEndToRuningStatus
();
MoveEndToRuningStatus
();
//EmprtShelfList = new ConcurrentQueue<string>();
//EmprtShelfList = new ConcurrentQueue<string>();
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
":
停止转动,送出料架结束 ,设置状态为None,清空当前料架:"
+
CurrShelfID
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
":
料架"
+
CurrShelfID
+
"已离开 ,"
+
Config
.
AgvNodeName
+
"=None"
);
CurrShelfID
=
""
;
CurrShelfID
=
""
;
LastRfidID
=
""
;
LastOutParam
=
new
InOutParam
();
//LastRfidID = "";
AgvClient
.
SetStatus
(
Config
.
AgvNodeName
);
AgvClient
.
SetStatus
(
Config
.
AgvNodeName
);
}
}
}
}
...
@@ -377,13 +380,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -377,13 +380,14 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
MoveType
.
Equals
(
StoreMoveType
.
None
)
&&
MoveInfo
.
MoveType
.
Equals
(
StoreMoveType
.
None
)
&&
IOValue
(
IO_Type
.
LineTake_Check
).
Equals
(
IO_VALUE
.
LOW
))
IOValue
(
IO_Type
.
LineTake_Check
).
Equals
(
IO_VALUE
.
LOW
))
{
{
LogUtil
.
info
(
Name
+
logN
+
" ,检测到料架,开始料架入库"
);
StartShelfInStore
();
StartShelfInStore
();
return
true
;
return
true
;
}
}
}
}
else
else
{
{
LogUtil
.
info
(
n
ame
+
logN
+
" ,未找到相关处理"
);
LogUtil
.
info
(
N
ame
+
logN
+
" ,未找到相关处理"
);
}
}
return
false
;
return
false
;
...
@@ -714,7 +718,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -714,7 +718,7 @@ namespace OnlineStore.DeviceLibrary
return
false
;
return
false
;
}
}
LogInfo
(
" 收到服务器入库命令:库位号【"
+
posId
+
"】二维码【"
+
message
+
"】设置入库参数 , 开始入库!"
);
LogInfo
(
" 收到服务器入库命令:库位号【"
+
posId
+
"】二维码【"
+
message
+
"】设置入库参数 , 开始入库!"
);
int
p3
=
ComTargetPosition
+
Config
.
CompAxis_P3_P2_Value
;
int
p3
=
ComTargetPosition
+
Config
.
GetCom_P3_P2
(
plateW
)
;
MoveInfo
.
MoveParam
.
UpdatePosId
(
message
,
posId
,
plateW
,
plateH
,
ComTargetPosition
,
p3
);
MoveInfo
.
MoveParam
.
UpdatePosId
(
message
,
posId
,
plateW
,
plateH
,
ComTargetPosition
,
p3
);
return
true
;
return
true
;
}
}
...
...
source/DeviceLibrary/store/InOutParam.cs
查看文件 @
13d111d
...
@@ -16,12 +16,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -16,12 +16,12 @@ namespace OnlineStore.DeviceLibrary
public
class
InOutParam
public
class
InOutParam
{
{
public
static
readonly
ILog
log
=
LogManager
.
GetLogger
(
MethodBase
.
GetCurrentMethod
().
DeclaringType
);
public
static
readonly
ILog
log
=
LogManager
.
GetLogger
(
MethodBase
.
GetCurrentMethod
().
DeclaringType
);
public
InOutParam
()
//
public InOutParam()
{
//
{
this
.
WareCode
=
""
;
//
this.WareCode = "";
MoveP
=
null
;
//
MoveP = null;
}
//
}
public
InOutParam
(
string
wareNo
,
string
posId
,
string
ShelfPosID
,
string
platew
=
""
,
string
plateh
=
""
,
bool
urgentReel
=
false
,
bool
cutReel
=
false
,
bool
smallReel
=
false
,
string
rfid
=
""
,
int
rfidLoc
=
0
,
int
taskCount
=
0
,
string
realRfid
=
""
)
public
InOutParam
(
string
wareNo
=
""
,
string
posId
=
""
,
string
ShelfPosID
=
""
,
string
platew
=
""
,
string
plateh
=
""
,
bool
urgentReel
=
false
,
bool
cutReel
=
false
,
bool
smallReel
=
false
,
string
rfid
=
""
,
int
rfidLoc
=
0
,
int
taskCount
=
0
,
string
realRfid
=
""
)
{
{
this
.
ShelfPosID
=
ShelfPosID
;
this
.
ShelfPosID
=
ShelfPosID
;
WareCode
=
wareNo
;
WareCode
=
wareNo
;
...
...
source/DeviceLibrary/store/KTK_Store.cs
查看文件 @
13d111d
...
@@ -482,9 +482,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -482,9 +482,9 @@ namespace OnlineStore.DeviceLibrary
}
}
protected
void
InOutStoreLog
(
string
msg
)
protected
void
InOutStoreLog
(
string
msg
)
{
{
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosID
:
""
;
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
"["
+
MoveInfo
.
MoveParam
.
PosID
+
"]"
:
""
;
string
shelfId
=
MoveInfo
.
MoveParam
!=
null
?
"
"
+
MoveInfo
.
MoveParam
.
ShelfPosID
:
"_
"
;
string
shelfId
=
MoveInfo
.
MoveParam
!=
null
?
"
["
+
MoveInfo
.
MoveParam
.
ShelfPosID
+
"]"
:
"
"
;
LogInfo
(
"
["
+
posId
+
"] ["
+
shelfId
+
"]
:"
+
msg
);
LogInfo
(
"
"
+
posId
+
""
+
shelfId
+
"
:"
+
msg
);
}
}
protected
int
GetAlarmCodeByAxis
(
ConfigMoveAxis
axis
)
protected
int
GetAlarmCodeByAxis
(
ConfigMoveAxis
axis
)
{
{
...
...
source/DeviceLibrary/store/StoreStep.cs
查看文件 @
13d111d
...
@@ -213,31 +213,31 @@ namespace OnlineStore.DeviceLibrary
...
@@ -213,31 +213,31 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
///料仓出库:叉子先运动到P1
///料仓出库:叉子先运动到P1
/// </summary>
/// </summary>
SO_01_
Device
Back
=
2002
,
SO_01_
Inout
Back
=
2002
,
/// <summary>
/// <summary>
///料仓出库,,顶升气缸下降,先检测料架
///料仓出库,,顶升气缸下降,先检测料架
/// </summary>
/// </summary>
SO_02_Top
Cylinder
Down
=
2001
,
SO_02_TopDown
=
2001
,
/// <summary>
/// <summary>
/// 料仓出库,,所有轴运行到库位,压紧轴到压紧前点P3 ,旋转轴到库位点P2,轴2(上下) 至P5(库位出库前点)
/// 料仓出库,,所有轴运行到库位,压紧轴到压紧前点P3 ,旋转轴到库位点P2,轴2(上下) 至P5(库位出库前点)
/// </summary>
/// </summary>
SO_03_To
Bag
Position
=
2003
,
SO_03_ToPosition
=
2003
,
/// <summary>
/// <summary>
/// 料仓出库,,叉子进入库位中, 进出轴到库位P3
/// 料仓出库,,叉子进入库位中, 进出轴到库位P3
/// </summary>
/// </summary>
SO_04_
DeviceToBag
=
2004
,
SO_04_
ToPos
=
2004
,
/// <summary>
/// <summary>
///料仓出库,, 库位的物品放入叉子上,轴2( 上下) 至P6( 库位出料缓冲点),轴4( 压紧) 至P2(压紧点)
///料仓出库,, 库位的物品放入叉子上,轴2( 上下) 至P6( 库位出料缓冲点),轴4( 压紧) 至P2(压紧点)
/// </summary>
/// </summary>
SO_05_
BagWareToDevice
=
2005
,
SO_05_
GetReel
=
2005
,
/// <summary>
/// <summary>
///料仓出库,,叉子从 库位返回,轴3( 叉子) 至P1( 待机点)
///料仓出库,,叉子从 库位返回,轴3( 叉子) 至P1( 待机点)
/// </summary>
/// </summary>
SO_06_
BagDevice
Back
=
2006
,
SO_06_
Inout
Back
=
2006
,
/// <summary>
/// <summary>
/// 料仓出库,定位气缸伸出(有压紧轴的不需要此步骤 )
/// 料仓出库,定位气缸伸出(有压紧轴的不需要此步骤 )
...
@@ -261,15 +261,15 @@ namespace OnlineStore.DeviceLibrary
...
@@ -261,15 +261,15 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
/// 料仓出库,叉子到料架,进出轴至P20
/// 料仓出库,叉子到料架,进出轴至P20
/// /// </summary>
/// /// </summary>
SO_11_
Device
ToShelf
=
2011
,
SO_11_ToShelf
=
2011
,
/// <summary>
/// <summary>
/// 料仓出库,,把物品放下,压紧轴到P1,升降轴至P20
/// 料仓出库,,把物品放下,压紧轴到P1,升降轴至P20
/// </summary>
/// </summary>
SO_12_
DevicePutWare
=
2012
,
SO_12_
PutReel
=
2012
,
/// <summary>
/// <summary>
/// 料仓出库,,叉子从出料口返回,,进出轴到P1
/// 料仓出库,,叉子从出料口返回,,进出轴到P1
/// </summary>
/// </summary>
SO_13_
DeviceOutFromDoor
=
2013
,
SO_13_
InoutBack
=
2013
,
/// <summary>
/// <summary>
/// 料仓出库,,升降轴返回,, 轴2至P1( 待机点),顶升气缸下降
/// 料仓出库,,升降轴返回,, 轴2至P1( 待机点),顶升气缸下降
...
@@ -449,7 +449,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -449,7 +449,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
/// 送出空料架:等待取料工位无信号,入料口有信号
/// 送出空料架:等待取料工位无信号,入料口有信号
/// </summary>
/// </summary>
BS_08_Wait
InLineSingle
=
4008
,
BS_08_Wait
LineIn
=
4008
,
/// <summary>
/// <summary>
/// 送出空料架:再转动3000时间
/// 送出空料架:再转动3000时间
/// </summary>
/// </summary>
...
...
source/DeviceLibrary/store/model/StoreMoveInfo.cs
查看文件 @
13d111d
...
@@ -327,10 +327,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -327,10 +327,10 @@ namespace OnlineStore.DeviceLibrary
return
"扫码完成"
;
return
"扫码完成"
;
}
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W010_AgvStatus
))
}
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W010_AgvStatus
))
{
{
return
"
Agv状态:"
+
(
ClientAction
)
AgvAction
;
return
"
Agv_"
+
(
ClientAction
)
AgvAction
+
" "
;
}
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W011_DoorCloseEvent
))
}
else
if
(
WaitType
.
Equals
(
WaitEnum
.
W011_DoorCloseEvent
))
{
{
return
"Agv
状态:DoorClose
"
;
return
"Agv
_DoorClose事件
"
;
}
}
else
else
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论