Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 37feaee7
由
几米阳光
编写于
2018-04-09 09:03:47 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
等待条件添加结果记录
1 个父辈
98df55ac
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
36 行增加
和
16 行删除
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/store/model/StoreMoveInfo.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
37feaee
...
@@ -115,32 +115,42 @@ namespace OnlineStore.DeviceLibrary
...
@@ -115,32 +115,42 @@ namespace OnlineStore.DeviceLibrary
string
msg
=
""
;
string
msg
=
""
;
if
(
wait
.
IsHomeMove
)
if
(
wait
.
IsHomeMove
)
{
{
if
(
(!
ACHomeMoveIsEnd
(
wait
.
AxisInfo
,
out
msg
)))
if
(
wait
.
IsEnd
.
Equals
(
false
)
&&
(!
ACHomeMoveIsEnd
(
wait
.
AxisInfo
,
out
msg
)))
{
{
if
(!
msg
.
Equals
(
""
))
if
(!
msg
.
Equals
(
""
))
{
{
WarnMsg
=
msg
;
WarnMsg
=
msg
;
Alarm
(
StoreAlarmType
.
AxisMoveError
,
GetAlarmCodeByAxis
(
wait
.
AxisInfo
).
ToString
(),
WarnMsg
,
StoreMove
.
MoveType
);
Alarm
(
StoreAlarmType
.
AxisMoveError
,
GetAlarmCodeByAxis
(
wait
.
AxisInfo
).
ToString
(),
WarnMsg
,
StoreMove
.
MoveType
);
}
}
isOk
=
false
;
isOk
=
false
;
break
;
break
;
}
}
else
{
wait
.
IsEnd
=
true
;
}
}
}
else
else
{
{
if
(!
wait
.
IsEnd
)
bool
isEnd
=
ACAxisMoveIsEnd
(
wait
.
AxisInfo
,
wait
.
TargetPosition
,
wait
.
TargetSpeed
,
out
msg
);
if
(!
msg
.
Equals
(
""
))
{
{
isOk
=
false
;
bool
isEnd
=
ACAxisMoveIsEnd
(
wait
.
AxisInfo
,
wait
.
TargetPosition
,
wait
.
TargetSpeed
,
out
msg
);
WarnMsg
=
msg
;
if
(!
msg
.
Equals
(
""
))
Alarm
(
StoreAlarmType
.
AxisMoveError
,
GetAlarmCodeByAxis
(
wait
.
AxisInfo
).
ToString
(),
WarnMsg
,
StoreMove
.
MoveType
);
{
break
;
isOk
=
false
;
}
WarnMsg
=
msg
;
else
if
(!
isEnd
)
Alarm
(
StoreAlarmType
.
AxisMoveError
,
GetAlarmCodeByAxis
(
wait
.
AxisInfo
).
ToString
(),
WarnMsg
,
StoreMove
.
MoveType
);
{
break
;
isOk
=
false
;
}
break
;
else
if
(!
isEnd
)
{
isOk
=
false
;
break
;
}
else
{
wait
.
IsEnd
=
true
;
}
}
}
}
}
}
}
...
...
source/DeviceLibrary/store/model/StoreMoveInfo.cs
查看文件 @
37feaee
...
@@ -149,6 +149,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -149,6 +149,7 @@ namespace OnlineStore.DeviceLibrary
wait
.
WaitType
=
2
;
wait
.
WaitType
=
2
;
wait
.
IoType
=
ioType
;
wait
.
IoType
=
ioType
;
wait
.
IoValue
=
ioValue
;
wait
.
IoValue
=
ioValue
;
wait
.
IsEnd
=
false
;
return
wait
;
return
wait
;
}
}
public
static
WaitResultInfo
WaitAxis
(
ConfigMoveAxis
axis
,
int
targetPosition
,
int
targetSpeed
)
public
static
WaitResultInfo
WaitAxis
(
ConfigMoveAxis
axis
,
int
targetPosition
,
int
targetSpeed
)
...
@@ -160,6 +161,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -160,6 +161,7 @@ namespace OnlineStore.DeviceLibrary
wait
.
IsHomeMove
=
false
;
wait
.
IsHomeMove
=
false
;
wait
.
TargetPosition
=
targetPosition
;
wait
.
TargetPosition
=
targetPosition
;
wait
.
TargetSpeed
=
targetSpeed
;
wait
.
TargetSpeed
=
targetSpeed
;
wait
.
IsEnd
=
false
;
return
wait
;
return
wait
;
}
}
public
static
WaitResultInfo
WaitAxis
(
ConfigMoveAxis
axis
,
bool
isHomeMove
)
public
static
WaitResultInfo
WaitAxis
(
ConfigMoveAxis
axis
,
bool
isHomeMove
)
...
@@ -169,6 +171,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -169,6 +171,7 @@ namespace OnlineStore.DeviceLibrary
wait
.
WaitType
=
1
;
wait
.
WaitType
=
1
;
wait
.
AxisInfo
=
axis
;
wait
.
AxisInfo
=
axis
;
wait
.
IsHomeMove
=
true
;
wait
.
IsHomeMove
=
true
;
wait
.
IsEnd
=
false
;
return
wait
;
return
wait
;
}
}
public
static
WaitResultInfo
WaitStell
(
byte
slvAddr
,
int
targetPosition
,
int
speed
)
public
static
WaitResultInfo
WaitStell
(
byte
slvAddr
,
int
targetPosition
,
int
speed
)
...
@@ -180,6 +183,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -180,6 +183,7 @@ namespace OnlineStore.DeviceLibrary
wait
.
IsHomeMove
=
false
;
wait
.
IsHomeMove
=
false
;
wait
.
TargetPosition
=
targetPosition
;
wait
.
TargetPosition
=
targetPosition
;
wait
.
TargetSpeed
=
speed
;
wait
.
TargetSpeed
=
speed
;
wait
.
IsEnd
=
false
;
return
wait
;
return
wait
;
}
}
public
static
WaitResultInfo
WaitStellHome
(
byte
slvAddr
,
int
targetPosition
,
int
speed
)
public
static
WaitResultInfo
WaitStellHome
(
byte
slvAddr
,
int
targetPosition
,
int
speed
)
...
@@ -191,6 +195,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -191,6 +195,7 @@ namespace OnlineStore.DeviceLibrary
wait
.
IsHomeMove
=
true
;
wait
.
IsHomeMove
=
true
;
wait
.
TargetPosition
=
0
;
wait
.
TargetPosition
=
0
;
wait
.
TargetSpeed
=
speed
;
wait
.
TargetSpeed
=
speed
;
wait
.
IsEnd
=
false
;
return
wait
;
return
wait
;
}
}
public
static
WaitResultInfo
WaitShuoKe
(
int
slvAddr
,
int
targetPosition
,
bool
isHome
)
public
static
WaitResultInfo
WaitShuoKe
(
int
slvAddr
,
int
targetPosition
,
bool
isHome
)
...
@@ -209,6 +214,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -209,6 +214,7 @@ namespace OnlineStore.DeviceLibrary
wait
.
CanWhileMoveCount
=
0
;
wait
.
CanWhileMoveCount
=
0
;
wait
.
WaitType
=
3
;
wait
.
WaitType
=
3
;
wait
.
TimeMSeconds
=
MScends
;
wait
.
TimeMSeconds
=
MScends
;
wait
.
IsEnd
=
false
;
return
wait
;
return
wait
;
}
}
public
static
WaitResultInfo
WaitAxisOrg
(
ConfigMoveAxis
axis
,
IO_VALUE
value
)
public
static
WaitResultInfo
WaitAxisOrg
(
ConfigMoveAxis
axis
,
IO_VALUE
value
)
...
@@ -219,6 +225,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -219,6 +225,7 @@ namespace OnlineStore.DeviceLibrary
wait
.
AxisInfo
=
axis
;
wait
.
AxisInfo
=
axis
;
wait
.
IsHomeMove
=
true
;
wait
.
IsHomeMove
=
true
;
wait
.
IoValue
=
value
;
wait
.
IoValue
=
value
;
wait
.
IsEnd
=
false
;
return
wait
;
return
wait
;
}
}
public
string
ToStr
()
public
string
ToStr
()
...
@@ -299,7 +306,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -299,7 +306,10 @@ namespace OnlineStore.DeviceLibrary
/// 轴目标速度
/// 轴目标速度
/// </summary>
/// </summary>
public
int
TargetSpeed
{
get
;
set
;
}
public
int
TargetSpeed
{
get
;
set
;
}
/// <summary>
/// 是否已经结束
/// </summary>
public
bool
IsEnd
{
get
;
set
;
}
}
}
public
enum
StoreMoveType
public
enum
StoreMoveType
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论