Jon and Rob,

You guys obviously know a lot more about the inner working of HAL than I. I
am still no closer to understanding what lines of code I need to put into my
HAL file.

Can you please translate this simple boolean text notation...

    home_en1 = dir OR NOT home1
    home_en2 = dir OR NOT home2
    step_1 = step AND home_en1
    step_2 = step AND home_en2
    home = ( ( home1 AND home2 ) AND NOT dir ) OR ( ( home 1 OR home2 )
    AND dir )

...to actual HAL syntax.

Thanks a bunch, really.

>Len


-----Original Message-----
From: Jon Elson [mailto:el...@pico-systems.com] 
Sent: Wednesday, April 01, 2009 8:30 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] syncing two motors to one axis

Len Shelton wrote:
> So, are you saying that it can't presently be done because no one has
> written the hal components to do it?
>
>   
No, actually I do not believe any new HAL components are needed.  You 
need an and gate to detect when both home switches have been tripped.  
This AND output sets a flip-flop.  The flip-flop is cleared when you 
start the home sequence.  When the FF is clear, an and gate stops each 
side of the gantry from moving when that home switch trips.  When the FF 
is set, all move commands pass through.
> I have searched the archives and found very little.
>
> FWIW - this machine uses steppers and no encoders.
>   
OK, your homing is not going to be as precise with this, but it can 
still be plenty good enough for a hobby level machine.  it is also 
simpler, as there is no complex homing sequence to use encoder index 
pulses.  I'm less familiar with the internal hook-up of step generators 
to the parallel port, but what you want to do is stop the first side 
that hits home, and not terminate the homing sequence until BOTH sides 
have hit their home switches.  Sounds quite simple.

Jon

----------------------------------------------------------------------------
--
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to