Re: [Emc-users] Serial comms within a userspace component

2012-07-04 Thread Michael Haberler
It would help if you post the code and the invocation of the component on pastebin.com what you would want to do is: - pass the device *name* as an command line argument to the component - open the device - use the resulting *file descriptor* for examples how to pass command line arguments in

Re: [Emc-users] C Axis in Lathe

2012-07-04 Thread k...@gmail.com
Wow, that's cool.but all I wanna do is index to drill and chamfer a cross hole in a small 'hitch pin'. Simple stuff comparatively, but a lot less work in the lathe instead of a second operation in a mill w/ indexer dk Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Years

Re: [Emc-users] A axis and spindle

2012-07-04 Thread Jon Elson
andy pugh wrote: > On 4 July 2012 21:37, Ralph Stirling wrote: > > >> My thought is that it should use the C encoder all the time, >> but with a velocity mode for normal turning, threading, and >> CSS. Encoder rollover would be needed, but 64 bits should >> handle an awful lot of revolutions o

Re: [Emc-users] A axis and spindle

2012-07-04 Thread Jon Elson
Terry Christophersen wrote: > I dont know how this is done on newer lathes but Ive seen > older ones with an electric clutch on the spindle that engages > and a seperate servo motor that does the milling or positioning moves > then disenguages for normal lathe turing. > Could an encoder be put on a

Re: [Emc-users] A axis and spindle

2012-07-04 Thread Jon Elson
andy pugh wrote: > Given that, I think it has got to the point where a custom HAL module > is called for which mediates the position feedback. Yes, that sounds right. > The spindle doesn't have an f-error problem. I guess you could just > ignore f-error on A too, and short-circuit the feedback. >

Re: [Emc-users] C Axis in Lathe

2012-07-04 Thread Jack Coats
Years ago I read an article on a guy that used a small lathe to make the hundreds of 'pull stop handles' they needed for rebuilding large pipe organs. ... A great use of CNC work! A simple thing, but they needed so many that doing them by hand was problematic. ---

Re: [Emc-users] C Axis in Lathe

2012-07-04 Thread Brian May
I use it and it works good. It is much easier to generate the g code in cam, there are not a lot of lathe specific canned cycles yet. I have not done anything too complicate, just machined flats on the od. Sent from my iPod On Jul 4, 2012, at 6:49 PM, "k...@gmail.com" wrote: > Searched You

Re: [Emc-users] my issue with G38.4 again

2012-07-04 Thread John Stewart
Figured it out! I added a little G1 X+0.02 (mm) to push the probe against the materiel before doing the retract; I guess that, sometimes, the touch probe is on the verge of being either on/off and the slightest bit of vibration will change state. Adding the little "push" made the probe routine

Re: [Emc-users] C Axis in Lathe

2012-07-04 Thread Ralph Stirling
Google "c axis lathe" and you'll get plenty of examples. The convention for identifying axes on a CNC lathe is X perpendicular to spindle centerline, Z along spindle centerline, so C is spindle rotation. A-axis would be the rotation of a live tool for drilling into the side of your work (rotation

[Emc-users] C Axis in Lathe

2012-07-04 Thread k...@gmail.com
Ah! I should have read the latest posts! Guess it's referred to as A axis not C ?? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how

[Emc-users] C Axis in Lathe

2012-07-04 Thread k...@gmail.com
Searched Youtube and Google for any info or examples of the use of C axis in Lathe but found nothing. Any one using it and how well does it work? Thanks! dan k -- Live Security Virtual Conference Exclusive live event will

Re: [Emc-users] A axis and spindle

2012-07-04 Thread andy pugh
On 4 July 2012 21:37, Ralph Stirling wrote: > My thought is that it should use the C encoder all the time, > but with a velocity mode for normal turning, threading, and > CSS. Encoder rollover would be needed, but 64 bits should > handle an awful lot of revolutions of the spindle. Rollover is a

Re: [Emc-users] A axis and spindle

2012-07-04 Thread Ralph Stirling
It is really a C axis lathe being described I believe (spindle rotates about Z), and a C axis live tooled lathe is such a mainstream machine in the industrial world that it seems a shame not to have a robust, well-thought-out LinuxCNC configuration for this application. My thought is that it shoul

Re: [Emc-users] A axis and spindle

