So you get a bit of understanding of what the drive needs to achieve, have a read of the 3 Phase Brushless Motor Control on this page - https://www.dynomotion.com/wiki/index.php/SnapAmp_Info
It is Dynomotion specific, but it explains what the drive needs to achieve.

You just then need to figure out how to do it with your drive.

Having a quick read of the manual, E02 for motor poles, E04 to set the encoder lines.
The index offset might need a bit tweaking for smooth running, but I'd expect everything else to be automatically calculated after the phase detection has run.