Re: [Emc-users] Correct use of subroutines

2013-05-15 Thread andy pugh
On 15 May 2013 00:08, Eric Keller eekel...@psu.edu wrote: or cut a hole in the family room floor to take it out. Am I the only one thinking That doesn't sound like much of a problem ? -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto

Re: [Emc-users] Correct use of subroutines

2013-05-15 Thread Mark Wendt
On Wed, May 15, 2013 at 5:41 AM, andy pugh bodge...@gmail.com wrote: On 15 May 2013 00:08, Eric Keller eekel...@psu.edu wrote: or cut a hole in the family room floor to take it out. Am I the only one thinking That doesn't sound like much of a problem ? -- atp You did say you didn't

Re: [Emc-users] Correct use of subroutines

2013-05-15 Thread andy pugh
On 15 May 2013 10:45, Mark Wendt wendt.m...@gmail.com wrote: You did say you didn't have a wife, correct? ;-) If I did have, then I would have no objection to her cutting a second hole for _her_ milling machine drawbar. -- atp If you can't fix it, you don't own it.

Re: [Emc-users] Correct use of subroutines

2013-05-15 Thread Mark Wendt
On Wed, May 15, 2013 at 5:56 AM, andy pugh bodge...@gmail.com wrote: On 15 May 2013 10:45, Mark Wendt wendt.m...@gmail.com wrote: You did say you didn't have a wife, correct? ;-) If I did have, then I would have no objection to her cutting a second hole for _her_ milling machine drawbar.

Re: [Emc-users] Correct use of subroutines

2013-05-15 Thread Ed Nisley
On 05/14/2013 07:08 PM, Eric Keller wrote: cut a hole in the family room floor My buddy Eks got a spectacular deal on a CNC mill that was too tall for his shop doorway: he had to dismount the head. Then, of course, there was no clearance for a hoist between head and ceiling, so he drilled a

Re: [Emc-users] Correct use of subroutines

2013-05-15 Thread Dave
On 5/15/2013 5:41 AM, andy pugh wrote: On 15 May 2013 00:08, Eric Kellereekel...@psu.edu wrote: or cut a hole in the family room floor to take it out. Am I the only one thinking That doesn't sound like much of a problem ? I agree... isn't that why they make carpet

Re: [Emc-users] Correct use of subroutines

2013-05-15 Thread Viesturs Lācis
2013/5/15 Dave e...@dc9.tzo.com Regarding the women... Probably best to do this when the women are gone for the weekend.. otherwise it could cause a scene! ;-) ..and You definitely get a scene, when she comes back and finds out that her opinion was not even considered... :)) -- Viesturs

Re: [Emc-users] Correct use of subroutines

2013-05-15 Thread Gene Heskett
On Wednesday 15 May 2013 10:34:02 Ed Nisley did opine: On 05/14/2013 07:08 PM, Eric Keller wrote: cut a hole in the family room floor My buddy Eks got a spectacular deal on a CNC mill that was too tall for his shop doorway: he had to dismount the head. Then, of course, there was no

Re: [Emc-users] Correct use of subroutines

2013-05-15 Thread Ed Nisley
On 05/15/2013 10:46 AM, Gene Heskett wrote: he'd have to patch it Oh, he did, and IIRC cut the carpet as a flap that laid down neatly over the plug... he's that kind of guy. But even if had been a hardwood floor, well, he *is* that kind of guy. a job fixing them newfangled TV thingies

Re: [Emc-users] Correct use of subroutines

2013-05-15 Thread Dave
On 5/15/2013 10:05 AM, Viesturs Lācis wrote: 2013/5/15 Davee...@dc9.tzo.com Regarding the women... Probably best to do this when the women are gone for the weekend.. otherwise it could cause a scene! ;-) ..and You definitely get a scene, when she comes back and finds out that

Re: [Emc-users] Correct use of subroutines

2013-05-15 Thread Gene Heskett
On Wednesday 15 May 2013 14:18:23 Ed Nisley did opine: On 05/15/2013 10:46 AM, Gene Heskett wrote: he'd have to patch it Oh, he did, and IIRC cut the carpet as a flap that laid down neatly over the plug... he's that kind of guy. But even if had been a hardwood floor, well, he *is* that

Re: [Emc-users] Correct use of subroutines

2013-05-14 Thread Steve Blackmore
On Mon, 13 May 2013 17:56:20 -0500, you wrote: A program wouldn't have to give up it's ability to understand G code to understand additional instructions. For example a canned routine for drilling doesn't mean the control no longer understands milling instructions. I never said it did.

Re: [Emc-users] Correct use of subroutines

