[Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
Does anyone have a good example of a HAL file for a joypad that I can build on. Here's what I want to do with a basic Logitech usb gamepad.. Use the left stick to control x axis, the right stick to control the y axis, and the Hat to control the z axis. (I want one stick, one axis, 'cause

Re: [Emc-users] Gcode loops best practice in practise!!?

2009-04-17 Thread Erik Christiansen
On Thu, Apr 16, 2009 at 12:34:03PM -0700, Kirk Wallace wrote: Hopefully the wood guru's here will chime in. You've covered almost everything, Kirk. It's a few years now since I did much routing [1], in kiln dried Australian hardwoods and a little in waxy tropical hardwoods. I'd only emphasise

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread John Thornton
On 17 Apr 2009 at 1:06, Michael Jones wrote: Does anyone have a good example of a HAL file for a joypad that I can build on. This should get you going. http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant John

Re: [Emc-users] Gcode loops best practice in practise!!?

2009-04-17 Thread John Thornton
On 16 Apr 2009 at 19:19, alan battersby wrote: Hello everyone, I hope someone on this forum can offer some advice. I asked this question on CNCZone Gcode programming but have not yet had a reply. Perhaps I didnt word it clearly enough so can anyone on this forum help? As Steve pointed

Re: [Emc-users] New user interface development question.

2009-04-17 Thread Dave Caroline
flash would not be a good idea as its closed source and in my experience somewhat buggy Dave Caroline -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22,

Re: [Emc-users] A new pyVCP Widget

2009-04-17 Thread John Thornton
On 17 Apr 2009 at 12:13, John Pfleger wrote: I have several python scripts to generate G-Code that I use frequently. It would be nice if we could have a widget that would do the equivalent of opening a script. The easiest would be similar to the button except instead of connecting to a

[Emc-users] New user interface development question.

2009-04-17 Thread John Guenther
It there a simple example or other documentation on developing user interfaces for EMC2? I am assuming that whatever I do will need to talk to EMC through emcsh or emcsvr. A list of available commands for either or both would be helpful. I have been thinking of doing screens in Flash or perhaps

Re: [Emc-users] New user interface development question.

2009-04-17 Thread Jeff Epler
There's essentially no documentation of the user interface APIs besides the source code. If you want to develop an interface in C++, have a look at shcom.hh and a user of the shcom code such as emcrsh.cc. If you want to develop an interface in Python, have a look at 'pydoc emc', which is

Re: [Emc-users] New user interface development question.

2009-04-17 Thread John Guenther
Dave, Your point is well taken, however I do use the MachMotion screen set with Mach3 in my shop currently. It works quite well with a touch screen. I have started using touch screens in my very small shop (10 x 12 building) since I have very limited space for keyboards and mice. I am

Re: [Emc-users] New user interface development question.

2009-04-17 Thread Dave Caroline
Adding touchscreen I could be interested in as the cnc currently has a touchscreen which I dont have a driver for yet Dave Caroline -- Stay on top of everything new and different, both inside and around Java (TM)

Re: [Emc-users] New user interface development question.

2009-04-17 Thread Eric H. Johnson
John, FYI, I have done a couple of proof of principle touch screen layouts, but that is as far as I got with them. In particular I was looking at using a Lilliput 7 touch screen display (16x9 format), which is a bit different from say a 17+ 4x3 format display typical of large CNC machines. In my

Re: [Emc-users] Lathe Threading Issues

2009-04-17 Thread Jon Elson
Kirk Wallace wrote: Whatever it is, it looks like I have it too. I ran the long version four times with #4=0.050 without any problems. Then before shutting down for the night, I ran one part at #4=0.08. At the start of the thread the Z would aggressively move then almost come to a stop in

Re: [Emc-users] Lathe Threading Issues

2009-04-17 Thread Steve Blackmore
On Thu, 16 Apr 2009 22:40:07 -0700, you wrote: which sets up for 20 TPI. I ran it like that first, then changed the value to .08333 to get 12 TPI. Just a thought - try changing that 0.08333 to 0.084 and see if it still misbehaves. Steve Blackmore --

[Emc-users] Hostmot2 - stepper signal invert

2009-04-17 Thread Rob Jansen
Hi, is it possible to invert the DIR signal of the stepgen output of the Mesa 5i20 board? On my old (parport) config I had the DIR signal inverted so I was looking for a similar option on the hostmot configuration. Otherwise I'd have to open the controller-box to change one of the phases of

Re: [Emc-users] Hostmot2 - stepper signal invert

2009-04-17 Thread Sebastian Kuzminsky
Rob Jansen wrote: is it possible to invert the DIR signal of the stepgen output of the Mesa 5i20 board? On my old (parport) config I had the DIR signal inverted so I was looking for a similar option on the hostmot configuration. Yes this is easily doable. When you start emc2 and it loads

Re: [Emc-users] Hostmot2 - stepper signal invert

2009-04-17 Thread Stephen Wille Padnos
Rob Jansen wrote: Hi, is it possible to invert the DIR signal of the stepgen output of the Mesa 5i20 board? On my old (parport) config I had the DIR signal inverted so I was looking for a similar option on the hostmot configuration. One way to do that would be to change the sign of the

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Kirk Wallace
On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the knowledgebase as a initial attempt, but am having a slight problem. When I let go of the stick on the pad the axis keeps going.. UHOH! ;-) I've looked at the other scripts in the

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Kirk Wallace
On Fri, 2009-04-17 at 10:48 -0700, Kirk Wallace wrote: On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the knowledgebase as a initial attempt, but am having a slight problem. When I let go of the stick on the pad the axis keeps going..

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
When I use this setup, I get a response to the command: loadusr -W hal_input -KRAL name I've replaced the name with everything I can think of.. including various permutations of quotes and the like and get this every time.Somehow the hal stuff isn't recognizing the name of the device

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Alex Joni
On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the knowledgebase as a initial attempt, but am having a slight problem. When I let go of the stick on the pad the axis keeps going.. UHOH! ;-) I've looked at the other scripts in the

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
Kirk, That looks promising.. I'll try inserting that into the Hal. Thanks, - Michael On Apr 17, 2009, at 11:13 AM, Kirk Wallace wrote: On Fri, 2009-04-17 at 10:48 -0700, Kirk Wallace wrote: On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
When I use: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?HereIsHowToCheck I get the (-value...0...value) sequence when I move the sticks. On Apr 17, 2009, at 11:17 AM, Alex Joni wrote: On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
Kirk, Hey! That worked perfectly! Thanks! I inserted: setp axis.0.jog-vel-mode TRUE setp axis.1.jog-vel-mode TRUE setp axis.2.jog-vel-mode TRUE into the hal file right after the: setp axis.0.jog-enable TRUE setp axis.1.jog-enable TRUE setp axis.2.jog-enable TRUE commands and now when I let

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Kirk Wallace
On Fri, 2009-04-17 at 21:17 +0300, Alex Joni wrote: ... snip What you are reffering to is valid for MPGs, not for joysticks. (there counts are remembered, and if you stop spinning, the machine might still move to get to the count you intended). For joysticks you need to see what each axis

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Alex Joni
Oops, that makes more sense. So it's more like an ADC interface. I guess I need to actually install one sometime. Well, there are 2 ways of interfacing the joystick. The older one, (which I don't think is that good) is taking the output from the joystick, using a stepgen to generate

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
When I: cat /proc/bus/input/devices it returns: I: Bus=0003 Vendor=046d Product=c216 Version=0110 N: Name=Logitech Logitech Dual Action P: Phys=usb-:02:00.0-1/input0 S: Sysfs=/devices/pci:00/:00:11.0/:02:00.0/ usb1/1-1/1-1:1.0/input/input5 U: Uniq= H: Handlers=event4 js0 B:

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Alexey Starikovskiy
Alex Joni wrote: Oops, that makes more sense. So it's more like an ADC interface. I guess I need to actually install one sometime. Well, there are 2 ways of interfacing the joystick. Well, there are 3 ways... :) Third is with X driver and remapping events into AXIS.

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Lars Andersson
Probably loadusr -W hal_input -KRAL Action would work also. Any text fragment from the selected properties seems to work. -Original Message- From: Michael Jones [mailto:ma...@michaelandholly.com] Sent: den 17 april 2009 21:27 To: Enhanced Machine Controller (EMC) Subject: Re:

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
On Apr 17, 2009, at 1:11 PM, Lars Andersson wrote: Probably loadusr -W hal_input -KRAL Action this doesn't seem to work no matter what text fragment I use.. Loading by the /dev/input/js0 seems to work though.. would work also. Any text fragment from the selected properties seems to

