Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-ACPackingStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 7af92bf5
由
张东亮
编写于
2023-06-16 13:42:30 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
cd703878
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
26 行增加
和
28 行删除
source/Common/util/AcSerialBean.cs
source/DeviceLibrary/PackingStore/AC_BOX_Bean_OutStore.cs
source/DeviceLibrary/store/AutoInoutInfo.cs
source/DeviceLibrary/store/StoreStep.cs
source/Common/util/AcSerialBean.cs
查看文件 @
7af92bf
...
@@ -211,7 +211,7 @@ namespace OnlineStore.Common
...
@@ -211,7 +211,7 @@ namespace OnlineStore.Common
if
(
_serialPort
.
IsOpen
)
if
(
_serialPort
.
IsOpen
)
{
{
//lock (lockObj)
//lock (lockObj)
if
(
Monitor
.
TryEnter
(
lockObj
,
10
))
if
(
Monitor
.
TryEnter
(
lockObj
,
10
0
))
{
{
//Monitor.Enter(lockObj);
//Monitor.Enter(lockObj);
try
try
...
...
source/DeviceLibrary/PackingStore/AC_BOX_Bean_OutStore.cs
查看文件 @
7af92bf
...
@@ -483,30 +483,29 @@ namespace OnlineStore.DeviceLibrary
...
@@ -483,30 +483,29 @@ namespace OnlineStore.DeviceLibrary
else
if
(
MoveInfo
.
MoveStep
==
StoreMoveStep
.
SO_04_ToPos
)
else
if
(
MoveInfo
.
MoveStep
==
StoreMoveStep
.
SO_04_ToPos
)
{
{
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
SO_05_GetReel
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
SO_05_GetReel
);
InOutStoreLog
(
"拿起物品,升降轴至P6["
+
moveP
.
UpDown_P6
+
"],压紧轴到压紧点P2 :"
+
moveP
.
ComPress_P2
);
InOutStoreLog
(
"拿起物品,升降轴至P6["
+
moveP
.
UpDown_P6
+
"],压紧轴开始缓慢压紧到P4 :"
+
Config
.
CompAxis_P4_Position
);
ACAxisMove
(
Config
.
Comp_Axis
,
moveP
.
ComPress_P2
,
Config
.
CompAxis_P2_Speed
);
//ACAxisMove(Config.Comp_Axis, moveP.ComPress_P2, Config.CompAxis_P2_Speed);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitComAxis
(
Config
.
Comp_Axis
,
Config
.
CompAxis_P4_Position
,
Config
.
CompAxis_P4_Speed
));
Config
.
Comp_Axis
.
TargetPosition
=
Config
.
CompAxis_P4_Position
;
ACServerManager
.
AbsMove
(
Config
.
Comp_Axis
.
DeviceName
,
Config
.
Comp_Axis
.
GetAxisValue
(),
Config
.
CompAxis_P4_Position
,
Config
.
CompAxis_P4_Speed
);
ComAxisStartCheck
();
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P6
,
Config
.
UpDownAxis_P6_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P6
,
Config
.
UpDownAxis_P6_Speed
);
//MoveInfo.WaitList.Add(WaitResultInfo.WaitComAxis(Config.Comp_Axis, Config.CompAxis_P4_Position, Config.CompAxis_P4_Speed));
//Config.Comp_Axis.TargetPosition = Config.CompAxis_P4_Position;
//ACServerManager.AbsMove(Config.Comp_Axis.DeviceName, Config.Comp_Axis.GetAxisValue(), Config.CompAxis_P4_Position, Config.CompAxis_P4_Speed);
//ComAxisStartCheck();
}
}
else
if
(
MoveInfo
.
MoveStep
==
StoreMoveStep
.
SO_05_GetReel
)
else
if
(
MoveInfo
.
MoveStep
==
StoreMoveStep
.
SO_05_GetReel
)
{
{
// SO_06_StartCompress();
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
SO_06_StartCompress
);
InOutStoreLog
(
"拿起物品,压紧信号亮"
);
//}
}
//else if (MoveInfo.MoveStep.Equals(StoreMoveStep.SO_06_StartCompress))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
SO_06_StartCompress
))
//{
{
// MoveInfo.NextMoveStep(StoreMoveStep.SO_07_ComDownMove);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
SO_07_ComDownMove
);
// int currPosition = ACServerManager.GetActualtPosition(Config.Comp_Axis);
int
currPosition
=
ACServerManager
.
GetActualtPosition
(
Config
.
Comp_Axis
);
// int targetP = currPosition + Config.CompAxis_Down_Position;
int
targetP
=
currPosition
+
Config
.
CompAxis_Down_Position
;
// InOutStoreLog("出库 " + MoveInfo.SLog + ": 再向下压紧 [" + Config.CompAxis_Down_Position + "] 目标 [" + targetP + "] ");
InOutStoreLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 再向下压紧 ["
+
Config
.
CompAxis_Down_Position
+
"] 目标 ["
+
targetP
+
"] "
);
// ACAxisMove(Config.Comp_Axis, targetP, Config.CompAxis_P1_Speed);
ACAxisMove
(
Config
.
Comp_Axis
,
targetP
,
Config
.
CompAxis_P1_Speed
);
//}
}
//else if (MoveInfo.MoveStep == StoreMoveStep.SO_07_ComDownMove)
else
if
(
MoveInfo
.
MoveStep
==
StoreMoveStep
.
SO_07_ComDownMove
)
//{
{
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
SO_08_InoutBack
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
SO_08_InoutBack
);
InOutStoreLog
(
"进出轴至待机点P1["
+
moveP
.
InOut_P1
+
"] "
);
InOutStoreLog
(
"进出轴至待机点P1["
+
moveP
.
InOut_P1
+
"] "
);
InOutBackToP1
(
moveP
.
InOut_P1
);
InOutBackToP1
(
moveP
.
InOut_P1
);
...
@@ -515,7 +514,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -515,7 +514,6 @@ namespace OnlineStore.DeviceLibrary
lastPosId
=
posId
;
lastPosId
=
posId
;
lastPosIdStatus
=
StoreStatus
.
OutStoreBoxEnd
;
lastPosIdStatus
=
StoreStatus
.
OutStoreBoxEnd
;
storeStatus
=
StoreStatus
.
OutStoreBoxEnd
;
storeStatus
=
StoreStatus
.
OutStoreBoxEnd
;
}
}
else
if
(
MoveInfo
.
MoveStep
==
StoreMoveStep
.
SO_08_InoutBack
)
else
if
(
MoveInfo
.
MoveStep
==
StoreMoveStep
.
SO_08_InoutBack
)
{
{
...
...
source/DeviceLibrary/store/AutoInoutInfo.cs
查看文件 @
7af92bf
...
@@ -51,10 +51,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -51,10 +51,10 @@ namespace OnlineStore.DeviceLibrary
CurrInOutCount
++;
CurrInOutCount
++;
CurrInOutACount
++;
CurrInOutACount
++;
//是否自动进入出库状态
//是否自动进入出库状态
if
(!
autoNext
)
//
if (!autoNext)
{
//
{
return
;
//
return;
}
//
}
if
(
storeMoveType
.
Equals
(
StoreMoveType
.
InStore
))
if
(
storeMoveType
.
Equals
(
StoreMoveType
.
InStore
))
{
{
int
newIndex
=
positionIndex
-
1
;
int
newIndex
=
positionIndex
-
1
;
...
...
source/DeviceLibrary/store/StoreStep.cs
查看文件 @
7af92bf
...
@@ -333,11 +333,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -333,11 +333,11 @@ namespace OnlineStore.DeviceLibrary
///// <summary>
///// <summary>
///// 料仓出库,,压紧轴开始缓慢压紧
///// 料仓出库,,压紧轴开始缓慢压紧
///// </summary>
///// </summary>
//
SO_06_StartCompress,
SO_06_StartCompress
,
///// <summary>
///// <summary>
///// 料仓出库,,检测到料叉压紧确认信号,再次向下压紧指定的值
///// 料仓出库,,检测到料叉压紧确认信号,再次向下压紧指定的值
///// </summary>
///// </summary>
//
SO_07_ComDownMove,
SO_07_ComDownMove
,
/// <summary>
/// <summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论