2013-05-14 Thread Eric Keller
On Tue, May 14, 2013 at 6:57 PM, Steve Blackmore st...@pilotltd.net wrote: (Same company also bought a big new CNC milling machine that only just fit under the flat roof of the factory and then discovered there wasn't enough clearance above the machine to service it. Simple fix - they cut a

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread Rafael Skodlar
On 05/12/2013 01:48 PM, Steve Blackmore wrote: On Sun, 12 May 2013 10:08:10 -0700, you wrote: code. On 05/12/2013 02:16 AM, Steve Blackmore wrote: These days unlimited code length is the norm and subs are frowned upon commercially in my experience. The operator can't easily alter the

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread Gregg Eshelman
--- On Sun, 5/12/13, Rafael Skodlar ra...@linwin.com wrote: It can be used as one, certainly, but then so can Postscript. By that logic, we would program web sites code in assembler. But then millions use inches and feet even when they tweet ... You can also do crazy things such as

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread andy pugh
On 12 May 2013 20:21, Rafael Skodlar ra...@linwin.com wrote: I think that you might be mistaking G-code for a programming language… It is a programing language. Maybe I was a bit too flippant. G-code is as much a programming language as assembler is. In fact you can probably argue that

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread Ed Nisley
On 05/13/2013 02:01 AM, Rafael Skodlar wrote: emerging personal 3D printing. G-Code is largely irrelevant for 3D printing: it's nothing more than an intermediate machine language between the slicer and the printer. The complexity of the motions required to produce a single layer of a model

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread andy pugh
On 13 May 2013 13:25, Ed Nisley ed.08.nis...@pobox.com wrote: To a reasonable approximation, a 3D printer's software stack eats solid models and produces plastic shapes In many ways it would seem more logical to feed it STL rather than G-code, except that that doesn't let you control things

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread Erik Christiansen
On 13.05.13 12:51, andy pugh wrote: On 12 May 2013 20:21, Rafael Skodlar ra...@linwin.com wrote: I think that you might be mistaking G-code for a programming language… It is a programing language. Maybe I was a bit too flippant. You just forgot the :^) or ;-), Andy. (Though the ironic

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread Ed Nisley
On 05/13/2013 08:43 AM, andy pugh wrote: feed it STL rather than G-code Or, perhaps, an OpenSCAD model in source-code format, although you'd really want a better set of primitives that take advantage of arcs and suchlike. STL can't handle multiple colors / materials, has only triangle

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread jeremy youngs
ed nisley wrote STL can't handle multiple colors / materials, has only triangle tesselation, and really shouldn't be the basis of further development. Just like G-Code, it'll live forever. [grin] from my experiences iges files are the best standard of use and are compatable with many popular

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread Cogoman
Sent from my Kyocera Rise Gregg Eshelman g_ala...@yahoo.com wrote: --- On Sun, 5/12/13, Rafael Skodlar ra...@linwin.com wrote: It can be used as one, certainly, but then so can Postscript. By that logic, we would program web sites code in assembler. But then millions use inches and

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread Cogoman
That nifty utility sounds like an early, buggy, limited version of SED, the stream editor. I am a big fan of SED. Available for Linux, Windoze, and probably for OSX. The learning curve is steep, but the power is amazing, and as far as I know, the file of swap rules can get bigger than you

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread Steve Blackmore
On Mon, 13 May 2013 22:50:51 +1000, you wrote: Given that it is now mainly a machine-to-machine data standard, the fact that it is archaic, antiquated and poor as a programming language is largely irrelevant. True. True, and well expressed, but the LinuxCNC elves have added much needed

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread Gregg Eshelman
--- On Mon, 5/13/13, andy pugh bodge...@gmail.com wrote: clip I would argue that G-code is now mainly the output of CAM compilers. Just because it is possible to compose it by hand (And that is mainly what I do) doesn't mean that that is the way that it is currently used by most users.

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread RogerN
From: Steve Blackmore .Sent: Monday, May 13, 2013 4:48 PM To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Correct use of subroutines On Mon, 13 May 2013 22:50:51 +1000, you wrote: Given that it is now mainly a machine-to-machine data standard, the fact that it is archaic

Re: [Emc-users] Correct use of subroutines

2013-05-13 Thread Rafael Skodlar
On 05/13/2013 03:56 PM, RogerN wrote: From: Steve Blackmore .Sent: Monday, May 13, 2013 4:48 PM To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Correct use of subroutines On Mon, 13 May 2013 22:50:51 +1000, you wrote: Given that it is now mainly a machine-to-machine data

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread Steve Blackmore
On Sat, 11 May 2013 21:40:55 -0700 (PDT), you wrote:  Re: Correct use of subroutines   My old school answer is that most subs should be written in (G91) Incremental mode.   My more modern method can be either G90 or G91 depending on the application but I use variables for D, F, Z and loop to

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread Rafael Skodlar
On 05/12/2013 02:16 AM, Steve Blackmore wrote: On Sat, 11 May 2013 21:40:55 -0700 (PDT), you wrote: Re: Correct use of subroutines My old school answer is that most subs should be written in (G91) Incremental mode. My more modern method can be either G90 or G91 depending on the

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread andy pugh
On 12 May 2013 18:08, Rafael Skodlar ra...@linwin.com wrote: If the operator does not understand complex operation, that's precisely why a subroutine should be used IMO. Granted, I do not know much about G code and machining in general as my work mostly revolved around computers and

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread Rafael Skodlar
On 05/12/2013 10:34 AM, andy pugh wrote: On 12 May 2013 18:08, Rafael Skodlar ra...@linwin.com wrote: If the operator does not understand complex operation, that's precisely why a subroutine should be used IMO. Granted, I do not know much about G code and machining in general as my work

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread Steve Blackmore
On Sun, 12 May 2013 10:08:10 -0700, you wrote: code. On 05/12/2013 02:16 AM, Steve Blackmore wrote: These days unlimited code length is the norm and subs are frowned upon commercially in my experience. The operator can't easily alter the code, if required, on the fly. Some of the subs I've

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread Gene Heskett
On Sunday 12 May 2013 17:49:41 andy pugh did opine: On 12 May 2013 18:08, Rafael Skodlar ra...@linwin.com wrote: If the operator does not understand complex operation, that's precisely why a subroutine should be used IMO. Granted, I do not know much about G code and machining in general as

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread jeremy youngs
In this case the code is centrally kept and accessed via the network. There is a master copy and working copies. They would NEVER write as a subroutine as the next operator wouldn't understand it. He would however understand any change made in Gcode. Any changes are supposed to be documented on

Re: [Emc-users] Correct use of subroutines

2013-05-11 Thread andy pugh
On 10 May 2013 21:18, Viesturs Lācis viesturs.la...@gmail.com wrote: What I do not know, how to do properly, is when the subroutine has been called once and is finished, machine moves to next point to call the subroutine again. How do I move subroutine's coordinate origin to the new spot?

Re: [Emc-users] Correct use of subroutines

2013-05-11 Thread Greg Bentzinger
 Re: Correct use of subroutines   My old school answer is that most subs should be written in (G91) Incremental mode.   My more modern method can be either G90 or G91 depending on the application but I use variables for D, F, Z and loop to run Z level roughing and finishing often using several

[Emc-users] Correct use of subroutines

2013-05-10 Thread Viesturs Lācis
Hello! Today I was helping my client to prepare a g-code for their new machine I built. The particular code was manually optimized for faster performance and I thought that having a code for one part in subroutine and then creating another file, which just moves around material and calls

Re: [Emc-users] Correct use of subroutines

2013-05-10 Thread Kenneth Lerman
On 5/10/2013 4:18 PM, Viesturs Lācis wrote: Hello! Today I was helping my client to prepare a g-code for their new machine I built. The particular code was manually optimized for faster performance and I thought that having a code for one part in subroutine and then creating another file,

Re: [Emc-users] Correct use of subroutines

2013-05-10 Thread Stuart Stevenson
How many times are you calling the subroutine? g54 call g55 call g56 call ... On Fri, May 10, 2013 at 3:36 PM, Kenneth Lerman kenneth.ler...@se-ltd.comwrote: On 5/10/2013 4:18 PM, Viesturs Lācis wrote: Hello! Today I was helping my client to prepare a g-code for their new machine I

Re: [Emc-users] Correct use of subroutines

2013-05-10 Thread Pete Matos
This is something I have never understood too well either so I am gonna be listening intently LOL carry on. Pete On Fri, May 10, 2013 at 4:55 PM, Stuart Stevenson stus...@gmail.com wrote: How many times are you calling the subroutine? g54 call g55 call g56 call ... On

Re: [Emc-users] Correct use of subroutines

2013-05-10 Thread Chris Radek
On Fri, May 10, 2013 at 11:18:42PM +0300, Viesturs L??cis wrote: G0 Z15 G0 x0 y0 G10 L2 P2 X0 Y0 Z15 I did not check everything, but I think you probably meant L20, not L2, here. http://linuxcnc.org/docs/html/gcode/gcode.html#sec:G10-L2_

Re: [Emc-users] Correct use of subroutines

2013-05-10 Thread Viesturs Lācis
2013/5/11 Chris Radek ch...@timeguy.com On Fri, May 10, 2013 at 11:18:42PM +0300, Viesturs L??cis wrote: G0 Z15 G0 x0 y0 G10 L2 P2 X0 Y0 Z15 I did not check everything, but I think you probably meant L20, not L2, here. http://linuxcnc.org/docs/html/gcode/gcode.html#sec:G10-L2_

Re: [Emc-users] Correct use of subroutines

2013-05-10 Thread robert - Innovative-RC
Here is one way i have done it with a program where i machine some blocks on an indexer on a jig, to machine all 3 faces handy when you have more than work offsets stored in the control, if your programmers used to fanuc and used the G52 its pritty similar in some points i guess... (SET G54

Re: [Emc-users] Correct use of subroutines

2013-05-10 Thread Todd Zuercher
Here is how I have done array repeats in LinuxCNC. O100 sub (insert the g-code you want repeated here) G0 X0Y0 O100 endsub O102 repeat [2] (number of rows) O103 repeat [4] (number of colums) O100 call G0 X2.38Y0 (width of colums) G92 X0Y0 O103 end repeat G92.1 G0 X0Y23.5 (length of rows) G92