[Emc-users] Problem when resuming from M0 command when using AXIS

2009-04-17 Thread dbabe
I have been using EMC for about 5 years and just upgraded to EMC2, using AXIS as the display program. I love AXIS, except for one thing: After putting a msg, command in the part program, and issuing an M0 command right after, I have to click on two separate things to restart the part program.

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Stephen Wille Padnos
Michael Jones wrote: On Apr 17, 2009, at 1:11 PM, Lars Andersson wrote: Probably loadusr -W hal_input -KRAL Action this doesn't seem to work no matter what text fragment I use.. Loading by the /dev/input/js0 seems to work though.. One thing I noticed in your

Re: [Emc-users] Problem when resuming from M0 command when using AXIS

2009-04-17 Thread Jeff Epler
In the upcoming emc 2.3 we've improved this. The message that is now a pop-up will instead show in the corner of the axis window, and you can hit S or click the pause/resume icon immediately. To dismiss the individual messages, you can click the X, or hit ctrl-space to dismiss them all. With

Re: [Emc-users] Problem when resuming from M0 command when using AXIS

2009-04-17 Thread Kirk Wallace
On Fri, 2009-04-17 at 16:26 -0500, Jeff Epler wrote: In the upcoming emc 2.3 we've improved this. The message that is now a pop-up will instead show in the corner of the axis window, and you can hit S or click the pause/resume icon immediately. To dismiss the individual messages, you can

