package com.ld.igds.io.sample.lt; /** * 命令生成器 * * @author Andy * */ public class OrderBulider { private final static OrderBulider instance = new OrderBulider(); private OrderBulider() { } /** * * @return */ public static OrderBulider getInstance() { return instance; } /** * 查询状态 * * @return 00 00 00 00 00 11 01 03 0E 00 00 00 11 00 00 00 01 00 00 00 01 00 13 */ public String buildStatus() { return "000000000006010310000007"; } /** * 复位命令:00 00 00 00 00 06 01 06 10 07 00 12 * * @return */ public String buildRestMsg() { return "000000000006010610070012"; } /** * 急停命令 * 000000000006010610070011 * * @return */ public String buildStopMsg() { return "000000000006010610070011"; } /** * 解除急停 * 000000000006010610070022 * * @return */ public String buildRestStopMsg() { return "000000000006010610070022"; } /** * 自动开始工作(散粮):00 00 00 00 00 06 01 06 10 07 00 19 * * @return */ public String buildStart1Msg() { return "000000000006010610070019"; } /** * 自动开始工作(袋粮食):00 00 00 00 00 06 01 06 10 07 00 29 * * @return */ public String buildStart2Msg() { return "000000000006010610070029"; } /** * 扦样散粮车选择扦杆向下时吸粮:00 00 00 00 00 06 01 06 10 08 00 99 * * @return */ public String buildTypeUp() { return "000000000006010610080099"; } /** * 扦样散粮车选择扦杆向上时吸粮:00 00 00 00 00 06 01 06 10 08 00 66 * * @return */ public String buildTypeDown() { return "000000000006010610080066"; } }