Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d2690f0b
由
LN
编写于
2019-12-02 16:55:11 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
dafb1ec5
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
13 行增加
和
7 行删除
source/AssemblyLineClient/FrmFeedingEquip.cs
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_Partial.cs
source/DeviceLibrary/assemblymanager/TrayManager.cs
source/AssemblyLineClient/FrmFeedingEquip.cs
查看文件 @
d2690f0
...
...
@@ -284,6 +284,7 @@ namespace OnlineStore.AssemblyLine
private
void
btnStart_Click
(
object
sender
,
EventArgs
e
)
{
StartDebug
();
}
private
void
btnStop_Click
(
object
sender
,
EventArgs
e
)
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
查看文件 @
d2690f0
source/DeviceLibrary/assemblyLine/FeedingEquip_Partial.cs
查看文件 @
d2690f0
...
...
@@ -14,19 +14,17 @@ namespace OnlineStore.DeviceLibrary
{
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W101_BatchAxisMove
))
{
string
msg
=
""
;
if
(
IOValue
(
TargetIoType
).
Equals
(
TargetIoValue
))
{
return
true
;
}
else
{
bool
result
=
AxisBean
.
ACAxisMoveIsEnd
(
moveInfo
,
wait
.
AxisInfo
,
wait
.
TargetPosition
,
wait
.
TargetSpeed
,
out
msg
);
if
(
!
result
)
bool
isOk
=
ACServerManager
.
GetBusyStatus
(
wait
.
AxisInfo
.
DeviceName
,
wait
.
AxisInfo
.
GetAxisValue
()).
Equals
(
0
);
if
(
isOk
)
{
LogUtil
.
error
(
msg
)
;
return
true
;
}
return
result
;
}
}
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W102_FeedScanCode
))
...
...
@@ -38,6 +36,7 @@ namespace OnlineStore.DeviceLibrary
}
return
false
;
}
#
region
托盘检测
private
void
StartCheckFixture
()
{
...
...
@@ -48,6 +47,7 @@ namespace OnlineStore.DeviceLibrary
{
if
(
NeedCurrTray
())
{
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
TrayManager
.
UpdateSWState
(
Config
.
SidesWayNum
,
2
);
CheckLog
(
"托盘检测(流水线阻挡)SecondStoreMove:(MIO_06_TopCylinderUp 横移顶升气缸上 升 )"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_TopCylinderUp
);
...
...
@@ -64,6 +64,7 @@ namespace OnlineStore.DeviceLibrary
//判断是否是需要的托盘
if
(
NeedCurrTray
())
{
SecondMoveInfo
.
NewMove
(
LineMoveType
.
CheckFixture
);
TrayManager
.
UpdateSWState
(
Config
.
SidesWayNum
,
2
);
CheckLog
(
"托盘检测(流水线阻挡)SecondStoreMove:(MIO_06_TopCylinderUp 横移顶升气缸上 升 )"
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_TopCylinderUp
);
...
...
@@ -783,7 +784,7 @@ namespace OnlineStore.DeviceLibrary
private
void
BatchAxisToP3
()
{
MoveInfo
.
TimeOutSeconds
=
200
;
MoveInfo
.
CanWhileCount
=
3
;
MoveInfo
.
CanWhileCount
=
0
;
// 需要增加定时器,获取验证信号并停止伺服
StartMovePosition
=
BatchAxis
.
GetAclPosition
();
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitBatchAxis
(
Config
.
Batch_Axis
,
Config
.
BatchAxisP3
,
Config
.
BatchAxis_P3Speed
));
...
...
@@ -858,6 +859,7 @@ namespace OnlineStore.DeviceLibrary
bool
isFull
=
TrayManager
.
TrayIsFull
(
trayNum
);
TrayInfo
info
=
TrayManager
.
GetTrayInfo
(
trayNum
);
InOutParam
param
=
new
InOutParam
(
trayNum
,
info
.
WareCode
,
info
.
PosId
,
info
.
PlateH
,
info
.
PlateW
);
//是出料的模块
if
(
Config
.
IsCanOut
.
Equals
(
1
))
{
...
...
@@ -866,6 +868,7 @@ namespace OnlineStore.DeviceLibrary
{
if
(
isFull
&&
runStatus
.
Equals
(
LineRunStatus
.
Runing
)
&&
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
))
{
lastOutParam
=
param
;
if
(
checkAndMove
)
{
...
...
source/DeviceLibrary/assemblymanager/TrayManager.cs
查看文件 @
d2690f0
...
...
@@ -71,7 +71,9 @@ namespace OnlineStore.DeviceLibrary
{
return
fixtureCodeFullMap
[
trayNum
];
}
return
null
;
TrayInfo
tray
=
new
TrayInfo
(
trayNum
,
false
,
0
);
return
tray
;
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论