Re: [Emc-users] Starting up in Machine ON
That is super helpful, thanks! Sent from my iPhone > On Dec 19, 2023, at 6:31 AM, andy pugh wrote: > > On Mon, 18 Dec 2023 at 17:05, Alan Thomason via Emc-users > wrote: > >> Is it possible to script in the initial file for the system to switch to >> Machine ON (as long as there are no active limit switches). > > Halui is a program that replicates many of the actions that are > otherwise handled in the GUI. > http://linuxcnc.org/docs/stable/html/man/man1/halui.1.html > > In this case you would need to connect up the HAL pin halui.machine.on > > Does your machine start up in the e-stop active or e-stop inactive > state? (This will depend on the wiring of the HAL e-stop loop) If it > does then you will also have to toggle the halui.estop.reset pin. > (And, having just checked, you can set them both at the same time, it > needs to be estop.reset then machine.on) > > If the machine starts up in e-stop OFF then you probably just need a > single line in a postgui halfile > setp halui.machine.on 1 > > If you also need to reset the e-stop then it's a little more involved. > So, one way would be to set up a couple of cascaded one-shots in HAL, > then trigger them on the postgui halfile. > > In the main (or custom) HAL: > > loadrt oneshot names=estop-pulse,machine-on-pulse > addf estop-pulse servo-thread > addf machine-on-pulse > setp estop-pulse.rising 1 > setp estop-pulse.falling 0 > setp estop-pulse.width 1 > setp machine-on-pulse.rising 0 > setp machine-on-pulse.falling 1 > setp machine-on-pulse.width 1 > net e-reset estop-pulse.out => halui.estop.reset => machine-on-pulse.trigger > net on-signal machine-on-pulse.out => halui.machine.on > > Then in the postgui HAL: > > setp estop-pulse.trigger 1 > > The idea is that the postgui HAL first triggers a 1-second pulse to > estop-reset, then the falling edge of that pulse triggers the > machine-on. > > It would also be possible to trigger machine-on directly from the > falling-edge of halui.estop.is-activated, but that would override the > normal ui functions (the machine would _always_ turn on when the > e-stop was released) and you might not want that. > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Starting up in Machine ON
On Mon, 18 Dec 2023 at 17:05, Alan Thomason via Emc-users wrote: > Is it possible to script in the initial file for the system to switch to > Machine ON (as long as there are no active limit switches). Halui is a program that replicates many of the actions that are otherwise handled in the GUI. http://linuxcnc.org/docs/stable/html/man/man1/halui.1.html In this case you would need to connect up the HAL pin halui.machine.on Does your machine start up in the e-stop active or e-stop inactive state? (This will depend on the wiring of the HAL e-stop loop) If it does then you will also have to toggle the halui.estop.reset pin. (And, having just checked, you can set them both at the same time, it needs to be estop.reset then machine.on) If the machine starts up in e-stop OFF then you probably just need a single line in a postgui halfile setp halui.machine.on 1 If you also need to reset the e-stop then it's a little more involved. So, one way would be to set up a couple of cascaded one-shots in HAL, then trigger them on the postgui halfile. In the main (or custom) HAL: loadrt oneshot names=estop-pulse,machine-on-pulse addf estop-pulse servo-thread addf machine-on-pulse setp estop-pulse.rising 1 setp estop-pulse.falling 0 setp estop-pulse.width 1 setp machine-on-pulse.rising 0 setp machine-on-pulse.falling 1 setp machine-on-pulse.width 1 net e-reset estop-pulse.out => halui.estop.reset => machine-on-pulse.trigger net on-signal machine-on-pulse.out => halui.machine.on Then in the postgui HAL: setp estop-pulse.trigger 1 The idea is that the postgui HAL first triggers a 1-second pulse to estop-reset, then the falling edge of that pulse triggers the machine-on. It would also be possible to trigger machine-on directly from the falling-edge of halui.estop.is-activated, but that would override the normal ui functions (the machine would _always_ turn on when the e-stop was released) and you might not want that. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Starting up in Machine ON
On 12/18/23 14:09, Todd Zuercher wrote: Probably, but we will need a better explanation of exactly what machine responses you want to what machine inputs, before we could give a detonate yes or instructions how to do so. Are you asking for the machine to automatically home all joints when the machine power/enable button is pressed? No. Are you asking for a reset button that returns the machine to a ready position after an incident or interruption of a program? No. Something else entirely? Todd Zuercher P. Graham Dunn Inc. 630 Henry Street Dalton, Ohio 44618 Phone: (330)828-2105ext. 2031\ It is all there, Todd, all you have to do is hook it up in the .hal file. Anybody with an editor can do it. -Original Message- From: Alan Thomason via Emc-users Sent: Monday, December 18, 2023 12:01 PM To: emc-users@lists.sourceforge.net Cc: Alan Thomason Subject: [Emc-users] Starting up in Machine ON [EXTERNAL EMAIL] Be sure links are safe. Hi There... We have a positioning machine that uses linuxcnc that we want to better automate the restart procedure. Is it possible to script in the initial file for the system to switch to Machine ON (as long as there are no active limit switches). This machine is inaccessible to humans without turning off power, so there is no safety concern. Thanks so much, Alan Sent from my iPhone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users . Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Starting up in Machine ON
Hi There…I’m hoping to start in the ‘machine on’ state rather than estop on. After that, yes, I would like to home the axes, then set the mode to MDI and also set G93. I had not asked anything but the machine state as I thought it would be better to take it one step at a time… Thanks very much, Alan Sent from my iPhone > On Dec 18, 2023, at 2:09 PM, Todd Zuercher wrote: > Probably, but we will need a better explanation of exactly what machine > responses you want to what machine inputs, before we could give a detonate > yes or instructions how to do so. > > Are you asking for the machine to automatically home all joints when the > machine power/enable button is pressed? > > Are you asking for a reset button that returns the machine to a ready > position after an incident or interruption of a program? > > Something else entirely? > > Todd Zuercher > P. Graham Dunn Inc. > 630 Henry Street > Dalton, Ohio 44618 > Phone: (330)828-2105ext. 2031 > > -Original Message- > From: Alan Thomason via Emc-users > Sent: Monday, December 18, 2023 12:01 PM > To: emc-users@lists.sourceforge.net > Cc: Alan Thomason > Subject: [Emc-users] Starting up in Machine ON > > [EXTERNAL EMAIL] Be sure links are safe. > > Hi There... > > We have a positioning machine that uses linuxcnc that we want to better > automate the restart procedure. Is it possible to script in the initial file > for the system to switch to Machine ON (as long as there are no active limit > switches). > > This machine is inaccessible to humans without turning off power, so there is > no safety concern. > > Thanks so much, > > Alan > > > Sent from my iPhone > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Starting up in Machine ON
Probably, but we will need a better explanation of exactly what machine responses you want to what machine inputs, before we could give a detonate yes or instructions how to do so. Are you asking for the machine to automatically home all joints when the machine power/enable button is pressed? Are you asking for a reset button that returns the machine to a ready position after an incident or interruption of a program? Something else entirely? Todd Zuercher P. Graham Dunn Inc. 630 Henry Street Dalton, Ohio 44618 Phone: (330)828-2105ext. 2031 -Original Message- From: Alan Thomason via Emc-users Sent: Monday, December 18, 2023 12:01 PM To: emc-users@lists.sourceforge.net Cc: Alan Thomason Subject: [Emc-users] Starting up in Machine ON [EXTERNAL EMAIL] Be sure links are safe. Hi There... We have a positioning machine that uses linuxcnc that we want to better automate the restart procedure. Is it possible to script in the initial file for the system to switch to Machine ON (as long as there are no active limit switches). This machine is inaccessible to humans without turning off power, so there is no safety concern. Thanks so much, Alan Sent from my iPhone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Starting up in Machine ON
On 12/18/23 12:04, Alan Thomason via Emc-users wrote: Hi There… We have a positioning machine that uses linuxcnc that we want to better automate the restart procedure. Is it possible to script in the initial file for the system to switch to Machine ON (as long as there are no active limit switches). This machine is inaccessible to humans without turning off power, so there is no safety concern. Thanks so much, Alan\ All of my machines are power controlled 100% by the state of the F2 key, by shipping its state out to a breakout pin or 2, which in turn trigger a block of 60 amp 600 volt SSR's that control all power to the machine. By the same idea, any error reported by these new stepper/servo's knocks F2 down from the e-stop circuit that signal is coupled to. Since these stepper/servo closed loop drivers need a power down cycle to recover, this is the first step in recovery from an error. Fix the cause of the error like a wrench left on the table or??? remove the tool or not depending on how it moves to home because it will need rehomed, hit f2 to repower the machine, rehome it and either hit run to carve air, or if feasible, run from line after reinstalling the tool if it was removed to home it safely. Sent from my iPhone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users