If you look at that picture:
S0/D0 are step and dir for the first axis
S1/D1 are step and dir for the second axis
S2/D2 are step and dir for the third axis

wonder what S3 and D3 would be ;-)

regarding limit and home switches.

limit switches: you say you have them all connected to the same input (I'll 
assume ppmc.0.din.00.in)
the HAL configuration for this needs to look like this:

newsig Limits bit
linksp Limits <= ppmc.0.din.00.in
linksp Limits => axis.0.neg-lim-sw-in
linksp Limits => axis.0.pos-lim-sw-in

linksp Limits => axis.1.neg-lim-sw-in
linksp Limits => axis.1.pos-lim-sw-in

linksp Limits => axis.2.neg-lim-sw-in
linksp Limits => axis.2.pos-lim-sw-in

linksp Limits => axis.3.neg-lim-sw-in
linksp Limits => axis.3.pos-lim-sw-in

lets do the home switches now: (I'll assume you want to use 4 different input 
pins for the different home switches)
XHome is on ppmc.0.din.01.in
YHome is on ppmc.0.din.02.in
ZHome is on ppmc.0.din.03.in
AHome is on ppmc.0.din.04.in

the HAL commands to do that are:

newsig Xhome bit
newsig Yhome bit
newsig Zhome bit
newsig Ahome bit

linksp Xhome <= ppmc.0.din.01.in
linksp Xhome => axis.0.home-sw-in

linksp Yhome <= ppmc.0.din.02.in
linksp Yhome => axis.1.home-sw-in

linksp Zhome <= ppmc.0.din.03.in
linksp Zhome => axis.2.home-sw-in

linksp Ahome <= ppmc.0.din.04.in
linksp Ahome => axis.3.home-sw-in

Hope this helps.

Regards,
Alex Joni
  ----- Original Message ----- 
  From: alex 
  To: Enhanced Machine Controller (EMC) 
  Sent: Tuesday, December 05, 2006 5:58 PM
  Subject: Re: [Emc-users] Setting up Hal and ini files for the parport


  Jon, 
  The diagram shows 3 axises and I need 4.
  Which pins do I use for step, dir, home for axis A?
  Also all my limit switches are in series and go into one input.
  Alex

  Jon Elson wrote:

alex wrote:

  Eric, thank you for your detail explanation!
I happened to have a USB from Jon Elson, so I may as well start using 
it, though my application
can work just fine with just a parport in an output mode.
Ideally I would like to have already made configuration for a parport 
which I could just apply without
learning how to use HAL. I think many people would like the same thing 
unless once really like meet and
overcome challenges. In my case I just want to make the machine to work.
    
In that case, look at the drawing at 
http://jelinux.pico-systems.com/images/uscgecko.pdf
for the electrical connections.

The file emc2/configs/univstep/univstep_io.hal  has all the assignments 
to correspond to
that drawing.  All the files in emc2/configs/univstep are a set that are 
preconfigured for
a 4-axis system using the Universal Stepper Controller.  These files 
should be in any
EMC2 system created since this spring, although later versions of EMC2 
have all sorts of
improvements.

Jon
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to