If you have just VFD on the outlet, you need just need a 2 pole and ground, you do not necessarily need a neutral, if you do you need a 4 pole outlet.
The ground should not be connected to any neutral apart from the neutral and ground connection in the service panel.
You should have a ground connected from the service to the VFD to the Motor, at no point should it come in contact with any neutral conductor.
Al.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.