how do motion controller get G-codes

More
12 years 7 months ago #45361 by jaguarcar79
Hi,
I'm new here, and a fresh new user of LinuxCNC
My English is poor. Hope everybody won't mind...
I'll try my best to let you to know my questions.

here is:
As the title, how do the motion controller get G-codes and to execute?
I know how to write a simple G-code then loading a .ngc file on Axis GUI and to run.
But for some reason,
i have to know how these G-code get in the "motion part".
I've trace some motion part codes, but i still have no idea about this issue.

Hope someone can answer me this......

Thanks a lot

Please Log in to join the conversation.

More
12 years 7 months ago #45364 by ArcEye
If all else fails, read the manual :laugh:

www.linuxcnc.org/docs/devel/html/common/user_intro.html

Please Log in to join the conversation.

More
12 years 7 months ago #45365 by jaguarcar79
thank u :)
I've read some docs and websites, but there are no topics about this issue.
anyway, thanks

Please Log in to join the conversation.

More
12 years 7 months ago #45368 by ArcEye
At a very basic level, emctask, which includes the interpreter reads the gcode and converts it into relevant commands for the emcmot (motion controller) to pass the the relevant axes and emcio for spindle, toolchange aux, coolant etc

The exact process is far more involved than that

This goes into great depth, not sure exactly how much you need to know or why

linuxcnc.org/docs/html/code/Code_Notes.html

Beyond that you need to download the source code and work through that

regards

Please Log in to join the conversation.

More
12 years 6 months ago #45575 by jaguarcar79
Thank you.

i know how LinuxCNC runs. Including emcTask , emcMotion, emcHal and their control flow graph.

You mention that,
emcTask turn G-codes into relevant commands...
means that emcMotion won't take those code directly, but need emcTask help him to do the transformation jobs?

Please Log in to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum