This commit is contained in:
tfarcraw 2026-08-07 13:40:23 +08:00
parent 4d0753eb32
commit 5179e3db77

View File

@ -2164,14 +2164,13 @@ namespace ViewModel
}
else
{
MyHand = AllGrouhandList.Where(w => w.State.StatusBackground == ColorStr.Blue).FirstOrDefault();
if (MyHand != null)
{
MyPLC.PLC.Write("Y2", true); //锁门
Door = "已锁";
MyFlow.RunStep++;
MyFlow.RunTime = DateTime.Now;
}
@ -3205,6 +3204,11 @@ namespace ViewModel
/// <param name="per"></param>
public void Start(object per)
{
if (MyPLC != null && MyPLC.PLC != null && MyPLC.PLC.PlcStatus.StatusBackground == ColorStr.Green)
{
MyPLC.PLC.Write("Y2", true); //锁门
Door = "已锁";
}
if (RunStatu == RunStatuEnum.Normal)
{
return;