LinuxCNC source code modification
26 Nov 2018 17:00 #121380
by yvesd
LinuxCNC source code modification was created by yvesd
Hello,
I have LinuxCNC already installed on my PC, is it possible to access and modify the source code that runs the application?
I am looking for the section where the software changes the G code to actual steps for the motors and sends them.
Thanks!
I have LinuxCNC already installed on my PC, is it possible to access and modify the source code that runs the application?
I am looking for the section where the software changes the G code to actual steps for the motors and sends them.
Thanks!
Please Log in or Create an account to join the conversation.
26 Nov 2018 17:31 #121381
by PCW
Replied by PCW on topic LinuxCNC source code modification
Most modifications of LinuxCNC behaviour are done in the configuration files (HAL and INI files) not modifying the LInuxCNC source
Have you read the hal documentation?
Have you read the hal documentation?
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
26 Nov 2018 17:38 #121383
by Todd Zuercher
Replied by Todd Zuercher on topic LinuxCNC source code modification
Yes, you can access and modify any of the source code for Linuxcnc.
github.com/LinuxCNC/linuxcnc/tree/2.7
But I'm not sure exactly what your looking for, because what you're describing is spread over several areas some of which is deeply embeded into the heart of Linuxcnc.
There is the g-code interpreter that reads the g-code, and the tool planner, kinematics, and Motion, and finally the position commends are sent to a step generator (either the software stepgen or an external hardware stepgen.)
What are you hoping to accomplish?
github.com/LinuxCNC/linuxcnc/tree/2.7
But I'm not sure exactly what your looking for, because what you're describing is spread over several areas some of which is deeply embeded into the heart of Linuxcnc.
There is the g-code interpreter that reads the g-code, and the tool planner, kinematics, and Motion, and finally the position commends are sent to a step generator (either the software stepgen or an external hardware stepgen.)
What are you hoping to accomplish?
Please Log in or Create an account to join the conversation.
26 Nov 2018 19:10 #121390
by yvesd
Replied by yvesd on topic LinuxCNC source code modification
I'm trying to get feedback from a sensor that measures the actual distance and feed the error plus the theoretical steps issued by linuxcnc to the cnc board.
Thus I'm trying to find the part of the code where the steps to move the motor are issued so I can add to them the error.
Thus I'm trying to find the part of the code where the steps to move the motor are issued so I can add to them the error.
The following user(s) said Thank You: jbunch
Please Log in or Create an account to join the conversation.
26 Nov 2018 19:14 #121391
by PCW
Replied by PCW on topic LinuxCNC source code modification
This is really something that should be done in HAL (that is in the configuration files), not by changing LinuxCNC source
Please Log in or Create an account to join the conversation.
26 Nov 2018 19:24 #121392
by yvesd
Replied by yvesd on topic LinuxCNC source code modification
Thanks for noting that.
I'll read the HAL documentation and check what can be done.
I'll read the HAL documentation and check what can be done.
Please Log in or Create an account to join the conversation.
27 Nov 2018 13:33 #121472
by andypugh
Replied by andypugh on topic LinuxCNC source code modification
Please Log in or Create an account to join the conversation.
27 Nov 2018 15:25 #121476
by Grotius
Replied by Grotius on topic LinuxCNC source code modification
I think you want a closed loop stepper with a pulse sensor instead of a encoder.
Please Log in or Create an account to join the conversation.
Time to create page: 0.134 seconds