From 249b04a370f3d130e412db9951144d69d96e8f5e Mon Sep 17 00:00:00 2001 From: 17860779768 <3219079380@qq.com> Date: Fri, 24 Mar 2023 18:36:21 +0800 Subject: [PATCH] 20230324Change1 --- src/BRS.Process.A020/UI/ContorlShaft.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/BRS.Process.A020/UI/ContorlShaft.cs b/src/BRS.Process.A020/UI/ContorlShaft.cs index 4f64c3f..597eff7 100644 --- a/src/BRS.Process.A020/UI/ContorlShaft.cs +++ b/src/BRS.Process.A020/UI/ContorlShaft.cs @@ -530,10 +530,13 @@ namespace BRS.Process.A020.UI this.ManualBtn1.Enabled = true; //设置开始按钮状态 StartBtn1.Enabled = true; - shaftState = ShaftMachineState.Emergency; + shaftState = ShaftMachineState.Unknown; ESBtn.BackColor = Color.Red; ESBtn.Text = "急停"; ProcessWriteInt(MelsecPLC, "D19", "int", "0"); + string d171 = textBox1.Text; + ProcessWriteInt(MelsecPLC, "D171", "int", d171); + } } private void StopBtn2_Click(object sender, EventArgs e) @@ -916,6 +919,7 @@ namespace BRS.Process.A020.UI ProcessWriteInt(MelsecPLC, "D51", "int", "0"); ProcessWriteInt(MelsecPLC, "D53", "int", "0"); ProcessWriteInt(MelsecPLC, "D55", "int", "0"); + ProcessWriteInt(MelsecPLC, "D171", "int", "0"); shaftState = ShaftMachineState.Emergency;