Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC30-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e4680c31
由
几米阳光
编写于
2018-12-11 10:52:39 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
a26aa0d0
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
30 行增加
和
17 行删除
doc/设备IP地址分配.xlsx
source/ACSingleStore/FrmStoreBox.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/acSingleStore/AutomaticBaiting_Partial.cs
source/DeviceLibrary/store/AC_Store.cs
doc/设备IP地址分配.xlsx
查看文件 @
e4680c3
此文件类型无法预览
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
e4680c3
...
...
@@ -1564,11 +1564,11 @@ namespace OnlineStore.AutoInOutStore
}
private
void
btnBatchInStore_Click
(
object
sender
,
EventArgs
e
)
{
if
(
AutomaticBaiting
.
DoorStatus
.
Equals
(
1
))
{
MessageBox
.
Show
(
"请先关闭批量上下料门"
);
return
;
}
//if (AutomaticBaiting.DoorStatus.Equals(2
))
//
{
//
MessageBox.Show("请先关闭批量上下料门");
//
return;
//
}
if
(!
AutomaticBaiting
.
DoorIsClose
())
{
MessageBox
.
Show
(
"请先关闭批量上下料门"
);
...
...
@@ -1581,11 +1581,11 @@ namespace OnlineStore.AutoInOutStore
private
void
btnStartBatchInStore_Click
(
object
sender
,
EventArgs
e
)
{
if
(
AutomaticBaiting
.
DoorStatus
.
Equals
(
1
))
{
MessageBox
.
Show
(
"请先关闭批量上下料门"
);
return
;
}
//
if (AutomaticBaiting.DoorStatus.Equals(1))
//
{
//
MessageBox.Show("请先关闭批量上下料门");
//
return;
//
}
if
(!
AutomaticBaiting
.
DoorIsClose
())
{
MessageBox
.
Show
(
"请先关闭批量上下料门"
);
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
e4680c3
...
...
@@ -156,6 +156,11 @@ namespace OnlineStore.DeviceLibrary
{
wait
.
IsEnd
=
ACAxisMoveIsEnd
(
wait
.
AxisInfo
,
wait
.
TargetPosition
,
wait
.
TargetSpeed
,
out
msg
);
}
if
(!
wait
.
IsEnd
&&
(
wait
.
AxisInfo
.
DeviceName
.
Equals
(
Config
.
Batch_Axis
.
DeviceName
))&&
wait
.
TargetPosition
.
Equals
(
Config
.
BatchAxis_P1
))
{
wait
.
IsEnd
=
AutomaticBaiting
.
BatchAxisIsEnd
(
wait
);
}
if
(!
msg
.
Equals
(
""
))
{
isOk
=
false
;
...
...
@@ -304,7 +309,8 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
IsNeedInStore
=
isNeedInStore
;
if
(
IsHasCompress_Axis
||
Config
.
IsHasLocationCylinder
.
Equals
(
0
))
{
SI_02_Move
(
param
.
MoveP
);
//SI_02_Move(param.MoveP);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_01_LocationCylinderDown
);
}
else
{
...
...
@@ -587,7 +593,8 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
IsBatchInOutStore
=
IsBatchWork
;
if
(
IsHasCompress_Axis
||
Config
.
IsHasLocationCylinder
.
Equals
(
0
))
{
SO_02_DeviceBack
();
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_01_LocationCylinderDown
);
//SO_02_DeviceBack();
}
else
{
...
...
@@ -744,6 +751,9 @@ namespace OnlineStore.DeviceLibrary
if
(
KND
.
IOValue
(
IO_Type
.
TrayCheck_LoadMaterial
).
Equals
(
IO_VALUE
.
LOW
))
{
StoreMove
.
TimeOutSeconds
=
120
;
//ACServerManager.AbsMove(Config.Batch_Axis.DeviceName, Config.Batch_Axis.GetAxisValue(), Config.BatchAxis_P1, Config.BatchAxis_P1_Speed);
//StoreMove.WaitList.Add(WaitResultInfo.WaitAxis(Config.Batch_Axis, Config.BatchAxis_P1, Config.BatchAxis_P1_Speed));
//Config.Batch_Axis.TargetPosition = Config.BatchAxis_P1;
ACAxisMove
(
Config
.
Batch_Axis
,
Config
.
BatchAxis_P1
,
Config
.
BatchAxis_P1_Speed
);
OutStoreLog
(
"出库:SO_02 批量上下料轴走到P1点 "
);
}
...
...
source/DeviceLibrary/acSingleStore/AutomaticBaiting_Partial.cs
查看文件 @
e4680c3
...
...
@@ -130,7 +130,7 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
wait
.
WaitType
==
10
)
{
wait
.
IsEnd
=
Auto
AxisIsEnd
(
wait
);
wait
.
IsEnd
=
Batch
AxisIsEnd
(
wait
);
}
else
if
(
wait
.
WaitType
==
11
)
{
...
...
@@ -241,8 +241,12 @@ namespace OnlineStore.DeviceLibrary
}
return
wait
.
IsEnd
;
}
private
static
bool
AutoAxisIsEnd
(
WaitResultInfo
wait
)
/// <summary>
/// 判断批量上下轴是否运动完成
/// </summary>
/// <param name="wait"></param>
/// <returns></returns>
public
static
bool
BatchAxisIsEnd
(
WaitResultInfo
wait
)
{
bool
result
=
false
;
if
(
KND
.
IOValue
(
IO_Type
.
TrayCheck_LoadMaterial
).
Equals
(
IO_VALUE
.
HIGH
))
...
...
source/DeviceLibrary/store/AC_Store.cs
查看文件 @
e4680c3
...
...
@@ -358,7 +358,7 @@ namespace OnlineStore.DeviceLibrary
{
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitAxis
(
moveAxis
,
targetPosition
,
targetSpeed
));
moveAxis
.
TargetPosition
=
targetPosition
;
ACServerManager
.
AbsMove
(
moveAxis
.
DeviceName
,
moveAxis
.
GetAxisValue
(),
targetPosition
,
targetSpeed
);
ACServerManager
.
AbsMove
(
moveAxis
.
DeviceName
,
moveAxis
.
GetAxisValue
(),
targetPosition
,
targetSpeed
);
}
/// <summary>
...
...
@@ -379,7 +379,6 @@ namespace OnlineStore.DeviceLibrary
return
false
;
}
}
bool
isOk
=
ACServerManager
.
GetBusyStatus
(
deviceName
,
axisNo
).
Equals
(
0
);
int
outCount
=
ACServerManager
.
GetActualtPosition
(
deviceName
,
axisNo
);
int
errorCount
=
Math
.
Abs
(
outCount
-
targetPosition
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论