From 570de63645757b5c39090f810bf11993b5c384e0 Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Sat, 22 Oct 2022 16:34:00 +0800 Subject: [PATCH] PLC --- src/main/java/com/zzjee/plc/controller/WmsPlcController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/zzjee/plc/controller/WmsPlcController.java b/src/main/java/com/zzjee/plc/controller/WmsPlcController.java index af90cc6e..e95edde1 100644 --- a/src/main/java/com/zzjee/plc/controller/WmsPlcController.java +++ b/src/main/java/com/zzjee/plc/controller/WmsPlcController.java @@ -244,11 +244,14 @@ public class WmsPlcController extends BaseController { } else if(split[0].equals("float")){ Float runfloat = Float.parseFloat(split[2]) * stepNumrun; + System.out.println("runfloat:"+runfloat); siemensS7Net.Write(defaultAddress,runfloat); } else if(split[0].equals("int")){ Float runfloat = Float.parseFloat(split[2]) * stepNumrun; int runint = runfloat.intValue(); + System.out.println("runint:"+runint); + siemensS7Net.Write(defaultAddress,runint); } }