I am trying to find a way to connect a CNC controller that has a 1kHz 5V PWM output to a spindle drive that accepts 0-5VDC (input) analog signal.

There are several PWM-To-Analog converters on the market similar to this - Link (attached image).

Unfortunately, they all convert 5V PWM signal to 0-10VDC. That means at 100% PWM cycle duty they output 10V. My spindle drive accepts up to 5VDC.

Do you know any converters that may work in my case, or can you suggest any walk-around to this problem?
Any advice would be greatly appreciated!