#
18516761980
2022-06-09 d251a0234fae2d58ff8a9d92069064617dc0a94b
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -26,6 +26,7 @@
import com.zy.core.properties.SlaveProperties;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import java.text.MessageFormat;
import java.util.ArrayList;
@@ -53,12 +54,14 @@
        add(130);add(131);add(132);add(133);add(134);add(135);add(136);
    }};
    public IoModeType ioMode = IoModeType.NONE;
    /**
     * 182站堆垛机执行中出库数量
     */
    public int PRE_COUNT=0;
    @Autowired
    private SlaveProperties slaveProperties;
    /**
     * 条码数量
     */
    private int barcodeSize = 1;
    public IoModeType ioMode = IoModeType.NONE;
    public SiemensDevpThread(DevpSlave slave) {
        this.slave = slave;
@@ -175,7 +178,7 @@
        }
        Thread.sleep(200);
        int barcodeSize = slaveProperties.getBarcode().size();
        barcodeSize = slaveProperties.getBarcode().size();
        OperateResultExOne<byte[]> result2 = siemensS7Net.Read("DB100.190",(short)(barcodeSize*8));
        if (result2.IsSuccess) {
            for (int i = 0; i < barcodeSize; i++) {