|  |  |  | 
|---|
|  |  |  | import com.dy.common.mw.protocol.*; | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V202404.CodeV202404; | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V202404.ParseParamsForDownV202404; | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V202404.downVos.ComCd16Vo; | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V202404.downVos.ComCd22Vo; | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V202404.parse.global.GlCreate; | 
|---|
|  |  |  | import com.dy.common.util.ByteUtil; | 
|---|
|  |  |  | import com.dy.common.util.ByteUtilUnsigned; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @AnnotationCodeDown(ifAny={ | 
|---|
|  |  |  | CodeV202404.cd_22 | 
|---|
|  |  |  | 
|---|
|  |  |  | throw new Exception("水位下限值必须是0~9999.99范围内的整数") ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | byte[] bs = new byte[17] ; | 
|---|
|  |  |  | byte[] bs = new byte[16] ; | 
|---|
|  |  |  | int index = 0 ; | 
|---|
|  |  |  | bs[index] = (byte)(Integer.parseInt(cvo.controllerType, 16)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | bs[index++] = 0 ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | index += 4 ; | 
|---|
|  |  |  | strTemp = "" + (Double.valueOf(cvo.limitLevel * 100)).longValue() ; | 
|---|
|  |  |  | bTemp = ByteUtil.string2BCD_LE(strTemp) ; | 
|---|
|  |  |  | bTempLen = bTemp.length ; | 
|---|
|  |  |  | 
|---|
|  |  |  | bs[index++] = 0 ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | index ++ ; | 
|---|
|  |  |  | GlCreate.createPw(bs, index); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | index += 2 ; | 
|---|