Request for Community Feedback on g-code++ (sterp) Integration with LinuxCNC

More
1 year 2 months ago #333710 by cmorley
What do you mean "imports" ?
I would think that a more modern approach to parsing could be a good thing to get more people interested in working on the code.

Chris

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

More
1 year 2 months ago - 1 year 2 months ago #333751 by Grotius
In the source i see you how you handle expressions.

I shoukd use a lib like: mu parser to handle expressions. 
This also handles and updates gcode variables for you. 

It wont run (nested) while loops. This while loop algo you can design yourself.

in future i love to see gcode dialect parsing,
given a json config file.

Then hopely the interpreter is also able to read fanuc and kuka robot language and produce the motion outputs for it. An extended version off straight_feed xyz...
would look like straigt_feed j1 j2 ....

Mu parser example
Last edit: 1 year 2 months ago by Grotius.

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

More
8 months 1 week ago #343304 by fsabbatini
Hello Hello! Good morning to everyone!
Today I bring a thing from my treasure box. Reading this post i remember about 5 years i made my own robot (somewhere deep down, buried in this forum there are pictures and videos of it working..). So i said why not publishing the parser here!
Here it goes:
Basically i have been using tons of different robot brand:
FANUC, KUKA, YASKAWA (MOTOMAN), ABB, COMAU, CHINESE ONES (curiously lcnc based with jerk controlled tp), CHINESE ONES WITH KEBA CONTROLLER, etc.
The one i like the most is KUKA followed closely by ABB, both similar to pascal so i grab the manual and my experience in writing parsers and wrote (almost) the whole kuka KRL and made it compatible with linuxcnc interp plugin system.
it is named krlInterp

it consist in two parts:
ANTLR v4 parser, sources in c++ needs to be generated
krlInterpreter, just compile with linuxcnc source code (honestly i dont remember if some small modifications have to be made in linuxcnc src)

Links attached:
KRL ANTLR PARSER    and
KRL INTERPRETER

Any doubts, here i am!
Best regrads
​​​​​​​Franco
The following user(s) said Thank You: tommylight

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

More
8 months 1 week ago #343322 by tommylight
Thank you Franco,
Do you think it would be better to have this on a separate topic?
Either way, i have pinned this so it is easier to find, google has become utterly useless for searching anything if not very good at "google hacking".

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

Time to create page: 0.319 seconds
Powered by Kunena Forum