Initialize the motor parameters
>PHASES 3
Set encoder counts per revolution
>ECPR 8000
Set encoder counts per electrical cycle
>PCOUNTS 2000
Set pole pairs.
Pole pairs should be: PPAIRS = ECPR / PCOUNTS
>PPAIRS 4
Set desired direction of motion
(PINVERT 0 indicates no reversal)
>PINVERT 0
Setup motor phase mapping
(need to be executed only once after motor is connected)
>ENABLE
>SETUP
The motor will move back and forth up to half an electrical cycle.
Alternatively set PMAP and HINVERT manually.