|
|
@ -68,9 +68,8 @@ public class NDCAgvServiceImpl implements NDCAgvService { |
|
|
|
(byte) indexhigh, (byte) indexlow, |
|
|
|
}; |
|
|
|
log.info("下发删除AGV指令--{}", Bytes2HexString(b)); |
|
|
|
|
|
|
|
OneNDCSocketConnectionAutoRun.write(b); |
|
|
|
System.out.println("下发删除agv指令数据:" + Bytes2HexString(b)); |
|
|
|
log.info("删除AGV指令成功--{}", Bytes2HexString(b)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
@ -139,28 +138,18 @@ public class NDCAgvServiceImpl implements NDCAgvService { |
|
|
|
byte indexlow = (byte) IntToHexLow(index); |
|
|
|
byte phasehigh = (byte) IntToHexHigh(phase); |
|
|
|
byte phaselow = (byte) IntToHexLow(phase); |
|
|
|
byte startPointHigh = (byte) IntToHexHigh(startPoint); |
|
|
|
byte startPointLow = (byte) IntToHexLow(startPoint); |
|
|
|
byte nextPointHigh = (byte) IntToHexHigh(nextPoint); |
|
|
|
byte nextPointLow = (byte) IntToHexLow(nextPoint); |
|
|
|
byte startHighHigh = (byte) IntToHexHigh(startHigh); |
|
|
|
byte startHighLow = (byte) IntToHexLow(startHigh); |
|
|
|
byte nextHighHigh = (byte) IntToHexHigh(nextHigh); |
|
|
|
byte nextHighLow = (byte) IntToHexLow(nextHigh); |
|
|
|
byte resulthigh = (byte) IntToHexHigh(result); |
|
|
|
byte resultlow = (byte) IntToHexLow(result); |
|
|
|
|
|
|
|
byte[] b = new byte[]{(byte) 0X87, (byte) 0XCD, |
|
|
|
(byte) 0X00, (byte) 0X08, |
|
|
|
(byte) 0X00, (byte) 0X12, |
|
|
|
(byte) 0X00, (byte) 0X0A, |
|
|
|
(byte) 0X00, (byte) 0X01, |
|
|
|
(byte) 0X00, (byte) 0X6D, |
|
|
|
(byte) 0X00, (byte) 0X0E, |
|
|
|
(byte) 0X00, (byte) 0X06, |
|
|
|
(byte) indexhigh, (byte) indexlow, |
|
|
|
(byte) 0X01, (byte) 0X14, |
|
|
|
(byte) phasehigh, (byte) phaselow, |
|
|
|
(byte) startPointHigh, (byte) startPointLow, |
|
|
|
(byte) nextPointHigh, (byte) nextPointLow, |
|
|
|
(byte) startHighHigh, (byte) startHighLow, |
|
|
|
(byte) nextHighHigh, (byte) nextHighLow |
|
|
|
(byte) 0X01, (byte) 0X12, |
|
|
|
(byte) phasehigh, (byte) phaselow |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|