Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO853-AutoCountMachine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ac4214b8
由
刘韬
编写于
2026-02-24 15:00:16 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
贴标异常蜂鸣器报警
1 个父辈
df26cf7a
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
8 行增加
和
10 行删除
DeviceLibrary/AutoScan/LabelMachine.Ledprocess.cs
DeviceLibrary/AutoScan/LabelMachine.partial.cs
DeviceLibrary/AutoScan/XRayMachine.Ledprocess.cs
DeviceLibrary/AutoScan/XRayMachine.XRay.cs
DeviceLibrary/AutoScan/LabelMachine.Ledprocess.cs
查看文件 @
ac4214b
using
CodeLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
OnlineStore.Common
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading
;
using
System.Threading
;
using
System.Threading.Tasks
;
namespace
DeviceLibrary
namespace
DeviceLibrary
{
{
...
@@ -19,7 +13,7 @@ namespace DeviceLibrary
...
@@ -19,7 +13,7 @@ namespace DeviceLibrary
private
void
LedProcessInit
()
private
void
LedProcessInit
()
{
{
AlarmLed
=
new
Led
(
Config
.
DOList
[
IO_Label_Type
.
Alarm_Led
].
GetIOAddr
(),
DeviceName
);
AlarmLed
=
new
Led
(
Config
.
DOList
[
IO_Label_Type
.
Alarm_Led
].
GetIOAddr
(),
DeviceName
);
RunningLed
=
new
Led
(
Config
.
DOList
[
IO_Label_Type
.
Run_Led
].
GetIOAddr
(),
DeviceName
);
RunningLed
=
new
Led
(
Config
.
DOList
[
IO_Label_Type
.
Run_Led
].
GetIOAddr
(),
DeviceName
);
ledtimer
=
new
System
.
Threading
.
Timer
(
new
TimerCallback
(
LedProcess
),
null
,
0
,
1000
);
ledtimer
=
new
System
.
Threading
.
Timer
(
new
TimerCallback
(
LedProcess
),
null
,
0
,
1000
);
GC
.
KeepAlive
(
ledtimer
);
GC
.
KeepAlive
(
ledtimer
);
...
@@ -40,9 +34,10 @@ namespace DeviceLibrary
...
@@ -40,9 +34,10 @@ namespace DeviceLibrary
RunningLed
.
LedState
=
LedState
.
off
;
RunningLed
.
LedState
=
LedState
.
off
;
}
}
if
(
MoveInfo
.
MoveStep
==
MoveStep
.
Lbl_WaitCheckLabel
)
if
(
MoveInfo
.
MoveStep
==
MoveStep
.
Lbl_WaitCheckLabel
||
MoveInfo
.
MoveStep
==
MoveStep
.
Lbl_WaitCheckLabel2
)
{
{
AlarmLed
.
LedState
=
LedState
.
blink
;
AlarmLed
.
LedState
=
LedState
.
blink
;
AlarmBuzzer
.
ON
();
}
}
else
else
{
{
...
...
DeviceLibrary/AutoScan/LabelMachine.partial.cs
查看文件 @
ac4214b
...
@@ -359,6 +359,7 @@ namespace DeviceLibrary
...
@@ -359,6 +359,7 @@ namespace DeviceLibrary
MoveInfo
.
NextMoveStep
(
MoveStep
.
Lbl_BeginOut
);
MoveInfo
.
NextMoveStep
(
MoveStep
.
Lbl_BeginOut
);
IOMove
(
IO_Label_Type
.
LabelCylinder_Work
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Label_Type
.
LabelCylinder_Work
,
IO_VALUE
.
LOW
);
RobotManage
.
Line2
.
LineRun
(
"label"
,
999
,
"Lbl_WaitCheckLabel"
);
RobotManage
.
Line2
.
LineRun
(
"label"
,
999
,
"Lbl_WaitCheckLabel"
);
AlarmBuzzer
.
OFF
();
MoveInfo
.
log
(
"人工完成贴标."
);
MoveInfo
.
log
(
"人工完成贴标."
);
}
}
break
;
break
;
...
@@ -375,6 +376,7 @@ namespace DeviceLibrary
...
@@ -375,6 +376,7 @@ namespace DeviceLibrary
MoveInfo
.
NewMove
(
MoveStep
.
Lbl_01_Wait_ATray
);
MoveInfo
.
NewMove
(
MoveStep
.
Lbl_01_Wait_ATray
);
// IOMove(IO_Label_Type.LabelCylinder_Work, IO_VALUE.LOW);
// IOMove(IO_Label_Type.LabelCylinder_Work, IO_VALUE.LOW);
//RobotManage.Line2.LineRun("label", 999, "Lbl_WaitCheckLabel");
//RobotManage.Line2.LineRun("label", 999, "Lbl_WaitCheckLabel");
AlarmBuzzer
.
OFF
();
MoveInfo
.
log
(
"人工取走料盘."
);
MoveInfo
.
log
(
"人工取走料盘."
);
}
}
break
;
break
;
...
...
DeviceLibrary/AutoScan/XRayMachine.Ledprocess.cs
查看文件 @
ac4214b
...
@@ -90,7 +90,7 @@ namespace DeviceLibrary
...
@@ -90,7 +90,7 @@ namespace DeviceLibrary
AlarmBuzzer
.
ON
();
AlarmBuzzer
.
ON
();
else
else
{
{
AlarmBuzzer
.
OFF
();
}
}
}
}
Led
.
LedGroup
[
DeviceName
].
ForEach
((
x
)
=>
{
x
.
run
();
});
Led
.
LedGroup
[
DeviceName
].
ForEach
((
x
)
=>
{
x
.
run
();
});
...
...
DeviceLibrary/AutoScan/XRayMachine.XRay.cs
查看文件 @
ac4214b
...
@@ -126,6 +126,7 @@ namespace DeviceLibrary
...
@@ -126,6 +126,7 @@ namespace DeviceLibrary
{
{
MoveInfo
.
log
(
"用户确认继续1"
);
MoveInfo
.
log
(
"用户确认继续1"
);
MoveInfo
.
NextMoveStep
(
MoveStep
.
XRay_07_TryAgain
);
MoveInfo
.
NextMoveStep
(
MoveStep
.
XRay_07_TryAgain
);
AlarmBuzzer
.
OFF
();
}
}
break
;
break
;
case
MoveStep
.
XRay_07_TryAgain
:
case
MoveStep
.
XRay_07_TryAgain
:
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论