Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit aa3dd917
由
LN
编写于
2020-12-28 11:48:53 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
出入库增加门关闭验证。中英文修改。
1 个父辈
d908af79
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
55 行增加
和
28 行删除
source/ACSingleStore/FrmStoreBox.Designer.cs
source/ACSingleStore/FrmStoreBox.cs
source/ACSingleStore/useControl/AxisMoveControl.Designer.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/dataLogic/DLScanSocket.cs
source/DeviceLibrary/store/StoreStep.cs
source/ACSingleStore/FrmStoreBox.Designer.cs
查看文件 @
aa3dd91
此文件的差异被折叠,
点击展开。
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
aa3dd91
...
...
@@ -168,8 +168,10 @@ namespace OnlineStore.ACSingleStore
{
groupHistory
.
Visible
=
false
;
}
// this.tabControl1.TabPages.Remove(tabPage3);
// groupCode.Visible = false;
LanguageProcess
();
LanguagePro
();
// this.tabControl1.TabPages.Remove(tabPage3);
// groupCode.Visible = false;
}
private
string
WaitStart
=
ResourceCulture
.
GetString
(
"等待启动"
);
private
string
dooropen
=
ResourceCulture
.
GetString
(
"前门未关"
);
...
...
source/ACSingleStore/useControl/AxisMoveControl.Designer.cs
查看文件 @
aa3dd91
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
aa3dd91
...
...
@@ -456,6 +456,15 @@ namespace OnlineStore.DeviceLibrary
}
return
false
;
}
private
bool
DoorIsOpen
()
{
if
(
IOManager
.
IOValue
(
IO_Type
.
Door_Down
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOManager
.
IOValue
(
IO_Type
.
Door_Up
).
Equals
(
IO_VALUE
.
HIGH
))
{
return
true
;
}
return
false
;
}
private
void
OpenDoorAndWait
()
{
Thread
.
Sleep
(
60
);
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
aa3dd91
...
...
@@ -305,7 +305,7 @@ namespace OnlineStore.DeviceLibrary
{
if
(
IsHasCompress_Axis
||
Config
.
IsHasLocationCylinder
.
Equals
(
0
))
{
SI_02_
Move
(
param
.
MoveP
);
SI_02_
OpenDoor
(
param
.
MoveP
);
}
else
{
...
...
@@ -328,10 +328,11 @@ namespace OnlineStore.DeviceLibrary
{
StartInStoreMove
(
param
,
false
);
}
private
void
SI_02_
Move
(
LineMoveP
moveP
)
private
void
SI_02_
OpenDoor
(
LineMoveP
moveP
)
{
InStoreLog
(
"入库:SI_02_ 进出轴(叉子)动作至P1, 打开仓门"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_02_InOutAxisHome
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_02_OpenDoor
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
200
));
OpenDoorAndWait
();
InOutBackToP1
(
moveP
.
InOut_P1
);
}
...
...
@@ -361,7 +362,7 @@ namespace OnlineStore.DeviceLibrary
{
if
(
IsHasCompress_Axis
||
Config
.
IsHasLocationCylinder
.
Equals
(
0
))
{
SI_02_
Move
(
moveP
);
SI_02_
OpenDoor
(
moveP
);
}
else
{
...
...
@@ -372,15 +373,22 @@ namespace OnlineStore.DeviceLibrary
}
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_01_LocationCylinderDown
)
{
SI_02_
Move
(
moveP
);
SI_02_
OpenDoor
(
moveP
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_02_
InOutAxisHome
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_02_
OpenDoor
)
{
InStoreLog
(
"入库:SI_03 所有轴回到待机点,轴2、轴1 动作到P1,,轴4动作至P3"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_03_ReturnHome
);
ComMoveToPosition
(
moveP
.
ComPress_P3
,
Config
.
CompAxis_P3_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P1
,
Config
.
UpDownAxis_P1_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
);
if
(
DoorIsOpen
())
{
InStoreLog
(
"入库:SI_03 所有轴回到待机点,轴2、轴1 动作到P1,,轴4动作至P3"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_03_ReturnHome
);
ComMoveToPosition
(
moveP
.
ComPress_P3
,
Config
.
CompAxis_P3_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P1
,
Config
.
UpDownAxis_P1_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
);
}
else
{
SI_02_OpenDoor
(
moveP
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_03_ReturnHome
)
{
...
...
@@ -675,13 +683,7 @@ namespace OnlineStore.DeviceLibrary
{
if
(
IsHasCompress_Axis
||
Config
.
IsHasLocationCylinder
.
Equals
(
0
))
{
//SO_10_DeviceToDoorPro();
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_091_WaitNoTray
);
OutStoreLog
(
"出库:SO_091 打开仓门,等待门口无料盘 "
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitHeight
(
0
));
OpenDoorAndWait
();
SO_091_WaitNoTray
();
}
else
{
...
...
@@ -693,16 +695,19 @@ namespace OnlineStore.DeviceLibrary
//此处需要等待移栽没有工作,才能把盘放入出料口
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_09_LocationCylinder_Down
)
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_091_WaitNoTray
);
OutStoreLog
(
"出库:SO_091 打开仓门,等待门口无料盘 "
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitHeight
(
0
));
OpenDoorAndWait
();
SO_091_WaitNoTray
();
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_091_WaitNoTray
)
{
SO_10_DeviceToDoorPro
();
if
(
DoorIsOpen
())
{
SO_10_DeviceToDoorPro
();
}
else
{
SO_091_WaitNoTray
();
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_10_DeviceToDoor
)
{
...
...
@@ -790,6 +795,14 @@ namespace OnlineStore.DeviceLibrary
}
}
private
void
SO_091_WaitNoTray
()
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_091_WaitNoTray
);
OutStoreLog
(
"出库:SO_091 打开仓门,等待门口无料盘 "
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitHeight
(
0
));
OpenDoorAndWait
();
}
private
void
OutStoreEnd
()
{
TimeSpan
span
=
DateTime
.
Now
-
startOutStoreTime
;
...
...
source/DeviceLibrary/dataLogic/DLScanSocket.cs
查看文件 @
aa3dd91
...
...
@@ -68,7 +68,10 @@ namespace OnlineStore.DeviceLibrary
{
try
{
scannerSocket
.
close
();
if
(
scannerSocket
!=
null
)
{
scannerSocket
.
close
();
}
isScannerRun
=
false
;
}
catch
(
Exception
ex
)
...
...
source/DeviceLibrary/store/StoreStep.cs
查看文件 @
aa3dd91
...
...
@@ -272,7 +272,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 入库。。进出轴(叉子)先返回P1
/// </summary>
SI_02_
InOutAxisHome
=
202
,
SI_02_
OpenDoor
=
202
,
/// <summary>
/// 入库。。所有轴先回到待机点,轴2、轴1 动作到P1,,轴4动作至P3
/// </summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论