Recommend splitting this condition into separate pump ID validation and target speed range check conditions. Then you won't have to determine reason for alarm in else below.
It was acting as a function to turn off concentrate pump if HD commands DG exits fill mode, but has been removed due to reservoir module will handle this.
This is a one-shot init function, so timing not critical, but I would still do this calculation once and assign to local float, then assign these fields from the local float.