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

2012-12-16 Thread Z. Maciej "Miki" Bajkowski
Hello http://img832.imageshack.us/img832/6/beztytuuppu.jpg http://www.youtube.com/watch?feature=player_embedded&v=h1EPLOpD_Kg http://www.youtube.com/watch?v=TnpjvfR3x4A The picture shows a detail of what I want to bring my lathe using subroutines NGCGUI. This can be done in four tabs, the

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

2012-11-29 Thread Z. Maciej "Miki" Bajkowski
On 29.11.2012 12:28, Anders Wallin wrote: >> Turning is done in stages, you need to change tools. Technical drawings >> detail the dimensions. It is easier to piece together the final detail >> of subroutines rather than enter the coordinates of several points. >> In programming, a subroutine can u

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

2012-11-29 Thread Z. Maciej "Miki" Bajkowski
On 29.11.2012 11:38, andy pugh wrote: > On 29 November 2012 10:09, Z. Maciej "Miki" Bajkowski > wrote: > >> Are you planning to enter the import of data from a file to NGCGUI? >> I miss the import of the NGCGUI operation of multiple subroutines. I can save myself, and frequently used, but I can

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

2012-11-29 Thread Anders Wallin
> Turning is done in stages, you need to change tools. Technical drawings > detail the dimensions. It is easier to piece together the final detail > of subroutines rather than enter the coordinates of several points. > In programming, a subroutine can use 5 different tools, changing it once > in th

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

2012-11-29 Thread Z. Maciej "Miki" Bajkowski
On 29.11.2012 11:38, andy pugh wrote: > On 29 November 2012 10:09, Z. Maciej "Miki" Bajkowski > wrote: > >> Are you planning to enter the import of data from a file to NGCGUI? > You are almost creating a new lathe programming language here. It is a > little difficult to understand what is going o

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

2012-11-29 Thread andy pugh
On 29 November 2012 10:09, Z. Maciej "Miki" Bajkowski wrote: > Are you planning to enter the import of data from a file to NGCGUI? You are almost creating a new lathe programming language here. It is a little difficult to understand what is going on as I can't read Polish. I wonder if it might

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

2012-11-29 Thread Z. Maciej "Miki" Bajkowski
Hello As promised to announce that NGCGUI the possibility of a greater number of variables working properly. I set the value of / / Subroutine parameters # define INTERP_SUB_PARAMS 30 # define INTERP_SUB_ROUTINE_LEVELS 10 # define INTERP_FIRST_SUBROUTINE_PARAM 1 / / Max number of local variable

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

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

2012-11-26 Thread andy pugh
On 26 November 2012 21:53, tuxcnc wrote: > The procedure is for lathe. > Most of parameters are one digit only, for example 1 is taper, 2 is > sphere, etc. > There are many parameters of this type, and 30 is not enought. What are you trying to do? I feel that running out of parameters is probabl

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

2012-11-26 Thread tuxcnc
Thanks for your answer. The procedure is for lathe. Most of parameters are one digit only, for example 1 is taper, 2 is sphere, etc. There are many parameters of this type, and 30 is not enought. You are right, removing the limit would require more work and would have little benefit. But increase

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

2012-11-26 Thread Kenneth Lerman
When I wrote the code, it seemed like it should be more than enough. Remember, that there is also a maximum line length (is it 256 characters?). I suggest that if you need more parameters, that you instead just use global named variables. That should be functionally equivalent for almost all ca

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

2012-11-26 Thread tuxcnc
Hi. Subroutine can get up to 30 parameters. Why and what for is the limit? My friend makes an large ngcgui procedure and lacks parameters. I cant help him with no changes source code of LinuxCNC. Is it possible increase or remove the limit? Regards. --