PLC调度

master
erzhongxmu 2022-10-22 15:18:45 +08:00
parent 57b97ef0a8
commit 97f4a29d04
1 changed files with 5 additions and 0 deletions

View File

@ -246,6 +246,11 @@ public class WmsPlcController extends BaseController {
Float runfloat = Float.parseFloat(split[2]) * stepNumrun;
siemensS7Net.Write(defaultAddress,runfloat);
}
else if(split[0].equals("int")){
Float runfloat = Float.parseFloat(split[2]) * stepNumrun;
int runint = runfloat.intValue();
siemensS7Net.Write(defaultAddress,runint);
}
}
//执行完指令等待时间
try{