Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 56da2e9f
由
几米阳光
编写于
2019-01-17 14:36:40 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
自动出入库修改
1 个父辈
451bd5fb
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
34 行增加
和
21 行删除
source/ACSingleStore/FrmStoreBox.cs
source/ACSingleStore/记录.txt
source/DeviceLibrary/ShuoKe/ShuoKeController.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
56da2e9
...
...
@@ -134,11 +134,10 @@ namespace OnlineStore.ACSingleStore
btnOutStore
.
Enabled
=
isOpen
;
btnInStore
.
Enabled
=
isOpen
;
btnAxisAMove
.
Enabled
=
isOpen
;
btnAxisReturnHome
.
Enabled
=
isOpen
;
btnAxisRMove
.
Enabled
=
isOpen
;
btnAxisVMove
.
Enabled
=
isOpen
;
//btnAxisAMove.Enabled = isOpen;
//btnAxisReturnHome.Enabled = isOpen;
//btnAxisRMove.Enabled = isOpen;
//btnAxisVMove.Enabled = isOpen;
启动
ToolStripMenuItem
.
Enabled
=
!
isOpen
;
停止
ToolStripMenuItem
.
Enabled
=
isOpen
;
...
...
@@ -912,6 +911,7 @@ namespace OnlineStore.ACSingleStore
{
int
currIndex
=
cmbPosition
.
SelectedIndex
;
store
.
autoPositionIndex
=
currIndex
;
store
.
AutoStartIndex
=
currIndex
;
string
poText
=
cmbPosition
.
Text
;
store
.
autoMsg
=
"自动出库:"
+
poText
;
LogUtil
.
info
(
LOGGER
,
store
.
StoreName
+
"开启自动出入库模式,开始位置【"
+
poText
+
"】(索引="
+
currIndex
+
"),间隔="
+
jiange
+
",入库开始!"
);
...
...
source/ACSingleStore/记录.txt
查看文件 @
56da2e9
...
...
@@ -17,31 +17,20 @@
20181221调试
复位时有时旋转轴没有复位,,但是正常到p1点了.
料仓门口的料盘检测信号亮时,才需要判断高度。
伺服回原点时如果原点亮就需要反向走。
启用压紧轴计量检测。
料仓一TeamViewer:1138154807
料仓二TeamViewer:1146354610
料仓三TeamViewer:1146369170
料仓四TeamViewer:1144730865
20190108
报警时只需要红灯闪烁。
出库时修改:出料口有料时,出料仍继续。
20190114
增加一维码类型,Barcode,可与二维码一起配置
20190114
20190114
改为伺服串联兼容模式
20190116
20190116
从RC33珠海料仓拉取分支,作为RC29-33项目,即西安料仓三台,苏州博世料仓二台。
...
...
@@ -63,3 +52,6 @@
\ No newline at end of file
source/DeviceLibrary/ShuoKe/ShuoKeController.cs
查看文件 @
56da2e9
...
...
@@ -177,6 +177,10 @@ namespace OnlineStore.DeviceLibrary
private
static
bool
CheckByte
(
byte
[]
bits
)
{
string
strSend
=
""
;
if
(
bits
==
null
)
{
return
false
;
}
for
(
int
i
=
0
;
i
<
bits
.
Length
;
i
++)
{
strSend
+=
string
.
Format
(
"{0:X2} "
,
bits
[
i
]);
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
56da2e9
...
...
@@ -25,6 +25,7 @@ namespace OnlineStore.DeviceLibrary
public
int
autoJiange
=
3
;
public
int
autoPositionIndex
=
0
;
public
string
autoMsg
=
""
;
public
int
AutoStartIndex
=
-
1
;
#
endregion
#
region
出入库参数
...
...
@@ -821,16 +822,24 @@ namespace OnlineStore.DeviceLibrary
if
(
storeMoveType
.
Equals
(
StoreMoveType
.
InStore
))
{
int
newIndex
=
autoPositionIndex
-
1
;
if
(
autoJiange
==
0
)
//if (autoJiange == 0)
//{
// newIndex = autoPositionIndex;
//}
if
(
newIndex
<
0
)
{
newIndex
=
autoPositionIndex
;
if
(
AutoStartIndex
>=
0
&&
AutoStartIndex
<
PositionNumList
.
Count
)
{
newIndex
=
AutoStartIndex
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
"下一个索引不存在,重新开始自动出入库,索引【"
+
AutoStartIndex
+
"】"
);
}
if
(
newIndex
<
0
)
else
{
autoNext
=
false
;
autoMsg
=
"自动出入库结束!"
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
"下一个索引不存在,自动 出入库结束!"
);
}
}
else
{
autoPositionIndex
=
newIndex
;
...
...
@@ -864,10 +873,18 @@ namespace OnlineStore.DeviceLibrary
int
newIndex
=
autoPositionIndex
-
autoJiange
;
if
(
newIndex
<
0
)
{
if
(
AutoStartIndex
>=
0
&&
AutoStartIndex
<
PositionNumList
.
Count
)
{
newIndex
=
AutoStartIndex
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
"下一个索引不存在,重新开始自动出入库,索引【"
+
AutoStartIndex
+
"】"
);
}
else
{
autoNext
=
false
;
autoMsg
=
"自动出入库结束!"
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
"下一个索引不存在,自动 出入库结束!"
);
}
}
else
{
string
posid
=
PositionNumList
[
newIndex
];
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论