Macro logic

More
02 Dec 2020 14:52 #190877 by The Feral Engineer
Are there any plans to implement goto statements in macro logic? Coming from 22 years on industrial controllers, wiring some pretty intense logic, I feel completely lost without what I feel is a necessary function.

If not, what the heck does everyone do to jump around in a sub program? I use jumps to bounce through conditionals constantly

If [#1ne4.]goto10

Fanuc style macro b would be a welcomed addition to this already great software

Please Log in or Create an account to join the conversation.

More
03 Dec 2020 06:56 #190937 by partec
Replied by partec on topic Macro logic
with 22 years experience in use of cnc programming using "Fanuc Custom Macro B" it shouldn't be too difficult for you to find a simple and clean workaround using the options available in LinuxCNC

Please Log in or Create an account to join the conversation.

More
04 Dec 2020 04:43 #191012 by The Feral Engineer
Replied by The Feral Engineer on topic Macro logic
Real helpful answer...

Please Log in or Create an account to join the conversation.

More
04 Dec 2020 06:58 #191013 by partec
Replied by partec on topic Macro logic
linuxcnc.org/docs/2.8/html/
O Codes
1. Numbering
2. Comments
3. Subroutines
3.1. Fanuc-Style Numbered Programs
4. Looping
5. Conditional
6. Repeat
7. Indirection
8. Calling Files
9. Subroutine return values
10. Errors

Please Log in or Create an account to join the conversation.

More
04 Dec 2020 17:52 #191048 by The Feral Engineer
Replied by The Feral Engineer on topic Macro logic
Still doesn't answer my original question of if there was a plan to implement goto

Please Log in or Create an account to join the conversation.

More
04 Dec 2020 20:20 #191063 by rodw
Replied by rodw on topic Macro logic

Still doesn't answer my original question of if there was a plan to implement goto


The gcode used in linuxcnc follows the RS274ngc standard. See tsapps.nist.gov/publication/get_pdf.cfm?pub_id=823374
If its not in the standard there will never be a plan to add it.

GOTO is a dirty word in any programming language. I have not used in for 41 years in any programming I've done. GCODE has adequate flow control commands to not require it either.

Please Log in or Create an account to join the conversation.

More
05 Dec 2020 00:28 #191086 by The Feral Engineer
Replied by The Feral Engineer on topic Macro logic
G code is a dirty language. I try to avoid Goto as much as possible - the 700 series Mitsubishi and fanuc 30i series controls finally added THEN to reduce the amount of goto being used, but sometimes you just need to use it. Siemens sees such a use for it they actually have 3 ways to use it - goto, gotof and gotob. Pick apart a renishaw, marposs, blum or hexagon macro - goto everywhere. I write incredibly in depth probing macros, I don't just use g code. I'm simply asking if there's a snowball throws chance in hell that Linuxcnc will start to adopt goto at some point, considering they are now using m98/m99, so someone sees the benefit of following fanuc practices

Please Log in or Create an account to join the conversation.

More
05 Dec 2020 08:33 - 05 Dec 2020 08:35 #191110 by Aciera
Replied by Aciera on topic Macro logic

I'm simply asking if there's a snowball throws chance in hell that Linuxcnc will start to adopt goto at some point

That is the kind of question that is simply impossible to answer.
Last edit: 05 Dec 2020 08:35 by Aciera. Reason: Shortened the answer.
The following user(s) said Thank You: partec

Please Log in or Create an account to join the conversation.

More
05 Dec 2020 16:37 #191133 by The Feral Engineer
Replied by The Feral Engineer on topic Macro logic
There's got to be a team of core developers running the show or else the whole project would shit the bed from too many fingers in the soup

Please Log in or Create an account to join the conversation.

More
05 Dec 2020 18:42 #191146 by Aciera
Replied by Aciera on topic Macro logic

Please Log in or Create an account to join the conversation.

Time to create page: 0.156 seconds
Powered by Kunena Forum