PLC
parent
97f4a29d04
commit
570de63645
|
@ -244,11 +244,14 @@ 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:"+runfloat);
|
||||||
siemensS7Net.Write(defaultAddress,runfloat);
|
siemensS7Net.Write(defaultAddress,runfloat);
|
||||||
}
|
}
|
||||||
else if(split[0].equals("int")){
|
else if(split[0].equals("int")){
|
||||||
Float runfloat = Float.parseFloat(split[2]) * stepNumrun;
|
Float runfloat = Float.parseFloat(split[2]) * stepNumrun;
|
||||||
int runint = runfloat.intValue();
|
int runint = runfloat.intValue();
|
||||||
|
System.out.println("runint:"+runint);
|
||||||
|
|
||||||
siemensS7Net.Write(defaultAddress,runint);
|
siemensS7Net.Write(defaultAddress,runint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue