- Posts: 12
- Thank you received: 0
Sharp 90* turn in gcode becomes a large sweeping turn
- BobsGotCnc
- Topic Author
- Offline
- New Member
-
Any ideas why the sharp turn is becoming a sweeping turn?
GCode for the bottom right corner, which should produce a sharp turn.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 6803
- Thank you received: 2181
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19311
- Thank you received: 4655
BobsGotCnc wrote: Any ideas why the sharp turn is becoming a sweeping turn?
The unhelpful answer is "because that is what you have told LinuxCNC your machine is capable of"
During the configuration of LinuxCNC you set up the velocity and acceleration limits for the machine axes. If you configure with a high maximum speed but a relatively low acceleration then you are telling the machine that it can't do tight turns. (Though it might not be immediately obvious that this is what it means)
By default LinuxCNC tries to maintain the best speed it can inside the vel / acc limits whilst still touching every line segment.
(For some reason I can't get to www.linuxcnc.org from work, but I can get to forum.linuxcnc.org, so this url is hand-typed and might be wrong) www.linuxcnc.org/docs/2.7/html/user/user-concepts.html describes this in a bit more detail.
You can change this behaviour with G64, but you probably need to re-visit the axis acceleration limits too. With a currently-working-config it is probably easiest to directly edit the numbers in the INI file. Note that you probably need to edit both MAX_ACCEL and STEPGEN_MAX_ACCEL
Please Log in or Create an account to join the conversation.
- BobsGotCnc
- Topic Author
- Offline
- New Member
-
- Posts: 12
- Thank you received: 0
I have had the CNC (Joe’s 4x4 Hybrid, HobbyCNC pro Chopper controller, nema 23s) 3 month’s and this is the first time I have seen a tool path translated into a physical movement that does not actually match the tool path.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19311
- Thank you received: 4655
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
- Posts: 17533
- Thank you received: 5334
Am I understanding this correctly in saying that the CNC is moving too fast to make a tight turn?
Yes, that is the exact issue and explained in the documentation cmorley linked
Unless you tell it otherwise (with G64 PXX or G61) LinuxCNCs default blending is plain G64
which basically means move as fast as you can to match the requested feedrate and hit the
endpoints. This will mean path deviations and those deviations can be significant on low
acceleration machines. The solution is what cmorely suggested (G64 Pxx) or if you dont mind
stopping and possible overcutting of corners, G61 = exact stop mode. There is always a
compromise between keeping a constant feedrate and acceptable path deviation
Edit:
I suspect reason there is less rounding in the first corner is an oddment in the gcode at line N70
which breaks the Y side of the square into 2 segments.
Please Log in or Create an account to join the conversation.
- lumberjack_jeff
- Offline
- New Member
-
- Posts: 15
- Thank you received: 0
The only change I recently made to my configuration is to comment out the lines on backlash compensation.
I suspect my issue is related to acceleration values, but I'd like some advice. Assuming machine units of inches, what are typical acceleration values? From memory, I think I'm at max_acceleration = 12 and stepgen_maxaccel = 18. From reading the documentation, it looks like my maxaccel should be reduced or acceleration be increased.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
- Posts: 17533
- Thank you received: 5334
Are you sure you dont have another g64 command embedded in your gcode?
another possibility is some hal/ini setup error that is generating a large following error
Can you post you hal/ini files?
BTW 12 ips/s is _very_ slow acceleration for a router = .0313 G
Please Log in or Create an account to join the conversation.
- lumberjack_jeff
- Offline
- New Member
-
- Posts: 15
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
- Posts: 17533
- Thank you received: 5334
Please Log in or Create an account to join the conversation.