| | |
| | |
|
| | | public void putBatchResult(BatchResults<Integer> res) {
|
| | | if(null != res) {
|
| | | switch_close = (int)res.getValue(0); // '开关合闸状态',
|
| | | switch_open = (int)res.getValue(1); // '开关分闸状态',
|
| | | switch_fault = (int)res.getValue(2); // '开关故障状态',
|
| | | switch_close = MyModbusUtils.readBooleanToInt(res.getValue(0)); // '开关合闸状态',
|
| | | switch_open = MyModbusUtils.readBooleanToInt(res.getValue(1)); // '开关分闸状态',
|
| | | switch_fault = MyModbusUtils.readBooleanToInt(res.getValue(2)); // '开关故障状态',
|
| | | if(10001 == dev_id) {
|
| | | panel_vol = (int)res.getValue(3); // '进线屏电压',
|
| | | panel_curr = (int)res.getValue(4) ; // '进线屏电流',
|
| | | panel_vol = MyModbusUtils.readShortToInt(res.getValue(3)); // '进线屏电压',
|
| | | panel_curr = MyModbusUtils.readShortToInt(res.getValue(4)); // '进线屏电流',
|
| | | }else {
|
| | | panel_curr = (int)res.getValue(3) ; // '进线屏电流',
|
| | | panel_curr = MyModbusUtils.readShortToInt(res.getValue(3)); // '进线屏电流',
|
| | | }
|
| | | }
|
| | | }
|