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. --