Re: [Emc-developers] halui.program.stop

2018-06-27 Thread andy pugh
On 27 June 2018 at 10:12, andy pugh wrote: > A user reports that halui,program.stop does not have the expected > result when set from a bash script > https://forum.linuxcnc.org/10-advanced-configuration/34793-stop-program-from-m-code#112859 This seems to be the error you get if the M101 file is

Re: [Emc-developers] Potentially silly Q

2018-06-27 Thread Gene Heskett
On Wednesday 27 June 2018 09:54:12 Kenneth Lerman wrote: > When I've had problems like that, I've simply made a subroutine with > the switches as arguments. Then I call the subroutine from MID with > the proper arguments. This code, as it exists now, only has one subroutine, which is to measure

Re: [Emc-developers] Potentially silly Q

2018-06-27 Thread Kenneth Lerman
When I've had problems like that, I've simply made a subroutine with the switches as arguments. Then I call the subroutine from MID with the proper arguments. Alternatively, make a separate subroutine for each setup so you won't have to enter the arguments with each MDI call. Ken On Wed, Jun

Re: [Emc-developers] Potentially silly Q

2018-06-27 Thread Gene Heskett
On Wednesday 27 June 2018 05:32:27 andy pugh wrote: > On 27 June 2018 at 04:02, Gene Heskett wrote: > > As long as I had the i/o pins, available, it makes sense that in > > mounting the tool or the part, if I could just flip a switch to > > enable the drilling for the grub screws, or another to

Re: [Emc-developers] Pre-Pull Request Review: Better laser engraver support + new HAL pin type "PORT"

2018-06-27 Thread Jeff Epler
On Mon, Jun 25, 2018 at 10:18:50AM -0400, Curtis Dutton wrote: > The place where ports are allocated is halcmd_commands.c line 687. That was > the easiest place I could find to do it. That code should probably be in > hal_lib.c and just be called by hal command. Should this line be dropped then?

Re: [Emc-developers] Potentially silly Q

2018-06-27 Thread andy pugh
On 27 June 2018 at 04:02, Gene Heskett wrote: > As long as I had the i/o pins, available, it makes sense that in mounting > the tool or the part, if I could just flip a switch to enable the > drilling for the grub screws, or another to enable the tapping of the > holes just drilled I don't

[Emc-developers] halui.program.stop

2018-06-27 Thread andy pugh
A user reports that halui,program.stop does not have the expected result when set from a bash script https://forum.linuxcnc.org/10-advanced-configuration/34793-stop-program-from-m-code#112859 I am not at all fluent in shell scripting, so can't tell if the script is valid, but the reported result