Diving deeper into linuxcnc

More
11 Aug 2025 02:43 #333193 by arijitdutta
Diving deeper into linuxcnc was created by arijitdutta
I had no knowledge about CNCs, but over the last year I have learnt how to use Linuxcnc with a mesa board for my DIY lathe. Would like to dive deeper into knowing about HAL, Macros, O-codes, and maybe those custom Virtual panels that I see all over the internet. Now the thing is, what do i need to have prior knowledge about before diving deeper into this stuff? Python. Thanks in advance.

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

More
11 Aug 2025 12:07 #333215 by rodw
Replied by rodw on topic Diving deeper into linuxcnc
Go to the 2.94 docs and click down the HAL (Hardware Abstraction Layer) section to see how hal works
Then click on the button that says expand man pages
Take your time reading the man pages to learn what hal can do out of the box.
You only need to learn a bit of Python if you want to write or modify a GUI. Google has a very good Python course
Personally, Before tackling Python, I would learn how to write real time components using (a variant of) C and look at some examples in the linuxcnc source.
github.com/LinuxCNC/linuxcnc/tree/master/src/hal/components
copy a simple one like and2 and rewrite it into a different one like and3


 

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

Time to create page: 0.052 seconds
Powered by Kunena Forum