I am running on board programs. I have my software limits enabled. Occasionally, my program corrupts and I hit a software limit. The motion stops by halting the motors, but they are still on. As a result, the on board progam kicks in again, and the motors start back up again. Depending upon the program, this can lead to very dangerous results. How can I set the software limits such that they kill the motors, rather than just halting them?
You will need to poll the status of the software limits (using the Read Limit Status VI, limit type inptu set to software limits). Once the status is True, such that the software limit has been tripped, execute a Stop Motion VI, with the Stop type input set to Kill.
This example program uses these two VIs, but you will need to modify it for your own application in the way I mentioned above: Finding the limits of a Motion System http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EAB756A4E034080020E74861&p_node=DZ52468&p_source=External
Regards- Julie S Applications Engineer National Instruments