24vdc variable circuit with analog input(0-10 vdc)
The electronic circuit which you are looking for is called as an amplifier,and here is a simple example for the same and may be an answer for your question



The opamp has Vs+ as 30V and Vs- as 30V which is not show in the figure



That Vs+ and Vs- is the power supply for the OPAMP

hope this helps