Re: [Emc-users] How to run file?

2011-10-11 Thread John Thornton
There are examples of this and other buttons on the forum in the Hal Examples section. John On 10/10/2011 10:20 AM, Viesturs Lācis wrote: > Hello, gentlemen! > > I have an urgent question: > How can I make EMC to run opened g-code file, when certain input pin goes > "true"? > I tried linking tha

Re: [Emc-users] How to run file?

2011-10-10 Thread Viesturs Lācis
2011/10/10 andy pugh : > 2011/10/10 Viesturs Lācis : > >> What can potentially be wrong? > > It might be a race condition, that program.run fails if mode is not auto. > > I have been playing around, and if you net halui.mode.is-auto to > halui.program.run (and make sure that the pin is on a momenta

Re: [Emc-users] How to run file?

2011-10-10 Thread andy pugh
2011/10/10 Viesturs Lācis : > What can potentially be wrong? It might be a race condition, that program.run fails if mode is not auto. I have been playing around, and if you net halui.mode.is-auto to halui.program.run (and make sure that the pin is on a momentary button, or wired through a onesh

Re: [Emc-users] How to run file?

2011-10-10 Thread Viesturs Lācis
On 2011. gada 10. Okt. 17:46, "andy pugh" wrote: > > On 10 October 2011 16:20, Viesturs Lācis wrote: > > > How can I make EMC to run opened g-code file, when certain input pin goes > > "true"? > > I tried linking that input to halui.program.run, but EMC complains that it > > can't run a file, whe

Re: [Emc-users] How to run file?

2011-10-10 Thread Viesturs Lācis
And how are hardware control panel buttons for starting a program usually connected in HAL? Viesturs On 2011. gada 10. Okt. 17:46, "andy pugh" wrote: > On 10 October 2011 16:20, Viesturs Lācis wrote: > > > How can I make EMC to run opened g-code file, when certain input pin goes > > "true"? > >

Re: [Emc-users] How to run file?

2011-10-10 Thread Viesturs Lācis
Yes, I tried also that - in that case I can't get out of auto mode. On 2011. gada 10. Okt. 17:46, "andy pugh" wrote: > On 10 October 2011 16:20, Viesturs Lācis wrote: > > > How can I make EMC to run opened g-code file, when certain input pin goes > > "true"? > > I tried linking that input to hal

Re: [Emc-users] How to run file?

2011-10-10 Thread andy pugh
On 10 October 2011 16:20, Viesturs Lācis wrote: > How can I make EMC to run opened g-code file, when certain input pin goes > "true"? > I tried linking that input to halui.program.run, but EMC complains that it > can't run a file, when in manual mode. > Where is the trick? You need to also set h

[Emc-users] How to run file?

2011-10-10 Thread Viesturs Lācis
Hello, gentlemen! I have an urgent question: How can I make EMC to run opened g-code file, when certain input pin goes "true"? I tried linking that input to halui.program.run, but EMC complains that it can't run a file, when in manual mode. Where is the trick? Thanks! Viesturs ---