I assume you are still using LinuxCNC. I don't know how configuring this software works on the Pi but check that the pin mapping for the GPIO pins on the Pi matches the controller.