master
erzhongxmu 2022-10-22 18:02:01 +08:00
parent 81f90d1e9a
commit 3fe7c967f7
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ public class WmsPlcController extends BaseController {
else if(split[0].equals("float")){ else if(split[0].equals("float")){
Float runfloat = Float.parseFloat(split[2]) * stepNumrun; Float runfloat = Float.parseFloat(split[2]) * stepNumrun;
System.out.println("runfloat"+Math.abs(runfloat)); System.out.println("runfloat"+Math.abs(runfloat));
siemensS7Net.Write(defaultAddress,runfloat); siemensS7Net.Write(defaultAddress,Math.abs(runfloat));
} }
else if(split[0].equals("-float")){ else if(split[0].equals("-float")){
Float runfloat = Float.parseFloat(split[2]) * stepNumrun; Float runfloat = Float.parseFloat(split[2]) * stepNumrun;