Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSquareStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0925a58d
由
张东亮
编写于
2022-05-27 17:21:06 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
进出轴回原时相对运动值开放
1 个父辈
67761f20
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
54 行增加
和
5 行删除
source/ACSquareStore/App.config
source/ACSquareStore/FrmStoreBox.cs
source/Common/Setting_Init.cs
source/DeviceLibrary/PanasonicServo/ACServerManager.cs
source/DeviceLibrary/acSquareStore/Square_BoxBean.cs
source/DeviceLibrary/acSquareStore/Square_BoxBean_Partial.cs
source/DeviceLibrary/store/KTK_Store.cs
source/ACSquareStore/App.config
查看文件 @
0925a58
...
...
@@ -37,6 +37,7 @@
<
add
key
=
"Server_Log_Open"
value
=
"1"
/>
<
add
key
=
"HumidityParam"
value
=
"35"
/>
<
add
key
=
"UseAlarmBuzzer"
value
=
"1"
/>
<
add
key
=
"Inout_Relative"
value
=
"2500"
/>
</
appSettings
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
...
...
source/ACSquareStore/FrmStoreBox.cs
查看文件 @
0925a58
...
...
@@ -881,6 +881,8 @@ namespace OnlineStore.ACSquareStore
{
store
.
autoNext
=
false
;
btnStartAuTo
.
Text
=
"开始自动出入库"
;
if
(
store
.
waitOutStoreList
.
Count
>
0
)
store
.
waitOutStoreList
.
Clear
();
}
else
{
...
...
source/Common/Setting_Init.cs
查看文件 @
0925a58
...
...
@@ -94,6 +94,6 @@ namespace OnlineStore.Common
public
static
string
UseTrayCheck
=
"UseTrayCheck"
;
public
static
string
HumidityParam
=
"HumidityParam"
;
public
static
string
Inout_Relative
=
"Inout_Relative"
;
}
}
source/DeviceLibrary/PanasonicServo/ACServerManager.cs
查看文件 @
0925a58
...
...
@@ -325,7 +325,7 @@ namespace OnlineStore.DeviceLibrary
int
isHomeEnd
=
GetHomeEndStatus
(
portName
,
slvAddr
);
if
(
isHomeEnd
.
Equals
(
1
))
{
int
value
=
2000
;
int
value
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
Inout_Relative
)
;
LogUtil
.
info
(
"轴【"
+
portName
+
"_"
+
slvAddr
+
"】原点返回时发现原点已亮且回过原点,需要先相对走"
+
value
);
RelMove
(
portName
,
slvAddr
,
value
);
bool
isStop
=
false
;
...
...
@@ -359,7 +359,8 @@ namespace OnlineStore.DeviceLibrary
Thread
.
Sleep
(
100
);
}
}
}
catch
(
Exception
ex
)
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"轴【"
+
portName
+
"_"
+
slvAddr
+
"】原点返回前验证是否在原点出错:"
+
ex
.
StackTrace
);
}
...
...
source/DeviceLibrary/acSquareStore/Square_BoxBean.cs
查看文件 @
0925a58
...
...
@@ -1476,8 +1476,8 @@ namespace OnlineStore.DeviceLibrary
}
}
HumitureController
.
QueryData
(
Config
.
GetHumpPortList
().
ToArray
());
HumidityProcess
();
//
HumitureController.QueryData(Config.GetHumpPortList().ToArray());
//
HumidityProcess();
LedProcess
();
}
catch
(
Exception
ex
)
{
...
...
source/DeviceLibrary/acSquareStore/Square_BoxBean_Partial.cs
查看文件 @
0925a58
...
...
@@ -321,12 +321,40 @@ namespace OnlineStore.DeviceLibrary
CloseDoor
(
StoreMove
.
MoveParam
.
PosInfo
.
ShelfType
);
InOutBackToP1
(
StoreMove
.
MoveParam
.
MoveP
.
InOut_P1
);
}
/// <summary>
/// 打印轴状态
/// </summary>
/// <param name="moveInfo"></param>
private
void
PrintAxisSts
(
StoreMoveInfo
moveInfo
)
{
List
<
WaitResultInfo
>
list
=
moveInfo
.
WaitList
;
int
cutWLcount
=
list
.
Count
;
if
(
list
.
Count
<=
0
)
{
return
;
}
foreach
(
WaitResultInfo
wait
in
list
)
{
if
(
wait
.
IsEnd
)
{
continue
;
}
if
(
wait
.
WaitType
.
Equals
(
1
))
{
string
msg
=
""
;
{
KTK_Store
.
ACAxisStsInMove
(
wait
.
AxisInfo
,
wait
.
TargetPosition
,
wait
.
TargetSpeed
,
out
msg
);
}
}
}
}
protected
override
void
InStoreProcess
()
{
LineMoveP
moveP
=
StoreMove
.
MoveParam
.
MoveP
;
if
(
StoreMove
.
IsInWait
)
{
PrintAxisSts
(
StoreMove
);
CheckWait
();
}
if
(
StoreMove
.
IsInWait
)
...
...
@@ -537,6 +565,7 @@ namespace OnlineStore.DeviceLibrary
LineMoveP
moveP
=
StoreMove
.
MoveParam
.
MoveP
;
if
(
StoreMove
.
IsInWait
)
{
PrintAxisSts
(
StoreMove
);
CheckWait
();
}
if
(
StoreMove
.
IsInWait
)
...
...
source/DeviceLibrary/store/KTK_Store.cs
查看文件 @
0925a58
...
...
@@ -251,7 +251,23 @@ namespace OnlineStore.DeviceLibrary
moveAxis
.
TargetPosition
=
targetPosition
;
ACServerManager
.
AbsMove
(
moveAxis
.
DeviceName
,
moveAxis
.
GetAxisValue
(),
targetPosition
,
targetSpeed
);
}
/// <summary>
/// 运动过程中轴状态打印
/// </summary>
public
static
bool
ACAxisStsInMove
(
ConfigMoveAxis
axis
,
int
targetPosition
,
int
targetSpeed
,
out
string
msg
)
{
msg
=
""
;
string
deviceName
=
axis
.
DeviceName
;
short
axisNo
=
axis
.
GetAxisValue
();
bool
isOk
=
ACServerManager
.
GetBusyStatus
(
deviceName
,
axisNo
).
Equals
(
0
);
int
outCount
=
ACServerManager
.
GetActualtPosition
(
deviceName
,
axisNo
);
int
targetCount
=
ACServerManager
.
GetTargetPosition
(
deviceName
,
axisNo
);
int
state
=
ACServerManager
.
GetHomeSingle
(
deviceName
,
axisNo
);
//实时打印轴状态
LogUtil
.
LOGGER
.
Debug
(
$
" 轴实时状态打印:{axis.DisplayStr},目标位置[{targetPosition}]当前位置[{outCount}]规划位置[{targetCount}]原点状态[{state}]"
);
return
false
;
}
/// <summary>
/// 判断AC伺服电机轴是否运动完成
/// </summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论