|  |  | 
 |  |  |  | 
 |  |  |     protected static final byte CTRL = (byte)0xB0 ;//控制域 | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 检查命令参数 | 
 |  |  |      * @return 信息 | 
 |  |  |      */ | 
 |  |  |     public abstract String checkParams(String ...params) ; | 
 |  |  |     /** | 
 |  |  |      * 命令帮助信息 | 
 |  |  |      * @return 信息 | 
 |  |  |      */ | 
 |  |  |     public abstract String helpInfo() ; | 
 |  |  |     /** | 
 |  |  |      * 构造命令数据(十六进制) | 
 |  |  |      * @return 字符串 | 
 |  |  |      * @throws Exception 异常 | 
 |  |  |      */ | 
 |  |  |     public abstract String hex(String rtuAddr, String ...params) throws Exception ; | 
 |  |  |     /** | 
 |  |  |      * 构造命令数据(字节数组) | 
 |  |  |      * @return 字节数组 | 
 |  |  |      * @throws Exception 异常 | 
 |  |  |      */ | 
 |  |  |     public abstract byte[] bs(String rtuAddr, String ...params) throws Exception ; | 
 |  |  |  | 
 |  |  |     public byte[] createHead(String rtuAddr, String code, byte ctrl)throws Exception { |