2012-07-04 Thread Terry Christophersen
I dont know how this is done on newer lathes but Ive seen older ones with an electric clutch on the spindle that engages and a seperate servo motor that does the milling or positioning moves then disenguages for normal lathe turing. Could an encoder be put on a the servo(except for the index pulse)

Re: [Emc-users] A axis and spindle

2012-07-04 Thread andy pugh
On 4 July 2012 21:00, Jon Elson wrote: > And, how to do this without causing a momentary huge following error Ah, yes. Good point. Given that, I think it has got to the point where a custom HAL module is called for which mediates the position feedback. (though another mux to short-circuit the fe

Re: [Emc-users] A axis and spindle

2012-07-04 Thread Jon Elson
andy pugh wrote: > The behaviour would then be that the axis would move in A-word control > until an M3 or M4, at which point the mux would direct the speed PID > to the PWM generator. On M5 the mux would switch to the old A-axis > position control, the oneshot would trigger, loading a "true" to th

Re: [Emc-users] Serial comms within a userspace component

2012-07-04 Thread Gene Heskett
On Wednesday 04 July 2012 14:32:06 Schooner did opine: > Hi > I have been playing with a C userspace component to pass values from > Linuxcnc to an arduino for display on a pendant LCD. > > The code works perfectly from a commandline program but when inserted > into a component, it compiles and r

[Emc-users] Serial comms within a userspace component

2012-07-04 Thread Schooner
Hi I have been playing with a C userspace component to pass values from Linuxcnc to an arduino for display on a pendant LCD. The code works perfectly from a commandline program but when inserted into a component, it compiles and runs but each write(fd, buff, sizeof(buff)) goes to stdout / stderr

Re: [Emc-users] A axis and spindle

2012-07-04 Thread andy pugh
On 4 July 2012 15:00, Kasey Matejcek wrote: > I want to be able to turn down the part then change the tool to drimal type > cutter tool and cut a pattern into the peace with one gcode file > > Is this possible? It is possible. It isn't especially easy. It is probably easier with servos than with

Re: [Emc-users] Plasma

2012-07-04 Thread Viesturs Lācis
2012/7/3 mark center : > Vibration consideration and rigidity are usually more limiting factors > in machining than HP. Yes, of course. And that is why I would like to have servos being able to get full power out of spindle, so that I can learn about the vibrations on that machine. We have been to

[Emc-users] A axis and spindle

2012-07-04 Thread Kasey Matejcek
I have a lathe setup using Jons Universal PWM controller and DC brush Amps I want to set it up so the spindle can be used as an a axis I was think of using the 4th servo port to control the spindle with one of his amps. the spindle has a 90v DC motor on it the spindle has a 500 count increment

[Emc-users] G38.4 again

2012-07-04 Thread John Stewart
Hello all; New touch probe (from cnc4pc) attached to an input on my Gecko G540. LinuxCNC 2.5.0, upgraded last weekend. I got a routine from the www.linuxcnc.org web site (topic 18421, dated 4 months ago) with "center_material.ngc" Working through it, it does Z, X, but fails on the Y axis. er

Re: [Emc-users] Rotate Workpiece Coordinate System?

2012-07-04 Thread John Thornton
Your Welcome Enjoy John On 7/4/2012 4:30 AM, Viesturs Lācis wrote: > 2012/7/3 andy pugh : >> On 2 July 2012 22:45, Florian Rist wrote: >> >>> I.E. I'd like to be able to place my work-piece anywhere on the table, >>> in any orientation and then somehow measure positions and orientation >>> and t

Re: [Emc-users] Rotate Workpiece Coordinate System?

2012-07-04 Thread Gene Heskett
On Wednesday 04 July 2012 07:37:20 Viesturs Lācis did opine: > 2012/7/3 andy pugh : > > On 2 July 2012 22:45, Florian Rist wrote: > >> I.E. I'd like to be able to place my work-piece anywhere on the > >> table, in any orientation and then somehow measure positions and > >> orientation and then be

Re: [Emc-users] Rotate Workpiece Coordinate System?

2012-07-04 Thread Viesturs Lācis
2012/7/3 andy pugh : > On 2 July 2012 22:45, Florian Rist wrote: > >> I.E. I'd like to be able to place my work-piece anywhere on the table, >> in any orientation and then somehow measure positions and orientation >> and then be able to compensate both it so that I can run a my prepared job. > > S