Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-ACPackingStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 1cbba93f
由
LN
编写于
2019-11-08 17:23:13 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修改配置
1 个父辈
11e2c782
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
198 行增加
和
162 行删除
source/ACPackingStore/FrmBox.cs
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/ACPackingStore/StoreManager.cs
source/DeviceLibrary/StoreConfig/BoxConfig_1.csv
source/DeviceLibrary/StoreConfig/BoxConfig_2.csv
source/DeviceLibrary/store/InOutParam.cs
source/DeviceLibrary/store/StoreStep.cs
source/DeviceLibrary/store/model/StoreMoveInfo.cs
source/LoadCVSLibrary/storeConfig/config/AC_Box_Config.cs
source/LoadCVSLibrary/storeConfig/config/Store_Config.cs
source/ACPackingStore/FrmBox.cs
查看文件 @
1cbba93
...
@@ -80,7 +80,7 @@ namespace OnlineStore.ACPackingStore
...
@@ -80,7 +80,7 @@ namespace OnlineStore.ACPackingStore
txtMiddleP1
.
Text
=
BoxBean
.
Config
.
MiddleAxis_P1_Position
.
ToString
();
txtMiddleP1
.
Text
=
BoxBean
.
Config
.
MiddleAxis_P1_Position
.
ToString
();
txtUpDownP1
.
Text
=
BoxBean
.
Config
.
UpDownAxis_DoorOPosition_P1
.
ToString
();
txtUpDownP1
.
Text
=
BoxBean
.
Config
.
UpDownAxis_DoorOPosition_P1
.
ToString
();
txtInOutP1
.
Text
=
BoxBean
.
Config
.
InOutAxis_P1_Position
.
ToString
();
txtInOutP1
.
Text
=
BoxBean
.
Config
.
InOutAxis_P1_Position
.
ToString
();
txtComP1
.
Text
=
BoxBean
.
Config
.
Comp
ress
Axis_P1_Position
.
ToString
();
txtComP1
.
Text
=
BoxBean
.
Config
.
CompAxis_P1_Position
.
ToString
();
txtUpDownP2
.
Text
=
BoxBean
.
Config
.
UpDownAxis_DoorIPosition_P2
.
ToString
();
txtUpDownP2
.
Text
=
BoxBean
.
Config
.
UpDownAxis_DoorIPosition_P2
.
ToString
();
txtUpDownP7
.
Text
=
BoxBean
.
Config
.
UpDownAxis_DoorOBPosition_P7
.
ToString
();
txtUpDownP7
.
Text
=
BoxBean
.
Config
.
UpDownAxis_DoorOBPosition_P7
.
ToString
();
...
@@ -613,9 +613,9 @@ namespace OnlineStore.ACPackingStore
...
@@ -613,9 +613,9 @@ namespace OnlineStore.ACPackingStore
needUpdate
=
true
;
needUpdate
=
true
;
}
}
if
(
BoxBean
.
Config
.
Comp
ress
Axis_P1_Position
!=
FormUtil
.
GetIntValue
(
txtComP1
))
if
(
BoxBean
.
Config
.
CompAxis_P1_Position
!=
FormUtil
.
GetIntValue
(
txtComP1
))
{
{
BoxBean
.
Config
.
Comp
ress
Axis_P1_Position
=
FormUtil
.
GetIntValue
(
txtComP1
);
BoxBean
.
Config
.
CompAxis_P1_Position
=
FormUtil
.
GetIntValue
(
txtComP1
);
needUpdate
=
true
;
needUpdate
=
true
;
}
}
if
(
BoxBean
.
Config
.
UpDownAxis_DoorIPosition_P2
!=
FormUtil
.
GetIntValue
(
txtUpDownP2
))
if
(
BoxBean
.
Config
.
UpDownAxis_DoorIPosition_P2
!=
FormUtil
.
GetIntValue
(
txtUpDownP2
))
...
...
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean.cs
查看文件 @
1cbba93
...
@@ -296,7 +296,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -296,7 +296,7 @@ namespace OnlineStore.DeviceLibrary
LogInfo
(
MoveInfo
.
MoveType
+
": 旋转轴运动到P1,上下轴走到P1,压紧轴到P1!"
);
LogInfo
(
MoveInfo
.
MoveType
+
": 旋转轴运动到P1,上下轴走到P1,压紧轴到P1!"
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorOPosition_P1
,
Config
.
UpDownAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorOPosition_P1
,
Config
.
UpDownAxis_P1_Speed
);
ComMoveToPosition
(
Config
.
Comp
ress
Axis_P1_Position
,
Config
.
CompAxis_P1_Speed
);
ComMoveToPosition
(
Config
.
CompAxis_P1_Position
,
Config
.
CompAxis_P1_Speed
);
break
;
break
;
case
StoreMoveStep
.
BOX_H_MiddleAxisToP1
:
case
StoreMoveStep
.
BOX_H_MiddleAxisToP1
:
...
@@ -322,7 +322,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -322,7 +322,7 @@ namespace OnlineStore.DeviceLibrary
LogInfo
(
MoveInfo
.
MoveType
+
": 旋转轴运动到P1,上下轴走到P1,压紧轴到P1!"
);
LogInfo
(
MoveInfo
.
MoveType
+
": 旋转轴运动到P1,上下轴走到P1,压紧轴到P1!"
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorOPosition_P1
,
Config
.
UpDownAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorOPosition_P1
,
Config
.
UpDownAxis_P1_Speed
);
ComMoveToPosition
(
Config
.
Comp
ress
Axis_P1_Position
,
Config
.
CompAxis_P1_Speed
);
ComMoveToPosition
(
Config
.
CompAxis_P1_Position
,
Config
.
CompAxis_P1_Speed
);
break
;
break
;
case
StoreMoveStep
.
BOX_M_H_TOP1_OtherAxisToP1
:
case
StoreMoveStep
.
BOX_M_H_TOP1_OtherAxisToP1
:
LogInfo
(
"到待机状态完成"
);
LogInfo
(
"到待机状态完成"
);
...
...
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Partial.cs
查看文件 @
1cbba93
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Shelf.cs
查看文件 @
1cbba93
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/ACPackingStore/StoreManager.cs
查看文件 @
1cbba93
...
@@ -182,7 +182,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -182,7 +182,7 @@ namespace OnlineStore.DeviceLibrary
p
.
UpDown_HPA2
=
sp
.
UpDownAxis_HPA2
;
p
.
UpDown_HPA2
=
sp
.
UpDownAxis_HPA2
;
p
.
Middle_PA
=
sp
.
MiddleAxis_PA
;
p
.
Middle_PA
=
sp
.
MiddleAxis_PA
;
p
.
ComPress_P1
=
box
.
Config
.
Comp
ress
Axis_P1_Position
;
p
.
ComPress_P1
=
box
.
Config
.
CompAxis_P1_Position
;
p
.
InOut_P1
=
box
.
Config
.
InOutAxis_P1_Position
;
p
.
InOut_P1
=
box
.
Config
.
InOutAxis_P1_Position
;
p
.
Middle_P1
=
box
.
Config
.
MiddleAxis_P1_Position
;
p
.
Middle_P1
=
box
.
Config
.
MiddleAxis_P1_Position
;
...
...
source/DeviceLibrary/StoreConfig/BoxConfig_1.csv
查看文件 @
1cbba93
...
@@ -48,7 +48,8 @@ PRO,升降轴 进料口取料缓冲点 P7,UpDownAxis_DoorOBPosition_P7,415000,,,,,,,
...
@@ -48,7 +48,8 @@ PRO,升降轴 进料口取料缓冲点 P7,UpDownAxis_DoorOBPosition_P7,415000,,,,,,,
PRO,升降轴 进料口出料缓冲点 P8,UpDownAxis_DoorIBPosition_P8,403000,,,,,,,
PRO,升降轴 进料口出料缓冲点 P8,UpDownAxis_DoorIBPosition_P8,403000,,,,,,,
PRO,旋转轴(轴1)P1 待机原位点,MiddleAxis_P1_Position,268093,,,,,,,
PRO,旋转轴(轴1)P1 待机原位点,MiddleAxis_P1_Position,268093,,,,,,,
PRO,进出轴(轴3)P1待机原位点,InOutAxis_P1_Position,1000,,,,,,,
PRO,进出轴(轴3)P1待机原位点,InOutAxis_P1_Position,1000,,,,,,,
PRO,压紧轴(轴4)P1待机原位点,CompressAxis_P1_Position,10000,,,,,,,
PRO,压紧轴(轴4)P1待机原位点,CompAxis_P1_Position,10000,,,,,,,
PRO,压紧轴(轴4)P3压紧前点,CompAxis_P3_Position,10000,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
PRO,(轴一)旋转轴目标速度,MiddleAxis_TargetSpeed,250,,,,,,,
PRO,(轴一)旋转轴目标速度,MiddleAxis_TargetSpeed,250,,,,,,,
PRO,(轴一)旋转轴加速度,MiddleAxis_AddSpeed,80,,,,,,,
PRO,(轴一)旋转轴加速度,MiddleAxis_AddSpeed,80,,,,,,,
...
@@ -91,6 +92,13 @@ PRO,进出轴(轴3)P3速度,InOutAxis_P3_Speed,1000,,,,,,,
...
@@ -91,6 +92,13 @@ PRO,进出轴(轴3)P3速度,InOutAxis_P3_Speed,1000,,,,,,,
PRO,压紧轴(轴4)P1速度,CompAxis_P1_Speed,100,,,,,,,
PRO,压紧轴(轴4)P1速度,CompAxis_P1_Speed,100,,,,,,,
PRO,压紧轴(轴4)P2速度,CompAxis_P2_Speed,100,,,,,,,
PRO,压紧轴(轴4)P2速度,CompAxis_P2_Speed,100,,,,,,,
PRO,压紧轴(轴4)P3速度,CompAxis_P3_Speed,100,,,,,,,
PRO,压紧轴(轴4)P3速度,CompAxis_P3_Speed,100,,,,,,,
,,,,,,,,,,
PRO,升降轴(轴2)PA1速度,UpDownAxis_PA1_Speed,100,,,,,, ,
PRO,升降轴(轴2)PA2速度,UpDownAxis_PA2_Speed,100,,,,,,,
PRO,进出轴(轴3)PA速度,InOutAxis_PA_Speed,100,,,,,,,
PRO,旋转轴(轴1)PA速度,MiddleAxis_PA_Speed,120,,,,,,,
PRO,压紧轴(轴4)缓慢压紧速度,CompAxis_Com_Speed,100,,,,,,,
,,,,,,,,,,
PRO,(轴一)旋转轴停止时可误差的脉冲数的最小值,MiddleAxis_ErrorCountMin,10,,,,,,,
PRO,(轴一)旋转轴停止时可误差的脉冲数的最小值,MiddleAxis_ErrorCountMin,10,,,,,,,
PRO,(轴二)升降轴轴停止时可误差的脉冲数的最小值,UpdownAxis_ErrorCountMin,10,,,,,, ,
PRO,(轴二)升降轴轴停止时可误差的脉冲数的最小值,UpdownAxis_ErrorCountMin,10,,,,,, ,
PRO,(轴三)进出轴停止时可误差的脉冲数的最小值,InoutAxis_ErrorCountMin,10,,,,,,,
PRO,(轴三)进出轴停止时可误差的脉冲数的最小值,InoutAxis_ErrorCountMin,10,,,,,,,
...
...
source/DeviceLibrary/StoreConfig/BoxConfig_2.csv
查看文件 @
1cbba93
...
@@ -48,7 +48,8 @@ PRO,升降轴 进料口取料缓冲点 P7,UpDownAxis_DoorOBPosition_P7,415000,,,,,,,
...
@@ -48,7 +48,8 @@ PRO,升降轴 进料口取料缓冲点 P7,UpDownAxis_DoorOBPosition_P7,415000,,,,,,,
PRO,升降轴 进料口出料缓冲点 P8,UpDownAxis_DoorIBPosition_P8,403000,,,,,,,
PRO,升降轴 进料口出料缓冲点 P8,UpDownAxis_DoorIBPosition_P8,403000,,,,,,,
PRO,旋转轴(轴1)P1 待机原位点,MiddleAxis_P1_Position,268093,,,,,,,
PRO,旋转轴(轴1)P1 待机原位点,MiddleAxis_P1_Position,268093,,,,,,,
PRO,进出轴(轴3)P1待机原位点,InOutAxis_P1_Position,1000,,,,,,,
PRO,进出轴(轴3)P1待机原位点,InOutAxis_P1_Position,1000,,,,,,,
PRO,压紧轴(轴4)P1待机原位点,CompressAxis_P1_Position,10000,,,,,,,
PRO,压紧轴(轴4)P1待机原位点,CompAxis_P1_Position,10000,,,,,,,
PRO,压紧轴(轴4)P3压紧前点,CompAxis_P3_Position,10000,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
PRO,(轴一)旋转轴目标速度,MiddleAxis_TargetSpeed,250,,,,,,,
PRO,(轴一)旋转轴目标速度,MiddleAxis_TargetSpeed,250,,,,,,,
PRO,(轴一)旋转轴加速度,MiddleAxis_AddSpeed,80,,,,,,,
PRO,(轴一)旋转轴加速度,MiddleAxis_AddSpeed,80,,,,,,,
...
@@ -91,6 +92,13 @@ PRO,进出轴(轴3)P3速度,InOutAxis_P3_Speed,1000,,,,,,,
...
@@ -91,6 +92,13 @@ PRO,进出轴(轴3)P3速度,InOutAxis_P3_Speed,1000,,,,,,,
PRO,压紧轴(轴4)P1速度,CompAxis_P1_Speed,100,,,,,,,
PRO,压紧轴(轴4)P1速度,CompAxis_P1_Speed,100,,,,,,,
PRO,压紧轴(轴4)P2速度,CompAxis_P2_Speed,100,,,,,,,
PRO,压紧轴(轴4)P2速度,CompAxis_P2_Speed,100,,,,,,,
PRO,压紧轴(轴4)P3速度,CompAxis_P3_Speed,100,,,,,,,
PRO,压紧轴(轴4)P3速度,CompAxis_P3_Speed,100,,,,,,,
,,,,,,,,,,
PRO,升降轴(轴2)PA1速度,UpDownAxis_PA1_Speed,100,,,,,, ,
PRO,升降轴(轴2)PA2速度,UpDownAxis_PA2_Speed,100,,,,,,,
PRO,进出轴(轴3)PA速度,InOutAxis_PA_Speed,100,,,,,,,
PRO,旋转轴(轴1)PA速度,MiddleAxis_PA_Speed,120,,,,,,,
PRO,压紧轴(轴4)缓慢压紧速度,CompAxis_Com_Speed,100,,,,,,,
,,,,,,,,,,
PRO,(轴一)旋转轴停止时可误差的脉冲数的最小值,MiddleAxis_ErrorCountMin,10,,,,,,,
PRO,(轴一)旋转轴停止时可误差的脉冲数的最小值,MiddleAxis_ErrorCountMin,10,,,,,,,
PRO,(轴二)升降轴轴停止时可误差的脉冲数的最小值,UpdownAxis_ErrorCountMin,10,,,,,, ,
PRO,(轴二)升降轴轴停止时可误差的脉冲数的最小值,UpdownAxis_ErrorCountMin,10,,,,,, ,
PRO,(轴三)进出轴停止时可误差的脉冲数的最小值,InoutAxis_ErrorCountMin,10,,,,,,,
PRO,(轴三)进出轴停止时可误差的脉冲数的最小值,InoutAxis_ErrorCountMin,10,,,,,,,
...
...
source/DeviceLibrary/store/InOutParam.cs
查看文件 @
1cbba93
...
@@ -103,73 +103,22 @@ namespace OnlineStore.DeviceLibrary
...
@@ -103,73 +103,22 @@ namespace OnlineStore.DeviceLibrary
{
{
return
" ShelfPosID=["
+
ShelfPosID
+
"],WareCode=【"
+
WareCode
+
"】,PosID=【"
+
PosID
+
"】,PlateW=【"
+
PlateW
+
"】,PlateH=【"
+
PlateH
+
"】"
;
return
" ShelfPosID=["
+
ShelfPosID
+
"],WareCode=【"
+
WareCode
+
"】,PosID=【"
+
PosID
+
"】,PlateW=【"
+
PlateW
+
"】,PlateH=【"
+
PlateH
+
"】"
;
}
}
}
///// <summary>
// /// 夹具编码信息(保存夹具检测到的IO数值,和对应的料仓位置)
// /// </summary>
//public class FixtureCodeInfo
//{
// public FixtureCodeInfo(string wareNum, string posId)
// {
// this.WareNum = wareNum;
// this.PosId = posId;
// this.plateH = "";
// this.plateW = "";
// }
// public FixtureCodeInfo(string wareNum, string posId, string platew, string plateh)
// {
// this.WareNum = wareNum;
// this.PosId = posId;
// this.plateW = platew;
// this.plateH = plateh;
// }
// /// <summary>
// /// 物品二维码
// /// </summary>
// public string WareNum { get; set; }
// /// <summary>
// /// 库位号编码
// /// </summary>
// public string PosId { get; set; }
// /// <summary>
// /// 料盘宽
// /// </summary>
// public string plateW { get; set; }
// /// <summary>
// /// 料盘高
// /// </summary>
// public string plateH { get; set; }
internal
void
UpdateShelfPosId
(
string
pId
)
{
this
.
ShelfPosID
=
pId
;
ShelfPosition
sp
=
CSVPositionReader
<
ShelfPosition
>.
GetPositon
(
ShelfPosID
);
if
(
sp
==
null
)
{
LogUtil
.
error
(
"GetPositon["
+
ShelfPosID
+
"]=null,没有库位不能执行出入库"
);
}
// public string ToStr()
MoveP
.
InOut_PA
=
sp
.
InoutAxis_PA
;
// {
MoveP
.
UpDown_LPA1
=
sp
.
UpDownAxis_LPA1
;
// return " WareNum=【" + WareNum + "】,PosId=【" + PosId + "】,plateW=【" + plateW + "】,plateH=【" + plateH + "】";
MoveP
.
UpDown_HPA2
=
sp
.
UpDownAxis_HPA2
;
// }
MoveP
.
Middle_PA
=
sp
.
MiddleAxis_PA
;
// /// <summary>
// /// 根据PosId获取对应的料仓ID,若PosId=="",返回-1
// /// </summary>
// /// <returns></returns>
// public int GetStoreId()
// {
// if (!PosId.Equals(""))
// {
// string[] arr = PosId.Split('#');
// if (arr.Length >= 2)
// {
// try
// {
// return int.Parse(arr[0]);
// }
// catch (Exception ex)
// {
// }
}
// }
}
// }
// return -1;
// }
//}
}
}
source/DeviceLibrary/store/StoreStep.cs
查看文件 @
1cbba93
...
@@ -247,68 +247,68 @@ namespace OnlineStore.DeviceLibrary
...
@@ -247,68 +247,68 @@ namespace OnlineStore.DeviceLibrary
#
endregion
#
endregion
#
region
料仓内部入库步骤
20
1
00
#
region
料仓内部入库步骤
20
5
00
/// <summary>
/// <summary>
/// 入库检测
/// 入库检测
/// </summary>
/// </summary>
SI_00_TrayCheck
=
20
1
00
,
SI_00_TrayCheck
=
20
5
00
,
/// <summary>
/// <summary>
/// 入库,。定位气缸下降
/// 入库,。定位气缸下降
/// </summary>
/// </summary>
SI_01_LocationCylinderDown
=
20
1
01
,
SI_01_LocationCylinderDown
=
20
5
01
,
/// <summary>
/// <summary>
/// 入库。。进出轴(叉子)先返回P1
/// 入库。。进出轴(叉子)先返回P1
/// </summary>
/// </summary>
SI_02_InOutAxisHome
=
20
1
02
,
SI_02_InOutAxisHome
=
20
5
02
,
/// <summary>
/// <summary>
/// 入库。。所有轴先回到待机点,轴2、轴1 动作到P1,,轴4动作至P3
/// 入库。。所有轴先回到待机点,轴2、轴1 动作到P1,,轴4动作至P3
/// </summary>
/// </summary>
SI_03_ReturnHome
=
20
1
03
,
SI_03_ReturnHome
=
20
5
03
,
/// <summary>
/// <summary>
/// 入库。。压紧物品(有压紧轴的才需要此步骤),轴4( 压紧) 至P3(压紧前点)
/// 入库。。压紧物品(有压紧轴的才需要此步骤),轴4( 压紧) 至P3(压紧前点)
/// </summary>
/// </summary>
SI_04_CompressWare
=
20
1
04
,
SI_04_CompressWare
=
20
5
04
,
/// <summary>
/// <summary>
/// 入库。。叉子进入入料口,轴3( 叉子) 至P2( 进料口取料点)
/// 入库。。叉子进入入料口,轴3( 叉子) 至P2( 进料口取料点)
/// </summary>
/// </summary>
SI_05_DeviceToDoor
=
20
1
05
,
SI_05_DeviceToDoor
=
20
5
05
,
/// <summary>
/// <summary>
/// 入库。。把物品放入叉子上,轴2( 上下) 至P7( 进料口取料缓冲点),压紧物品(有压紧轴的才需要此步骤),轴4( 压紧) 至P2(压紧点)
/// 入库。。把物品放入叉子上,轴2( 上下) 至P7( 进料口取料缓冲点),压紧物品(有压紧轴的才需要此步骤),轴4( 压紧) 至P2(压紧点)
/// </summary>
/// </summary>
SI_06_DoorWarToDevice
=
20
1
06
,
SI_06_DoorWarToDevice
=
20
5
06
,
/// <summary>
/// <summary>
/// 入库。。叉子 从入料口抽出,轴3( 叉子) 至P1( 待机点)
/// 入库。。叉子 从入料口抽出,轴3( 叉子) 至P1( 待机点)
/// </summary>
/// </summary>
SI_07_DeviceBackFromDoor
=
20
1
07
,
SI_07_DeviceBackFromDoor
=
20
5
07
,
/// <summary>
/// <summary>
/// 入库。。,定位气缸伸出 (有压紧轴的不需要此步骤)
/// 入库。。,定位气缸伸出 (有压紧轴的不需要此步骤)
/// </summary>
/// </summary>
SI_08_LocationCylinder_Up
=
20
1
08
,
SI_08_LocationCylinder_Up
=
20
5
08
,
/// <summary>
/// <summary>
/// 入库。。移动到库位点,轴1( 转盘) 至P2( 库位点)轴2(上下) 至P3(库位入库前点)
/// 入库。。移动到库位点,轴1( 转盘) 至P2( 库位点)轴2(上下) 至P3(库位入库前点)
/// </summary>
/// </summary>
SI_09_MoveToBag
=
20
1
09
,
SI_09_MoveToBag
=
20
5
09
,
/// <summary>
/// <summary>
/// 入库。。定位气缸退回 (有压紧轴的不需要此步骤)
/// 入库。。定位气缸退回 (有压紧轴的不需要此步骤)
/// </summary>
/// </summary>
SI_10_LocationCylinder_Down
=
20
1
10
,
SI_10_LocationCylinder_Down
=
20
5
10
,
/// <summary>
/// <summary>
/// 入库。。叉子进入库位中,轴3( 叉子) 至P3(库位取放料点)
/// 入库。。叉子进入库位中,轴3( 叉子) 至P3(库位取放料点)
/// </summary>
/// </summary>
SI_11_DeviceToBag
=
20
1
11
,
SI_11_DeviceToBag
=
20
5
11
,
/// <summary>
/// <summary>
/// 入库。。放下物品,轴2( 上下) 至P4( 库位入料缓冲点)轴4( 压紧) 至P3( 压紧前点)
/// 入库。。放下物品,轴2( 上下) 至P4( 库位入料缓冲点)轴4( 压紧) 至P3( 压紧前点)
/// </summary>
/// </summary>
SI_12_PutWareToBag
=
20
1
12
,
SI_12_PutWareToBag
=
20
5
12
,
/// <summary>
/// <summary>
/// 入库。。叉子从库位中返回,轴3( 叉子) 动作至P1( 待机点)
/// 入库。。叉子从库位中返回,轴3( 叉子) 动作至P1( 待机点)
/// </summary>
/// </summary>
SI_13_DeviceBackFromBag
=
20
1
13
,
SI_13_DeviceBackFromBag
=
20
5
13
,
/// <summary>
/// <summary>
/// 入库。。返回待机点,轴2/轴1/轴4动作至P1( 待机点))开始
/// 入库。。返回待机点,轴2/轴1/轴4动作至P1( 待机点))开始
/// </summary>
/// </summary>
SI_14_GoBack
=
20
1
14
,
SI_14_GoBack
=
20
5
14
,
#
endregion
#
endregion
...
@@ -349,56 +349,92 @@ namespace OnlineStore.DeviceLibrary
...
@@ -349,56 +349,92 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
SI_S08_StartGetTray
=
20008
,
SI_S08_StartGetTray
=
20008
,
/// <summary>
/// 料架取料:叉子后退到待机点P1
/// </summary>
SI_S11_InoutToP1
=
20111
,
/// <summary>
/// 料架取料:升降轴移动到PA1低点,旋转轴移动到PA1点,压紧轴到压紧前点
/// </summary>
SI_S12_MoveToShelf
=
20112
,
/// <summary>
/// 料架取料:叉子前进到PA点
/// </summary>
SI_S13_InoutToPA
=
20113
,
/// <summary>
/// 料架取料:升降轴上升到PA2点
/// </summary>
SI_S14_UpdownToPA2
=
20114
,
/// <summary>
/// 料架取料:压紧轴开始缓慢压紧
/// </summary>
SI_S15_StartCompress
=
20115
,
/// <summary>
/// 料架取料:检测到料叉压紧确认信号,再次向下压紧指定的值
/// </summary>
SI_S16_ComAxisDownMove
=
20116
,
/// <summary>
/// 料架取料:记录压紧高度,叉子后退到扫码点
/// </summary>
SI_S17_InoutBack
=
20117
,
/// <summary>
/// 料架取料:记录宽度,开始扫码
/// </summary>
SI_S18_ScanCode
=
20118
,
/// <summary>
/// 料架取料:扫码成功,从服务器获取库位号
/// </summary>
SI_S19_GetPosId
=
20119
,
/// <summary>
/// 料架取料: 获取库位号完成,设置位置参数,开始入库
/// </summary>
SI_S20_CompressWare
=
20120
,
/// <summary>
/// 入库。。移动到库位点,轴1( 转盘) 至P2( 库位点)轴2(上下) 至P3(库位入库前点)
/// </summary>
SI_S21_MoveToBag
=
20121
,
/// <summary>
/// 入库。。叉子进入库位中,轴3( 叉子) 至P3(库位取放料点)
/// </summary>
SI_S22_DeviceToBag
=
20122
,
/// <summary>
/// 入库。。放下物品,轴2( 上下) 至P4( 库位入料缓冲点)轴4( 压紧) 至P3( 压紧前点)
/// </summary>
SI_S23_PutWareToBag
=
20123
,
/// <summary>
/// 入库。。叉子从库位中返回,轴3( 叉子) 动作至P1( 待机点)
/// </summary>
SI_S24_DeviceBackFromBag
=
20124
,
/// <summary>
/// 入库。。返回待机点,轴2/轴1/轴4动作至P1( 待机点))开始
/// </summary>
SI_S25_GoBack
=
20125
,
///// <summary>
/// <summary>
///// 入库。。压紧物品(有压紧轴的才需要此步骤),轴4( 压紧) 至P3(压紧前点)
/// 送出料盘:扫码或获取库位失败,升降轴移动到NG料门口上端,旋转轴移动到NG料门口
///// </summary>
/// </summary>
//SI_S03_CompressWare = 20103,
SI_S31_ToNGDoor
=
20131
,
///// <summary>
/// <summary>
///// 入库。。压紧物品(有压紧轴的才需要此步骤),轴4( 压紧) 至P3(压紧前点)
/// 送出料盘:NG料口升降门上升
///// </summary>
/// </summary>
//SI_S04_CompressWare = 20104,
SI_S32_NGDoorUp
=
20132
,
///// <summary>
/// <summary>
///// 入库。。叉子进入入料口,轴3( 叉子) 至P2( 进料口取料点)
/// 送出料盘:进出轴前进到NG料门口位置
///// </summary>
/// </summary>
//SI_S05_DeviceToDoor = 20105,
SI_S33_InoutToNGDoor
=
20133
,
///// <summary>
/// <summary>
///// 入库。。把物品放入叉子上,轴2( 上下) 至P7( 进料口取料缓冲点),压紧物品(有压紧轴的才需要此步骤),轴4( 压紧) 至P2(压紧点)
/// 送出料盘:升降轴缓慢下降,放下料盘
///// </summary>
/// </summary>
//SI_S06_DoorWarToDevice = 20106,
SI_S34_UpdownDown
=
20134
,
/// <summary>
///// <summary>
/// 送出料盘:叉子后退到P1
///// 入库。。叉子 从入料口抽出,轴3( 叉子) 至P1( 待机点)
/// </summary>
///// </summary>
SI_S35_InoutToP1
=
20135
,
//SI_S07_DeviceBackFromDoor = 20107,
/// <summary>
///// <summary>
/// 送出料盘:关门NG料门,送出料盘结束
///// 入库。。,定位气缸伸出 (有压紧轴的不需要此步骤)
/// </summary>
///// </summary>
SI_S36_NGDoorDown
=
20136
,
//SI_S08_LocationCylinder_Up = 20108,
///// <summary>
///// 入库。。移动到库位点,轴1( 转盘) 至P2( 库位点)轴2(上下) 至P3(库位入库前点)
///// </summary>
//SI_S09_MoveToBag = 20109,
///// <summary>
///// 入库。。定位气缸退回 (有压紧轴的不需要此步骤)
///// </summary>
//SI_S10_LocationCylinder_Down = 20110,
///// <summary>
///// 入库。。叉子进入库位中,轴3( 叉子) 至P3(库位取放料点)
///// </summary>
//SI_S11_DeviceToBag = 20111,
///// <summary>
///// 入库。。放下物品,轴2( 上下) 至P4( 库位入料缓冲点)轴4( 压紧) 至P3( 压紧前点)
///// </summary>
//SI_S12_PutWareToBag = 20112,
///// <summary>
///// 入库。。叉子从库位中返回,轴3( 叉子) 动作至P1( 待机点)
///// </summary>
//SI_S13_DeviceBackFromBag = 20113,
///// <summary>
///// 入库。。返回待机点,轴2/轴1/轴4动作至P1( 待机点))开始
///// </summary>
//SI_S14_GoBack = 20114,
#
endregion
#
endregion
}
}
...
...
source/DeviceLibrary/store/model/StoreMoveInfo.cs
查看文件 @
1cbba93
...
@@ -60,10 +60,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -60,10 +60,7 @@ namespace OnlineStore.DeviceLibrary
/// 是否再当前步骤等待中
/// 是否再当前步骤等待中
/// </summary>
/// </summary>
public
bool
IsInWait
{
get
;
set
;
}
public
bool
IsInWait
{
get
;
set
;
}
/// <summary>
/// 上一个执行步骤
/// </summary>
public
StoreMoveStep
PreMoveStep
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 当前执行到的步骤
/// 当前执行到的步骤
/// </summary>
/// </summary>
...
@@ -82,7 +79,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -82,7 +79,7 @@ namespace OnlineStore.DeviceLibrary
public
void
NextMoveStep
(
StoreMoveStep
step
)
public
void
NextMoveStep
(
StoreMoveStep
step
)
{
{
PreMoveStep
=
moveStep
;
//
PreMoveStep = moveStep;
moveStep
=
step
;
moveStep
=
step
;
LastSetpTime
=
DateTime
.
Now
;
LastSetpTime
=
DateTime
.
Now
;
IsInWait
=
true
;
IsInWait
=
true
;
...
@@ -130,13 +127,26 @@ namespace OnlineStore.DeviceLibrary
...
@@ -130,13 +127,26 @@ namespace OnlineStore.DeviceLibrary
}
}
public
List
<
WaitResultInfo
>
WaitList
=
new
List
<
WaitResultInfo
>();
public
List
<
WaitResultInfo
>
WaitList
=
new
List
<
WaitResultInfo
>();
/// <summary>
/// <summary>
///
重置之后继续出入库时,退回上一个步骤执行
///
入库时,需要循环料架的料盘取出
/// </summary>
/// </summary>
public
void
BackStep
()
public
List
<
string
>
ShelfPositionList
=
new
List
<
string
>();
public
string
currShelfPosId
=
""
;
public
int
currShelfIndex
=
-
1
;
public
bool
NextShelfPos
()
{
{
moveStep
=
PreMoveStep
;
currShelfIndex
++;
IsInWait
=
false
;
if
(
ShelfPositionList
.
Count
>=
currShelfIndex
)
{
return
false
;
}
currShelfPosId
=
ShelfPositionList
[
currShelfIndex
];
//设置取料位置
MoveParam
.
UpdateShelfPosId
(
currShelfPosId
);
return
true
;
}
}
}
}
...
@@ -232,15 +242,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -232,15 +242,7 @@ namespace OnlineStore.DeviceLibrary
wait
.
IsEnd
=
false
;
wait
.
IsEnd
=
false
;
return
wait
;
return
wait
;
}
}
//public static WaitResultInfo WaitHeight(int height)
//{
// WaitResultInfo wait = new WaitResultInfo();
// wait.WaitType = 7;
// wait.HeightValue = height;
// wait.IsEnd = false;
// return wait;
//}
public
string
ToStr
()
public
string
ToStr
()
{
{
if
(
WaitType
==
1
)
if
(
WaitType
==
1
)
...
...
source/LoadCVSLibrary/storeConfig/config/AC_Box_Config.cs
查看文件 @
1cbba93
...
@@ -264,10 +264,10 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -264,10 +264,10 @@ namespace OnlineStore.LoadCSVLibrary
[
ConfigProAttribute
(
"InOutAxis_P1_Position"
)]
[
ConfigProAttribute
(
"InOutAxis_P1_Position"
)]
public
int
InOutAxis_P1_Position
{
get
;
set
;
}
public
int
InOutAxis_P1_Position
{
get
;
set
;
}
/// <summary>
/// <summary>
/// PRO 押金轴(轴4)P1待机原位点 Comp
ress
Axis_P1_Position
/// PRO 押金轴(轴4)P1待机原位点 CompAxis_P1_Position
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"Comp
ress
Axis_P1_Position"
)]
[
ConfigProAttribute
(
"CompAxis_P1_Position"
)]
public
int
Comp
ress
Axis_P1_Position
{
get
;
set
;
}
public
int
CompAxis_P1_Position
{
get
;
set
;
}
/// <summary>
/// <summary>
///轴2升降轴 运动上下轴
///轴2升降轴 运动上下轴
...
@@ -371,7 +371,40 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -371,7 +371,40 @@ namespace OnlineStore.LoadCSVLibrary
[
ConfigProAttribute
(
"CompAxis_P3_Speed"
)]
[
ConfigProAttribute
(
"CompAxis_P3_Speed"
)]
public
int
CompAxis_P3_Speed
{
get
;
set
;
}
public
int
CompAxis_P3_Speed
{
get
;
set
;
}
/// <summary>
/// PRO,压紧轴(轴4)缓慢压紧速度,CompAxis_Com_Speed,100,,,,,,,
/// </summary>
[
ConfigProAttribute
(
"CompAxis_Com_Speed"
)]
public
int
CompAxis_Com_Speed
{
get
;
set
;
}
/// <summary>
/// PRO,升降轴(轴2)PA1速度,UpDownAxis_PA1_Speed,100,,,,,, ,
/// </summary>
[
ConfigProAttribute
(
"UpDownAxis_PA1_Speed"
)]
public
int
UpDownAxis_PA1_Speed
{
get
;
set
;
}
/// <summary>
/// PRO,升降轴(轴2)PA2速度,UpDownAxis_PA2_Speed,100,,,,,,,
/// </summary>
[
ConfigProAttribute
(
"UpDownAxis_PA2_Speed"
)]
public
int
UpDownAxis_PA2_Speed
{
get
;
set
;
}
/// <summary>
/// PRO,进出轴(轴3)PA速度,InOutAxis_PA_Speed,100,,,,,,,
/// </summary>
[
ConfigProAttribute
(
"InOutAxis_PA_Speed"
)]
public
int
InOutAxis_PA_Speed
{
get
;
set
;
}
/// <summary>
/// PRO,旋转轴(轴1)PA速度,MiddleAxis_PA_Speed,120,,,,,,,
/// </summary>
[
ConfigProAttribute
(
"MiddleAxis_PA_Speed"
)]
public
int
MiddleAxis_PA_Speed
{
get
;
set
;
}
/// <summary>
/// PRO,压紧轴(轴4)P3压紧前点,CompAxis_P3_Position,10000,,,,,,,
/// </summary>
[
ConfigProAttribute
(
"CompAxis_P3_Position"
)]
public
int
CompAxis_P3_Position
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 预警温度
/// 预警温度
/// </summary>
/// </summary>
...
@@ -546,7 +579,7 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -546,7 +579,7 @@ namespace OnlineStore.LoadCSVLibrary
Config
.
Middle_Axis
.
DefaultPosition
=
Config
.
MiddleAxis_P1_Position
;
Config
.
Middle_Axis
.
DefaultPosition
=
Config
.
MiddleAxis_P1_Position
;
Config
.
InOut_Axis
.
DefaultPosition
=
Config
.
InOutAxis_P1_Position
;
Config
.
InOut_Axis
.
DefaultPosition
=
Config
.
InOutAxis_P1_Position
;
Config
.
UpDown_Axis
.
DefaultPosition
=
Config
.
UpDownAxis_DoorOPosition_P1
;
Config
.
UpDown_Axis
.
DefaultPosition
=
Config
.
UpDownAxis_DoorOPosition_P1
;
Config
.
Comp_Axis
.
DefaultPosition
=
Config
.
Comp
ress
Axis_P1_Position
;
Config
.
Comp_Axis
.
DefaultPosition
=
Config
.
CompAxis_P1_Position
;
Config
.
Comp_Axis
.
CanErrorCountMax
=
1000
;
Config
.
Comp_Axis
.
CanErrorCountMax
=
1000
;
Config
.
Comp_Axis
.
CanErrorCountMin
=
10
;
Config
.
Comp_Axis
.
CanErrorCountMin
=
10
;
Config
.
Comp_Axis
.
PositionMin
=
0
;
Config
.
Comp_Axis
.
PositionMin
=
0
;
...
...
source/LoadCVSLibrary/storeConfig/config/Store_Config.cs
查看文件 @
1cbba93
...
@@ -167,7 +167,7 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -167,7 +167,7 @@ namespace OnlineStore.LoadCSVLibrary
Config
.
Middle_Axis
.
DefaultPosition
=
Config
.
MiddleAxis_P1_Position
;
Config
.
Middle_Axis
.
DefaultPosition
=
Config
.
MiddleAxis_P1_Position
;
Config
.
InOut_Axis
.
DefaultPosition
=
Config
.
InOutAxis_P1_Position
;
Config
.
InOut_Axis
.
DefaultPosition
=
Config
.
InOutAxis_P1_Position
;
Config
.
UpDown_Axis
.
DefaultPosition
=
Config
.
UpDownAxis_DoorOPosition_P1
;
Config
.
UpDown_Axis
.
DefaultPosition
=
Config
.
UpDownAxis_DoorOPosition_P1
;
Config
.
Comp_Axis
.
DefaultPosition
=
Config
.
Comp
ress
Axis_P1_Position
;
Config
.
Comp_Axis
.
DefaultPosition
=
Config
.
CompAxis_P1_Position
;
Config
.
Comp_Axis
.
CanErrorCountMax
=
1000
;
Config
.
Comp_Axis
.
CanErrorCountMax
=
1000
;
Config
.
Comp_Axis
.
CanErrorCountMin
=
10
;
Config
.
Comp_Axis
.
CanErrorCountMin
=
10
;
Config
.
Comp_Axis
.
PositionMin
=
0
;
Config
.
Comp_Axis
.
PositionMin
=
0
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论