The signal is High and low, if your PP puts out 5V it will be 5V one way 0V the other, check that pin 18 is grounded properly, also check you have the axis enabled or Mach will not change the dir. Tes with a voltmeter and you will see the Hi/Lo change.
Hood