1
This commit is contained in:
parent
4d0753eb32
commit
5179e3db77
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user