From 09a07b3d818164de9f6360392d8cf93b374e0ed7 Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Sat, 15 Apr 2023 09:42:42 +0800 Subject: [PATCH] =?UTF-8?q?PLC=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/test/JeecgOneGUI.java | 35 +---------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/src/main/java/test/JeecgOneGUI.java b/src/main/java/test/JeecgOneGUI.java index c2f5aa52..4add16b0 100644 --- a/src/main/java/test/JeecgOneGUI.java +++ b/src/main/java/test/JeecgOneGUI.java @@ -38,38 +38,5 @@ public class JeecgOneGUI { }else{ System.out.println("connect error"); } -// OperateResultExOne floatOperateResultExOne = siemensS7Net.ReadFloat(defaultAddress); -// if(floatOperateResultExOne.IsSuccess){ -// System.out.println("read success"); -// System.out.println(floatOperateResultExOne.Content); -// }else{ -// System.out.println(floatOperateResultExOne.Content); -// } -// defaultAddress = "M5.0"; -// siemensS7Net.Write(defaultAddress,false); -// defaultAddress = "VD320"; -// float speed = (float) 5.00; -// siemensS7Net.Write(defaultAddress,speed); -// defaultAddress = "VD300"; -// float position = (float) -50.00;//方向 -// siemensS7Net.Write(defaultAddress,position); -// defaultAddress = "M5.0"; -// siemensS7Net.Write(defaultAddress,true); - - - - - defaultAddress = "M7.0"; - siemensS7Net.Write(defaultAddress,false); - defaultAddress = "VD420"; - float speed = (float) 5.00; - siemensS7Net.Write(defaultAddress,speed); - defaultAddress = "VD400"; - float position = (float) 50.00;//换向 - siemensS7Net.Write(defaultAddress,position); - defaultAddress = "M7.0"; - siemensS7Net.Write(defaultAddress,true); - - - } + } }