This commit is contained in:
xyy
2026-01-30 13:48:30 +08:00
parent b8d1337ae3
commit fffa4ea318

View File

@@ -1852,6 +1852,7 @@ namespace ConductivityApp
//} //}
_plc?.Write("M1.0", true); // 夹紧 _plc?.Write("M1.0", true); // 夹紧
Console.WriteLine("执行夹紧操作"); Console.WriteLine("执行夹紧操作");
_plc.Close();
} }
catch (Exception ex) catch (Exception ex)
{ {
@@ -1869,6 +1870,7 @@ namespace ConductivityApp
//} //}
_plc?.Write("M1.0", false); // 松开 _plc?.Write("M1.0", false); // 松开
Console.WriteLine("执行松开操作"); Console.WriteLine("执行松开操作");
_plc.Close();
} }
catch (Exception ex) catch (Exception ex)
{ {