自动化立体仓库 - WCS系统
#
tqs
2023-01-09 96838eab6a7da7b12f4623aa6e86f16f26bcdde4
src/main/java/com/zy/core/thread/LedThread.java
@@ -52,8 +52,8 @@
    public LedThread(Slave slave) {
        this.slave = slave;
        try {
            Bx5GEnv.initial(3000);
            screen = new Bx5GScreenClient("my");
//            Bx5GEnv.initial(3000);
//            screen = new Bx5GScreenClient("my");
        } catch (Exception e) {
            e.printStackTrace();
            log.info("led连接构造器错误 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
@@ -63,7 +63,7 @@
    @Override
    @SuppressWarnings({"InfiniteLoopStatement", "unchecked"})
    public void run() {
        connect();
//        connect();
        close();
        while (true) {
            try {
@@ -201,6 +201,7 @@
        }
        close();
    }
    private void write7(List<LedCommand> list) {
        commandList = list;
@@ -211,7 +212,7 @@
            sb.append("目标站:").append(command.getStaNo()).append("\n");
            if (!command.isEmptyMk()) {
                for (MatDto matDto : command.getMatDtos()) {
                    sb.append("物料编码:").append(matDto.getMatNo()).append("\n");
                    sb.append("物料编码:").append(matDto.getMatnr()).append("\n");
                    sb.append("数量:").append(matDto.getCount()).append("\n");
                }
            }
@@ -258,7 +259,7 @@
    @Override
    public void close() {
        screen.disconnect();
    }
@@ -318,36 +319,6 @@
        // 继开与控制器之间的链接
//        screen.disconnect();
    }
    public static void main1(String[] args) throws Exception {