现场联调优化

This commit is contained in:
pangshenghao
2023-08-01 18:50:32 +08:00
parent ecb37e4432
commit dc88d53336
8 changed files with 33 additions and 21 deletions

View File

@@ -185,11 +185,15 @@ public class HfKilnTrussDeviceDriver extends AbstractOpcDeviceDriver implements
break;
case 3:
//上报LMS将对应托盘置为指定窑号中
uploadKilnInJson();
if(!inTrussSucess) {
uploadKilnInJson();
}
break;
case 4:
//上报LMS将对应窑号中的所有托盘都设置为已出窑
uploadKilnOutJson();
if(!outTrussSucess) {
uploadKilnOutJson();
}
break;
}
}
@@ -240,7 +244,8 @@ public class HfKilnTrussDeviceDriver extends AbstractOpcDeviceDriver implements
logServer.deviceInfo("acs组盘入窑", this.getDevice_code(), "组盘入窑成功!");
}else{
this.writing(99);
message = "窑道外冷却区存在存留托盘,无法出窑";
message = "入窑失败,托盘号不存在";
log.info("入窑失败,托盘号"+barcode+"不存在");
}
this.setInTrussSucess(true);
return true;
@@ -270,9 +275,12 @@ public class HfKilnTrussDeviceDriver extends AbstractOpcDeviceDriver implements
if (StrUtil.equals(resp.getString("status"), "200")) {
this.writing(4);
logServer.deviceInfo("acs组盘出窑", this.getDevice_code(), "组盘出窑成功!");
}else if (StrUtil.equals(resp.getString("status"), "401")) {
this.writing(98);
logServer.deviceInfo("acs组盘出窑", this.getDevice_code(), "组盘出窑成功,出窑数量与组盘表不一致!");
}else{
this.writing(99);
logServer.deviceInfo("acs组盘出窑", this.getDevice_code(), "组盘出窑成功!");
logServer.deviceInfo("acs组盘出窑", this.getDevice_code(), "组盘出窑失败,出窑缓存区有货!");
}
this.setOutTrussSucess(true);
return true;

View File

@@ -388,6 +388,7 @@ public class HfStationTwoDeviceDriver extends AbstractOpcDeviceDriver implements
json.put("barcode", barcode);
json.put("weight", weight);
json.put("material_code",material_code);
json.put("product_code",product_code);
json.put("create_mode", "2");
json.put("is_auto_issue", "0");
json.put("type", "5");