Stepper motor config

Hi I'm trying to make plotter with arduino uno using stepper motors and CNC shield I used grbl master and I tried to configure it with corexy but problem is that motor on z turn in left and right direction but x and y always turning in the same direction I changed code, cotrol programs but always same problem even I changed motors but still they are turning in the same direction
Can somenome help me

Here is config

config.h (28.2 KB)