固化室出库逻辑优化&agv信号反馈优化
This commit is contained in:
@@ -234,10 +234,10 @@ public class OneNDCSocketConnectionAutoRun extends AbstractAutoRunnable {
|
|||||||
} else {
|
} else {
|
||||||
//上报异常信息
|
//上报异常信息
|
||||||
//(不需要WCS反馈)
|
//(不需要WCS反馈)
|
||||||
if (phase == 0x67) {
|
if (phase == 0x67 || phase == 0x70 || phase == 0x71 || phase == 0x72 || phase == 0x73 || phase == 0x74) {
|
||||||
device = deviceAppService.findDeviceByCode(Integer.toString(arr[27]));
|
device = deviceAppService.findDeviceByCode("AGV0" +agvaddr);
|
||||||
} else {
|
} else {
|
||||||
device = deviceAppService.findDeviceByCode("AGV0" + Integer.toString(arr[20]));
|
device = deviceAppService.findDeviceByCode("AGV0" + arr[20]);
|
||||||
}
|
}
|
||||||
if (ObjectUtil.isNotEmpty(device)) {
|
if (ObjectUtil.isNotEmpty(device)) {
|
||||||
if (device.getDeviceDriver() instanceof AgvNdcOneDeviceDriver) {
|
if (device.getDeviceDriver() instanceof AgvNdcOneDeviceDriver) {
|
||||||
|
|||||||
@@ -147,4 +147,7 @@ public class SchBasePoint implements Serializable {
|
|||||||
@ApiModelProperty(value = "放货等待点")
|
@ApiModelProperty(value = "放货等待点")
|
||||||
private String next_wait_point;
|
private String next_wait_point;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String material_id;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ public class GHCMLTask extends AbstractTask {
|
|||||||
JSONObject jsonObject = JSONObject.parseObject(requestParam);
|
JSONObject jsonObject = JSONObject.parseObject(requestParam);
|
||||||
jsonObject.put("material_id", ObjectUtil.isNotEmpty(groupInfo) ? groupInfo.getMaterial_id() : null);
|
jsonObject.put("material_id", ObjectUtil.isNotEmpty(groupInfo) ? groupInfo.getMaterial_id() : null);
|
||||||
SchBasePoint point = findNextPoint(nextRegionStr, jsonObject);
|
SchBasePoint point = findNextPoint(nextRegionStr, jsonObject);
|
||||||
|
log.info("当前任务{}找到预计终点{}",task.getTask_id(),point.getPoint_code());
|
||||||
if (ObjectUtil.isEmpty(point)) {
|
if (ObjectUtil.isEmpty(point)) {
|
||||||
throw new BadRequestException("涂板线[" + task.getPoint_code1() + "]未找到所需点位!");
|
throw new BadRequestException("涂板线[" + task.getPoint_code1() + "]未找到所需点位!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user