Ok getting closer to getting this machine working however.
Here is my situation.
I have EstopWrite hooked up to a relay to my amps. So if there is a failure to the system power is stopped to the amps. At least that what the comments are on the mesa_io.hal file tell me. However I am getting no output signal on m5i20.0.out-07. Please if someone has an idea of how I can hook this up correctly it would be appreciated. Or should I connect this to a different output.
Here is the current area of the code that I am trying to modify.
# Connect e-stop write/sense to I/O controller.
#
# The estop from the opto module should be jumpered to one of the
# m5i20 estop pins. This will notify the motion of the estop condition
# and it will zero the DACs and turn off all output even if the PC
# has crashed.
#
newsig EstopSense bit
newsig EstopWrite bit
# create a signal for the estop loopback -- remove for external
#linkpp iocontrol.0.user-enable-out iocontrol.0.emc-enable-in
# use this if you have an external estop switch
#linksp EstopSense <= m5i20.0.estop-in-not
linksp EstopSense <= m5i20.0.in-15-not
linksp EstopSense => iocontrol.0.emc-enable-in
linksp EstopWrite => m5i20.0.out-07
linksp EstopWrite <= iocontrol.0.user-enable-out
Also does anyone know how to invert a output signal on the mesa. I also need to change the spindle output from 3.5v at startup which it is now, to 0v. And then when I run the program my relay can turn on the spindle.
Here is that code from the mesa_io.hal
# Connect spindle fwd/rev to I/O controller.
newsig SpindleFwd bit
linksp SpindleFwd => m5i20.0.out-00
linksp SpindleFwd <= motion.spindle-forward
The current system is running emc2 2.2.8 on Ubuntu 8.04
I hope this makes sense and someone can help.