> First problem:
> My gamepad only have one simple joystick, I can only jog two 
> axis as the wiki examples. I would like to use two buttons to 
> jog Z instead. These two buttons are true/false signals. Can 
> I config it some way like this?
> When pressing input.0.btn-top2, jog Z down.
>  When pressing input.0.btn-base, jog Z up.

With a hal file you can do almost anything.  You just need to work out how!

There is an example on the wiki to jog with buttons.  The example uses
buttons in axis, but you should be able to change it to your joystick.

http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Jogging_With_Buttons_On_A_Pendan
t

Look at halui.  It has the pins you need to access emc via an external
device.

> 
> Second problem:
> I tested the config example at the wiki to force the user to 
> press a button as well when jogging to make it more secure 
> and to set different speeds. But then EMC complained that or2 
> already exists. Can I increase the number of or2-objects 
> without changing the original or2 creator? It also complained 
> that or2.0 was taken, need more of those...

Yes, just change it.  This is an unfortunate shortcoming of hal files.  You
can only load/loadrt a component once.  If you need more instances, you need
to find the file that contains the load line and change it.

> 
> Third:
> Can I setup one button to trigger a E-stop? Or, I believe 
> it's possible, I just don't know how... :)
> 

I'd like to know this too.  I have a twist-to-release type e-stop button on
my pendant.  I've got it connected to halui.machine.on and .off, but I can
override it by hitting the buttons in axis. 

Frank





------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to