contour shuttle pro as EMC pendant

More
13 years 6 months ago #32750 by andypugh

m8298 wrote: Is that all I should need to add??

Well, that only gives one function to one control, there will be a comensurate increase in complexity as more buttons and controls are given functions.

And will it work with a Shuttle Pro, as opposed to the Shuttle Express?

git.linuxcnc.org/gitweb?p=linuxcnc.git;a...2e61ec5fe7a8;hb=HEAD
Has the product-id hard-coded as 0x20, and the Shuttle Pro is 0x0011 (according to the interweb). So it probably won't work without changes.
There is probably a good argument for making the component work with both devices.

The way I have my Shuttle Pro setup in Mach3 is I have four of the buttons used to select an axis(XYZA), one button to turn an output on and off for a laser crosshair, one button to zero X & Y on workpiece to the laser crosshair, one button as another e-stop, one button for "run", one button for "stop", one button to zero my A axis, and one button to switch DROs from mm to IN.

That can all be set up in LinuxCNC, but it makes sense to check that it works at all first.

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #32751 by m8298
So, how do I make the changes? Do I save a copy of the file on that link, change the Poduct ID, add buttons, and save it? If so, where do I save it?

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #32760 by andypugh

m8298 wrote: So, how do I make the changes? Do I save a copy of the file on that link, change the Poduct ID, add buttons, and save it? If so, where do I save it?


Unfortunately it is a bit more complicated than that, as is is a C file so needs to be compiled, and to compile it you need all the rest of the LinuxCNC source code.

Can you make sure that the existing component doesn't just work first?

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #32762 by m8298
I guess i knew that answer. I'll try that component, it's worth a shot. But I believe you are right about it not working due to the product ID.

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #32765 by m8298
I found this in the wiki:

hidcomp.sourceforge.net/

It looks like this would work for me(once I understand it.)

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #32854 by m8298
I downloaded and installed hidcomp. I have it recognizing my Contour Shuttle Pro. Can anyone explain to me how to set pins in hal so I can link them in hidcomp? I want the following functions assigned to hal pins to be used on the buttons:

One pin/button for each axis (xyza) to jog enable.
One pin/button to set a parallel port output.
One pin/button for program run.
One pin/button for program stop.
One pin/button for program rewind.
One pin/button for estop.
One pin/button to zero A axis.
One pin/button to switch in/mm.
One pin/button to set a position offset. (I still need to learn how to do this in EMC. It is to set X and Y position based on a laser pointer.)

Please Log in or Create an account to join the conversation.

Time to create page: 0.161 seconds
Powered by Kunena Forum