Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread Z. Maciej "Miki" Bajkowski
http://www.cnc.info.pl/pics/a1bd34886375.png After recompiling LinuxCNC 40 variables in the subroutine NGCGUI working properly. Specifically I wrote a lot of numbers. Normally part of about 10 positions. Thank you all. Regards Miki

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread Z. Maciej "Miki" Bajkowski
On 27.11.2012 21:47, andy pugh wrote: > On 27 November 2012 20:00, Z. Maciej "Miki" Bajkowski > wrote: > > I am assuming that you recompiled? I do not recompile LinuxCNC ... thank you Regards Miki -- Keep yourself c

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread John Thornton
That's pretty impressive even if I can't read it. I don't understand why your not using a filter program which would not have the limitations your hitting with ngcgui as you would not need to pass any parameters just plain old G code. John On 11/27/2012 11:41 AM, Z. Maciej "Miki" Bajkowski wro

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread andy pugh
On 27 November 2012 20:00, Z. Maciej "Miki" Bajkowski wrote: > I changed the # define INTERP_SUB_PARAMS 50 Changing the right line for the version you have does seem best. > > Interp_internal.hh file in two places, improved in both. > > I still have the message "Too many variables in" That is N

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread Kent A. Reed
On 11/27/2012 3:00 PM, Z. Maciej "Miki" Bajkowski wrote: > On 27.11.2012 19:17, andy pugh wrote: >> On 27 November 2012 17:41, Z. Maciej "Miki" Bajkowski >> wrote: >> >> >> If you change / src / emc / rs274ngc / interp_internal.hh line224 >> then you can have as many parameters as you like. Ther

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread Z. Maciej "Miki" Bajkowski
On 27.11.2012 19:17, andy pugh wrote: > On 27 November 2012 17:41, Z. Maciej "Miki" Bajkowski > wrote: > > > If you change / src / emc / rs274ngc / interp_internal.hh line224 > then you can have as many parameters as you like. There may be > consequences. > Dear Andy http://www.cnc.info.pl/pics

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread Kenneth Lerman
A cleaner solution would be to change ngcgui to support parameters that are implemented as global named parameters. Ken On 11/27/2012 6:31 AM, John Thornton wrote: > I feel as though your trying to write a complete program using > subroutines but have not discovered ngcgui which allows you to do

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread Kenneth Lerman
On 11/27/2012 1:17 PM, andy pugh wrote: > On 27 November 2012 17:41, Z. Maciej "Miki" Bajkowski > wrote: > >> Do you think that simply do something with 40 subroutine than one? > I think that it might be, as they fit together into a system that (I > believe) lets you program an arbitrary profile.

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread Z. Maciej "Miki" Bajkowski
On 27.11.2012 19:17, andy pugh wrote > I think that it might be, as they fit together into a system that (I > believe) lets you program an arbitrary profile. > However, I have not used that setup, so I don't know how it works. > > If you change / src / emc / rs274ngc / interp_internal.hh line224 >

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread andy pugh
On 27 November 2012 17:41, Z. Maciej "Miki" Bajkowski wrote: > Do you think that simply do something with 40 subroutine than one? I think that it might be, as they fit together into a system that (I believe) lets you program an arbitrary profile. However, I have not used that setup, so I don't k

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread John Thornton
Thanks for the screen shot I understand much better what your goal is. Can you put up a screen shot of the ngcgui page? Are you trying to program in the path with variables or using a file to load the path? I assume you have looked at how the helper subroutines work with the DB25 example. I cre

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread Z. Maciej "Miki" Bajkowski
On 27.11.2012 18:12, andy pugh wrote > http://www.linuxcnc.org/index.php/forum/40-subroutines-and-ngcgui/11414-metric-lathe-subroutines-g71-g72-etc-etc?lang=english#11414 > > Might do what you want. > (I think that allows you to define a profile with G1 G2 and G3 moves, > then puts in the required

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread andy pugh
On 27 November 2012 16:35, Z. Maciej "Miki" Bajkowski wrote: > http://www.cnc.info.pl/pics/f5566797a29d.png http://www.linuxcnc.org/index.php/forum/40-subroutines-and-ngcgui/11414-metric-lathe-subroutines-g71-g72-etc-etc?lang=english#11414 Might do what you want. (I think that allows you to def

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread Z. Maciej "Miki" Bajkowski
On 27.11.2012 17:08, John Thornton wrote: > I wish I understood what you said... can you give me an example or > something to help me understand what your trying to do? Dear John http://www.cnc.info.pl/pics/f5566797a29d.png The shape of the three sub-procedures programm, each time using the same

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread John Thornton
I wish I understood what you said... can you give me an example or something to help me understand what your trying to do? John On 11/27/2012 9:34 AM, Z. Maciej "Miki" Bajkowski wrote: > NGCGUI can not associate with each other subroutines. Therefore, in a > subroutine bind two. I would like to

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread Z. Maciej "Miki" Bajkowski
On 27.11.2012 15:33, John Thornton wrote: > I guess I have no clue what your doing... I have dozens of subs and > ngcgui concatenates them all together into one file rather nicely. For > each op I just fill in the few variables and tell ngcgui to create it > and when I'm done with all the ops I tel

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread John Thornton
I guess I have no clue what your doing... I have dozens of subs and ngcgui concatenates them all together into one file rather nicely. For each op I just fill in the few variables and tell ngcgui to create it and when I'm done with all the ops I tell ngcgui to generate the code... the total cod

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread Z. Maciej "Miki" Bajkowski
On 2012-11-27 11:32 John Thornton wrote: >I feel as though your trying to write a complete program using >subroutines but have not discovered ngcgui which allows you to do so >and >not need more that 10 variables per sub usually. Dear John Turning is done on the basis of the figure, which con

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread John Thornton
I feel as though your trying to write a complete program using subroutines but have not discovered ngcgui which allows you to do so and not need more that 10 variables per sub usually. John On 11/26/2012 12:16 PM, tuxcnc wrote: > Hi. > > Subroutine can get up to 30 parameters. > Why and what fo

Re: [Emc-developers] Why and what for is limit of parameters in subroutine ?

2012-11-27 Thread Z. Maciej "Miki" Bajkowski
Hello Sorry, my English is poor. I wrote a subroutine NGCGUI, lathe supports the G-code commands G1, G2, G3, in all possible combinations: od, in, taper-od, taper-in, concave and convex hemisphere. Subroutine an option to perform any operation on the diameter of the final derivative. This reduc