Hi, @conk83
Welcome to the forum.
https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum
You should be able to add some conversion code lines.
Can you please tell us your electronics, programming, arduino, hardware experience?
Have you tried the code you have, if not, then please do to make sure you can control the x27 stepper.
Starting with a breadboard experiment would be the best place to start.
Please post the code if it works on your x27.
Tom...