From 7c5157c4fe74dbfdfbdf6baa85ca721fa29fe05a Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期二, 18 七月 2023 13:51:32 +0800 Subject: [PATCH] 单站点写入 --- src/main/java/com/zy/core/thread/ShuttleThread.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/core/thread/ShuttleThread.java b/src/main/java/com/zy/core/thread/ShuttleThread.java index 7b303b0..fd0e4b3 100644 --- a/src/main/java/com/zy/core/thread/ShuttleThread.java +++ b/src/main/java/com/zy/core/thread/ShuttleThread.java @@ -389,6 +389,7 @@ * 鍒濆鍖栧洓鍚戠┛姊溅 */ private void initShuttle() { + this.connect(); if (null == shuttleProtocol) { shuttleProtocol = new ShuttleProtocol(); } @@ -537,7 +538,7 @@ Short liftArrival = liftProtocol.getPositionArrivalFeedback();//鎻愬崌鏈轰綅缃弽棣� String liftSiteLocNo = Utils.liftArrivalToOutInStaLocNo(liftArrival); LocMast locMast1 = locMastService.selectById(liftSiteLocNo); - ShuttleCommand moveCommand = getMoveCommand(liftProtocol.getBarcode(), Short.parseShort(locMast1.getQrCodeValue()), 1400, ShuttleRunDirection.BOTTOM.id, null, null, runSpeed); + ShuttleCommand moveCommand = getMoveCommand(liftProtocol.getBarcode(), Short.parseShort(locMast1.getQrCodeValue()), 1600, ShuttleRunDirection.BOTTOM.id, null, null, runSpeed); commands.add(moveCommand); //璧峰浣嶇疆淇敼涓烘彁鍗囨満鍙g珯鐐逛綅缃� @@ -617,7 +618,7 @@ } //澧炲姞绉诲姩杩涙彁鍗囨満鍛戒护 - ShuttleCommand moveCommand = getMoveCommand(endStartCode, liftProtocol.getBarcode(), 1400, ShuttleRunDirection.TOP.id, null, null, runSpeed); + ShuttleCommand moveCommand = getMoveCommand(endStartCode, liftProtocol.getBarcode(), 1600, ShuttleRunDirection.TOP.id, null, null, runSpeed); commands.add(moveCommand); break; default: -- Gitblit v1.9.1