| | |
| | | public void putBatchResult(BatchResults<Integer> res) {
|
| | | if(res != null) {
|
| | | int index = 0;
|
| | | this.sensor_torque = MyModbusUtils.readShortToFloat(res.getValue(index++)); //传感器转矩 330
|
| | | this.sensor_power = MyModbusUtils.readShortToFloat(res.getValue(index++)); //传感器功率 514
|
| | | this.sensor_torque = MyModbusUtils.readShortToFloat(res.getValue(index++),true); //传感器转矩 330
|
| | | this.sensor_power = MyModbusUtils.readShortToFloat(res.getValue(index++),true); //传感器功率 514
|
| | | this.fault_confirm = MyModbusUtils.readBooleanToInt(res.getValue(index++)); //故障确认 801
|
| | | this.gear_box_power = MyModbusUtils.readShortToFloat(res.getValue(index++)); //齿轮箱轴功率 853
|
| | | this.advance_power = MyModbusUtils.readShortToFloat(res.getValue(index++)); //推进轴功率 854
|
| | | this.gear_box_power = MyModbusUtils.readShortToFloat(res.getValue(index++),true); //齿轮箱轴功率 853
|
| | | this.advance_power = MyModbusUtils.readShortToFloat(res.getValue(index++),true); //推进轴功率 854
|
| | | this.gear_box_tmp1 = MyModbusUtils.readIntegerToFloat(res.getValue(index++)); //齿轮箱轴承温度1 1010
|
| | | this.gear_box_tmp2 = MyModbusUtils.readIntegerToFloat(res.getValue(index++)); //齿轮箱轴承温度2 1011
|
| | | this.gear_box_tmp3 = MyModbusUtils.readIntegerToFloat(res.getValue(index++)); //齿轮箱轴承温度3 1012
|