how do motion controller get G-codes

More
29 Mar 2014 13:46 - 29 Mar 2014 16:59 #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
Last edit: 29 Mar 2014 16:59 by jaguarcar79. Reason: wrong word

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

More
29 Mar 2014 16:43 #45364 by ArcEye

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

More
29 Mar 2014 17:02 - 29 Mar 2014 17:03 #45365 by jaguarcar79
thank u :)
I've read some docs and websites, but there are no topics about this issue.
anyway, thanks
Last edit: 29 Mar 2014 17:03 by jaguarcar79. Reason: wrong word

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

More
29 Mar 2014 17:26 - 29 Mar 2014 17:27 #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
Last edit: 29 Mar 2014 17:27 by ArcEye.

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

More
05 Apr 2014 11:28 #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 or Create an account to join the conversation.

Time to create page: 0.091 seconds
Powered by Kunena Forum