Problem #1
I am replacing the BLDC driver and motor on my mill with a Durapulse VFD. The Durapulse VFD uses a 0-10v analog signal input for spindle RPM. The proprietary hardware electronics of the mill outputs a PWM signal so I have a C41 board (rev.1) from CNC4PC to convert the PWM signal to an analog voltage signal for the VFD. Sound simple right? Well the problem is that the PWM signal from the machine is inverted, meaning 0% duty cycle is max RPM and 100% duty cycle is min RPM or an active low configuration. This is the way the supplied BLDC driver needs the signal. The Mach3 interface has the same configuration to make it compatible. I can change the Mach3 step setting to active high but I can't change the hardware of the machine so it will always output an active low signal. The C41 board however only reads active high.
I think I need to put a circuit in between the Mill hardware that is outputting the backwards PWM signal and the C41 board to make it work. The question is how do I invert the PWM signal, I think it should be easy to do but really don't know where to begin. I'm assuming I have to make some type of op amp circuit. Please help or offer suggestions.
Problem #2
Even when supplying the correct active high PWM signal directly from Mach3 to the C41 card I get no dynamic response on the output analog voltage. There is just a constant ~1.3v which I can adjust slightly with the pot. No matter what the input signal is to the c41 I can't get the output voltage to change or even get close to 10v. Perhaps it's wired wrong? I am supplying the external power with +12VDC and -12VDC for ground (I'm not sure if that is the correct way to do it). I don't have the relays wired yet, I'm just trying to get an analog output voltage first. Please tell me what I'm doing wrong.
Here is how it's wired:

Also here are some relevant images of the VFD terminals:

I'm banging my head against a wall trying to figure this out.