|
|
@@ -241,7 +241,7 @@ public class ExecuteTheRecipe { |
|
|
|
ExecuteTheRecipe.WritePLC("手动控制"+i,false,null); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}).start(); |
|
|
|
|
|
|
|
ThreadManager.Get().StartLong("PLC设备数据监听", true, new IThread() { |
|
|
|
@Override |
|
|
@@ -410,6 +410,10 @@ public class ExecuteTheRecipe { |
|
|
|
//MessageLog.ShowUserMessage(UserLogEnum.订单处理日志, message + "准备下发【" + silos.num + "】号料仓PLC控制命令,需求量:=" + recipe.value); |
|
|
|
int _val = (int)Math.round((Double.parseDouble(recipe.value) * 10)); |
|
|
|
WritePLC("需求值" + silos.num, (short) _val, null); |
|
|
|
|
|
|
|
//減去料仓数量 |
|
|
|
int otherG=silos.silosmargin-(_val/10); |
|
|
|
QueryDB.UpdateYL(silos.id,otherG>=0?otherG:0); |
|
|
|
} |
|
|
|
} |
|
|
|
MessageLog.ShowInfo(RecipesNames + "下发成功!"); |
|
|
|