I currently do inhibit it from happening. I use a custom M154 to engage the C-Axis. In classicladder I have it set up that if the spindle is turning (regardless if it is on or not), then you cannot engage the C-Axis, likewise I have it set, if the C-Axis is engage then you cannot turn on the spindle. My concern is, that someone will have the C-Axis engaged - not realize it and try and turn the spindle motor on and not understand why it will not start - and then try and "fix" it and cause damage. I guess I could set up some LEDs on a panel - which I should do anyways.
I guess my more broader question is if you could set up custom alarms.... We have some HAAS machines and you can setup macros and they have a variable that you can use that allows you to set custom alarms. I will play around a bit and see what I can find. I will try that component that les sent also. On Tue, Aug 30, 2011 at 7:27 AM, andy pugh <[email protected]> wrote: > 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 > -- Brian May 506.8862.9162 (Cell) 506.2293.6375 (Office) ------------------------------------------------------------------------------ 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
