固化室入库规则优化&下发任务type取指令状态

This commit is contained in:
psh
2024-06-19 10:57:49 +08:00
parent c2576e1e30
commit cd6a0b9d92
5 changed files with 16 additions and 9 deletions

View File

@@ -82,14 +82,11 @@ public class NDCAgvServiceImpl implements NDCAgvService {
DeviceAppService appService = SpringContextHolder.getBean(DeviceAppServiceImpl.class);
DeviceService deviceService = SpringContextHolder.getBean(DeviceServiceImpl.class);
int startAddress = deviceService.queryAddressBydeviceCode(inst.getStart_point_code());
int nextAddress = 520;
if(!inst.getInstruction_type().equals("3")){
deviceService.queryAddressBydeviceCode(inst.getNext_point_code());
}
int nextAddress=deviceService.queryAddressBydeviceCode(inst.getNext_point_code());
byte ikeyhigh = (byte) IntToHexHigh(Integer.parseInt(instcode));
byte ikeylow = (byte) IntToHexLow(Integer.parseInt(instcode));
byte typehigh = (byte) IntToHexHigh(1);
byte typelow = (byte) IntToHexLow(1);
byte typehigh = (byte) IntToHexHigh(Integer.parseInt(inst.getInstruction_type()));
byte typelow = (byte) IntToHexLow(Integer.parseInt(inst.getInstruction_type()));
byte qhdhigh = (byte) IntToHexHigh(startAddress);
byte qhdlow = (byte) IntToHexLow(startAddress);
byte fhdhigh = (byte) IntToHexHigh(nextAddress);