- Posts: 16
- Thank you received: 1
Are nested subroutines possible?
- helmholtz
- Offline
- New Member
-
Less
More
8 years 1 month ago #118180
by helmholtz
Replied by helmholtz on topic Are nested subroutines possible?
I wish I was using a version that supported M98/99 as I'm more familiar with industrial controls, which is why I had been using Mach3 on my hobby machines at home.
I'm using Tormach's Pathpilot version 2.1.3 (on a tormach mill). I haven't seen good documentation of what they are doing with their builds vs. what the rest of the linuxcnc community is doing, but it does seem that Tormach is doing it's own thing.
In general, their support is terrible which is why I'm posting here instead of asking them. MaHa's above example was very helpful and more detailed then anything I would have gotten from Tormach. They just copy and paste sections of their manual when you ask for any help, lol.
I'm using Tormach's Pathpilot version 2.1.3 (on a tormach mill). I haven't seen good documentation of what they are doing with their builds vs. what the rest of the linuxcnc community is doing, but it does seem that Tormach is doing it's own thing.
In general, their support is terrible which is why I'm posting here instead of asking them. MaHa's above example was very helpful and more detailed then anything I would have gotten from Tormach. They just copy and paste sections of their manual when you ask for any help, lol.
- Grotius
- Offline
- Platinum Member
-
Less
More
- Posts: 2419
- Thank you received: 2349
8 years 1 month ago #118191
by Grotius
Replied by Grotius on topic Are nested subroutines possible?
Hi Holzman,
linuxcnc.org/docs/html/gcode/o-code.html
Section 3 : The maximum subroutine nesting level is 10.
Don't forget to set your program prefix in your ini file, section [DISPLAY], otherwise it won't work :
PROGRAM_PREFIX = /home/holzman/.....
Good luck !!
linuxcnc.org/docs/html/gcode/o-code.html
Section 3 : The maximum subroutine nesting level is 10.
Don't forget to set your program prefix in your ini file, section [DISPLAY], otherwise it won't work :
PROGRAM_PREFIX = /home/holzman/.....
Good luck !!
- tommylight
- Offline
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
8 years 1 month ago #118207
by tommylight
I would venture a guess at it having about 10% of capabilities Linuxcnc has, and that is me being generous, very.
Back on topic,
Fanuc uses some nice features on a punch press i often used, LAA ( line at angle ), GRID ( well grid ), NIB ( nibble ), etc that are very easy to use but not easy to learn for normal people, as each of them has it's own variables and parameters.
Adding something like that to Linuxcnc would help a lot to people who have that type of machines running under Linuxcnc, but so far i know of 2 on this forum ( one is from Serbia and he does not share any info, the other did try to contact him for help but i do not know if he got any help ) and a third one on youtube.
KUKA uses some similar short cuts for programming robots like LIN ( linear move with settable speed ), PTP ( point to point move at normal speed so the tool tip will move at any given speed regardless to get to a point ) etc.
Still all of the above mentioned examples have to be programmed by hand in their respective editors.
Replied by tommylight on topic Are nested subroutines possible?
Mach3 has nothing industrial about it, or in it, it is a motion controller and very limited at best.helmholtz wrote: I wish I was using a version that supported M98/99 as I'm more familiar with industrial controls, which is why I had been using Mach3 on my hobby machines at home.
I would venture a guess at it having about 10% of capabilities Linuxcnc has, and that is me being generous, very.
Back on topic,
Fanuc uses some nice features on a punch press i often used, LAA ( line at angle ), GRID ( well grid ), NIB ( nibble ), etc that are very easy to use but not easy to learn for normal people, as each of them has it's own variables and parameters.
Adding something like that to Linuxcnc would help a lot to people who have that type of machines running under Linuxcnc, but so far i know of 2 on this forum ( one is from Serbia and he does not share any info, the other did try to contact him for help but i do not know if he got any help ) and a third one on youtube.
KUKA uses some similar short cuts for programming robots like LIN ( linear move with settable speed ), PTP ( point to point move at normal speed so the tool tip will move at any given speed regardless to get to a point ) etc.
Still all of the above mentioned examples have to be programmed by hand in their respective editors.
- eneias_eringer
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 4
8 years 4 weeks ago #118300
by eneias_eringer
Really ??? !!! and a GOTO will be implanted too ??? LOL !!!
Replied by eneias_eringer on topic Are nested subroutines possible?
andypugh wrote: Something that you didn't mention is what version of LinuxCNC you are using.
The M98 / M99 subroutine format was only added to the LinuxCNC development branch very recently (for compatibility with some other controls). Is that the version you are using?
Really ??? !!! and a GOTO will be implanted too ??? LOL !!!
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
8 years 4 weeks ago #118313
by andypugh
I am not sure what you are saying.
LinuxCNC has had subroutines and flow control statements for a very long time.
The recent development just adds M98 / M99 as an alternative format to achieve the same thing.
Replied by andypugh on topic Are nested subroutines possible?
eneias_eringer wrote:
andypugh wrote: Something that you didn't mention is what version of LinuxCNC you are using.
The M98 / M99 subroutine format was only added to the LinuxCNC development branch very recently (for compatibility with some other controls). Is that the version you are using?
Really ??? !!! and a GOTO will be implanted too ??? LOL !!!
I am not sure what you are saying.
LinuxCNC has had subroutines and flow control statements for a very long time.
The recent development just adds M98 / M99 as an alternative format to achieve the same thing.
- eneias_eringer
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 4
8 years 4 weeks ago #118410
by eneias_eringer
Replied by eneias_eringer on topic Are nested subroutines possible?
Yes i use the statements so much and it works very well but sometimes a simple goto was better.
When i need a "GOTO" i put like this:
O<GOTO>IF[0EQ1]
O<GOTO>ENDIF
When i need a "GOTO" i put like this:
O<GOTO>IF[0EQ1]
O<GOTO>ENDIF
Time to create page: 0.349 seconds