[Emc-users] Motion Mode in HAL

2014-04-15 Thread andy pugh
Does any HAL pin indicate if the current move is a G1, G2, G3 or G0 move? I am wondering if such a pin would be useful for things like laser cutters, which could cut with g1 and move with g0, almost automagically. I see some mention in the motion docs about free-tp-enable which indicates that

Re: [Emc-users] Motion Mode in HAL

2014-04-15 Thread Michael Haberler
Am 15.04.2014 um 11:21 schrieb andy pugh bodge...@gmail.com: Does any HAL pin indicate if the current move is a G1, G2, G3 or G0 move? I am wondering if such a pin would be useful for things like laser cutters, which could cut with g1 and move with g0, almost automagically. not exactly,

Re: [Emc-users] Motion Mode in HAL

2014-04-15 Thread John Kasunich
On Tue, Apr 15, 2014, at 05:21 AM, andy pugh wrote: Does any HAL pin indicate if the current move is a G1, G2, G3 or G0 move? I am wondering if such a pin would be useful for things like laser cutters, which could cut with g1 and move with g0, almost automagically. I see some mention in

Re: [Emc-users] Motion Mode in HAL

2014-04-15 Thread Chris Radek
On Tue, Apr 15, 2014 at 10:21:45AM +0100, andy pugh wrote: Does any HAL pin indicate if the current move is a G1, G2, G3 or G0 move? I am wondering if such a pin would be useful for things like laser cutters, which could cut with g1 and move with g0, almost automagically. The TP already

Re: [Emc-users] Motion Mode in HAL

2014-04-15 Thread andy pugh
On 15 April 2014 15:18, Chris Radek ch...@timeguy.com wrote: +emcmot_hal_data-debug_s32_0 = emcmotStatus-motionType; That looks suspiciously easy. Is the pin synchronised with motion? I suspect that it would actually return the same value for G1 and G0 (TC_LINEAR = 1) ?

Re: [Emc-users] Motion Mode in HAL

2014-04-15 Thread Dave Caroline
Where in a blend from one gcode to the next should the state of this pin/s change. Dave Caroline On 15/04/2014, andy pugh bodge...@gmail.com wrote: On 15 April 2014 15:18, Chris Radek ch...@timeguy.com wrote: +emcmot_hal_data-debug_s32_0 = emcmotStatus-motionType; That looks

Re: [Emc-users] Motion Mode in HAL

2014-04-15 Thread Chris Radek
On Tue, Apr 15, 2014 at 04:33:10PM +0100, andy pugh wrote: On 15 April 2014 15:18, Chris Radek ch...@timeguy.com wrote: +emcmot_hal_data-debug_s32_0 = emcmotStatus-motionType; That looks suspiciously easy. Yes. Is the pin synchronised with motion? Yes. I suspect that it would

Re: [Emc-users] Motion Mode in HAL

2014-04-15 Thread andy pugh
On 15 April 2014 17:07, Dave Caroline dave.thearchiv...@gmail.com wrote: Where in a blend from one gcode to the next should the state of this pin/s change. I don't think that there are blends between G0 and G1/2/3 For the application I had in mind G1/2/3 are equivalent (I don't see why you

Re: [Emc-users] Motion Mode in HAL

2014-04-15 Thread Chris Radek
On Tue, Apr 15, 2014 at 05:07:35PM +0100, Dave Caroline wrote: Where in a blend from one gcode to the next should the state of this pin/s change. They change in the middle of the blend. -- Learn Graph Databases -

Re: [Emc-users] Motion Mode in HAL

2014-04-15 Thread andy pugh
On 15 April 2014 17:24, Chris Radek ch...@timeguy.com wrote: Nope, it will give you these: http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/emc/nml_intf/motion_types.h That seems perfect. 2.5.4 ? :-) -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto