1.三色灯提交

2.设置重命名时带出之前名称
This commit is contained in:
2025-04-27 09:26:18 +08:00
parent b749eb4266
commit ed53c8e5db
5 changed files with 36 additions and 130 deletions

View File

@ -760,6 +760,12 @@ namespace DH.Devices.PLC
//LogAsync(DateTime.Now, LogLevel.Information, $"停止转盘");
//转盘使能
TurnEnable(true);
RedLight(false);
YellowLight(false);
//绿灯
GreenLight(true);
LogAsync(DateTime.Now, LogLevel.Information, $"启用心跳-状态复位-关闭定位-写入流程加载点位配置-计数清零-停止转盘-转盘使能");
//开启入料监听
MonitorPieces();
@ -847,8 +853,7 @@ namespace DH.Devices.PLC
//计数清零
CountToZero();
Thread.Sleep(1000);
//绿灯
GreenLight(true);
LogAsync(DateTime.Now, LogLevel.Information, $"状态复位-关闭定位-写入流程加载点位配置-计数清零");
Thread.Sleep(200);
@ -898,6 +903,9 @@ namespace DH.Devices.PLC
StopProcessAction();
TurnClear(false);
OpenHeartbeat(false);
GreenLight(false);
YellowLight(false);
RedLight(true);
PLCDisConnect();
// LogAsync(DateTime.Now, LogLevel.Information, $"PLC断开连接");
}