Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit eb4607b5
由
张东亮
编写于
2023-10-11 16:15:00 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
温湿度逻辑更改
1 个父辈
f897fcb7
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
87 行增加
和
28 行删除
source/DeviceLibrary/manager/model/DeviceStep.cs
source/DeviceLibrary/storeBean/boxBean/Humiture/HumitureBean.cs
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean.cs
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean_Partial.cs
source/LoadCVSLibrary/storeConfig/config/IO_Type.cs
source/XLRStoreClient/FrmReleaseDoor.cs
source/XLRStoreClient/FrmXLRStore.Designer.cs
source/XLRStoreClient/FrmXLRStore.cs
source/DeviceLibrary/manager/model/DeviceStep.cs
查看文件 @
eb4607b
...
...
@@ -1201,9 +1201,17 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
IB06_WaitTime
,
/// <summary>
/// 料串入料:上料轴开始
慢
速上升到P2点,等待检测到料盘
/// 料串入料:上料轴开始
快
速上升到P2点,等待检测到料盘
/// </summary>
IB07_AxisUpMove
,
IB07_1_AxisUpMove
,
/// <summary>
/// 上料轴下降一定高度
/// </summary>
IB07_2_AxisUpMove
,
/// <summary>
/// 上料轴开始慢速上升到P2点,等待检测到料盘
/// </summary>
IB07_3_AxisUpMove
,
/// <summary>
/// 料串入料:扫码点可用,批量轴上升到扫码点
/// </summary>
...
...
source/DeviceLibrary/storeBean/boxBean/Humiture/HumitureBean.cs
查看文件 @
eb4607b
...
...
@@ -126,7 +126,7 @@ namespace OnlineStore.DeviceLibrary
{
if
(
IOManager
.
IOValue
(
IO_Type
.
Air_OpenValve
,
1
).
Equals
(
IO_VALUE
.
HIGH
)
||
IOManager
.
IOValue
(
IO_Type
.
LeftDoor_Limit
,
2
).
Equals
(
IO_VALUE
.
LOW
)
||
IOManager
.
IOValue
(
IO_Type
.
RightDoor_Limit
,
2
).
Equals
(
IO_VALUE
.
LOW
)
||
IOManager
.
IOValue
(
IO_Type
.
BackDoor_Limit
,
2
).
Equals
(
IO_VALUE
.
LOW
))
{
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
LOW
,
1
);
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
HIGH
,
1
);
return
;
}
try
...
...
@@ -141,7 +141,7 @@ namespace OnlineStore.DeviceLibrary
float
startBlowHumidity
=
Max_Humidity
-
StartBlowValue
;
float
stopBlowHumidity
=
Max_Humidity
-
StopBlowValue
;
IsInBlowing
=
IOManager
.
DOValue
(
IO_Type
.
Nitrogen_OpenValve
,
1
).
Equals
(
IO_VALUE
.
HIGH
);
IsInBlowing
=
IOManager
.
DOValue
(
IO_Type
.
Nitrogen_OpenValve
,
1
).
Equals
(
IO_VALUE
.
LOW
);
//判断是否需要吹气
if
(
startBlowHumidity
>
0
&&
startBlowHumidity
<
currMaxHumidity
&&
IsInBlowing
.
Equals
(
false
))
{
...
...
@@ -152,7 +152,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
"当前最大湿度:"
+
currMaxHumidity
.
ToString
()
+
",开始吹气湿度:"
+
startBlowHumidity
+
",当前不在吹气中,且间隔超过"
+
box
.
Config
.
BlowAir_Interval
+
"分钟,开始吹气!"
);
IsInBlowing
=
true
;
//Thread.Sleep(100);
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
HIGH
,
1
);
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
LOW
,
1
);
LastBeginBlowTime
=
DateTime
.
Now
;
LastEndBlowTime
=
DateTime
.
Now
;
}
...
...
@@ -162,7 +162,7 @@ namespace OnlineStore.DeviceLibrary
{
LogUtil
.
info
(
"当前最大湿度:"
+
currMaxHumidity
.
ToString
()
+
",停止吹气湿度:"
+
stopBlowHumidity
+
",停止吹气!"
);
IsInBlowing
=
false
;
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
LOW
,
1
);
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
HIGH
,
1
);
LastEndBlowTime
=
DateTime
.
Now
;
}
if
(
IsInBlowing
)
...
...
@@ -174,7 +174,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
"已经吹气"
+
span
.
TotalMinutes
+
"分钟,超过配置的吹气时间"
+
box
.
Config
.
BlowAir_Time
+
"分钟,停止吹气!"
);
IsInBlowing
=
false
;
//Thread.Sleep(100);
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
LOW
,
1
);
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
HIGH
,
1
);
LastEndBlowTime
=
DateTime
.
Now
;
}
}
...
...
@@ -197,7 +197,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
"不在吹气中,且当前温度【"
+
curMinTemp
+
"】低于【"
+
Max_Temperature
+
"】,关闭报警!"
);
TempOrHumidityIsAlarm
=
false
;
//Thread.Sleep(100);
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
LOW
,
1
);
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
HIGH
,
1
);
}
}
else
...
...
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean.cs
查看文件 @
eb4607b
...
...
@@ -358,6 +358,21 @@ namespace OnlineStore.DeviceLibrary
LastMoveIsTest
=
IsTest
;
LogUtil
.
info
(
Name
+
" BatchAxisToP2 目标P2: "
+
targetP2
+
"("
+
targetSpeed
+
")"
);
}
public
void
BatchAxisDown
()
{
int
targetP1
=
Config
.
BatchAxisP1
;
int
targetSpeed
=
Robot
.
Config
.
BatchAxis_P3Speed
/
2
;
{
MoveInfo
.
TimeOutSeconds
=
200
;
MoveInfo
.
CanWhileCount
=
0
;
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitBatchAxis
(
BatchAxis
.
Config
,
targetP1
,
targetSpeed
));
}
BatchAxis
.
Config
.
TargetPosition
=
targetP1
;
BatchAxis
.
AbsMove
(
null
,
targetP1
,
targetSpeed
);
//开始检测信号
BatchAxis
.
BatchAxisStartCheck
(
Config
.
IO_ReelCheck
,
IO_VALUE
.
LOW
);
LogUtil
.
info
(
Name
+
" 向P1点运行,直到料盘检测信号灭: "
+
targetP1
+
"("
+
targetSpeed
+
")"
);
}
#
endregion
private
DateTime
preCheckAxisTime
=
DateTime
.
Now
;
...
...
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean_Partial.cs
查看文件 @
eb4607b
...
...
@@ -121,11 +121,11 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
Config
.
IO_LineEnd_Check
,
IO_VALUE
.
HIGH
));
}
private
void
IB07_AxisUpMove
()
private
void
IB07_
3_
AxisUpMove
()
{
MoveInfo
.
ShelfNoTray
=
false
;
AgvClient
.
SetToNone
(
Config
.
AgvName
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
IB07_AxisUpMove
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
IB07_
3_
AxisUpMove
);
doorInfo
.
status
=
doorStatusE
.
inStore
;
doorInfo
.
hasContainer
=
true
;
WorkLog
(
"料串入料 :上料轴开始慢速上升到P2点,等待检测到料盘"
);
...
...
@@ -133,7 +133,7 @@ namespace OnlineStore.DeviceLibrary
LastCodeList
=
new
List
<
string
>();
//NextCodeList = new List<string>();
MoveInfo
.
ShelfNoTray
=
false
;
BatchAxisToP2
(
true
);
BatchAxisToP2
();
}
protected
void
InstoreProcess
()
{
...
...
@@ -202,7 +202,8 @@ namespace OnlineStore.DeviceLibrary
//}
//else
{
IB07_AxisUpMove
();
MoveInfo
.
NextMoveStep
(
StepEnum
.
IB07_1_AxisUpMove
);
BatchAxisToP2
(
true
);
}
}
...
...
@@ -214,12 +215,19 @@ namespace OnlineStore.DeviceLibrary
WorkLog
(
" 未检测到料串,链条停止转动,入料结束"
);
}
}
else
if
(
MoveInfo
.
IsStep
(
StepEnum
.
IB07_1_AxisUpMove
))
{
MoveInfo
.
NextMoveStep
(
StepEnum
.
IB07_2_AxisUpMove
);
BatchAxisDown
();
}
else
if
(
MoveInfo
.
IsStep
(
StepEnum
.
IB07_2_AxisUpMove
))
{
IB07_3_AxisUpMove
();
}
#
endregion
#
region
检测到托盘,扫码,取料并放入托盘
else
if
(
MoveInfo
.
IsStep
(
StepEnum
.
IB07_AxisUpMove
))
else
if
(
MoveInfo
.
IsStep
(
StepEnum
.
IB07_
3_
AxisUpMove
))
{
CheckHasTray
();
}
...
...
@@ -481,7 +489,7 @@ namespace OnlineStore.DeviceLibrary
int
chaz
=
Math
.
Abs
(
currP
-
Config
.
BatchAxisP2
);
if
(
chaz
>
BatchAxis
.
Config
.
CanErrorCountMax
)
{
MoveInfo
.
NextMoveStep
(
StepEnum
.
IB07_AxisUpMove
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
IB07_
3_
AxisUpMove
);
WorkLog
(
"料串入料 :CheckHasTray:上料轴开始慢速上升到P2点,等待检测到料盘。currP"
+
currP
.
ToString
());
MoveInfo
.
ShelfNoTray
=
false
;
BatchAxisToP2
();
...
...
@@ -803,7 +811,7 @@ namespace OnlineStore.DeviceLibrary
SendOutShelfLeave
(
"料串出满需离开(信号到位)"
);
}
}
else
if
(
MoveInfo
.
IsStep
(
StepEnum
.
IB07_AxisUpMove
))
else
if
(
MoveInfo
.
IsStep
(
StepEnum
.
IB07_
3_
AxisUpMove
))
{
SendOutShelfLeave
(
"料串出满需离开"
);
}
...
...
source/LoadCVSLibrary/storeConfig/config/IO_Type.cs
查看文件 @
eb4607b
...
...
@@ -397,7 +397,7 @@ namespace OnlineStore.LoadCSVLibrary
public
static
string
CameraLed
=
"CameraLed"
;
/// <summary>
/// DO,1,氮气阀门
打开
,Nitrogen_OpenValve,11,HC,Y11,,,,,,,,,,,,
/// DO,1,氮气阀门
关闭
,Nitrogen_OpenValve,11,HC,Y11,,,,,,,,,,,,
/// </summary>
public
static
string
Nitrogen_OpenValve
=
"Nitrogen_OpenValve"
;
...
...
source/XLRStoreClient/FrmReleaseDoor.cs
查看文件 @
eb4607b
...
...
@@ -42,7 +42,7 @@ namespace OnlineStore.XLRStore
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
IOManager
.
IOMove
(
IO_Type
.
Air_OpenValve
,
IO_VALUE
.
HIGH
,
1
);
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
LOW
,
1
);
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
HIGH
,
1
);
var
dd
=
HumitureBean
.
GetMinOxygenV
();
var
nitrogen
=
100
-
dd
;
...
...
@@ -63,7 +63,7 @@ namespace OnlineStore.XLRStore
LogUtil
.
info
(
"请求打开舱门开始"
);
IOManager
.
IOMove
(
IO_Type
.
Air_OpenValve
,
IO_VALUE
.
HIGH
,
1
);
Thread
.
Sleep
(
1000
);
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
LOW
,
1
);
IOManager
.
IOMove
(
IO_Type
.
Nitrogen_OpenValve
,
IO_VALUE
.
HIGH
,
1
);
timer1
.
Start
();
}
...
...
source/XLRStoreClient/FrmXLRStore.Designer.cs
查看文件 @
eb4607b
...
...
@@ -69,6 +69,8 @@
this
.
toolStripMenuItem3
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator9
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
解锁舱门
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
a
料口重置料串
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
b
料口重置料串
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
帮助
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
清空日志
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator10
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
...
...
@@ -91,6 +93,7 @@
this
.
lbldiancifa
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
statusStrip1
=
new
System
.
Windows
.
Forms
.
StatusStrip
();
this
.
lblStatus
=
new
System
.
Windows
.
Forms
.
ToolStripStatusLabel
();
this
.
toolStripSeparator12
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabPage1
.
SuspendLayout
();
this
.
tabPage2
.
SuspendLayout
();
...
...
@@ -417,7 +420,10 @@
// 设置TToolStripMenuItem
//
this
.
设置
TToolStripMenuItem
.
DropDownItems
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
a
料口重置料串
ToolStripMenuItem
,
this
.
toolStripSeparator6
,
this
.
b
料口重置料串
ToolStripMenuItem
,
this
.
toolStripSeparator12
,
this
.
二维码学习
ToolStripMenuItem
,
this
.
toolStripSeparator7
,
this
.
托盘初始化
ToolStripMenuItem
,
...
...
@@ -432,51 +438,65 @@
// toolStripSeparator6
//
this
.
toolStripSeparator6
.
Name
=
"toolStripSeparator6"
;
this
.
toolStripSeparator6
.
Size
=
new
System
.
Drawing
.
Size
(
2
15
,
6
);
this
.
toolStripSeparator6
.
Size
=
new
System
.
Drawing
.
Size
(
2
29
,
6
);
this
.
toolStripSeparator6
.
Visible
=
false
;
//
// 二维码学习ToolStripMenuItem
//
this
.
二维码学习
ToolStripMenuItem
.
Name
=
"二维码学习ToolStripMenuItem"
;
this
.
二维码学习
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
18
,
32
);
this
.
二维码学习
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
32
,
32
);
this
.
二维码学习
ToolStripMenuItem
.
Text
=
"二维码学习"
;
this
.
二维码学习
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
二维码学习
ToolStripMenuItem_Click
);
//
// toolStripSeparator7
//
this
.
toolStripSeparator7
.
Name
=
"toolStripSeparator7"
;
this
.
toolStripSeparator7
.
Size
=
new
System
.
Drawing
.
Size
(
2
15
,
6
);
this
.
toolStripSeparator7
.
Size
=
new
System
.
Drawing
.
Size
(
2
29
,
6
);
//
// 托盘初始化ToolStripMenuItem
//
this
.
托盘初始化
ToolStripMenuItem
.
Name
=
"托盘初始化ToolStripMenuItem"
;
this
.
托盘初始化
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
18
,
32
);
this
.
托盘初始化
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
32
,
32
);
this
.
托盘初始化
ToolStripMenuItem
.
Text
=
"托盘编码"
;
//
// toolStripSeparator16
//
this
.
toolStripSeparator16
.
Name
=
"toolStripSeparator16"
;
this
.
toolStripSeparator16
.
Size
=
new
System
.
Drawing
.
Size
(
2
15
,
6
);
this
.
toolStripSeparator16
.
Size
=
new
System
.
Drawing
.
Size
(
2
29
,
6
);
//
// toolStripMenuItem3
//
this
.
toolStripMenuItem3
.
Name
=
"toolStripMenuItem3"
;
this
.
toolStripMenuItem3
.
Size
=
new
System
.
Drawing
.
Size
(
2
18
,
32
);
this
.
toolStripMenuItem3
.
Size
=
new
System
.
Drawing
.
Size
(
2
32
,
32
);
this
.
toolStripMenuItem3
.
Text
=
"脆盘料号配置"
;
this
.
toolStripMenuItem3
.
Click
+=
new
System
.
EventHandler
(
this
.
toolStripMenuItem3_Click
);
//
// toolStripSeparator9
//
this
.
toolStripSeparator9
.
Name
=
"toolStripSeparator9"
;
this
.
toolStripSeparator9
.
Size
=
new
System
.
Drawing
.
Size
(
2
15
,
6
);
this
.
toolStripSeparator9
.
Size
=
new
System
.
Drawing
.
Size
(
2
29
,
6
);
//
// 解锁舱门ToolStripMenuItem
//
this
.
解锁舱门
ToolStripMenuItem
.
Name
=
"解锁舱门ToolStripMenuItem"
;
this
.
解锁舱门
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
18
,
32
);
this
.
解锁舱门
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
32
,
32
);
this
.
解锁舱门
ToolStripMenuItem
.
Text
=
"解锁舱门"
;
this
.
解锁舱门
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
解锁舱门
ToolStripMenuItem_Click
);
//
// a料口重置料串ToolStripMenuItem
//
this
.
a
料口重置料串
ToolStripMenuItem
.
Name
=
"a料口重置料串ToolStripMenuItem"
;
this
.
a
料口重置料串
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
232
,
32
);
this
.
a
料口重置料串
ToolStripMenuItem
.
Text
=
"A料口重置料串"
;
this
.
a
料口重置料串
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
a
料口重置料串
ToolStripMenuItem_Click
);
//
// b料口重置料串ToolStripMenuItem
//
this
.
b
料口重置料串
ToolStripMenuItem
.
Name
=
"b料口重置料串ToolStripMenuItem"
;
this
.
b
料口重置料串
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
232
,
32
);
this
.
b
料口重置料串
ToolStripMenuItem
.
Text
=
"B料口重置料串"
;
this
.
b
料口重置料串
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
b
料口重置料串
ToolStripMenuItem_Click
);
//
// 帮助ToolStripMenuItem
//
this
.
帮助
ToolStripMenuItem
.
DropDownItems
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
...
...
@@ -672,6 +692,11 @@
this
.
lblStatus
.
Size
=
new
System
.
Drawing
.
Size
(
69
,
20
);
this
.
lblStatus
.
Text
=
"等待启动"
;
//
// toolStripSeparator12
//
this
.
toolStripSeparator12
.
Name
=
"toolStripSeparator12"
;
this
.
toolStripSeparator12
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
6
);
//
// FrmXLRStore
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
...
@@ -771,6 +796,9 @@
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel3
;
private
System
.
Windows
.
Forms
.
Label
lblWarnMsg
;
private
System
.
Windows
.
Forms
.
Label
lbldiancifa
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
a
料口重置料串
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
b
料口重置料串
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator12
;
}
}
source/XLRStoreClient/FrmXLRStore.cs
查看文件 @
eb4607b
此文件的差异被折叠,
点击展开。
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论