add:套管完成,重量为0,不反馈LMS
This commit is contained in:
@@ -78,6 +78,11 @@ public interface AcsConfig {
|
||||
*/
|
||||
String HASWMS = "hasWms";
|
||||
|
||||
/**
|
||||
* 是否存在wms系统
|
||||
*/
|
||||
String pgErrorSendLms = "pgErrorSendLms";
|
||||
|
||||
/**
|
||||
* 是否请求wms系统
|
||||
*/
|
||||
|
||||
@@ -262,7 +262,7 @@ public class VolumeTwoManipulatorManipulatorDeviceDriver extends AbstractOpcDevi
|
||||
this.iserror = true;
|
||||
LuceneLogDto logDto = LuceneLogDto.builder()
|
||||
.device_code(device_code)
|
||||
.content(this.device_code + "读取信号值时出现异常:" + var17.getMessage() + ",this.itemProtocol is null")
|
||||
.content(this.device_code + "读取信号值时出现异常:" + Arrays.toString(var17.getStackTrace()) + ",this.itemProtocol is null")
|
||||
.build();
|
||||
logDto.setLog_level(4);
|
||||
luceneExecuteLogService.deviceExecuteLog(logDto);
|
||||
|
||||
@@ -7,6 +7,7 @@ import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.Data;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.acs.AcsConfig;
|
||||
import org.nl.acs.agv.server.AgvService;
|
||||
import org.nl.acs.common.base.CommonFinalParam;
|
||||
import org.nl.acs.device.domain.Device;
|
||||
@@ -481,6 +482,16 @@ public class PlugPullDeviceSiteDeviceDriver extends AbstractOpcDeviceDriver impl
|
||||
return;
|
||||
} else {
|
||||
this.bushingSucess_time = date;
|
||||
if (StrUtil.equals(paramService.findByCode(AcsConfig.pgErrorSendLms).getValue(), CommonFinalParam.ONE)){
|
||||
if (weight1 == 0 && weight2 == 0) {
|
||||
Map<String, Object> map = new LinkedHashMap<>();
|
||||
map.put("to_command", 99);
|
||||
this.writing(map);
|
||||
requireSucess = false;
|
||||
message = "套管完成失败,重量为0";
|
||||
}
|
||||
}
|
||||
|
||||
ApplyPlugPullSiteRequest applyPlugPullSiteRequest = new ApplyPlugPullSiteRequest();
|
||||
ApplyPlugPullSitResponse applyPlugPullSitResponse;
|
||||
applyPlugPullSiteRequest.setDevice_code(device_code);
|
||||
@@ -495,8 +506,8 @@ public class PlugPullDeviceSiteDeviceDriver extends AbstractOpcDeviceDriver impl
|
||||
param.put("type", CommonFinalParam.TYPE_TWO);
|
||||
param.put("weight1", String.valueOf(weight1));
|
||||
param.put("material1", String.valueOf(material1));
|
||||
param.put("weight1", String.valueOf(weight1));
|
||||
param.put("material1", String.valueOf(material1));
|
||||
param.put("weight2", String.valueOf(weight2));
|
||||
param.put("material2", String.valueOf(material2));
|
||||
LuceneLogDto logDto = LuceneLogDto.builder()
|
||||
.device_code(device_code)
|
||||
.content("申请套管完成任务,请求参数:" + param)
|
||||
|
||||
Reference in New Issue
Block a user