the z axis is moving in the wrong direction, I swapped it to the x axis and it moves in the correct direction. How do I fix this?
What controller are you using? If it's a grbl controller the easiest way is to use Openbuilds Control - go to the grbl settings tab and invert the Z axis direction. The harder way, but will give you more insight into how grbl configuration works is to read the section on $3 in the link below. grbl/settings.md at master ยท gnea/grbl Alex.