The voltage decided on top is to set the max current and by using the resistor on the + side.
The voltage decided on the bottom is used to select the voltage.
I don't know why but this circuit doesn't work on this simulator but it dies work on falstad circuit simulator