Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 30871b3b
由
lailai.xing
编写于
2025-07-01 16:23:08 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
照搬原码
1 个父辈
d263ebe8
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
1 行删除
DeviceLibrary/theMachine/MainMachine_String.cs
DeviceLibrary/theMachine/SoundsController.cs
DeviceLibrary/theMachine/MainMachine_String.cs
查看文件 @
30871b3
...
...
@@ -454,6 +454,10 @@ namespace DeviceLibrary
StringMoveInfo
.
log
(
$
"呼叫AGV取料串"
);
// StringMoveInfo.log($"打开门");
//CylinderMove(StringMoveInfo, IO_Type.StringDoor_Close, IO_Type.StringDoor_Open, IO_VALUE.HIGH);
if
(
StringState
==
StringStateE
.
Full
)
{
SoundsController
.
StartPlayBack
();
}
break
;
case
MoveStep
.
StringOut_03
:
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringOut_Released
);
...
...
DeviceLibrary/theMachine/SoundsController.cs
查看文件 @
30871b3
...
...
@@ -18,6 +18,7 @@ namespace DeviceLibrary
private
static
string
openDoorFile
=
@"\sounds\doorOpen.wav"
;
private
static
string
closeDoorFile
=
@"\sounds\doorClose.wav"
;
private
static
string
string_Filling
=
@"\sounds\string_filling.wav"
;
private
static
SoundPlayer
alarmPlayer
=
new
SoundPlayer
();
private
static
bool
InPlay
=
false
;
...
...
@@ -28,7 +29,11 @@ namespace DeviceLibrary
StartPlay
(
openDoorFile
);
}
public
static
void
StartPlayBack
()
{
LogUtil
.
info
(
$
"开始播放:{string_Filling},{File.Exists(Application.StartupPath + string_Filling)}"
);
StartPlay
(
string_Filling
);
}
public
static
void
StartClose
()
{
StartPlay
(
closeDoorFile
);
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论