From 796cfcc66392f78362cd72ca2510fc5194c0d079 Mon Sep 17 00:00:00 2001 From: 野心家 <1051256694@qq.com> Date: 星期一, 17 二月 2025 16:00:58 +0800 Subject: [PATCH] 初始化立福德wcs --- src/main/java/com/zy/core/thread/SiemensCrnThread.java | 72 ++++++++++++++++++------------------ 1 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/main/java/com/zy/core/thread/SiemensCrnThread.java b/src/main/java/com/zy/core/thread/SiemensCrnThread.java index b0cd878..465c081 100644 --- a/src/main/java/com/zy/core/thread/SiemensCrnThread.java +++ b/src/main/java/com/zy/core/thread/SiemensCrnThread.java @@ -76,42 +76,42 @@ if (task != null) { step = task.getStep(); } - switch (step) { - // 璇绘暟鎹� - case 1: - readStatus(); - break; - // 鍐欏叆鏁版嵁 - case 2: - write5((CrnCommand) task.getData()); - break; - // 澶嶄綅 - case 3: - CrnCommand command = (CrnCommand) task.getData(); - if (null == command) { - command = new CrnCommand(); - } - command.setCrnNo(slave.getId()); // 鍫嗗灈鏈虹紪鍙� - command.setTaskNo((short) 0); // 宸ヤ綔鍙� - command.setAckFinish((short) 1); // 浠诲姟瀹屾垚纭浣� - command.setTaskMode(CrnTaskModeType.NONE); // 浠诲姟妯″紡 - command.setSourcePosX((short)0); // 婧愬簱浣嶆帓 - command.setSourcePosY((short)0); // 婧愬簱浣嶅垪 - command.setSourcePosZ((short)0); // 婧愬簱浣嶅眰 - command.setDestinationPosX((short)0); // 鐩爣搴撲綅鎺� - command.setDestinationPosY((short)0); // 鐩爣搴撲綅鍒� - command.setDestinationPosZ((short)0); // 鐩爣搴撲綅灞� - write(command); - break; - case 4: - writeAuto((CrnCommand) task.getData()); - break; - case 5: - write((CrnCommand) task.getData()); - break; - default: - break; - } +// switch (step) { +// // 璇绘暟鎹� +// case 1: +// readStatus(); +// break; +// // 鍐欏叆鏁版嵁 +// case 2: +// write5((CrnCommand) task.getData()); +// break; +// // 澶嶄綅 +// case 3: +// CrnCommand command = (CrnCommand) task.getData(); +// if (null == command) { +// command = new CrnCommand(); +// } +// command.setCrnNo(slave.getId()); // 鍫嗗灈鏈虹紪鍙� +// command.setTaskNo((short) 0); // 宸ヤ綔鍙� +// command.setAckFinish((short) 1); // 浠诲姟瀹屾垚纭浣� +// command.setTaskMode(CrnTaskModeType.NONE); // 浠诲姟妯″紡 +// command.setSourcePosX((short)0); // 婧愬簱浣嶆帓 +// command.setSourcePosY((short)0); // 婧愬簱浣嶅垪 +// command.setSourcePosZ((short)0); // 婧愬簱浣嶅眰 +// command.setDestinationPosX((short)0); // 鐩爣搴撲綅鎺� +// command.setDestinationPosY((short)0); // 鐩爣搴撲綅鍒� +// command.setDestinationPosZ((short)0); // 鐩爣搴撲綅灞� +// write(command); +// break; +// case 4: +// writeAuto((CrnCommand) task.getData()); +// break; +// case 5: +// write((CrnCommand) task.getData()); +// break; +// default: +// break; +// } Thread.sleep(500); } catch (Exception e) { // e.printStackTrace(); -- Gitblit v1.9.1