On 30 August 2011 14:08, Brian May <[email protected]> wrote: > For example I have a C-Axis motor and a regular spindle motor on a Lathe. I > would like if the user commands the C-Axis motor to engage while the regular > motor is turning to E-Stop and give an alarm.
It might be easier to inhibit the C-motor engagement. You could set up HAL logic to do either, using for example motion.spindle.is-on and one of the axis.5 pins into an and2 hal function to feed an or2 function which also takes user e-stop. If you can design the behaviour in basic logic, then HAL can do it. There are a number of other functions that might be useful too. http://linuxcnc.org/docs/html/hal_components.html A guide to HAL is here: http://linuxcnc.org/docs/html/hal_basic_hal.html Popping up a warning message in HAL is not all that easy, as far as I know. It is relatively easy to light an LED on a PyVCP panel, (or, in newer versions, a GladeVCP panel). I don't know if we have any hal-linked annunciators, but they might exist. If you are familiar with PLCs then you could code the behaviour in Classic Ladder. I don't know what that has by way of pop-ups, if anything. How is the C-axis engaged? If it is a custom M-code then you ought to be able to code the logic in the M-code script itself. I think it would be better either to inhibit C-engagement if the spindle is turning, or better perhaps to stop the spindle and wait for zero speed before engaging C. -- atp "Torque wrenches are for the obedience of fools and the guidance of wise men" ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