Re: [Emc-users] Problem when resuming from M0 commandwhen using AXIS

2009-04-17 Thread Alex Joni
Hardware buttons for other features are a good thing too. In this case having a button for resume would be easy to do. (link it to halui.program-resume ..) Regards, Alex -- Stay on top of everything new and

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Kirk Wallace
On Sat, 2004-04-17 at 06:25 -0600, John Thornton wrote: On 17 Apr 2009 at 1:06, Michael Jones wrote: Does anyone have a good example of a HAL file for a joypad that I can build on. This should get you going. http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant

Re: [Emc-users] New user interface development question.

2009-04-17 Thread John Guenther
Thanks Jeff, I went looking for pydoc.emc and could not find it on my emc2=2.3.0 installation. Where does one find this typically? I did a find on the entire machine and did not come up with it - John Guenther 'Ye Olde Pen Maker' Sterling, Virginia On Fri, 2009-04-17 at 08:25 -0500, Jeff

Re: [Emc-users] What's coming in manufacturing

2009-04-17 Thread Jim Fleig - CNC Services
Prior to Doug offering to donate to EMC's development, I have made the same offer. Kirk correctly comments that this was not received enthusiastically. Why not? (Gentle Why not?) Cars are manufactured for commercial sale and the number of car hobbyists and tinkerers is huge! What is missing

[Emc-users] how to install kernel headers

2009-04-17 Thread ygdan1001
Dear sir: There is an error when I build emc2 realtime, please tell me how to install kernel headers package. libinch...@libincheng-desktop:~/emc2-trunk/src$ ./configure --enable-run-in-place checking installation prefix... /usr/local checking for RT dir... Using

Re: [Emc-users] Lathe Threading Issues

2009-04-17 Thread Kirk Wallace
On Fri, 2009-04-17 at 11:38 -0500, Jon Elson wrote: Kirk Wallace wrote: Whatever it is, it looks like I have it too. I ran the long version four times with #4=0.050 without any problems. Then before shutting down for the night, I ran one part at #4=0.08. At the start of the thread the

Re: [Emc-users] New user interface development question.

2009-04-17 Thread Jeff Epler
On Fri, Apr 17, 2009 at 07:50:46PM -0400, John Guenther wrote: Thanks Jeff, I went looking for pydoc.emc and could not find it on my emc2=2.3.0 installation. Where does one find this typically? I did a find on the entire machine and did not come up with it pydoc emc is a command to type in

Re: [Emc-users] how to install kernel headers

2009-04-17 Thread Jeff Epler
On Sat, Apr 18, 2009 at 09:29:47AM +0800, ygdan1001 wrote: Dear sir: There is an error when I build emc2 realtime, please tell me how to install kernel headers package. 2.1. Preparing Ubuntu to compile emc2 [...] 2.1.2. On Ubuntu with EMC2 package already installed Use

Re: [Emc-users] What's coming in manufacturing

2009-04-17 Thread Stuart Stevenson
why could you 'not go commercial'? On Fri, Apr 17, 2009 at 7:26 PM, Jim Fleig - CNC Services j...@cncservices.ws wrote: Prior to Doug offering to donate to EMC's development, I have made the same offer. Kirk correctly comments that this was not received enthusiastically. Why not? (Gentle Why

[Emc-users] Touch off for z axis is -.0695????

2009-04-17 Thread Michael Jones
Whenever I position my z axis where I want my G54 zero point the relative position reads -.0695 instead of zero? I can't find this setting anywhere in the system.. or at least anywhere I have thought to look.. Where can I set my z zero point to 0.00 Thanks, - Michael