Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
What do I change in config to make it change the direction?
Change S0 to S1 or vice versa in the M569 line for the offending axis (Z is usally driver P2)