Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 94a6848c
由
LN
编写于
2023-08-23 13:09:31 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
SO_23_WaitNoTray 等待仓门口无料的超时改为1天
1 个父辈
06446855
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
18 行增加
和
8 行删除
source/ACServoDriveTest/FrmACTest.cs
source/DeviceLibrary/StoreConfig/AC/StoreConfig.csv
source/DeviceLibrary/StoreConfig/AC/linePositions.csv
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/ACServoDriveTest/FrmACTest.cs
查看文件 @
94a6848
...
...
@@ -175,8 +175,9 @@ namespace ACServoDriveTest
private
void
btnAbsMove_Click
(
object
sender
,
EventArgs
e
)
{
int
speed
=
Convert
.
ToInt32
(
txtSpeed
.
Text
);
int
position
=
Convert
.
ToInt32
(
txtPosition
.
Text
.
Trim
(),
10
);
ACServerManager
.
AbsMove
(
GetPortName
(),
GetSlaveAddr
(),
position
);
ACServerManager
.
AbsMove
(
GetPortName
(),
GetSlaveAddr
(),
position
,
speed
);
}
private
void
btnSend_Click
(
object
sender
,
EventArgs
e
)
{
...
...
source/DeviceLibrary/StoreConfig/AC/StoreConfig.csv
查看文件 @
94a6848
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/StoreConfig/AC/linePositions.csv
查看文件 @
94a6848
此文件的差异太大,无法显示。
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
94a6848
...
...
@@ -37,6 +37,7 @@ namespace OnlineStore.DeviceLibrary
private
int
CurrInOutCount
=
0
;
private
int
CurrInOutACount
=
0
;
int
oneDay
=
24
*
60
*
60
;
private
bool
LoadParamPosition
(
InOutParam
param
)
{
if
(
param
==
null
)
...
...
@@ -180,22 +181,27 @@ namespace OnlineStore.DeviceLibrary
else
if
(
wait
.
WaitType
==
2
)
{
wait
.
IsEnd
=
IOManager
.
IOValue
(
wait
.
IoType
).
Equals
(
wait
.
IoValue
);
int
timeOutMs
=
Config
.
IOSingle_TimerOut
;
//转为秒
int
timeOutMs
=
Config
.
IOSingle_TimerOut
/
1000
;
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
SO_31_WaitTake
))
{
timeOutMs
=
650000
;
timeOutMs
=
650000
/
1000
;
}
else
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
SO_29_CheckTray
)
||
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
SO_22_WaitTray
)
||
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
SO_27_WaitDoorTray
))
{
timeOutMs
=
5000
;
timeOutMs
=
5000
/
1000
;
}
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
SC_03_MoveToHBag
))
{
timeOutMs
=
20000
;
timeOutMs
=
20000
/
1000
;
}
if
((!
wait
.
IsEnd
)
&&
span
.
TotalMilliseconds
>
timeOutMs
)
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
SO_23_WaitNoTray
)&&
wait
.
IoType
.
Equals
(
IO_Type
.
TrayCheck_Door
))
{
timeOutMs
=
oneDay
;
}
if
((!
wait
.
IsEnd
)
&&
span
.
TotalSeconds
>
timeOutMs
)
{
ConfigIO
io
=
Config
.
getWaitIO
(
wait
.
IoType
);
string
msg
=
StoreName
+
"["
+
StoreMove
.
MoveType
+
"]["
+
StoreMove
.
MoveStep
+
"] 等待"
+
io
.
DisplayStr
+
"="
+
wait
.
IoValue
+
"超时 "
;
...
...
@@ -845,16 +851,19 @@ namespace OnlineStore.DeviceLibrary
else
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_23_WaitNoTray
);
OutStoreLog
(
"出库:打开仓门,等待门口无料盘信号 "
);
OutStoreLog
(
"出库:打开仓门,等待门口无料盘信号,超时时间= oneDay"
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
LOW
));
StoreMove
.
TimeOutSeconds
=
oneDay
;
OpenDoor
();
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_22_WaitTray
)
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_23_WaitNoTray
);
OutStoreLog
(
"出库:打开仓门,等待门口无料盘信号
"
);
OutStoreLog
(
"出库:打开仓门,等待门口无料盘信号
,超时时间= "
+
oneDay
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
LOW
));
StoreMove
.
TimeOutSeconds
=
oneDay
;
OpenDoor
();
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_23_WaitNoTray
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论