5 axis CNC Router/3d printer

Moderators: TomKerekes, dynomotion

Post Reply
User avatar
TomKerekes
Posts: 2540
Joined: Mon Dec 04, 2017 1:49 am

Re: 5 axis CNC Router/3d printer

Post by TomKerekes » Wed Feb 01, 2023 7:07 pm

Hi George,

I disabled Master/Slave, configured to use Axis 1 for X and still see the burst of pulses with the scope. These pulses are at 600KHz quadrature (2.5 MHz step rate) so you might just be lucky that they are too fast for the drives to be always seen which may also explain all the intermittent behavior you have on what I see as a perfectly consistent bug. Please switch to 4.35h.

Also switch to 4.35h and see if that error goes away. I'm not aware of any such error message. What is the error exactly?
Regards,

Tom Kerekes
Dynomotion, Inc.

George Butty
Posts: 104
Joined: Sun Mar 22, 2020 9:36 pm

Re: 5 axis CNC Router/3d printer

Post by George Butty » Wed Feb 01, 2023 9:18 pm

Hi Tom ,installed 4.35h and still have the same Gcode Error pop up when trying to run a Gcode. Attached Picture.

George
Attachments
20230201_160358.jpg

User avatar
TomKerekes
Posts: 2540
Joined: Mon Dec 04, 2017 1:49 am

Re: 5 axis CNC Router/3d printer

Post by TomKerekes » Thu Feb 02, 2023 1:27 am

Hi George,

That error is caused when the Axis Resolution for an axis is zero which causes a divide by zero. Sorry for the poor error message where changing that. Also avoiding the issue for axes that are not used.
Regards,

Tom Kerekes
Dynomotion, Inc.

George Butty
Posts: 104
Joined: Sun Mar 22, 2020 9:36 pm

Re: 5 axis CNC Router/3d printer

Post by George Butty » Thu Feb 02, 2023 3:06 pm

Hi Tom, got ride of the gcode error. Tried to run The attached RTCP code but came up with attached errors.
So far no motor faults running Ch1 and no Master/Slave.
George
Attachments
Trajectory Planner 1.PNG
RTCP Gcode.PNG
RTCP Gcode.PNG (6.12 KiB) Viewed 744 times
Gcode Error after Buffer error.PNG
Gcode Error after Buffer error.PNG (11.09 KiB) Viewed 744 times
Buffer Error.PNG

George Butty
Posts: 104
Joined: Sun Mar 22, 2020 9:36 pm

Re: 5 axis CNC Router/3d printer

Post by George Butty » Thu Feb 02, 2023 3:08 pm

Gcode error came after buffer error.
George

User avatar
TomKerekes
Posts: 2540
Joined: Mon Dec 04, 2017 1:49 am

Re: 5 axis CNC Router/3d printer

Post by TomKerekes » Fri Feb 03, 2023 1:42 am

Hi George,

Did you hit Halt when that occurred?
Regards,

Tom Kerekes
Dynomotion, Inc.

George Butty
Posts: 104
Joined: Sun Mar 22, 2020 9:36 pm

Re: 5 axis CNC Router/3d printer

Post by George Butty » Fri Feb 03, 2023 4:08 pm

Hi Tom, no I did not hit Halt. Just started RTCP code that I sent you and it went as far as the B45 line and then kicked out the buffer error
and after I cleared that error the Gcode error popped up.

George

User avatar
TomKerekes
Posts: 2540
Joined: Mon Dec 04, 2017 1:49 am

Re: 5 axis CNC Router/3d printer

Post by TomKerekes » Sat Feb 04, 2023 9:14 pm

Hi George,

I believe that is a bug. I was able to re-produce. Basically the Trajectory Planner was attempting to "Round" the corner on two Pure Angle moves (without any motion).

Here is a patch for Version 4.35h. Copy to the \KMotion\Release folder.

GCodeInterpreter.dll

Here are two source files that were changed in case you re-build the Libraries. Copy to the \GCodeInterpreter folder.
TrajectoryPlanner.cpp
TrajectoryPlanner.h

Please let us know if it fixes the issue or causes any problems.
Regards,

Tom Kerekes
Dynomotion, Inc.

George Butty
Posts: 104
Joined: Sun Mar 22, 2020 9:36 pm

Re: 5 axis CNC Router/3d printer

Post by George Butty » Mon Feb 06, 2023 10:38 pm

Hi Tom, just tested the new files. All the axis are moving relative to each other but it seems
the H ( tool length value) is not being read. The end of the tool is sweeping in a large radius instead of around the point of the tool. I have not set the Chuck length value yet. My value would be close to that 7.875 value you have now and it was running very close to center in the 4.34 ver. with a 4.25"
offset value which I am using in this version as well.

George

User avatar
TomKerekes
Posts: 2540
Joined: Mon Dec 04, 2017 1:49 am

Re: 5 axis CNC Router/3d printer

Post by TomKerekes » Tue Feb 07, 2023 5:12 am

Hi George,

Are you saying RTCP was basically working with Version 4.34 but not 4.35h?

Is RTCP working at all? That is, with a pure angle move are XYZ moving at all?

What GCode are you running?
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply