Servo motor driver - 12V to 0~10v
simulate this circuit &ndash; Schematic created using CircuitLab

Figure 1. (a) What you want. (b) What you appear to have done.


(a) gives 0 to 10 V.
(b) gives 2 to 12 V.