G Code Generation
- diegoroman17
- Offline
- Premium Member
- Posts: 140
- Thank you received: 2
I have represented all shapes (lines, circles, ovals, beziers, splines, etc) with parametrics curves C(t) = [X(t), Y(t)] 0<t<1. I need transform this parametric curves to optimal GCode. I have intended with piecewise of curve but this generate big file GCode and my machine run very slow speed.
I have dxf2GCode and this do a optimal Gcode with line and circular arc aproximation. I need do a similar software but I dont know how.
Please Log in or Create an account to join the conversation.
The problem is that the trajectory planner only looks as far as the end of the next move.
In effect all the way through move N it blends to move N + 1 and assumes that move N + 2 is a dead stop.
This means that on very short moves the speed is much lower than it needs to be.
This is pretty much top of the list of things that will be changed in the next version. (i.e., LinuxCNC 3.0)
That might be a long wait, though.
In the meantime, you could try longer moves, and let the LinuxCNC blending smooth it out.
Please Log in or Create an account to join the conversation.
- diegoroman17
- Offline
- Premium Member
- Posts: 140
- Thank you received: 2
How can I recreate a parametric curve with large moves?
Please Log in or Create an account to join the conversation.
Now understand the because of slow moves but why it problem if LinuxCNC have look ahead?[/quote[
The point is that LinuxCNC does't look ahead very far. If the next 3 moves are all one nanometer long then LinuxCNC will only move at the speed that allows it to stop dead in 3nm.Maybe make the step/precision bigger?How can I recreate a parametric curve with large moves?
Please Log in or Create an account to join the conversation.
- diegoroman17
- Offline
- Premium Member
- Posts: 140
- Thank you received: 2
Andy could we try to make that improvement LinuxCNC now? I am very interesting in contribute with this.
Please Log in or Create an account to join the conversation.
I am not currently involved in that part of LinuxCNC, and it is a huge change. The whole nature of hoe G-code gets to motor commands needs to be done differently.Andy could we try to make that improvement LinuxCNC now?
The idea, as I understand it, is to convert the G-code into a linear list of moves, and then to propagate allowed speeds back down the chain (backwards in time).
Interesting reading here: thread.gmane.org/gmane.linux.distributio...evel/6450/focus=6499
Please Log in or Create an account to join the conversation.
- diegoroman17
- Offline
- Premium Member
- Posts: 140
- Thank you received: 2
Please Log in or Create an account to join the conversation.
linuxcnc.org/docs/html/common/User_Concepts.html
From a programmer side you would have to examine the code.
John
Please Log in or Create an account to join the conversation.
- diegoroman17
- Offline
- Premium Member
- Posts: 140
- Thank you received: 2
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.