You will need a SOURCE wiring Configuration for your VFD.
In such wiring mode, remove the jumper between +24 V and OP. Connect +24 V to
the common port of external controller (J5 FE on the M31) and meanwhile connect OP to COM. If external
power supply is applied, remove the jumper between CME and COM.
This will be your forward signal:
VFD+24v → J5 FE M31
VFD DI1 → J5 FC M31
This will be your Speed adjustment:
VFD AI1 → J5 10v
VFD GND → J5 0v (Verify this is the correct ground by reading your VFD manual)
https://www.ivdc.com/cnc/SVD-P%20user%20manual-NEW.pdf