I am setting up a 4th rotary axis on my 3 axis cnc router, using my x axis as the rotary.  I have got  he 4th axis moving but the direction is going backwards and forwards,a turn or two in one direction then goes in the other direction.  Can someone please help its obvious that I have my settings wrong in my ports and pins somewhere  but where.  Please help 
