Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d4dcd359
由
LN
编写于
2021-03-27 14:23:46 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
D7与出料机构运动交互判断修改。料盘尺寸范围修改。
1 个父辈
8073de6f
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
104 行增加
和
25 行删除
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
source/DeviceLibrary/assemblyLine/MoveEquip.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/baan/ClampJawBean.cs
source/DeviceLibrary/model/StoreStep.cs
source/DeviceLibrary/server/LineServer.cs
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
d4dcd35
...
...
@@ -13,6 +13,7 @@ namespace OnlineStore.DeviceLibrary
{
public
abstract
class
EquipBase
:
KTK_Store
{
public
bool
OnlyProOutTray
=
false
;
public
ClampJawBean
ClampJwa
=
null
;
public
bool
MoveStop
=
false
;
...
...
@@ -582,6 +583,10 @@ namespace OnlineStore.DeviceLibrary
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W009_BoxCanInstore
))
{
int
storeId
=
moveInfo
.
MoveParam
.
GetStoreId
();
if
(
OnlyProOutTray
)
{
storeId
=
7
;
}
wait
.
IsEnd
=
LineServer
.
BoxCanReviceTray
(
storeId
,
out
NotOkMsg
);
}
else
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
d4dcd35
...
...
@@ -455,6 +455,32 @@ namespace OnlineStore.DeviceLibrary
LastHeight
=
16
;
}
}
else
if
(
LastWidth
.
Equals
(
13
))
{
if
(
LastHeight
<
28
)
{
LogUtil
.
error
(
Name
+
"计算后高度"
+
LastWidth
+
"X"
+
LastHeight
+
",13寸盘默认盘高最低=28,修改高度为28"
);
LastHeight
=
28
;
}
else
if
(
LastHeight
>
36
)
{
LogUtil
.
error
(
Name
+
"计算后高度"
+
LastWidth
+
"X"
+
LastHeight
+
",13寸盘默认盘高最高=36,修改高度为36"
);
LastHeight
=
36
;
}
}
else
if
(
LastWidth
.
Equals
(
15
))
{
if
(
LastHeight
<
28
)
{
LogUtil
.
error
(
Name
+
"计算后高度"
+
LastWidth
+
"X"
+
LastHeight
+
",15寸盘默认盘高最低=28,修改高度为28"
);
LastHeight
=
28
;
}
else
if
(
LastHeight
>
48
)
{
LogUtil
.
error
(
Name
+
"计算后高度"
+
LastWidth
+
"X"
+
LastHeight
+
",15寸盘默认盘高最高=48,修改高度为48"
);
LastHeight
=
48
;
}
}
else
{
if
(
LastHeight
<
12
)
...
...
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
查看文件 @
d4dcd35
...
...
@@ -283,7 +283,15 @@ namespace OnlineStore.DeviceLibrary
MoveEquip
move
=
MoveEquipMap
[
id
];
if
(
move
.
OnlyProOutTray
)
{
return
false
;
//如果正在入库移栽不能操作,其他时候可以
if
(
move
.
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
InStore
))
{
if
(
move
.
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MI_09_CylinderBefore
&&
move
.
MoveInfo
.
MoveStep
<=
LineMoveStep
.
MI_14_CylinderAfter
)
{
return
false
;
}
}
return
true
;
}
if
(!
move
.
NoAlarm
()
||
move
.
waitInStoreList
.
Count
>
0
||
move
.
IsDebug
||
move
.
waitOutStoreList
.
Count
>
0
)
{
...
...
@@ -316,8 +324,8 @@ namespace OnlineStore.DeviceLibrary
{
return
true
;
}
}
}
}
}
return
false
;
}
/// <summary>
...
...
source/DeviceLibrary/assemblyLine/MoveEquip.cs
查看文件 @
d4dcd35
...
...
@@ -14,7 +14,6 @@ namespace OnlineStore.DeviceLibrary
{
public
MoveEquip_Config
Config
;
//public ClampJawBean ClampJwa = null;
public
bool
OnlyProOutTray
=
false
;
public
MoveEquip
(
string
cid
,
MoveEquip_Config
config
,
ConfigClampJaw
jawconfig
)
{
this
.
DeviceID
=
config
.
Id
;
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
d4dcd35
...
...
@@ -568,7 +568,7 @@ namespace OnlineStore.DeviceLibrary
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_06_CylinderUp
))
{
int
num
=
MoveInfo
.
MoveParam
.
TrayNumber
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_
10
_WaitBox
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_
08
_WaitBox
);
LogInfo
(
"入库【"
+
posId
+
"】 "
+
MoveInfo
.
SLog
+
": 物品已移走,更新托盘【"
+
num
+
"】为空盘,删除入库任务"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitBoxCanReviceTray
());
TrayManager
.
UpdateTrayInfo
(
num
);
...
...
@@ -582,22 +582,22 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_TopDown
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_Up
,
IO_Type
.
TopCylinder_Down
);
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_
10
_WaitBox
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_
08
_WaitBox
))
{
if
(
UpdownIsUp
())
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_0
8
_CylinderBefore
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_0
9
_CylinderBefore
);
InLog
(
"入库: "
+
MoveInfo
.
SLog
+
" 前后气缸1前进"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
}
else
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_
10
_WaitBox
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_
08
_WaitBox
);
InLog
(
"入库: "
+
MoveInfo
.
SLog
+
" 升降气缸上升"
);
UpdownUpMove
();
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_0
8
_CylinderBefore
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_0
9
_CylinderBefore
))
{
if
(
CylinderIsOk
(
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
))
{
...
...
@@ -607,7 +607,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_0
8
_CylinderBefore
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_0
9
_CylinderBefore
);
InLog
(
"入库: "
+
MoveInfo
.
SLog
+
" 前后气缸1前进"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
}
...
...
@@ -899,20 +899,27 @@ namespace OnlineStore.DeviceLibrary
bool
isNeed
=
false
;
UpdateTrayNum
();
bool
isFull
=
TrayManager
.
TrayIsFull
(
currTrayNum
);
string
targetP
=
""
;
//出库中,需要拦盘
if
(
CheckIsNeedOutStore
())
{
isNeed
=
true
;
targetP
=
"【出库空托盘】"
;
}
else
if
(
isFull
&&
IsInStoreNeed
())
{
isNeed
=
true
;
targetP
=
"【入库托盘】"
;
}
else
if
(
CheckIsNeedMove
())
{
isNeed
=
true
;
targetP
=
"【出料口托盘】"
;
}
if
(
isNeed
)
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_05_WaitTime
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
" 等待200"
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
targetP
+
" 等待200"
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
200
));
}
else
...
...
source/DeviceLibrary/baan/ClampJawBean.cs
查看文件 @
d4dcd35
...
...
@@ -69,17 +69,31 @@ namespace OnlineStore.DeviceLibrary
public
bool
IsReached
()
{
if
(
rmaxis
!=
null
&&
rmaxis
.
IsPortOpen
)
try
{
if
(
rmaxis
!=
null
&&
rmaxis
.
IsPortOpen
)
{
return
rmaxis
.
IsReached
;
}
}
catch
(
Exception
ex
)
{
return
rmaxis
.
IsReached
;
LogUtil
.
error
(
Name
+
" IsReached error :"
+
ex
.
ToString
())
;
}
return
false
;
return
false
;
}
public
bool
HasReel
()
{
if
(
rmaxis
!=
null
&&
rmaxis
.
IsPortOpen
)
try
{
if
(
rmaxis
!=
null
&&
rmaxis
.
IsPortOpen
)
{
return
!
rmaxis
.
IsPushEmpty
;
}
}
catch
(
Exception
ex
)
{
return
!
rmaxis
.
IsPushEmpty
;
LogUtil
.
error
(
Name
+
" IsReached error :"
+
ex
.
ToString
())
;
}
return
false
;
}
...
...
@@ -109,11 +123,27 @@ namespace OnlineStore.DeviceLibrary
public
float
GetPosition
()
{
return
rmaxis
.
GetPosition
();
try
{
return
rmaxis
.
GetPosition
();
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
Name
+
" IsReached error :"
+
ex
.
ToString
());
}
return
-
1
;
}
public
float
GetTorque
()
{
return
rmaxis
.
GetTorque
();
try
{
return
rmaxis
.
GetTorque
();
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
Name
+
" IsReached error :"
+
ex
.
ToString
());
}
return
-
1
;
}
public
void
PushTest
(
float
force
,
float
distance
)
{
...
...
source/DeviceLibrary/model/StoreStep.cs
查看文件 @
d4dcd35
...
...
@@ -165,15 +165,16 @@ namespace OnlineStore.DeviceLibrary
/// 移载装置入库处理,检测夹爪料盘检测信号
/// </summary>
MI_07_ClampCheck
,
/// <summary>
///移载装置入库处理,,前后气缸1前进
/// </summary>
MI_08_CylinderBefore
,
/// <summary>
/// 移载装置入库处理,等待box等待状态才能继续操作
/// </summary>
MI_10_WaitBox
,
MI_08_WaitBox
,
/// <summary>
///移载装置入库处理,,前后气缸1前进
/// </summary>
MI_09_CylinderBefore
,
/// <summary>
///移载装置入库处理,上下气缸1下降
/// </summary>
...
...
source/DeviceLibrary/server/LineServer.cs
查看文件 @
d4dcd35
...
...
@@ -164,7 +164,10 @@ namespace OnlineStore.DeviceLibrary
{
if
(
box
.
WaitInStoreList
==
null
||
box
.
WaitInStoreList
.
Count
<=
0
)
{
return
true
;
if
(
runs
.
Equals
(
LineRunStatus
.
Runing
))
{
return
true
;
}
}
else
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论