开关统计修改ac1_outswitch1_trip 0-6
,ac2_outswitch1_trip 0-6
,分合闸BreakerState1:0~24
,BreakerState2:0~8
| | |
| | | } |
| | | //1段交流 |
| | | if(switchReal.getAc1OutSwitch1TripSt()==0){//真实值 |
| | | breakSwitch+= CommonUtil.getIntToBinary(switchReal.getAc1OutSwitch1TripReal(),new int[]{0,1,2,3,4,5,6,7}); |
| | | breakSwitch+= CommonUtil.getIntToBinary(switchReal.getAc1OutSwitch1TripReal(),new int[]{0,1,2,3,4,5,6}); |
| | | }else{ |
| | | breakSwitch+= CommonUtil.getIntToBinary(switchReal.getAc1OutSwitch1TripFake(),new int[]{0,1,2,3,4,5,6,7}); |
| | | breakSwitch+= CommonUtil.getIntToBinary(switchReal.getAc1OutSwitch1TripFake(),new int[]{0,1,2,3,4,5,6}); |
| | | |
| | | } |
| | | |
| | |
| | | } |
| | | //2段交流 |
| | | if(switchReal.getAc2OutSwitch1TripSt()==0){//真实值 |
| | | breakSwitch+= CommonUtil.getIntToBinary(switchReal.getAc2OutSwitch1TripReal(),new int[]{0,1,2,3,4,5,6,7}); |
| | | breakSwitch+= CommonUtil.getIntToBinary(switchReal.getAc2OutSwitch1TripReal(),new int[]{0,1,2,3,4,5,6}); |
| | | }else{ |
| | | breakSwitch+= CommonUtil.getIntToBinary(switchReal.getAc2OutSwitch1TripFake(),new int[]{0,1,2,3,4,5,6,7}); |
| | | breakSwitch+= CommonUtil.getIntToBinary(switchReal.getAc2OutSwitch1TripFake(),new int[]{0,1,2,3,4,5,6}); |
| | | } |
| | | |
| | | //直流微段开关 |
| | |
| | | } |
| | | //统计分闸 |
| | | offSwitch+=CommonUtil.getIntToBinary(switchReal.getBreakerState1(),new int[]{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24}); |
| | | offSwitch+=CommonUtil.getIntToBinary(switchReal.getBreakerState2(),new int[]{0,1,2,3,4,5,6,7,8,9,10}); |
| | | offSwitch+=CommonUtil.getIntToBinary(switchReal.getBreakerState2(),new int[]{0,1,2,3,4,5,6,7,8}); |
| | | |
| | | map.put("recordTime", DateUtil.format_YYYY_MM_DD_HH_MM_SS(switchReal.getRecordTime())); |
| | | } |