Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO815-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 8ed3b9e5
由
几米阳光
编写于
2019-04-30 14:06:34 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
自动出入库界面修改
1 个父辈
a63a8a86
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
48 行增加
和
10 行删除
source/ACSingleStore/FrmStoreBox.Designer.cs
source/ACSingleStore/FrmStoreBox.cs
source/ACSingleStore/FrmStoreBox.resx
source/DeviceLibrary/DeviceLibrary/IO/IOManager.cs
source/DeviceLibrary/DeviceLibrary/PanasonicServo/ACServerManager_Partial.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/ACSingleStore/FrmStoreBox.Designer.cs
查看文件 @
8ed3b9e
此文件的差异太大,无法显示。
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
8ed3b9e
...
...
@@ -1661,15 +1661,26 @@ namespace OnlineStore.AutoInOutStore
}
groupAxis
.
Enabled
=
status
;
groupComAxis
.
Enabled
=
status
;
groupInout
.
Enabled
=
status
;
//groupInout.Enabled = status;
if
(!
status
)
{
checkBox1
.
Checked
=
false
;
}
if
(
store
.
autoNext
)
{
groupAuto
.
Enabled
=
true
;
cmbJianGe
.
Enabled
=
false
;
cmbJianGe
.
Enabled
=
false
;
btnSave
.
Enabled
=
false
;
checkBox1
.
Enabled
=
false
;
btnOutStore
.
Enabled
=
false
;
btnBatchOutTest
.
Enabled
=
false
;
}
else
{
{
groupAuto
.
Enabled
=
status
;
btnOutStore
.
Enabled
=
status
;
btnBatchOutTest
.
Enabled
=
status
;
cmbJianGe
.
Enabled
=
status
;
}
}
...
...
@@ -1728,5 +1739,13 @@ namespace OnlineStore.AutoInOutStore
MessageBox
.
Show
(
"请先启动料仓!"
);
}
}
private
void
checkBox1_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
if
(!
groupInout
.
Enabled
.
Equals
(
checkBox1
.
Checked
))
{
groupInout
.
Enabled
=
checkBox1
.
Checked
;
}
}
}
}
source/ACSingleStore/FrmStoreBox.resx
查看文件 @
8ed3b9e
...
...
@@ -120,9 +120,6 @@
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 16</value>
</metadata>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>107, 16</value>
</metadata>
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>227, 16</value>
</metadata>
...
...
@@ -1262,6 +1259,9 @@
AD//////////////////AB////////////8=
</value>
</data>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>107, 16</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>78</value>
</metadata>
...
...
source/DeviceLibrary/DeviceLibrary/IO/IOManager.cs
查看文件 @
8ed3b9e
...
...
@@ -22,7 +22,13 @@ namespace OnlineStore.DeviceLibrary
if
(
StoreManager
.
Config
.
StoreDOList
.
ContainsKey
(
ioType
))
{
ConfigIO
configIo
=
StoreManager
.
Config
.
StoreDOList
[
ioType
];
//DateTime time = DateTime.Now;
instance
.
WriteSingleDO
(
configIo
.
DeviceName
,
configIo
.
SlaveID
,
configIo
.
GetIOAddr
(),
ioValue
);
//TimeSpan span = DateTime.Now - time;
//if (span.TotalMilliseconds > 100)
//{
// LogUtil.error("IOMove [" + ioType + "] ["+ioValue+"]耗时" + span.TotalMilliseconds);
//}
Thread
.
Sleep
(
60
);
}
else
...
...
source/DeviceLibrary/DeviceLibrary/PanasonicServo/ACServerManager_Partial.cs
查看文件 @
8ed3b9e
...
...
@@ -315,14 +315,27 @@ namespace OnlineStore.DeviceLibrary
{
return
GetActualtPosition
(
axis
.
DeviceName
,
axis
.
GetAxisValue
());
}
public
static
int
GetActualtPosition
(
string
portName
,
int
slvAddr
)
public
static
int
GetActualtPosition
(
string
portName
,
int
slvAddr
)
{
PreReadAddr
=
ACCMDManager
.
ActualPosition
;
byte
[]
dataArray
=
ACCMDManager
.
GetWriteData
(
slvAddr
,
ACCMDManager
.
CMD_ReadRegisters
,
ACCMDManager
.
ActualPosition
,
"0000"
,
2
);
// SendData(portName,dataArray);
byte
[]
reviceData
=
SendCommand
(
portName
,
dataArray
,
100
,
9
);
return
GetRegisterData
(
portName
,
reviceData
,
ACCMDManager
.
ActualPosition
);
int
result
=
-
1
;
for
(
int
i
=
1
;
i
<=
3
;
i
++)
{
result
=
GetRegisterData
(
portName
,
reviceData
,
ACCMDManager
.
ActualPosition
);
if
(!
result
.
Equals
(-
1
))
{
break
;
}
else
{
LogUtil
.
error
(
"第"
+
i
+
"次获取"
+
portName
+
"_"
+
slvAddr
+
"的实时位置"
+
result
);
}
}
return
result
;
}
public
static
int
GetCoilData
(
string
portName
,
byte
[]
reviceData
,
string
Address
)
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
8ed3b9e
...
...
@@ -1208,7 +1208,7 @@ namespace OnlineStore.DeviceLibrary
//在回原点,复位,出入库时,检测报警间隔减小
if
(
storeRunStatus
.
Equals
(
StoreRunStatus
.
Busy
)
||
storeRunStatus
.
Equals
(
StoreRunStatus
.
HomeMoving
)
||
storeRunStatus
.
Equals
(
StoreRunStatus
.
Reset
))
{
if
(
span
.
TotalSeconds
<
1
)
if
(
span
.
TotalSeconds
<
2
)
{
return
false
;
}
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
8ed3b9e
...
...
@@ -1013,7 +1013,7 @@ namespace OnlineStore.DeviceLibrary
{
string
posid
=
PositionNumList
[
autoPositionIndex
];
autoMsg
=
"自动
入
库:"
+
posid
;
autoMsg
=
"自动
出
库:"
+
posid
;
//自动出入口,入库结束把出库加入队列
FixtureCodeInfo
currInOutFixture
=
new
FixtureCodeInfo
(
0
,
""
,
posid
);
AddWaitOutInfo
(
currInOutFixture
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论