the +/- of the motor can also be flipped with a wire cross, so no worries if the sign is backwards.
I would need to go through the math to justify this one, but I can’t right now. Here is another post linked from the one above I mentioned that has different numbers you can put in to get it to work.
In theory, there is an encoder that has so many pulses per step and steps per revolution of the motor that gets counted as the motor turns. This is tracked by the controller. the motor has a gearbox with so many revolutions of the pulley per revolution of the motor. With so many revolutions of the motor, you get so many revolutions of the lead screw and with every revolution of the screw you get x number of mm of travel. the pitch is supposed to be for just the part from the output pulley to the mm distance. Try the numbers given in the link above and see if it works for you. You can adjust the pitch up or down depending on how far you are from reality. I used a caliper and ran the axis up and down several times. Report back if your numbers are different.