自动盘点修改

merge-requests/5/merge
yiming 4 years ago
parent be05be2071
commit a96f1b21f6

@ -34,12 +34,12 @@ public class TestService {
for(int i = 1;i<=row;i++){ for(int i = 1;i<=row;i++){
for(int j = 1; j<= column;j++){ for(int j = 1; j<= column;j++){
String code = "3224112150069"; String code = "123456789013";
String taskId = i +"-"+ j+"-"+LocalDateTime.now().format(DateTimeFormatter.ofPattern("hhmmss")); String taskId = i +"-"+ j+"-"+LocalDateTime.now().format(DateTimeFormatter.ofPattern("hhmmss"));
PlcCmdInfo plcCmdInfo = new PlcCmdInfo(street.getPlcId(),taskId,1,leftRight,j,i,1,1,1,1,1,1); PlcCmdInfo plcCmdInfo = new PlcCmdInfo(street.getPlcId(),taskId,1,leftRight,j,i,1,1,1,1,1,1);
plcCmdInfo.setTimes(1); plcCmdInfo.setTimes(1);
int co = j%3 + 1; int co = j%3 + 1;
plcService.check(plcCmdInfo,"E"+co,code,"21234-trayCode"); plcService.check(plcCmdInfo,"E"+co,code,"123456789013");
try { try {
Thread.sleep(1000); Thread.sleep(1000);
} catch (InterruptedException e) { } catch (InterruptedException e) {

@ -68,8 +68,8 @@ sensor:
# -----goods 货物 # -----goods 货物
# 扫码模式 1球机扫码 2扫码枪 # 扫码模式 1球机扫码 2扫码枪
scanCodeMode: scanCodeMode:
tray: 0 tray: 1
goods: 1 goods: 0
goodsCodeTypes: goodsCodeTypes:
- 14 - 14
trayCodeTypes: trayCodeTypes:

Loading…
Cancel
Save