Re: [Emc-users] Starting up in Machine ON

2023-12-19 Thread Alan Thomason via Emc-users
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

2023-12-18 Thread Alan Thomason via Emc-users
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


[Emc-users] Starting up in Machine ON

2023-12-18 Thread Alan Thomason via Emc-users
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