| | |
| | | |
| | | import builder.Manager; |
| | | import builder.S7control; |
| | | import builder.httpApi; |
| | | import builder.HttpApi; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.github.xingshuangs.iot.protocol.s7.enums.EPlcType; |
| | | import ng.db.DBHelper; |
| | |
| | | //上片 |
| | | if(id==2){ |
| | | try{ |
| | | JSONObject jSONObject=httpApi.selectLoadRack(); |
| | | JSONObject jSONObject=HttpApi.selectLoadRack(); |
| | | // JSONObject jSONObject=new JSONObject(); |
| | | // jSONObject.put("thickness", "4"); |
| | | // jSONObject.put("width", "3660"); |
| | |
| | | flag= sql.getString(8);//1 表示任务完成数量减一 |
| | | if ("1".equals(flag) ){ |
| | | for (int i=0;i<1;){ |
| | | JSONObject loadRackReductionJson=httpApi.loadRackReduction(); |
| | | JSONObject loadRackReductionJson=HttpApi.loadRackReduction(); |
| | | if ("true".equals(loadRackReductionJson.get("success").toString())){ |
| | | //调用成功 |
| | | i++; |