自动化立体仓库 - WCS系统
*
lsh
2024-10-20 7ea081db310d54d3a83c3bea61febb397d67b0f7
src/main/java/com/zy/core/thread/ScaleThread.java
@@ -49,7 +49,14 @@
                if (null != read) {
                    String s = new String(read);
                    if (!Cools.isEmpty(s) && s.startsWith("=")) {
                        scale = Double.parseDouble(s.substring(1));
                        String substring = s.substring(1);
                        String s1 = new StringBuilder(substring).reverse().toString();
                        scale = Double.parseDouble(s1);//50.8    67.6
                        if (slave.getId()>3){
                            scale = scale - 50.8;
                        } else {
                            scale = scale - 67.6;
                        }
                        //将称重重量写入设备基础数据中的gross_wt字段
                        if(scale > 20) {