|
|
@ -41,11 +41,11 @@ public class ResHeatingTubeRackSlotManager extends DiResourceManagerBase { |
|
|
|
|
|
|
|
// refresh slot temperature |
|
|
|
public void refreshSlotTemperature() { |
|
|
|
// var registers = this.getDevice().getRegisters(); |
|
|
|
// for (ResHeatingTubeRackSlot slot : this.slots) { |
|
|
|
// slot.temperature = registers.getValue("HeatingPlateSlotTemperature" + slot.index); |
|
|
|
// LOG.info("[Heating Slot {}] temperature: {}", slot.index, slot.temperature); |
|
|
|
// } |
|
|
|
var registers = this.getDevice().getRegisters(); |
|
|
|
for (ResHeatingTubeRackSlot slot : this.slots) { |
|
|
|
slot.temperature = registers.getValue("HeatingPlateSlotTemperature" + slot.index); |
|
|
|
LOG.info("[Heating Slot {}] temperature: {}", slot.index, slot.temperature); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// get resource data |
|
|
@ -66,7 +66,7 @@ public class ResHeatingTubeRackSlotManager extends DiResourceManagerBase { |
|
|
|
return slot; |
|
|
|
} |
|
|
|
} |
|
|
|
throw new RuntimeException("No free slot"); |
|
|
|
throw new RuntimeException("暂无空闲试管架位置"); |
|
|
|
} |
|
|
|
|
|
|
|
// get slot by index |
|
|
|