Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 84590fab
由
LN
编写于
2020-01-07 15:00:33 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
ste名称修改
1 个父辈
53c0a7cc
显示空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
387 行增加
和
350 行删除
source/AssemblyLineClient/FrmLineStore.cs
source/AssemblyLineClient/记录.txt
source/Common/util/LogUtil.cs
source/DeviceLibrary/assemblyLine/DischargeLine_Partial.cs
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_OutStore.cs
source/DeviceLibrary/assemblyLine/LineBean.cs
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
source/DeviceLibrary/assemblyLine/MoveEquip.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/assemblyLine/OutTrayLineBean.cs
source/DeviceLibrary/assemblyLine/ProvidingEquip.cs
source/DeviceLibrary/assemblyLine/ProvidingEquip_Partial.cs
source/DeviceLibrary/assemblymanager/SServerManager.cs
source/DeviceLibrary/assemblymanager/TrayManager.cs
source/DeviceLibrary/model/InOutParam.cs
source/DeviceLibrary/model/StoreStep.cs
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
84590fa
...
...
@@ -25,8 +25,8 @@ namespace OnlineStore.AssemblyLine
private
System
.
Timers
.
Timer
startTimer
=
null
;
internal
FrmLineStore
()
{
CheckForIllegalCrossThreadCalls
=
false
;
InitializeComponent
();
LogUtil
.
logBox
=
this
.
logBox
;
startTimer
=
new
System
.
Timers
.
Timer
();
startTimer
.
Interval
=
1000
;
startTimer
.
Enabled
=
false
;
...
...
@@ -125,6 +125,7 @@ namespace OnlineStore.AssemblyLine
}
cmbTrayType
.
SelectedIndex
=
0
;
cmbTray
.
SelectedIndex
=
0
;
LogUtil
.
logBox
=
this
.
logBox
;
LoadOk
=
true
;
HideForm
();
timer1
.
Start
();
...
...
@@ -807,6 +808,10 @@ namespace OnlineStore.AssemblyLine
private
void
logBox_VisibleChanged
(
object
sender
,
EventArgs
e
)
{
if
(!
LoadOk
)
{
return
;
}
if
(
logBox
.
Visible
)
{
LogUtil
.
UpdateLogbox
();
...
...
source/AssemblyLineClient/记录.txt
查看文件 @
84590fa
...
...
@@ -77,7 +77,8 @@ D2(上料模块出口)
皮带线1相机:GigE:MV-CE200-10GC (00D76546944)
皮带线2相机:GigE:MV-CE200-10GC (00D76546876)
5 出库时根据StatusBean返回data中的参数决定料盘流转到哪里
5 出库时根据StatusBean返回data中的参数决定料盘流转到哪里
urgentReel: true 表示紧急料,需要出到料串上
cutReel: true 表示分盘料,需要出到料串上
smallReel: true 小料(7x8),放置到小料架上
...
...
@@ -86,7 +87,14 @@ D2(上料模块出口)
// 仓位命名: 4D01020304
//第1和第2位表示楼层(4D)
//第3和第4位表示料仓(01) 01 - 18为流水线料仓, 19 - 24为包装料仓
//第5和第6位表示列(02)
//第7和第8位表示行(03)
//第9和第10位表示隔板位置(04)
//例如: 4D12010124 表示4楼12号料仓第1列第1行架子上的第24个隔板位置
//4D19050208 表示4楼19号料仓(包装料仓)第5列第2行架子上的第8个隔板位置
...
...
source/Common/util/LogUtil.cs
查看文件 @
84590fa
...
...
@@ -140,7 +140,7 @@ namespace OnlineStore.Common
logBox
.
AppendText
(
now
.
ToLongTimeString
()
+
" "
+
msg
+
Environment
.
NewLine
);
//增加文本
TimeSpan
span
=
DateTime
.
Now
-
lastTime
;
if
(
span
.
TotalSeconds
>
30000
)
if
(
span
.
TotalSeconds
>
30000
00
)
{
lastTime
=
DateTime
.
Now
;
logBox
.
Select
(
logBox
.
Text
.
Length
,
0
);
//设置光标的位置到文本尾
...
...
@@ -161,7 +161,7 @@ namespace OnlineStore.Common
logBox
.
Text
=
LastText
;
TimeSpan
span
=
DateTime
.
Now
-
lastTime
;
if
(
span
.
TotalSeconds
>
30000
)
if
(
span
.
TotalSeconds
>
30000
00
)
{
lastTime
=
DateTime
.
Now
;
logBox
.
Select
(
logBox
.
Text
.
Length
,
0
);
//设置光标的位置到文本尾
...
...
source/DeviceLibrary/assemblyLine/DischargeLine_Partial.cs
查看文件 @
84590fa
...
...
@@ -153,7 +153,7 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_03_GetTraySize
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DO_04_Separate
Device
Move
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DO_04_SeparateMove
);
if
(
LastWidth
.
Equals
(
7
))
{
LogInfo
(
hengyiName
+
"出口有料,料盘尺寸【"
+
LastWidth
+
"】上升分盘定位气缸"
);
...
...
@@ -165,7 +165,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove
(
MoveInfo
,
IO_Type
.
SeparateDevice_Up
,
IO_Type
.
SeparateDevice_Down
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_04_Separate
Device
Move
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_04_SeparateMove
))
{
if
(
TrayLine2
.
Line3CanRun
&&
TrayLine1
.
Line3CanRun
)
{
...
...
@@ -180,13 +180,13 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_05_LineRun
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DO_06_
Wait_SeparateDevice_
Check
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DO_06_
Separate
Check
);
Line3LastTrayP
++;
LogInfo
(
hengyiName
+
"出口有料,等待料盘到达分盘装置位置,最多等待5000"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
5000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SeparateDevice_Check
,
IO_VALUE
.
HIGH
));
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_06_
Wait_SeparateDevice_
Check
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DO_06_
Separate
Check
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DO_07_CRun
);
LogInfo
(
hengyiName
+
"出口有料,最多等待2000"
);
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
查看文件 @
84590fa
...
...
@@ -165,7 +165,7 @@ namespace OnlineStore.DeviceLibrary
}
break
;
case
LineMoveStep
.
FR_02_LineRun
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FR_03_
MoveCylinder_
Up
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FR_03_
Cylinder
Up
);
LogInfo
(
MoveInfo
.
MoveType
+
":"
+
MoveInfo
.
SLog
+
":链条停止转动,上料横移机构上升,出口顶升下降,所有阻挡气缸上升"
);
//线体停止
IOMove
(
IO_Type
.
SL_Line_Run
,
IO_VALUE
.
LOW
);
...
...
@@ -187,7 +187,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove
(
MoveInfo
,
IO_Type
.
SW_TopCylinder_Up
,
IO_Type
.
SW_TopCylinder_Down
);
}
break
;
case
LineMoveStep
.
FR_03_
MoveCylinder_
Up
:
case
LineMoveStep
.
FR_03_
Cylinder
Up
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FR_04_UpdownAxisHome
);
LogInfo
(
MoveInfo
.
MoveType
+
":"
+
MoveInfo
.
SLog
+
": 升降伺服回原点"
);
UpdownAxis
.
HomeMove
(
MoveInfo
);
...
...
@@ -202,7 +202,7 @@ namespace OnlineStore.DeviceLibrary
if
(
MoveCylineCanTakeOrGive
())
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FR_06_
MoveCylinder_
Give
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FR_06_
Cylinder
Give
);
if
(
Config
.
IsCanOut
.
Equals
(
1
))
{
LogInfo
(
MoveInfo
.
MoveType
+
":"
+
MoveInfo
.
SLog
+
": 上料横移气缸取料端SOL"
);
...
...
@@ -221,7 +221,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Down
,
IO_Type
.
SL_MoveCylinder_Up
);
}
break
;
case
LineMoveStep
.
FR_06_
MoveCylinder_
Give
:
case
LineMoveStep
.
FR_06_
Cylinder
Give
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FR_11_BatchAxisHome
);
MoveInfo
.
TimeOutSeconds
=
120
;
LogInfo
(
MoveInfo
.
MoveType
+
":"
+
MoveInfo
.
SLog
+
":提升伺服回原点"
);
...
...
@@ -234,21 +234,21 @@ namespace OnlineStore.DeviceLibrary
BatchAxis
.
AbsMove
(
MoveInfo
,
Config
.
BatchAxisP2
,
Config
.
BatchAxis_P2Speed
);
break
;
case
LineMoveStep
.
FR_12_BatchAxisToP2
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FR_13_Location
Cylinder_
Down
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FR_13_LocationDown
);
LogInfo
(
MoveInfo
.
MoveType
+
":"
+
MoveInfo
.
SLog
+
": 放开定位气缸,升降伺服到P1"
);
TrayLCylinderAfter
(
MoveInfo
);
Thread
.
Sleep
(
50
);
UpdownAxis
.
AbsMove
(
MoveInfo
,
Config
.
UpDownAxisP1
,
Config
.
UpdownAxis_P1Speed
);
break
;
case
LineMoveStep
.
FR_13_Location
Cylinder_
Down
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FR_14_Top
Cylinder
Down
);
case
LineMoveStep
.
FR_13_LocationDown
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FR_14_TopDown
);
LogInfo
(
MoveInfo
.
MoveType
+
":"
+
MoveInfo
.
SLog
+
":SL1定位气缸下降SOL,出口顶升气缸下降,夹紧气缸放松"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_LocationCylinder_Up
,
IO_Type
.
SL_LocationCylinder_Down
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_OutTopCylinder_Up
,
IO_Type
.
SL_OutTopCylinder_Down
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Tighten
,
IO_Type
.
SL_MoveCylinder_Slack
);
break
;
case
LineMoveStep
.
FR_14_Top
Cylinder
Down
:
case
LineMoveStep
.
FR_14_TopDown
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FR_15_BatchAxisToP1
);
//判断定位工位是否有料架
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
84590fa
...
...
@@ -72,7 +72,7 @@ namespace OnlineStore.DeviceLibrary
if
(
CurrTrayIsNeed
(
currTrayNum
,
true
))
{
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
,
CheckParam
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_Top
Cylinder
Up
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_TopUp
);
CheckLog
(
"检测到SW_TrayCheck:"
+
SecondMoveInfo
.
SLog
+
"横移顶升气缸上升 )"
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
SW_TopCylinder_Down
,
IO_Type
.
SW_TopCylinder_Up
);
}
...
...
@@ -88,7 +88,7 @@ namespace OnlineStore.DeviceLibrary
if
(
TrayManager
.
checkWatch
(
swWaitWatch
,
TrayManager
.
SwTrayWaitTime
,
true
))
{
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
,
CheckParam
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_00_Stop
Cylinder
1Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_00_Stop1Down
);
CheckLog
(
"检测到SW_StopCheck:"
+
SecondMoveInfo
.
SLog
+
"阻挡气缸下降 ,等待"
+
TrayManager
.
StopDownWaitTime
);
IOMove
(
IO_Type
.
SW_StopDown
,
IO_VALUE
.
HIGH
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
TrayManager
.
StopDownWaitTime
));
...
...
@@ -111,7 +111,7 @@ namespace OnlineStore.DeviceLibrary
{
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
CheckLog
(
"检测到FL_TrayCheck:"
+
SecondMoveInfo
.
SLog
+
" FL阻挡1上升)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop
Cylinder
2Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop2Down
);
IOMove
(
IO_Type
.
FL_StopCylinder_Down1
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
FL_StopCylinder_Down1
,
IO_VALUE
.
LOW
));
}
...
...
@@ -122,7 +122,7 @@ namespace OnlineStore.DeviceLibrary
{
//托盘在第一个阻挡处
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_00_Stop
Cylinder
1Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_00_Stop1Down
);
CheckLog
(
" 检测到FL_StopCheck:"
+
SecondMoveInfo
.
SLog
+
" FL阻挡1下降 ,等待 "
+
TrayManager
.
StopDownWaitTime
);
IOMove
(
IO_Type
.
FL_StopCylinder_Down1
,
IO_VALUE
.
HIGH
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
FL_StopCylinder_Down1
,
IO_VALUE
.
HIGH
));
...
...
@@ -152,11 +152,11 @@ namespace OnlineStore.DeviceLibrary
}
#
region
托盘检测
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_00_Stop
Cylinder
1Down
))
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_00_Stop1Down
))
{
if
(
Config
.
SidesWayNum
<=
0
)
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop
Cylinder
2Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop2Down
);
CheckLog
(
"托盘检测:"
+
SecondMoveInfo
.
SLog
+
"阻挡1上升,等待FL_TrayCheck=1)"
);
IOMove
(
IO_Type
.
FL_StopCylinder_Down1
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
FL_StopCylinder_Down1
,
IO_VALUE
.
LOW
));
...
...
@@ -183,7 +183,7 @@ namespace OnlineStore.DeviceLibrary
{
if
(
IOValue
(
IO_Type
.
SW_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop
Cylinder
2Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop2Down
);
CheckLog
(
"托盘检测:"
+
SecondMoveInfo
.
SLog
+
"阻挡气缸上升,等待SW_TrayCheck=1)"
);
IOMove
(
IO_Type
.
SW_StopDown
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW_TrayCheck
,
IO_VALUE
.
HIGH
));
...
...
@@ -197,7 +197,7 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
TrayManager
.
SwTrayWaitTime
));
}
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_03_Stop
Cylinder
2Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_03_Stop2Down
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_04_Wait
);
CheckLog
(
"托盘检测:"
+
SecondMoveInfo
.
SLog
+
" ,等待编码信号稳定)"
);
...
...
@@ -212,7 +212,7 @@ namespace OnlineStore.DeviceLibrary
if
(
CurrTrayIsNeed
(
currTrayNum
,
true
))
{
SecondMoveInfo
.
MoveParam
=
CheckParam
;
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_Top
Cylinder
Up
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_TopUp
);
if
(
Config
.
SidesWayNum
<=
0
)
{
CheckLog
(
"托盘检测: "
+
SecondMoveInfo
.
SLog
+
" 顶升气缸上 升 )"
);
...
...
@@ -241,16 +241,16 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_06_Top
Cylinder
Up
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_06_TopUp
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_07_Location
Cylinder
Up
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_07_LocationUp
);
CheckLog
(
"托盘检测: "
+
SecondMoveInfo
.
SLog
+
" , 定位气缸上升 )"
);
if
(
Config
.
SidesWayNum
>
0
)
{
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
SW_LocationCylinder_Down
,
IO_Type
.
SW_LocationCylinder_Up
);
}
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_07_Location
Cylinder
Up
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_07_LocationUp
))
{
CheckLog
(
"托盘阻挡*************** 托盘号【"
+
currTrayNum
+
"】"
);
...
...
@@ -278,18 +278,18 @@ namespace OnlineStore.DeviceLibrary
{
if
(
Config
.
SidesWayNum
>
0
)
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_13_Loaction
Cylinder_
Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_13_LoactionDown
);
SInLog
(
"托盘放行, "
+
SecondMoveInfo
.
SLog
+
" 托盘开始放行,环形线定位气缸下降"
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
SW_LocationCylinder_Up
,
IO_Type
.
SW_LocationCylinder_Down
);
}
else
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_Top
Cylinder_
Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_TopDown
);
CheckLog
(
"托盘放行, "
+
SecondMoveInfo
.
SLog
+
" , 顶升气缸下降)"
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
FL_TopCylinder_Up
,
IO_Type
.
FL_TopCylinder_Down
);
}
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_13_Loaction
Cylinder_
Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_13_LoactionDown
))
{
if
(
Config
.
SidesWayNum
.
Equals
(
2
))
{
...
...
@@ -300,12 +300,12 @@ namespace OnlineStore.DeviceLibrary
}
else
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_Top
Cylinder_
Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_TopDown
);
CheckLog
(
"托盘放行, "
+
SecondMoveInfo
.
SLog
+
" ,环形线顶升气缸下降)"
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
SW_TopCylinder_Up
,
IO_Type
.
SW_TopCylinder_Down
);
}
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_14_Top
Cylinder_
Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_14_TopDown
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_15_WaitCanGo
);
if
(
Config
.
SidesWayNum
>
0
)
...
...
@@ -323,7 +323,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_16_Stop
Cylinder2_
Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_16_Stop
2
Down
);
CheckLog
(
"托盘放行 "
+
SecondMoveInfo
.
SLog
+
" ,阻挡气缸1-2下降,等待"
+
TrayManager
.
StopDownWaitTime
);
IOMove
(
IO_Type
.
FL_StopCylinder_Down2
,
IO_VALUE
.
HIGH
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
FL_StopCylinder_Down2
,
IO_VALUE
.
HIGH
));
...
...
@@ -331,14 +331,14 @@ namespace OnlineStore.DeviceLibrary
}
// SecondMoveInfo.EndStepWait();
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_16_Stop
Cylinder2_
Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_16_Stop
2
Down
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_17_
Tray_
Check
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_17_
Stop2
Check
);
CheckLog
(
"托盘放行 "
+
SecondMoveInfo
.
SLog
+
" ,上升阻挡气缸2, 等待托盘离开"
);
IOMove
(
IO_Type
.
FL_StopCylinder_Down2
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
FL_StopCylinder_Down2
,
IO_VALUE
.
LOW
));
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_17_
Tray_
Check
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_17_
Stop2
Check
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_18_StopCylinder_Back
);
CheckLog
(
"托盘放行 "
+
SecondMoveInfo
.
SLog
+
" ,等待托盘离开 )"
);
...
...
@@ -824,12 +824,12 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_38_LineStop
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_39_Top
Cylinder
Down
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_39_TopDown
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
", 料架到达出口,出口顶升下降 , "
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_OutTopCylinder_Up
,
IO_Type
.
SL_OutTopCylinder_Down
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
300
));
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_39_Top
Cylinder
Down
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_39_TopDown
))
{
MoveInfo
.
EndMove
();
runStatus
=
LineRunStatus
.
Runing
;
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_OutStore.cs
查看文件 @
84590fa
...
...
@@ -21,7 +21,7 @@ namespace OnlineStore.DeviceLibrary
if
(
CurrTrayIsNeed
(
currTrayNum
,
true
))
{
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
,
CheckParam
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_Top
Cylinder
Up
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_TopUp
);
CheckLog
(
"检测到SW_TrayCheck:"
+
SecondMoveInfo
.
SLog
+
"横移顶升气缸上升 )"
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
SW_TopCylinder_Down
,
IO_Type
.
SW_TopCylinder_Up
);
return
true
;
...
...
@@ -180,12 +180,12 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_01_TrayLocation_After
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_02_Location
Cylinder_
Down
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_02_LocationDown
);
OutLog
(
"出库: "
+
MoveInfo
.
SLog
+
" 开始:定位气缸下降,提升轴移动到P1"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_LocationCylinder_Up
,
IO_Type
.
SL_LocationCylinder_Down
);
BatchAxis
.
AbsMove
(
MoveInfo
,
Config
.
BatchAxisP1
,
Config
.
BatchAxis_P1Speed
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_02_Location
Cylinder_
Down
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_02_LocationDown
))
{
LineOutStoreProcess
();
}
...
...
@@ -198,7 +198,7 @@ namespace OnlineStore.DeviceLibrary
if
(
IOValue
(
IO_Type
.
SL_Location_Check
).
Equals
(
IO_VALUE
.
HIGH
))
{
//定位工位有料架,直接开始入料
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_05_Location
Cylinder_
Up
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_05_LocationUp
);
OutLog
(
"定位工位检测到料架: "
+
MoveInfo
.
SLog
+
" 缓冲阻挡下降, 定位气缸上升,读取料架号"
);
IOMove
(
IO_Type
.
SL_Buffer_StopDown
,
IO_VALUE
.
LOW
);
//缓冲阻挡下降
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_LocationCylinder_Down
,
IO_Type
.
SW4_LocationCylinder_Up
);
...
...
@@ -213,7 +213,7 @@ namespace OnlineStore.DeviceLibrary
OutLog
(
" 未检测到料架,料架处理结束"
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_05_Location
Cylinder_
Up
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_05_LocationUp
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_06_BatchAxisToP2
);
OutLog
(
"准备出库料架 "
+
MoveInfo
.
SLog
+
" :提升轴下降到位P2,定位气缸上升"
);
...
...
@@ -276,14 +276,14 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_31_BatchAxisToP2
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_32_TrayLocation
Cylinder
_After
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_32_TrayLocation_After
);
OutLog
(
"出料完成 "
+
MoveInfo
.
SLog
+
": 升降盘定位气缸后退,重置OutEndSendShelfOut=fasle,OutStoreHeight = -1"
);
OutEndSendShelfOut
=
false
;
OutStoreHeight
=
-
1
;
OutStoreCount
=
0
;
TrayLCylinderAfter
(
MoveInfo
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_32_TrayLocation
Cylinder
_After
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_32_TrayLocation_After
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_33_BatchAxisToP1
);
OutLog
(
"出料完成 "
+
MoveInfo
.
SLog
+
":提升伺服到P1点,定位气缸下降"
);
...
...
@@ -327,12 +327,12 @@ namespace OnlineStore.DeviceLibrary
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_37_LineStop
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_38_Top
Cylinder
Down
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_38_TopDown
);
OutLog
(
"出料完成 "
+
MoveInfo
.
SLog
+
", 料架到达出口,出口顶升下降 , "
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_OutTopCylinder_Up
,
IO_Type
.
SL_OutTopCylinder_Down
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
300
));
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_38_Top
Cylinder
Down
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_38_TopDown
))
{
MoveInfo
.
EndMove
();
runStatus
=
LineRunStatus
.
Runing
;
...
...
@@ -356,7 +356,7 @@ namespace OnlineStore.DeviceLibrary
{
if
(
MoveCylineCanTakeOrGive
())
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_212_
MoveCylinder_
Take
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_212_
Cylinder
Take
);
OutLog
(
"紧急出料移栽"
+
MoveInfo
.
SLog
+
":上料横移机构取料端"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Give
,
IO_Type
.
SL_MoveCylinder_Take
);
}
...
...
@@ -367,7 +367,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Down
,
IO_Type
.
SL_MoveCylinder_Up
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_212_
MoveCylinder_
Take
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_212_
Cylinder
Take
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_213_UpdownAxisToP2
);
int
targetP
=
Config
.
GetUpdownPositionP2
(
MoveInfo
.
MoveParam
.
PlateH
);
...
...
@@ -376,23 +376,23 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_213_UpdownAxisToP2
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_214_
MoveCylinder_
Down
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_214_
Cylinder
Down
);
OutLog
(
"紧急出料移栽"
+
MoveInfo
.
SLog
+
":上料横移机构下降"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Up
,
IO_Type
.
SL_MoveCylinder_Down
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_214_
MoveCylinder_
Down
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_214_
Cylinder
Down
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_215_
MoveCylinder_
Tighten
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_215_
Cylinder
Tighten
);
OutLog
(
"紧急出料移栽"
+
MoveInfo
.
SLog
+
":上料气缸夹紧"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Slack
,
IO_Type
.
SL_MoveCylinder_Tighten
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_215_
MoveCylinder_
Tighten
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_215_
Cylinder
Tighten
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_216_
MoveCylinder_
Up
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_216_
Cylinder
Up
);
OutLog
(
"紧急出料移栽"
+
MoveInfo
.
SLog
+
":上料横移机构上升"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Down
,
IO_Type
.
SL_MoveCylinder_Up
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_216_
MoveCylinder_
Up
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_216_
Cylinder
Up
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_217_UpdownAxisToP1
);
OutLog
(
"紧急出料移栽"
+
MoveInfo
.
SLog
+
":升降伺服到P1"
);
...
...
@@ -407,7 +407,7 @@ namespace OnlineStore.DeviceLibrary
{
if
(
MoveCylineCanTakeOrGive
())
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_218_
MoveCylinder_
Give
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_218_
Cylinder
Give
);
OutLog
(
"紧急出料移栽"
+
MoveInfo
.
SLog
+
":上料横移机构到放料端"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Take
,
IO_Type
.
SL_MoveCylinder_Give
);
}
...
...
@@ -419,7 +419,7 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_218_
MoveCylinder_
Give
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_218_
Cylinder
Give
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_219_UpdownAxisToP3
);
OutLog
(
"紧急出料移栽 "
+
MoveInfo
.
SLog
+
":移栽伺服到P3"
);
...
...
@@ -429,12 +429,12 @@ namespace OnlineStore.DeviceLibrary
{
OutStoreHeight
+=
MoveInfo
.
MoveParam
.
PlateH
;
OutStoreCount
++;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_220_
MoveCylinder_
Slack
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_220_
Cylinder
Slack
);
OutLog
(
"紧急出料移栽 "
+
MoveInfo
.
SLog
+
":出料横移机构放松,累积出库【"
+
OutStoreCount
+
"】盘【"
+
OutStoreHeight
+
"】mm"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Tighten
,
IO_Type
.
SL_MoveCylinder_Slack
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_220_
MoveCylinder_
Slack
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_220_
Cylinder
Slack
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_221_UpdownAxisToP1
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
...
...
source/DeviceLibrary/assemblyLine/LineBean.cs
查看文件 @
84590fa
...
...
@@ -355,9 +355,9 @@ namespace OnlineStore.DeviceLibrary
bool
isNeedAllReset
=
false
;
if
(
isInSuddenDown
||
isNoAirCheck
)
{
TrayManager
.
LineNeedEmptyTrayNum
=
0
;
//
TrayManager.LineNeedEmptyTrayNum = 0;
isNeedAllReset
=
true
;
LogUtil
.
error
(
Name
+
"收到复位信号,
在急停中或没有气压中,强制所有设备复位,清理出库需要的托盘数量
~"
);
LogUtil
.
error
(
Name
+
"收到复位信号,
急停中或没有气压报警中,强制所有设备复位
~"
);
}
else
if
((
runStatus
==
LineRunStatus
.
HomeMoving
||
runStatus
==
LineRunStatus
.
Reset
)
&&
NoAlarm
())
{
...
...
@@ -926,7 +926,8 @@ namespace OnlineStore.DeviceLibrary
}
else
{
SetWarnMsg
(
moveEquip
.
Name
+
"在复位过程中报警,需要重新复位"
);
//SetWarnMsg(moveEquip.Name + "在复位过程中报警,需要重新复位");
LogUtil
.
error
(
Name
+
" "
+
moveEquip
.
Name
+
"在复位过程中报警,需要重新复位"
);
}
}
}
...
...
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
查看文件 @
84590fa
...
...
@@ -240,7 +240,7 @@ namespace OnlineStore.DeviceLibrary
{
Sw23TrayNum
=
trayNum
;
SW23_MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_Wait
Fixture
Check
);
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_WaitCheck
);
SWLog
(
"横移轨道23:检测到SW2_TrayCheck,定位气缸下降,等待横移2托盘检测信号,托盘号 ["
+
Sw23TrayNum
+
"] "
);
SW23_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW2_TrayCheck
,
IO_VALUE
.
HIGH
));
CylinderMove
(
SW23_MoveInfo
,
IO_Type
.
SW2_LocationCylinder_Up
,
IO_Type
.
SW3_LocationCylinder_Down
);
...
...
@@ -258,7 +258,7 @@ namespace OnlineStore.DeviceLibrary
{
Sw41TrayNum
=
trayNum
;
SW41_MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_Wait
Fixture
Check
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_WaitCheck
);
SWLog
(
"横移轨道41:检测到SW4_TrayCheck,定位气缸下降, 等待横移4托盘检测信号,更新托盘号 ["
+
Sw41TrayNum
+
"] "
);
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW4_TrayCheck
,
IO_VALUE
.
HIGH
));
CylinderMove
(
SW41_MoveInfo
,
IO_Type
.
SW4_LocationCylinder_Up
,
IO_Type
.
SW4_LocationCylinder_Down
);
...
...
@@ -361,7 +361,7 @@ namespace OnlineStore.DeviceLibrary
if
(
TrayManager
.
checkWatch
(
sw41WaitWatch
,
TrayManager
.
SwTrayWaitTime
,
true
))
{
SW41_MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_Wait
Fixture
Check
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_WaitCheck
);
UpateSw41TrayNum
();
SWLog
(
"横移轨道41:检测到SW4_TrayCheck,定位气缸下降, 等待横移4托盘检测信号,更新托盘号 ["
+
Sw41TrayNum
+
"] "
);
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW4_TrayCheck
,
IO_VALUE
.
HIGH
));
...
...
@@ -409,7 +409,7 @@ namespace OnlineStore.DeviceLibrary
if
(
TrayManager
.
checkWatch
(
sw23WaitWatch
,
TrayManager
.
SwTrayWaitTime
,
true
))
{
SW23_MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_Wait
Fixture
Check
);
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_WaitCheck
);
UpateSw23TrayNum
();
SWLog
(
"横移轨道23:检测到SW2_TrayCheck,定位气缸下降,等待横移2托盘检测信号,更新托盘号 ["
+
Sw23TrayNum
+
"] "
);
SW23_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW2_TrayCheck
,
IO_VALUE
.
HIGH
));
...
...
@@ -525,7 +525,7 @@ namespace OnlineStore.DeviceLibrary
{
if
(
IOValue
(
IO_Type
.
SW4_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
))
{
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_Wait
Fixture
Check
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_WaitCheck
);
SWLog
(
"横移轨道41: 等待横移4托盘检测信号 ,SW4_StopDown上升 "
);
CheckAndMove
(
IO_Type
.
SW4_StopDown
,
IO_VALUE
.
LOW
);
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW4_TrayCheck
,
IO_VALUE
.
HIGH
));
...
...
@@ -540,7 +540,7 @@ namespace OnlineStore.DeviceLibrary
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW4_TrayCheck
,
IO_VALUE
.
HIGH
));
}
}
else
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW02_Wait
Fixture
Check
))
else
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW02_WaitCheck
))
{
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW03_TopCylinderUp
);
SWLog
(
"横移轨道41:顶升气缸上升 ,至少等待1000 "
);
...
...
@@ -562,12 +562,12 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW04_DriveMotorMove
))
{
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW05_WaitOut
Fixture
Check
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW05_WaitOutCheck
);
SWLog
(
"横移轨道41:等待托盘到达出口 "
);
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
800
));
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW1_TrayCheck
,
IO_VALUE
.
HIGH
));
}
else
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW05_WaitOut
Fixture
Check
))
else
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW05_WaitOutCheck
))
{
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW06_WatOutFixture2
);
SWLog
(
"横移轨道41:再次验证托盘是否在出口处 "
);
...
...
@@ -577,7 +577,7 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW06_WatOutFixture2
))
{
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW07_Top
Cylinder
Down
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW07_TopDown
);
SWLog
(
"横移轨道41:托盘已到达出口,顶升气缸下降,判断入料1是否需要此托盘 "
);
CylinderMove
(
SW41_MoveInfo
,
IO_Type
.
SW4_TopCylinder_Up
,
IO_Type
.
SW4_TopCylinder_Down
);
Thread
.
Sleep
(
50
);
...
...
@@ -586,7 +586,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove
(
SW41_MoveInfo
,
IO_Type
.
SW1_TopCylinder_Up
,
IO_Type
.
SW1_TopCylinder_Down
);
}
}
else
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW07_Top
Cylinder
Down
))
else
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW07_TopDown
))
{
//开始入库
bool
result
=
FeedingEquipMap
[
101
].
CanStartCheckOut
(
Sw41TrayNum
);
...
...
@@ -675,7 +675,7 @@ namespace OnlineStore.DeviceLibrary
{
if
(
IOValue
(
IO_Type
.
SW2_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
))
{
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_Wait
Fixture
Check
);
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_WaitCheck
);
SWLog
(
"横移轨道23: 等待横移4托盘检测信号 ,SW2_StopDown上升 "
);
CheckAndMove
(
IO_Type
.
SW2_StopDown
,
IO_VALUE
.
LOW
);
SW23_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW2_TrayCheck
,
IO_VALUE
.
HIGH
));
...
...
@@ -690,7 +690,7 @@ namespace OnlineStore.DeviceLibrary
SW23_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW2_TrayCheck
,
IO_VALUE
.
HIGH
));
}
}
else
if
(
SW23_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW02_Wait
Fixture
Check
))
else
if
(
SW23_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW02_WaitCheck
))
{
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW03_TopCylinderUp
);
SWLog
(
"横移轨道23:顶升气缸上升 ,至少等待1000 "
);
...
...
@@ -712,12 +712,12 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
SW23_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW04_DriveMotorMove
))
{
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW05_WaitOut
Fixture
Check
);
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW05_WaitOutCheck
);
SWLog
(
"横移轨道23:等待托盘到达出口 "
);
SW23_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
800
));
SW23_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW3_TrayCheck
,
IO_VALUE
.
HIGH
));
}
else
if
(
SW23_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW05_WaitOut
Fixture
Check
))
else
if
(
SW23_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW05_WaitOutCheck
))
{
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW06_WatOutFixture2
);
SWLog
(
"横移轨道23:再次验证托盘是否在出口处 "
);
...
...
@@ -727,7 +727,7 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
SW23_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW06_WatOutFixture2
))
{
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW07_Top
Cylinder
Down
);
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW07_TopDown
);
SWLog
(
"横移轨道23:托盘已到达出口,顶升气缸下降 "
);
CylinderMove
(
SW23_MoveInfo
,
IO_Type
.
SW2_TopCylinder_Up
,
IO_Type
.
SW2_TopCylinder_Down
);
Thread
.
Sleep
(
50
);
...
...
@@ -736,7 +736,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove
(
SW23_MoveInfo
,
IO_Type
.
SW3_TopCylinder_Up
,
IO_Type
.
SW3_TopCylinder_Down
);
}
}
else
if
(
SW23_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW07_Top
Cylinder
Down
))
else
if
(
SW23_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW07_TopDown
))
{
//开始入库
bool
result
=
FeedingEquipMap
[
104
].
CanStartCheckOut
(
Sw23TrayNum
);
...
...
@@ -841,7 +841,7 @@ namespace OnlineStore.DeviceLibrary
}
//前进后退气缸后退以后才可以出库
else
if
(
move
.
runStatus
.
Equals
(
LineRunStatus
.
Busy
)
&&
move
.
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
move
.
MoveInfo
.
MoveStep
>=
(
LineMoveStep
.
MO_58_
UpDown
CylinderDown
))
move
.
MoveInfo
.
MoveStep
>=
(
LineMoveStep
.
MO_58_CylinderDown
))
{
return
true
;
}
...
...
source/DeviceLibrary/assemblyLine/MoveEquip.cs
查看文件 @
84590fa
...
...
@@ -63,7 +63,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
runStatus
=
LineRunStatus
.
HomeMoving
;
LogInfo
(
"开始
原点返回: 上下气缸回原点,阻挡1
气缸上升 "
);
LogInfo
(
"开始
原点返回: 升降轴回原点,阻挡
气缸上升 "
);
MoveInfo
.
NewMove
(
LineMoveType
.
ReturnHome
);
StartReset
();
if
(
isDebug
)
...
...
@@ -81,7 +81,7 @@ namespace OnlineStore.DeviceLibrary
{
return
false
;
}
LogInfo
(
"开始重置:
上下气缸回原点,阻挡1
气缸上升 "
);
LogInfo
(
"开始重置:
升降轴回原点,阻挡
气缸上升 "
);
runStatus
=
LineRunStatus
.
Reset
;
SecondMoveInfo
.
EndMove
();
...
...
@@ -129,22 +129,22 @@ namespace OnlineStore.DeviceLibrary
//复位时夹紧气缸需要发送,不然后面出入库会有问题
switch
(
MoveInfo
.
MoveStep
)
{
case
LineMoveStep
.
MH_UpDownHome
Move
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_
UpDownCylinder_
Up
);
DebugInfo
(
MoveInfo
.
MoveType
+
" :
(上下轴原点返回完成,上下轴走到待机点 )开始
"
);
case
LineMoveStep
.
MH_UpDownHome
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_
Cylinder
Up
);
DebugInfo
(
MoveInfo
.
MoveType
+
" :
升降轴走到待机点
"
);
UpdownUpMove
();
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
break
;
case
LineMoveStep
.
MH_
UpDownCylinder_
Up
:
case
LineMoveStep
.
MH_
Cylinder
Up
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_OtherCylinder
_
Back
);
DebugInfo
(
MoveInfo
.
MoveType
+
" :
(上升到位,顶升气缸下降,前后气缸回退 )开始
"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_OtherCylinderBack
);
DebugInfo
(
MoveInfo
.
MoveType
+
" :
上升气缸到位,顶升气缸下降,前后气缸后退,夹紧气缸放松
"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Slack
,
IO_Type
.
ClampCylinder_Tighten
);
break
;
case
LineMoveStep
.
MH_OtherCylinder
_
Back
:
case
LineMoveStep
.
MH_OtherCylinderBack
:
LogInfo
(
MoveInfo
.
MoveType
+
" 完成!"
);
runStatus
=
LineRunStatus
.
Runing
;
...
...
@@ -174,13 +174,13 @@ namespace OnlineStore.DeviceLibrary
{
DebugInfo
(
"停止运动时出库执行中,减去托盘数;"
);
//减去需要的盘数
TrayManager
.
DelNeedEmptyTrayNum
();
//
TrayManager.DelNeedEmptyTrayNum();
MoveInfo
.
EndMove
();
}
runStatus
=
LineRunStatus
.
Busy
;
SecondMoveInfo
.
EndMove
();
LogInfo
(
"停止运动:上下气缸上升端,阻挡气缸上升
,开始
"
);
LogInfo
(
"停止运动:上下气缸上升端,阻挡气缸上升 "
);
UpdownUpMove
();
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
...
...
@@ -333,12 +333,12 @@ namespace OnlineStore.DeviceLibrary
{
if
(
UseAxis
)
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_UpDownHome
Move
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_UpDownHome
);
UpdownAxis
.
HomeMove
(
MoveInfo
);
}
else
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_
UpDownCylinder_
Up
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_
Cylinder
Up
);
CylinderMove
(
MoveInfo
,
IO_Type
.
UpDownCylinder_Down
,
IO_Type
.
UpDownCylinder_Up
);
}
}
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
84590fa
...
...
@@ -16,12 +16,7 @@ namespace OnlineStore.DeviceLibrary
public
override
bool
StartOutStoreMove
(
InOutParam
param
)
{
string
posId
=
param
!=
null
?
param
.
PosId
:
""
;
////调试模式移栽装置不需要有操作
//if (IsDebug)
//{
// LogInfo("需要出库【" + posId + "】处于调试模式,暂时不再进行出入库操作");
// return false;
//}
if
(
param
.
Equals
(
null
))
{
LogUtil
.
error
(
Name
+
"出库【"
+
posId
+
"】失败,param=null"
);
...
...
@@ -29,18 +24,18 @@ namespace OnlineStore.DeviceLibrary
}
if
(
runStatus
.
Equals
(
LineRunStatus
.
Runing
))
{
LogInfo
(
"启动出库【"
+
posId
+
"】
:开始叫托盘
"
);
LogInfo
(
"启动出库【"
+
posId
+
"】 "
);
runStatus
=
LineRunStatus
.
Busy
;
lineStatus
=
LineStatus
.
OutStoreExecute
;
MoveInfo
.
NewMove
(
LineMoveType
.
OutStore
);
MoveInfo
.
MoveParam
=
param
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_50_StartOutProcess
);
TrayManager
.
AddNeedEmptyTrayNum
();
//
TrayManager.AddNeedEmptyTrayNum();
return
true
;
}
else
{
LogUtil
.
error
(
Name
+
" 启动出库【"
+
posId
+
"】失败,
当前状态,store
Status="
+
runStatus
);
LogUtil
.
error
(
Name
+
" 启动出库【"
+
posId
+
"】失败,
run
Status="
+
runStatus
);
return
false
;
}
}
...
...
@@ -62,58 +57,58 @@ namespace OnlineStore.DeviceLibrary
#
region
移载装置
移栽物品操作
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_50_StartOutProcess
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_51_
BeforeAfter
CylinderBefore
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_51_CylinderBefore
);
OutLog
(
"出库 "
+
MoveInfo
.
MoveStep
+
": 前后气缸前进 )"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_51_
BeforeAfter
CylinderBefore
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_51_CylinderBefore
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_52_
UpDown
CylinderDown
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 上下气缸
1
下降 )"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_52_CylinderDown
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 上下气缸下降 )"
);
UpdownDownP3Move
(
MoveInfo
.
MoveParam
.
PlateH
);
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Up, IO_Type.UpDownCylinder_Down);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_52_
UpDown
CylinderDown
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_52_CylinderDown
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_53_
UpDownCylinder
DownWait
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_53_DownWait
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 等待300ms后夹紧"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
300
));
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_53_
UpDownCylinder
DownWait
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_53_DownWait
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_54_C
lampCylinderSlack
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹料气缸
1
夹紧,更新料盘位置【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【MOVING】【"
+
DeviceID
+
"】"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_54_C
ylinderOpen
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹料气缸夹紧,更新料盘位置【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【MOVING】【"
+
DeviceID
+
"】"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Tighten
,
IO_Type
.
ClampCylinder_Slack
);
//更新料盘位置
SServerManager
.
UpdateTrayLoc
(
Name
,
MoveInfo
.
MoveParam
.
WareCode
,
LocStatus
.
MOVING
,
DeviceID
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_54_C
lampCylinderSlack
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_54_C
ylinderOpen
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_55_
UpDown
CylinderUp
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 上下气缸
1
上升)"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_55_CylinderUp
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 上下气缸上升)"
);
UpdownUpMove
();
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_55_
UpDown
CylinderUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_55_CylinderUp
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_56_
BeforeAfter
CylinderAfter
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 前后气缸
1
后退)"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_56_CylinderAfter
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 前后气缸后退)"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
}
#
endregion
#
region
移载装置,放物品到流水线操作
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_11_CodeRember
)
&&
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_56_
BeforeAfter
CylinderAfter
)
&&
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_56_CylinderAfter
)
&&
!
SecondMoveInfo
.
IsInWait
)
{
int
trayNum
=
SecondMoveInfo
.
MoveParam
.
TrayNumber
;
//去掉直接丢盘处理
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_58_
UpDown
CylinderDown
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹具检测编码完成, 上下气缸
1
下降 ,更新料盘位置【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【INLINE】【"
+
trayNum
+
"】"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_58_CylinderDown
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹具检测编码完成, 上下气缸下降 ,更新料盘位置【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【INLINE】【"
+
trayNum
+
"】"
);
if
(
MoveInfo
.
MoveParam
!=
null
)
{
MoveInfo
.
MoveParam
.
TrayNumber
=
trayNum
;
...
...
@@ -127,29 +122,29 @@ namespace OnlineStore.DeviceLibrary
SServerManager
.
UpdateTrayLoc
(
Name
,
MoveInfo
.
MoveParam
.
WareCode
,
LocStatus
.
INLINE
,
trayNum
);
UpdownDownP2Move
(
MoveInfo
.
MoveParam
.
PlateH
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_58_
UpDown
CylinderDown
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_58_CylinderDown
))
{
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹料气缸
1
放松,更新托盘【"
+
MoveInfo
.
MoveParam
.
TrayNumber
+
"】,有料盘,OutStore,【"
+
MoveInfo
.
MoveParam
.
ToStr
()
+
"】"
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹料气缸放松,更新托盘【"
+
MoveInfo
.
MoveParam
.
TrayNumber
+
"】,有料盘,OutStore,【"
+
MoveInfo
.
MoveParam
.
ToStr
()
+
"】"
);
TrayManager
.
UpdateTrayInfo
(
MoveInfo
.
MoveParam
.
TrayNumber
,
true
,
ReelType
.
OutStore
,
MoveInfo
.
MoveParam
);
//出库全部完成
lineStatus
=
LineStatus
.
StoreOnline
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_59_C
lampCylinderTighten
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_59_C
ylinderRelax
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Slack
,
IO_Type
.
ClampCylinder_Tighten
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_59_C
lampCylinderTighten
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_59_C
ylinderRelax
))
{
this
.
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_60_
UpDown
CylinderUp
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 上下气缸
1
上升)"
);
this
.
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_60_CylinderUp
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 上下气缸上升)"
);
UpdownUpMove
();
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_60_
UpDown
CylinderUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_60_CylinderUp
))
{
// 减去需要的盘数
TrayManager
.
DelNeedEmptyTrayNum
();
//
TrayManager.DelNeedEmptyTrayNum();
SOutLog
(
"出库 :移栽完成,放行托盘"
);
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_Top
Cylinder_
Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_TopDown
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
OutLog
(
"出库处理结束!"
);
...
...
@@ -183,8 +178,8 @@ namespace OnlineStore.DeviceLibrary
lineStatus
=
LineStatus
.
InStoreExecute
;
MoveInfo
.
MoveParam
=
param
;
MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
LogInfo
(
"入库【"
+
posId
+
"】处理(移栽):(MI_07_
UpDownCylinderDown,上下气缸1
下降)"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_0
7_UpDown
CylinderDown
);
LogInfo
(
"入库【"
+
posId
+
"】处理(移栽):(MI_07_
CylinderDown,上下气缸
下降)"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_0
6_
CylinderDown
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
UpdownDownP2Move
(
MoveInfo
.
MoveParam
.
PlateH
);
return
true
;
...
...
@@ -211,74 +206,74 @@ namespace OnlineStore.DeviceLibrary
return
;
}
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosId
:
""
;
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_0
7_UpDown
CylinderDown
))
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_0
6_
CylinderDown
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_07_
UpDownCylinder
DownWait
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_07_DownWait
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 等待300ms后夹紧"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
300
));
}
//只有当BOX可以进行出入库时,移栽物品,防止卡住
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_07_
UpDownCylinder
DownWait
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_07_DownWait
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_08_C
lampCylinderSlack
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 夹料气缸
1
夹紧)"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_08_C
ylinderOpen
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 夹料气缸夹紧)"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Tighten
,
IO_Type
.
ClampCylinder_Slack
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_08_C
lampCylinderSlack
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_08_C
ylinderOpen
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_09_
UpDown
CylinderUp
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 上下气缸
1
上升)"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_09_CylinderUp
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 上下气缸上升)"
);
UpdownUpMove
();
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_09_
UpDown
CylinderUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_09_CylinderUp
))
{
int
num
=
MoveInfo
.
MoveParam
.
TrayNumber
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_10_WaitBox
);
LogInfo
(
"入库【"
+
posId
+
"】
处理(等待移栽):(判断box门口没有盘, 且可以入库),更新盘号
【"
+
num
+
"】为空盘"
);
LogInfo
(
"入库【"
+
posId
+
"】
"
+
MoveInfo
.
SLog
+
": (判断box门口没有盘, 且可以入库),更新托盘
【"
+
num
+
"】为空盘"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitBoxCanReviceTray
());
TrayManager
.
UpdateTrayInfo
(
num
);
//阻挡气缸移动
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
InLog
(
"放托盘(放开阻挡): "
+
MoveInfo
.
SLog
+
" 物品已移走,顶升气缸1下降"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_Top
Cylinder_
Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_TopDown
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_10_WaitBox
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_10_
BeforeAfter
CylinderBefore
);
InLog
(
"入库:
(MI_10_BeforeAfterCylinderBefore,
前后气缸1前进"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_10_CylinderBefore
);
InLog
(
"入库:
"
+
MoveInfo
.
SLog
+
"
前后气缸1前进"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_10_
BeforeAfter
CylinderBefore
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_10_CylinderBefore
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_11_
UpDown
CylinderDown
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
" ,上下气缸
1
下降"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_11_CylinderDown
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
" ,上下气缸下降"
);
UpdownDownP3Move
(
MoveInfo
.
MoveParam
.
PlateH
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_11_
UpDown
CylinderDown
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_11_CylinderDown
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_12_C
lampCylinderTighten
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
",夹料气缸
1
放松"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_12_C
ylinderRelax
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
",夹料气缸放松"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Slack
,
IO_Type
.
ClampCylinder_Tighten
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_12_C
lampCylinderTighten
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_12_C
ylinderRelax
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_13_UpdownCylinderUp
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
",上下气缸
1
上升"
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
",上下气缸上升"
);
UpdownUpMove
();
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_13_UpdownCylinderUp
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_14_
BeforeAfter
CylinderAfter
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
",前后气缸
1
后退,等待1000 )"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_14_CylinderAfter
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
",前后气缸后退,等待1000 )"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
//此时box就可以入库操作了 //触发事件,BOX入库
// LineServer.StartInStore(DeviceID, MoveInfo.MoveParam);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_14_
BeforeAfter
CylinderAfter
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_14_CylinderAfter
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_15_SendPosToStore
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
",通知BOX开始入库,等待3000"
);
...
...
@@ -356,8 +351,8 @@ namespace OnlineStore.DeviceLibrary
private
bool
CheckIsNeedOutStore
()
{
bool
isFull
=
TrayManager
.
TrayIsFull
(
currTrayNum
);
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
(
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_56_
BeforeAfter
CylinderAfter
)
&&
(!
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_60_
UpDown
CylinderUp
)))
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
(
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_56_CylinderAfter
)
&&
(!
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_60_CylinderUp
)))
{
if
(
isFull
.
Equals
(
false
))
{
...
...
@@ -427,7 +422,7 @@ namespace OnlineStore.DeviceLibrary
{
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
" 阻挡气缸1-1上升)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop
Cylinder
2Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop2Down
);
IOMove
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
LOW
));
}
...
...
@@ -435,7 +430,7 @@ namespace OnlineStore.DeviceLibrary
{
//托盘在第一个阻挡处
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_00_Stop
Cylinder
1Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_00_Stop1Down
);
CheckLog
(
" 托盘检测:料盘检测StopCylinder_Check1 "
+
SecondMoveInfo
.
SLog
+
"阻挡气缸1-1下降 , 等待 "
+
TrayManager
.
StopDownWaitTime
);
IOMove
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
HIGH
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
HIGH
));
...
...
@@ -459,7 +454,7 @@ namespace OnlineStore.DeviceLibrary
}
#
region
托盘检测
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_00_Stop
Cylinder
1Down
))
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_00_Stop1Down
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_01_FixtureCheck
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
" 阻挡气缸1-1上升,等待 阻挡2托盘检测=1)"
);
...
...
@@ -469,12 +464,12 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_01_FixtureCheck
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop
Cylinder
2Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop2Down
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
" 再次等待托盘信号"
);
IOMove
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Check2
,
IO_VALUE
.
HIGH
));
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_03_Stop
Cylinder
2Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_03_Stop2Down
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_04_Wait
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
" ,等待编码信号稳定)"
);
...
...
@@ -538,11 +533,11 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_05_WaitTime
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_Top
Cylinder
Up
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_TopUp
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
" 顶升气缸上 升 )"
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_UP
);
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_06_Top
Cylinder
Up
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_06_TopUp
))
{
CheckLog
(
"托盘阻挡*************** 托盘号【"
+
currTrayNum
+
"】"
);
...
...
@@ -576,7 +571,7 @@ namespace OnlineStore.DeviceLibrary
{
TrayManager
.
UpdateTrayNumError
(-
1
,
""
);
}
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_Top
Cylinder_
Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_TopDown
);
CheckLog
(
"托盘检测"
+
SecondMoveInfo
.
SLog
+
" ,托盘号【"
+
currTrayNum
+
"】,直接放盘通过,顶升气缸下降 "
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
}
...
...
@@ -591,7 +586,7 @@ namespace OnlineStore.DeviceLibrary
#
endregion
#
region
不需要出入库,直接放行
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_14_Top
Cylinder_
Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_14_TopDown
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_15_WaitCanGo
);
CheckLog
(
"托盘放行"
+
SecondMoveInfo
.
SLog
+
" ,移栽2,需要判断是否可以放盘通过,最多等待10000 "
);
...
...
@@ -605,19 +600,19 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_15_WaitCanGo
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_16_Stop
Cylinder2_
Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_16_Stop
2
Down
);
CheckLog
(
"托盘放行"
+
SecondMoveInfo
.
SLog
+
" ,阻挡气缸1-2下降)"
);
IOMove
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
HIGH
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
HIGH
));
// SecondMoveInfo.EndStepWait();
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_16_Stop
Cylinder2_
Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_16_Stop
2
Down
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_17_
Tray_
Check
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_17_
Stop2
Check
);
CheckLog
(
"托盘放行"
+
SecondMoveInfo
.
SLog
+
" , 阻挡2托盘检测=0), 延时2秒)"
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Check2
,
IO_VALUE
.
LOW
));
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_17_
Tray_
Check
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_17_
Stop2
Check
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_18_StopCylinder_Back
);
CheckLog
(
"托盘放行"
+
SecondMoveInfo
.
SLog
+
" , 阻挡气缸1-2上升 )"
);
...
...
source/DeviceLibrary/assemblyLine/OutTrayLineBean.cs
查看文件 @
84590fa
...
...
@@ -60,13 +60,13 @@ namespace OnlineStore.DeviceLibrary
private
string
posId
=
""
;
public
bool
StartOut
(
InOutParam
moveParam
)
{
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
)
&&
(
equipBean
.
runStatus
.
Equals
(
LineRunStatus
.
Runing
)||
equipBean
.
runStatus
.
Equals
(
LineRunStatus
.
Busy
)))
if
(
LineTurnIsStop
()
&&
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
)
&&
(
equipBean
.
runStatus
.
Equals
(
LineRunStatus
.
Runing
)||
equipBean
.
runStatus
.
Equals
(
LineRunStatus
.
Busy
)))
{
MoveInfo
.
MoveParam
=
moveParam
;
MoveInfo
.
NewMove
(
LineMoveType
.
OutStore
);
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosId
:
""
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DLO_01_WaitEntryNoTray
);
LogUtil
.
info
(
Name
+
"开始出料【"
+
moveParam
.
PosId
+
"】处理:"
+
MoveInfo
.
SLog
+
"等待入
口无料盘,NG气缸后退"
);
LogUtil
.
info
(
Name
+
"开始出料【"
+
moveParam
.
ToStr
()
+
"】:"
+
MoveInfo
.
SLog
+
"等待出
口无料盘,NG气缸后退"
);
if
(
equipBeanId
.
Equals
(
302
)
&&
EntryLocation_Check
.
Equals
(
IO_Type
.
EntryLocation_Check2
))
{
equipBean
.
CylinderMove
(
MoveInfo
,
IO_Type
.
NGCylinder_Before
,
IO_Type
.
NGCylinder_After
);
...
...
@@ -107,14 +107,14 @@ namespace OnlineStore.DeviceLibrary
TimeSpan
span
=
DateTime
.
Now
-
MoveInfo
.
LastSetpTime
;
if
(
span
.
TotalMinutes
>
3
)
{
LogUtil
.
error
(
Name
+
"等待出
库等待出
口无料盘超时:"
+
FormUtil
.
GetSpanStr
(
span
),
305
);
LogUtil
.
error
(
Name
+
"等待出口无料盘超时:"
+
FormUtil
.
GetSpanStr
(
span
),
305
);
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DLO_02_WaitExitNoTray
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DLO_03_LineRun
);
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"
入口出口都没有料盘,转动皮带线到入口定位亮
"
);
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"
出口无料盘,转动到入口定位
"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
lineRun
.
StartLineRun
(
LineRun_Do
,
EntryLocation_Check
,
null
);
}
...
...
@@ -123,7 +123,7 @@ namespace OnlineStore.DeviceLibrary
if
(
LineTurnIsStop
())
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DLO_04_CanReviceTray
);
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"---
---------等待移栽放下料盘--------
"
);
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"---
等待移栽放料盘--
"
);
if
(
equipBean
.
IsDebug
)
{
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
}
}
...
...
@@ -133,19 +133,19 @@ namespace OnlineStore.DeviceLibrary
if
(
equipBean
.
IsDebug
)
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DLO_05_TrayIsOk
);
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"
移栽放下料盘后更新
为已放料盘"
);
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"
调试中更改
为已放料盘"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DLO_05_TrayIsOk
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DLO_06_
LineRun_OutLocation_
Check
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DLO_06_
Out
Check
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"
------------料盘已放下----
----转动到出口定位"
);
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"
--料盘已放
----转动到出口定位"
);
LastTrayPosition
=
1
;
lineRun
.
StartLineRun
(
LineRun_Do
,
ExitLocation_Check
,
null
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DLO_06_
LineRun_OutLocation_
Check
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DLO_06_
Out
Check
))
{
if
(
LineTurnIsStop
())
{
...
...
@@ -158,8 +158,8 @@ namespace OnlineStore.DeviceLibrary
{
if
(
MoveInfo
.
MoveParam
.
InStoreNg
)
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DLO_08_NG
Cylinder_
Before
);
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"NG气缸前进
,等待2000
"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DLO_08_NGBefore
);
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"NG气缸前进"
);
equipBean
.
CylinderMove
(
MoveInfo
,
IO_Type
.
NGCylinder_After
,
IO_Type
.
NGCylinder_Before
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
}
...
...
@@ -169,13 +169,13 @@ namespace OnlineStore.DeviceLibrary
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DLO_08_NG
Cylinder_
Before
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DLO_08_NGBefore
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DLO_09_NG
Cylinder_
After
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DLO_09_NGAfter
);
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"NG气缸后退"
);
equipBean
.
CylinderMove
(
MoveInfo
,
IO_Type
.
NGCylinder_Before
,
IO_Type
.
NGCylinder_After
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DLO_09_NG
Cylinder_
After
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
DLO_09_NGAfter
))
{
CheckIsNeedRun
();
}
...
...
@@ -246,7 +246,7 @@ namespace OnlineStore.DeviceLibrary
}
}
MoveInfo
.
NextMoveStep
(
nextStep
);
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"最后一盘料位置【"
+
LastTrayPosition
+
"】,
继续转动一个工
位"
);
LogUtil
.
info
(
Name
+
"出料【"
+
posId
+
"】:"
+
MoveInfo
.
SLog
+
"最后一盘料位置【"
+
LastTrayPosition
+
"】,
转动到出口定
位"
);
lineRun
.
StartLineRun
(
LineRun_Do
,
ExitLocation_Check
,
LineEndProcess
);
}
...
...
@@ -302,7 +302,7 @@ namespace OnlineStore.DeviceLibrary
lineRun
.
StartLineRun
(
LineRun_Do
,
ExitLocation_Check
,
LineEndProcess
);
}
else
if
(
MoveInfo
.
MoveStep
<=
LineMoveStep
.
DLO_01_WaitEntryNoTray
&&
else
if
(
MoveInfo
.
MoveStep
<=
LineMoveStep
.
DLO_01_WaitEntryNoTray
&&
MoveInfo
.
IsInWait
.
Equals
(
false
)
&&
equipBean
.
IOValue
(
ExitTray_Check
).
Equals
(
IO_VALUE
.
HIGH
))
{
//皮带线1出口有料,皮带3入库无料,且在停止状态
...
...
@@ -372,6 +372,10 @@ namespace OnlineStore.DeviceLibrary
while
(
true
)
{
Thread
.
Sleep
(
50
);
if
(
IOManager
.
IOValue
(
moveDO
,
subType
).
Equals
(
IO_VALUE
.
LOW
))
{
IOManager
.
IOMove
(
moveDO
,
IO_VALUE
.
HIGH
,
subType
);
}
TimeSpan
span
=
DateTime
.
Now
-
startTime
;
if
(!
InTurn
)
{
...
...
source/DeviceLibrary/assemblyLine/ProvidingEquip.cs
查看文件 @
84590fa
...
...
@@ -60,7 +60,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
runStatus
=
LineRunStatus
.
HomeMoving
;
LogInfo
(
"开始
原点返回: (上下气上升,阻挡气缸上升 )开始
"
);
LogInfo
(
"开始
原点返回: 升降轴回原点,阻挡气缸上升
"
);
MoveInfo
.
NewMove
(
LineMoveType
.
ReturnHome
);
StartReset
();
...
...
@@ -78,7 +78,7 @@ namespace OnlineStore.DeviceLibrary
{
return
false
;
}
LogInfo
(
"开始重置:清理盘号,
(上下气上升,阻挡气缸上升 )开始
"
);
LogInfo
(
"开始重置:清理盘号,
升降轴回原点,阻挡气缸上升
"
);
runStatus
=
LineRunStatus
.
Reset
;
MoveInfo
.
NewMove
(
LineMoveType
.
Reset
);
StartReset
();
...
...
@@ -89,7 +89,7 @@ namespace OnlineStore.DeviceLibrary
{
ResetClearData
();
lineStatus
=
LineStatus
.
ResetMove
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_
UpDownCylinder_
Up
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_
Cylinder
Up
);
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
UpdownHomeMove
();
if
(
IsDebug
)
...
...
@@ -119,20 +119,20 @@ namespace OnlineStore.DeviceLibrary
{
switch
(
MoveInfo
.
MoveStep
)
{
case
LineMoveStep
.
MH_UpDownHome
Move
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_
UpDownCylinder_
Up
);
LogInfo
(
MoveInfo
.
MoveType
+
" :
(上下轴原点返回完成,上下轴走到待机点 )开始
"
);
case
LineMoveStep
.
MH_UpDownHome
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_
Cylinder
Up
);
LogInfo
(
MoveInfo
.
MoveType
+
" :
升降轴走到待机点
"
);
UpdownUpMove
();
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
break
;
case
LineMoveStep
.
MH_
UpDownCylinder_
Up
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_OtherCylinder
_
Back
);
LogInfo
(
MoveInfo
.
MoveType
+
" :
(上升到位,顶升气缸下降,前后气缸后退,夹紧气缸放松 )开始
"
);
case
LineMoveStep
.
MH_
Cylinder
Up
:
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_OtherCylinderBack
);
LogInfo
(
MoveInfo
.
MoveType
+
" :
上升气缸到位,顶升气缸下降,前后气缸后退,夹紧气缸放松
"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Slack
,
IO_Type
.
ClampCylinder_Tighten
);
break
;
case
LineMoveStep
.
MH_OtherCylinder
_
Back
:
case
LineMoveStep
.
MH_OtherCylinderBack
:
MoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
LogInfo
(
MoveInfo
.
MoveType
+
" 完成!"
);
...
...
@@ -159,7 +159,7 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo
.
EndMove
();
runStatus
=
LineRunStatus
.
Runing
;
LogInfo
(
"停止运动:
(上下气缸上升 ,阻挡气缸输入=0,顶升气缸下降 )
"
);
LogInfo
(
"停止运动:
上下气缸上升 ,阻挡气缸上升,顶升气缸下降
"
);
if
(
UseAxis
)
{
...
...
@@ -257,13 +257,13 @@ namespace OnlineStore.DeviceLibrary
{
if
(
UseAxis
)
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_UpDownHome
Move
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_UpDownHome
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
UpdownAxis
.
HomeMove
(
MoveInfo
);
}
else
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_
UpDownCylinder_
Up
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MH_
Cylinder
Up
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
CylinderMove
(
MoveInfo
,
IO_Type
.
UpDownCylinder_Down
,
IO_Type
.
UpDownCylinder_Up
);
}
...
...
source/DeviceLibrary/assemblyLine/ProvidingEquip_Partial.cs
查看文件 @
84590fa
...
...
@@ -46,7 +46,7 @@ namespace OnlineStore.DeviceLibrary
{
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
"阻挡气缸1-1上升)"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop
Cylinder
2Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop2Down
);
IOMove
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
LOW
));
}
...
...
@@ -58,7 +58,7 @@ namespace OnlineStore.DeviceLibrary
{
//托盘在第一个阻挡处
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_00_Stop
Cylinder
1Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_00_Stop1Down
);
CheckLog
(
" 托盘检测:"
+
SecondMoveInfo
.
SLog
+
"阻挡气缸1-1下降 ,最多等待"
+
TrayManager
.
StopDownWaitTime
);
IOMove
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
HIGH
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
HIGH
));
...
...
@@ -74,7 +74,7 @@ namespace OnlineStore.DeviceLibrary
{
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
OutLog
(
"放托盘(放开阻挡)"
+
MoveInfo
.
SLog
+
" 物品已移走,顶升气缸1下降"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_Top
Cylinder_
Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_TopDown
);
if
(
Config
.
SidesWayNum
<=
0
)
{
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
...
...
@@ -143,23 +143,23 @@ namespace OnlineStore.DeviceLibrary
firstLine
=
new
List
<
int
>
{
3
,
4
};
}
}
bool
kongxian
=
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
)||
MoveInfo
.
MoveStep
>=
LineMoveStep
.
PO_08_CylinderRelax
;
if
(
mustLine
.
Count
>
0
)
{
if
(
mustLine
.
Contains
(
lineNum
))
{
return
inoup
;
}
}
else
if
(
firstLine
.
Count
>
0
)
}
else
if
(
firstLine
.
Count
>
0
)
{
if
(
firstLine
.
Contains
(
lineNum
))
if
(
firstLine
.
Contains
(
lineNum
)
&&
kongxian
)
{
return
inoup
;
}
else
if
(
LineManager
.
Line
.
ProvidingCanUse
(
firstLine
).
Equals
(
false
))
}
else
if
(
LineManager
.
Line
.
ProvidingCanUse
(
firstLine
).
Equals
(
false
)
&&
kongxian
)
{
//优先线不可用
return
inoup
;
}
else
if
(
span
.
TotalSeconds
>
youxianS
)
}
else
if
(
span
.
TotalSeconds
>
youxianS
&&
kongxian
)
{
//超过指定的时间
return
inoup
;
...
...
@@ -167,9 +167,12 @@ namespace OnlineStore.DeviceLibrary
}
else
{
if
(
kongxian
)
{
return
inoup
;
}
}
}
//TODO 判断是否是需要移栽出料的料盘
return
null
;
...
...
@@ -190,7 +193,7 @@ namespace OnlineStore.DeviceLibrary
}
#
region
托盘检测
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_00_Stop
Cylinder
1Down
))
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_00_Stop1Down
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_01_FixtureCheck
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
" 阻挡气缸1-1上升,等待 阻挡2托盘检测=1)"
);
...
...
@@ -199,7 +202,7 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_01_FixtureCheck
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop
Cylinder
2Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop2Down
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
" 等待"
+
TrayManager
.
SwTrayWaitTime
+
",再次检测料盘信号"
);
IOMove
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
OneWaitCanEndStep
=
true
;
...
...
@@ -207,7 +210,7 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
TrayManager
.
StopDownWaitTime
));
// SecondMoveInfo.EndStepWait();
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_03_Stop
Cylinder
2Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_03_Stop2Down
))
{
if
(
IOValue
(
IO_Type
.
StopCylinder_Check2
).
Equals
(
IO_VALUE
.
HIGH
))
{
...
...
@@ -218,7 +221,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop
Cylinder
2Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_03_Stop2Down
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
" 等待"
+
TrayManager
.
SwTrayWaitTime
+
",再次检测料盘信号"
);
IOMove
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
LOW
);
SecondMoveInfo
.
OneWaitCanEndStep
=
true
;
...
...
@@ -241,7 +244,7 @@ namespace OnlineStore.DeviceLibrary
{
SecondMoveInfo
.
MoveParam
=
param
;
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_05_WaitTime
);
CheckLog
(
"托盘 【"
+
currTrayNum
+
"】需要出
库
"
+
SecondMoveInfo
.
SLog
+
":"
+
param
.
ToStr
()
+
" 等待1秒后顶升上升 )"
);
CheckLog
(
"托盘 【"
+
currTrayNum
+
"】需要出
料
"
+
SecondMoveInfo
.
SLog
+
":"
+
param
.
ToStr
()
+
" 等待1秒后顶升上升 )"
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitProvidingEquipCanOut
());
//等待
...
...
@@ -251,7 +254,7 @@ namespace OnlineStore.DeviceLibrary
{
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
CheckLog
(
"放托盘(放开阻挡)"
+
MoveInfo
.
SLog
+
" 托盘 【"
+
currTrayNum
+
"】直接放行"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_Top
Cylinder_
Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_TopDown
);
if
(
Config
.
SidesWayNum
<=
0
)
{
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
...
...
@@ -269,11 +272,11 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_05_WaitTime
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_Top
Cylinder
Up
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_TopUp
);
CheckLog
(
"托盘阻挡 "
+
SecondMoveInfo
.
SLog
+
" 顶升气缸上升 "
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_UP
);
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_06_Top
Cylinder
Up
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_06_TopUp
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_11_CodeRember
);
LogInfo
(
SecondMoveInfo
.
MoveNum
+
" 托盘号【"
+
currTrayNum
+
"】等待移栽料盘"
);
...
...
@@ -282,13 +285,13 @@ namespace OnlineStore.DeviceLibrary
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_11_CodeRember
)
&&
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_09_WaitLetFixtureGo
);
CheckLog
(
"托盘放行 "
+
SecondMoveInfo
.
SLog
+
"开始新的出
库
任务~"
+
SecondMoveInfo
.
MoveParam
.
ToStr
()+
",等待移栽完成后放开阻挡)"
);
CheckLog
(
"托盘放行 "
+
SecondMoveInfo
.
SLog
+
"开始新的出
料
任务~"
+
SecondMoveInfo
.
MoveParam
.
ToStr
()+
",等待移栽完成后放开阻挡)"
);
bool
result
=
StartOutStoreMove
(
SecondMoveInfo
.
MoveParam
);
}
#
endregion
#
region
不需要出出料,直接放行
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_14_Top
Cylinder_
Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_14_TopDown
))
{
if
(
Config
.
SidesWayNum
>
0
)
{
...
...
@@ -298,7 +301,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_16_Stop
Cylinder2_
Down
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_16_Stop
2
Down
);
CheckLog
(
"托盘放行 "
+
SecondMoveInfo
.
SLog
+
" ,阻挡气缸1-2下降)"
);
IOMove
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
HIGH
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
HIGH
));
...
...
@@ -307,19 +310,19 @@ namespace OnlineStore.DeviceLibrary
}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_15_WaitCanGo))
//{
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop
Cylinder2_
Down);
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop
2
Down);
// CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降)");
// IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH));
// // SecondMoveInfo.EndStepWait();
//}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_16_Stop
Cylinder2_
Down
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_16_Stop
2
Down
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_17_
Tray_
Check
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_17_
Stop2
Check
);
CheckLog
(
"托盘放行 "
+
SecondMoveInfo
.
SLog
+
" , 阻挡2托盘检测=0"
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Check2
,
IO_VALUE
.
LOW
));
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_17_
Tray_
Check
))
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_17_
Stop2
Check
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_18_StopCylinder_Back
);
CheckLog
(
"托盘放行 "
+
SecondMoveInfo
.
SLog
+
" , 阻挡气缸1-2上升 )"
);
...
...
@@ -355,7 +358,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
MoveParam
=
param
;
MoveInfo
.
NewMove
(
LineMoveType
.
OutStore
);
LogInfo
(
"出料【"
+
posId
+
"】处理(移栽):(PO_00_BeforeAfterAfter, 前后气缸后退)"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_00_
BeforeAft
erAfter
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_00_
Cylind
erAfter
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
return
true
;
...
...
@@ -382,50 +385,49 @@ namespace OnlineStore.DeviceLibrary
return
;
}
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosId
:
""
;
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_00_
BeforeAft
erAfter
))
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_00_
Cylind
erAfter
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_01_
UpDown
CylinderDown
);
LogInfo
(
" "
+
MoveInfo
.
SLog
+
" : 上下气缸
1
下降)"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_01_CylinderDown
);
LogInfo
(
" "
+
MoveInfo
.
SLog
+
" : 上下气缸下降)"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
UpdownDownP2Move
(
MoveInfo
.
MoveParam
.
PlateH
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_01_
UpDown
CylinderDown
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_01_CylinderDown
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_02_
UpDownCylinder
DownWait
);
OutLog
(
"出
库 "
+
MoveInfo
.
SLog
+
" : 上下气缸1下降后等待0.3秒再
夹紧"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_02_DownWait
);
OutLog
(
"出
料 "
+
MoveInfo
.
SLog
+
" : 等待300后
夹紧"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
300
));
}
//只有当BOX可以进行出出料时,移栽物品,防止卡住
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_02_
UpDownCylinder
DownWait
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_02_DownWait
))
{
int
lineId
=
DeviceID
%
100
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_03_C
lampCylinderSlack
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_03_C
ylinderOpen
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Tighten
,
IO_Type
.
ClampCylinder_Slack
);
if
(
MoveInfo
.
MoveParam
.
InStoreNg
)
{
OutLog
(
"出
库 "
+
MoveInfo
.
SLog
+
" : 夹料气缸夹紧,入料NG,不需要
更新料盘位置"
);
OutLog
(
"出
料 "
+
MoveInfo
.
SLog
+
" : 夹料气缸夹紧,入料NG料,不
更新料盘位置"
);
}
else
{
OutLog
(
"出
库
"
+
MoveInfo
.
SLog
+
" : 夹料气缸夹紧,更新料盘位置【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【INBELT】【"
+
lineId
+
"】"
);
OutLog
(
"出
料
"
+
MoveInfo
.
SLog
+
" : 夹料气缸夹紧,更新料盘位置【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【INBELT】【"
+
lineId
+
"】"
);
//更新料盘位置
SServerManager
.
UpdateTrayLoc
(
Name
,
MoveInfo
.
MoveParam
.
WareCode
,
LocStatus
.
INBELT
,
lineId
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_03_C
lampCylinderSlack
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_03_C
ylinderOpen
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_04_UpDownCylinderUp
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
" : 上下气缸上升,同时出库皮带线开始出库准备"
);
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_04_CylinderUp
);
OutLog
(
"出料 "
+
MoveInfo
.
SLog
+
" : 上下气缸上升,皮带线准备出料"
);
UpdownUpMove
();
StartLineOut
(
MoveInfo
.
MoveParam
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_04_
UpDown
CylinderUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_04_CylinderUp
))
{
int
num
=
MoveInfo
.
MoveParam
.
TrayNumber
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_05_WaitBox
);
LogInfo
(
"出料
PO_05_WaitBox【"
+
posId
+
"】处理(等待可以移栽) 更新盘号【"
+
num
+
"】为空盘
"
);
LogInfo
(
"出料
【"
+
posId
+
"】"
+
MoveInfo
.
SLog
+
" 更新托盘【"
+
num
+
"】为空
"
);
// MoveInfo.WaitList.Add(WaitResultInfo.WaitProvidingEquipCanOut());
TrayManager
.
UpdateTrayInfo
(
num
);
...
...
@@ -434,17 +436,17 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_05_WaitBox
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_06_
BeforeAfter
CylinderBefore
);
OutLog
(
"出
库
:"
+
MoveInfo
.
SLog
+
" ,前后气缸前进)"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_06_CylinderBefore
);
OutLog
(
"出
料
:"
+
MoveInfo
.
SLog
+
" ,前后气缸前进)"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_06_
BeforeAfter
CylinderBefore
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_06_CylinderBefore
))
{
//判断是否可以下降
if
(
LineIsReady
())
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_07_
UpDown
CylinderDown
);
OutLog
(
"出
库
:"
+
MoveInfo
.
SLog
+
" ,上下气缸下降)"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_07_CylinderDown
);
OutLog
(
"出
料
:"
+
MoveInfo
.
SLog
+
" ,上下气缸下降)"
);
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Up, IO_Type.UpDownCylinder_Down);
UpdownDownP3Move
(
MoveInfo
.
MoveParam
.
PlateH
);
}
...
...
@@ -459,30 +461,29 @@ namespace OnlineStore.DeviceLibrary
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_07_
UpDown
CylinderDown
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_07_CylinderDown
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_08_C
lampCylinderTighten
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_08_C
ylinderRelax
);
OutLog
(
"出料:"
+
MoveInfo
.
SLog
+
",夹料气缸放松)"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Slack
,
IO_Type
.
ClampCylinder_Tighten
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_08_C
lampCylinderTighten
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_08_C
ylinderRelax
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_09_UpdownCylinderUp
);
OutLog
(
"出库:"
+
MoveInfo
.
SLog
+
",上下气缸上升)"
);
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_09_CylinderUp
);
OutLog
(
"出料:"
+
MoveInfo
.
SLog
+
",上下气缸上升)"
);
UpdownUpMove
();
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_09_
Updown
CylinderUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_09_CylinderUp
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_10_
BeforeAfter
CylinderAfter
);
OutLog
(
"出
库:"
+
MoveInfo
.
SLog
+
",前后气缸后退,等待4000 ,出料皮带线开始
继续运动"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_10_CylinderAfter
);
OutLog
(
"出
料:"
+
MoveInfo
.
SLog
+
",前后气缸后退,等待4000 ,皮带线
继续运动"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
4000
));
//出料皮带线停止出
库
//出料皮带线停止出
料
DisLineContiune
();
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_10_
BeforeAfter
CylinderAfter
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_10_CylinderAfter
))
{
LogInfo
(
"出料【"
+
posId
+
"】处理完成!"
);
runStatus
=
LineRunStatus
.
Runing
;
...
...
@@ -529,11 +530,11 @@ namespace OnlineStore.DeviceLibrary
return
;
}
outline
.
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
DLO_05_TrayIsOk
);
LogUtil
.
info
(
Name
+
"放料到皮带线完成,
皮带线
"
+
outline
.
MoveInfo
.
Name
+
" "
+
outline
.
MoveInfo
.
SLog
);
LogUtil
.
info
(
Name
+
"放料到皮带线完成,"
+
outline
.
MoveInfo
.
Name
+
" "
+
outline
.
MoveInfo
.
SLog
);
}
else
{
LogUtil
.
error
(
Name
+
"未找到对应的皮带线"
);
LogUtil
.
error
(
Name
+
"
DisLineContiune()
未找到对应的皮带线"
);
}
}
...
...
@@ -558,7 +559,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
LogUtil
.
error
(
Name
+
"未找到对应的皮带线"
);
LogUtil
.
error
(
Name
+
"
LineIsReady()
未找到对应的皮带线"
);
}
return
false
;
}
...
...
@@ -577,7 +578,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
LogUtil
.
error
(
Name
+
"未找到对应的皮带线"
);
LogUtil
.
error
(
Name
+
"
StartLineOut
未找到对应的皮带线"
);
}
}
#
endregion
...
...
source/DeviceLibrary/assemblymanager/SServerManager.cs
查看文件 @
84590fa
...
...
@@ -95,15 +95,19 @@ namespace OnlineStore.DeviceLibrary
if
(!
serverResult
.
pos
.
Equals
(
""
))
{
// 仓位命名: 4D01020304
//第1和第2位表示楼层(4D)
//第3和第4位表示料仓(01) 01 - 18为流水线料仓, 19 - 24为包装料仓
//第5和第6位表示列(02)
//第7和第8位表示行(03)
//第9和第10位表示隔板位置(04)
//例如: 4D12010124 表示4楼12号料仓第1列第1行架子上的第24个隔板位置
//4D19050208 表示4楼19号料仓(包装料仓)第5列第2行架子上的第8个隔板位置
string
posId
=
serverResult
.
pos
;
int
plateW
=
width
;
int
plateH
=
height
;
string
[]
posArray
=
posId
.
Split
(
'#'
);
if
(!(
posArray
.
Length
==
2
))
{
return
msg
=
deviceName
+
" 入库库位格式错误:条码【"
+
codeStr
+
"】库位【"
+
posId
+
"】"
;
}
int
storeId
=
int
.
Parse
(
posArray
[
0
]);
int
storeId
=
InOutParam
.
GetPosStoreId
(
posId
);
string
wareNum
=
serverResult
.
barcode
;
//根据库位号查找移栽
MoveEquip
moveEquip
=
LineManager
.
Line
.
MoveEquipMap
[
storeId
];
...
...
source/DeviceLibrary/assemblymanager/TrayManager.cs
查看文件 @
84590fa
...
...
@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 流水线需要的空盘数量
/// </summary>
internal
static
int
LineNeedEmptyTrayNum
=
0
;
//
internal static int LineNeedEmptyTrayNum = 0;
/// <summary>
/// 最大托盘号,必须按照顺序从1到6走过
/// </summary>
...
...
@@ -44,15 +44,15 @@ namespace OnlineStore.DeviceLibrary
{
return
new
List
<
TrayInfo
>(
TrayInfoMap
.
Values
);
}
internal
static
void
AddNeedEmptyTrayNum
()
{
Interlocked
.
Increment
(
ref
LineNeedEmptyTrayNum
);
}
//
internal static void AddNeedEmptyTrayNum()
//
{
//
Interlocked.Increment(ref LineNeedEmptyTrayNum);
//
}
internal
static
void
DelNeedEmptyTrayNum
()
{
Interlocked
.
Decrement
(
ref
LineNeedEmptyTrayNum
);
}
//
internal static void DelNeedEmptyTrayNum()
//
{
//
Interlocked.Decrement(ref LineNeedEmptyTrayNum);
//
}
/// <summary>
/// 对应的盘号(1-6)是否有料盘
/// </summary>
...
...
source/DeviceLibrary/model/InOutParam.cs
查看文件 @
84590fa
...
...
@@ -74,23 +74,42 @@ namespace OnlineStore.DeviceLibrary
{
if
(!
PosId
.
Equals
(
""
))
{
string
[]
arr
=
PosId
.
Split
(
'#'
);
if
(
arr
.
Length
>=
2
)
{
try
{
return
int
.
Parse
(
arr
[
0
]
);
return
int
.
Parse
(
PosId
.
Substring
(
2
,
2
)
);
}
catch
(
Exception
ex
)
{
}
}
}
return
-
1
;
}
public
static
int
GetPosStoreId
(
string
posId
)
{
if
(!
posId
.
Equals
(
""
))
{
try
{
int
index
=
posId
.
IndexOf
(
"#"
);
if
(
index
>
0
)
{
string
[]
arr
=
posId
.
Split
(
'#'
);
if
(
arr
.
Length
>=
2
)
{
return
int
.
Parse
(
arr
[
0
]);
}
}
return
int
.
Parse
(
posId
.
Substring
(
2
,
2
));
}
catch
(
Exception
ex
)
{
}
}
return
-
1
;
}
/// <summary>
/// urgentReel: true 表示紧急料,需要出到料串上
/// </summary>
...
...
source/DeviceLibrary/model/StoreStep.cs
查看文件 @
84590fa
...
...
@@ -134,7 +134,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 阻挡气缸0-2下降
/// </summary>
LI_01_Stop
Cylinder
2Down
=
104
,
LI_01_Stop2Down
=
104
,
/// <summary>
/// 检测夹具检测1=0 ) 开始
/// </summary>
...
...
@@ -142,11 +142,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 阻挡气缸0-2上升
/// </summary>
LI_03_Stop
Cylinder
2Up
=
106
,
LI_03_Stop2Up
=
106
,
/// <summary>
/// 阻挡气缸0-1下降
/// </summary>
LI_04_Stop
Cylinder
1Down
=
107
,
LI_04_Stop1Down
=
107
,
#
endregion
#
region
流水线出库操作
200
开始
...
...
@@ -157,7 +157,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 流水线出库,阻挡气缸0-2下降
/// </summary>
LO_01_Stop
Cylinder
2Down
=
201
,
LO_01_Stop2Down
=
201
,
/// <summary>
/// 流水线出库, 检测夹具检测1=0
/// </summary>
...
...
@@ -165,11 +165,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 流水线出库,阻挡气缸0-2上升
/// </summary>
LO_03_Stop
Cylinder
2Up
=
203
,
LO_03_Stop2Up
=
203
,
/// <summary>
/// 阻挡气缸0-1下降
/// </summary>
LO_04_Stop
Cylinder
1Up
=
204
,
LO_04_Stop1Up
=
204
,
#
endregion
...
...
@@ -177,15 +177,15 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 上下气缸回原点
/// </summary>
MH_UpDownHome
Move
=
2000
,
MH_UpDownHome
=
2000
,
/// <summary>
/// 料仓移栽装置,上下气缸上升端
/// </summary>
MH_
UpDownCylinder_
Up
=
2001
,
MH_
Cylinder
Up
=
2001
,
/// <summary>
/// 料仓移载装置,其他气缸运行到初始状态( 顶升气缸下降端,前后气缸后退端,夹料气缸放松端,阻挡气缸输入=0 )
/// </summary>
MH_OtherCylinder
_
Back
=
2002
,
MH_OtherCylinderBack
=
2002
,
#
endregion
...
...
@@ -200,36 +200,36 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///移载装置入库处理,编码与仓位一致,上下气缸1下降
/// </summary>
MI_0
7_UpDownCylinderDown
=
3007
,
MI_0
6_CylinderDown
=
3006
,
/// <summary>
///移载装置入库处理,编码与仓位一致,上下气缸1下降后,等待0.3秒,防止没有 下降到位就夹紧
/// </summary>
MI_07_
UpDownCylinderDownWait
=
3024
,
MI_07_
DownWait
=
3007
,
/// <summary>
///移载装置入库处理,夹料气缸1夹紧
/// </summary>
MI_08_C
lampCylinderSlack
=
3008
,
MI_08_C
ylinderOpen
=
3008
,
/// <summary>
///移载装置入库处理,上下气缸1上升
/// </summary>
MI_09_
UpDown
CylinderUp
=
3009
,
MI_09_CylinderUp
=
3009
,
/// <summary>
///移载装置入库处理,,前后气缸1前进
/// </summary>
MI_10_
BeforeAfter
CylinderBefore
=
3010
,
MI_10_CylinderBefore
=
3010
,
/// <summary>
/// 移载装置入库处理,等待box等待状态才能继续操作
/// </summary>
MI_10_WaitBox
=
30
06
,
MI_10_WaitBox
=
30
30
,
/// <summary>
///移载装置入库处理,上下气缸1下降
/// </summary>
MI_11_
UpDown
CylinderDown
=
3011
,
MI_11_CylinderDown
=
3011
,
/// <summary>
///移载装置入库处理,,夹料气缸1放松
/// </summary>
MI_12_C
lampCylinderTighten
=
3012
,
MI_12_C
ylinderRelax
=
3012
,
/// <summary>
///移载装置入库处理,上下气缸1上升
/// </summary>
...
...
@@ -237,7 +237,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///移载装置入库处理,,前后气缸1后退
/// </summary>
MI_14_
BeforeAfter
CylinderAfter
=
3014
,
MI_14_CylinderAfter
=
3014
,
/// <summary>
///移载装置入库处理,,前后气缸已后退,通知料仓入库
/// </summary>
...
...
@@ -249,11 +249,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///移载装置入库处理,编码不一致,顶升气缸1下降
/// </summary>
MI_20_Top
Cylinder
Down
=
3020
,
MI_20_TopDown
=
3020
,
/// <summary>
///移载装置入库处理,阻挡气缸1-2下降
/// </summary>
MI_21_Stop
Cylinder
Down
=
3021
,
MI_21_StopDown
=
3021
,
/// <summary>
///移载装置入库处理,检测Check4=0,
/// </summary>
...
...
@@ -269,7 +269,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///移载(流水线)装置出入库处理,阻挡气缸1-1下降
/// </summary>
MIO_00_Stop
Cylinder
1Down
=
3080
,
MIO_00_Stop1Down
=
3080
,
/// <summary>
///移载(流水线)装置出入库处理,夹具检测1-4=1
/// </summary>
...
...
@@ -281,7 +281,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///移载(流水线)装置出入库处理,阻挡气缸1-1上升
/// </summary>
MIO_03_Stop
Cylinder
2Down
=
3083
,
MIO_03_Stop2Down
=
3083
,
/// <summary>
/// 检测夹具检测IO1=1
/// </summary>
...
...
@@ -294,11 +294,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///移载(流水线)装置出入库处理,顶 升气缸上升
/// </summary>
MIO_06_Top
Cylinder
Up
=
3086
,
MIO_06_TopUp
=
3086
,
/// <summary>
/// 移载(流水线)装置出入库处理,定位气缸上升
/// </summary>
MIO_07_Location
Cylinder
Up
=
3087
,
MIO_07_LocationUp
=
3087
,
/// <summary>
/// 等待StoreMove完成当前操作开始入库
/// </summary>
...
...
@@ -321,11 +321,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 移载(流水线)定位气缸下降
/// </summary>
MO_13_Loaction
Cylinder_
Down
=
3103
,
MO_13_LoactionDown
=
3103
,
/// <summary>
/// 移载(流水线)装置出库处理 ,顶升气缸1下降
/// </summary>
MO_14_Top
Cylinder_
Down
=
3104
,
MO_14_TopDown
=
3104
,
/// <summary>
/// 如果是移栽2需要等待托盘是否可以走
/// </summary>
...
...
@@ -333,11 +333,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 移载(流水线)装置出库处理, 阻挡气缸1-2下降
/// </summary>
MO_16_Stop
Cylinder2_
Down
=
3106
,
MO_16_Stop
2
Down
=
3106
,
/// <summary>
/// 移载(流水线)装置出库处理, 阻挡2托盘检测=0,
/// </summary>
MO_17_
Tray_
Check
=
3107
,
MO_17_
Stop2
Check
=
3107
,
/// <summary>
/// 移载(流水线)装置出库处理, 阻挡气缸1-1下降 阻挡气缸1-2上升
/// </summary>
...
...
@@ -350,41 +350,41 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 移栽装置出库处理。。前后气缸1前进
/// </summary>
MO_51_
BeforeAfter
CylinderBefore
=
3151
,
MO_51_CylinderBefore
=
3151
,
/// <summary>
/// 移栽装置出库处理。上下气缸1下降
/// </summary>
MO_52_
UpDown
CylinderDown
=
3152
,
MO_52_CylinderDown
=
3152
,
/// <summary>
/// 移栽装置出库处理。上下气缸1下降后,等待0.3秒再夹紧,防止没有下降到位就夹紧操作
/// </summary>
MO_53_
UpDownCylinder
DownWait
=
3153
,
MO_53_DownWait
=
3153
,
/// <summary>
/// 移栽装置出库处理。 夹料气缸1夹紧
/// </summary>
MO_54_C
lampCylinderSlack
=
3154
,
MO_54_C
ylinderOpen
=
3154
,
/// <summary>
/// 移栽装置出库处理。 上下气缸1上升
/// </summary>
MO_55_
UpDown
CylinderUp
=
3155
,
MO_55_CylinderUp
=
3155
,
/// <summary>
/// 移栽装置出库处理。 前后气缸1后退
/// </summary>
MO_56_
BeforeAfter
CylinderAfter
=
3156
,
MO_56_CylinderAfter
=
3156
,
/// <summary>
/// 移载(流水线)装置出库处理,上下气缸1下降
/// </summary>
MO_58_
UpDown
CylinderDown
=
3158
,
MO_58_CylinderDown
=
3158
,
/// <summary>
/// 移载(流水线)装置出库处理,夹料气缸1放松
/// </summary>
MO_59_C
lampCylinderTighten
=
3159
,
MO_59_C
ylinderRelax
=
3159
,
/// <summary>
/// 移载(流水线)装置出库处理,上下气缸1上升
/// </summary>
MO_60_
UpDown
CylinderUp
=
3160
,
MO_60_CylinderUp
=
3160
,
#
region
入料模块,紧急出料移栽处理
...
...
@@ -422,7 +422,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 等待轨道1夹具检测信号
/// </summary>
SW02_Wait
Fixture
Check
=
5002
,
SW02_WaitCheck
=
5002
,
/// <summary>
/// 横移轨道顶升气缸上升
...
...
@@ -436,7 +436,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 收到横移轨道2夹具检测信号
/// </summary>
SW05_WaitOut
Fixture
Check
=
5005
,
SW05_WaitOutCheck
=
5005
,
/// <summary>
/// 等待出口信号持续一段时间
/// </summary>
...
...
@@ -444,7 +444,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 停止横移轨道转动,横移轨道顶升气缸下降
/// </summary>
SW07_Top
Cylinder
Down
=
5007
,
SW07_TopDown
=
5007
,
/// <summary>
/// 阻挡2下降,等待托盘流出
...
...
@@ -470,7 +470,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 横移装置上升,
/// </summary>
FR_03_
MoveCylinder_
Up
=
10003
,
FR_03_
Cylinder
Up
=
10003
,
/// <summary>
/// 升降伺服回原点
...
...
@@ -484,7 +484,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///上料装置:上料横移气缸取料端SOL
/// </summary>
FR_06_
MoveCylinder_
Give
=
10006
,
FR_06_
Cylinder
Give
=
10006
,
...
...
@@ -500,11 +500,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 放开定位气缸
/// </summary>
FR_13_Location
Cylinder_
Down
,
FR_13_LocationDown
,
/// <summary>
/// 顶升气缸下降
/// </summary>
FR_14_Top
Cylinder
Down
,
FR_14_TopDown
,
/// <summary>
/// 提升伺服在上升到P1点
/// </summary>
...
...
@@ -730,7 +730,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///上料完成, 料架到达出口,出口顶升下降,定位气缸下降,
/// </summary>
FI_39_Top
Cylinder
Down
,
FI_39_TopDown
,
/// <summary>
///上料完成, 出口线体运转,料架到达出口处, 通知AGV取空料架
...
...
@@ -759,7 +759,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 出料流程:定位气缸下降
/// </summary>
FO_02_Location
Cylinder_
Down
=
12002
,
FO_02_LocationDown
=
12002
,
/// <summary>
/// 入口流水线转动,等待出料检测信号消失
/// </summary>
...
...
@@ -772,7 +772,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///出料检测: 工位检测信号,定位气缸上升
/// </summary>
FO_05_Location
Cylinder_
Up
=
12005
,
FO_05_LocationUp
=
12005
,
/// <summary>
/// 出料检测:提升轴下降到位P2
...
...
@@ -795,7 +795,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 紧急出料移栽:上料横移机构取料端
/// /// </summary>
FO_212_
MoveCylinder_
Take
=
12212
,
FO_212_
Cylinder
Take
=
12212
,
/// <summary>
/// 紧急出料移栽:升降伺服下降到P2
/// /// </summary>
...
...
@@ -803,15 +803,15 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 紧急出料移栽:上料横移机构下降
/// /// </summary>
FO_214_
MoveCylinder_
Down
=
12214
,
FO_214_
Cylinder
Down
=
12214
,
/// <summary>
/// 紧急出料移栽:上料气缸夹紧
/// /// </summary>
FO_215_
MoveCylinder_
Tighten
=
12215
,
FO_215_
Cylinder
Tighten
=
12215
,
/// <summary>
/// 紧急出料移栽:上料横移机构上升
/// /// </summary>
FO_216_
MoveCylinder_
Up
=
12216
,
FO_216_
Cylinder
Up
=
12216
,
/// <summary>
/// 紧急出料移栽:升降伺服到P1
/// /// </summary>
...
...
@@ -819,7 +819,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 紧急出料移栽:上料横移机构到放料端
/// /// </summary>
FO_218_
MoveCylinder_
Give
=
12218
,
FO_218_
Cylinder
Give
=
12218
,
/// <summary>
/// 料盘移栽:升降伺服到P3
...
...
@@ -829,7 +829,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 料盘移栽:出料横移机构放松
/// </summary>
FO_220_
MoveCylinder_
Slack
=
12220
,
FO_220_
Cylinder
Slack
=
12220
,
/// <summary>
/// 料盘移栽:升降伺服回P1
/// </summary>
...
...
@@ -846,7 +846,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 出料完成,升降盘定位气缸后退
/// </summary>
FO_32_TrayLocation
Cylinder
_After
,
FO_32_TrayLocation_After
,
/// <summary>
/// 出料完成,提升伺服到P1点
...
...
@@ -878,7 +878,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///出料完成, 料架到达出口,出口顶升下降,定位气缸下降,
/// </summary>
FO_38_Top
Cylinder
Down
,
FO_38_TopDown
,
/// <summary>
///出料完成, 出口线体运转,料架到达出口处, 通知AGV取空料架
...
...
@@ -899,23 +899,23 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 前后气缸后退
/// </summary>
PO_00_
BeforeAft
erAfter
=
20000
,
PO_00_
Cylind
erAfter
=
20000
,
/// <summary>
/// 上下气缸下降
/// </summary>
PO_01_
UpDown
CylinderDown
=
20001
,
PO_01_CylinderDown
=
20001
,
/// <summary>
/// 等待0.3秒后再夹紧
/// </summary>
PO_02_
UpDownCylinder
DownWait
=
20002
,
PO_02_DownWait
=
20002
,
/// <summary>
/// 夹料气缸夹紧
/// </summary>
PO_03_C
lampCylinderSlack
=
20003
,
PO_03_C
ylinderOpen
=
20003
,
/// <summary>
/// 上下气缸上升
/// </summary>
PO_04_
UpDown
CylinderUp
=
20004
,
PO_04_CylinderUp
=
20004
,
/// <summary>
/// 等待可以移栽料盘到流水线
...
...
@@ -925,27 +925,27 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 前后气缸前进
/// </summary>
PO_06_
BeforeAfter
CylinderBefore
=
20006
,
PO_06_CylinderBefore
=
20006
,
/// <summary>
/// 上下气缸下降
/// </summary>
PO_07_
UpDown
CylinderDown
=
20007
,
PO_07_CylinderDown
=
20007
,
/// <summary>
/// 夹料气缸放松
/// </summary>
PO_08_C
lampCylinderTighten
=
20008
,
PO_08_C
ylinderRelax
=
20008
,
/// <summary>
/// 上下气缸上升
/// </summary>
PO_09_
Updown
CylinderUp
=
20009
,
PO_09_CylinderUp
=
20009
,
/// <summary>
/// 前后气缸后退,等待4000
/// </summary>
PO_10_
BeforeAfter
CylinderAfter
=
20010
,
PO_10_CylinderAfter
=
20010
,
...
...
@@ -982,7 +982,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 出料皮带线开始扫码送出料盘,上升或下降分盘定位气缸
/// </summary>
DO_04_Separate
Device
Move
=
30204
,
DO_04_SeparateMove
=
30204
,
/// <summary>
/// 出料皮带线开始扫码送出料盘,转动皮带线,同时转动分盘装置
...
...
@@ -991,7 +991,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 出料皮带线开始扫码送出料盘,等待料盘到达分盘装置位置
/// </summary>
DO_06_
Wait_SeparateDevice_
Check
=
30206
,
DO_06_
Separate
Check
=
30206
,
/// <summary>
/// 出料皮带线开始扫码送出料盘,到达后再转动500
/// </summary>
...
...
@@ -1023,7 +1023,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 皮带线12处理料盘:皮带线转动到出口定位信号亮
/// </summary>
DLO_06_
LineRun_OutLocation_
Check
,
DLO_06_
Out
Check
,
/// <summary>
/// 皮带线12处理料盘:出库有料盘,继续转动一个工位,
/// </summary>
...
...
@@ -1031,11 +1031,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 皮带线12处理料盘:是NG料盘,NG气缸前进
/// </summary>
DLO_08_NG
Cylinder_
Before
,
DLO_08_NGBefore
,
/// <summary>
/// 皮带线12处理料盘:是NG料盘,NG气缸后退
/// </summary>
DLO_09_NG
Cylinder_
After
,
DLO_09_NGAfter
,
/// <summary>
/// 皮带线12处理料盘:判断出口是否有料盘,有料盘需要转动,没有料盘结束
/// </summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论