Hello Guest it is April 17, 2024, 10:30:23 PM

Author Topic: Slow path generation when using G92 command  (Read 1358 times)

0 Members and 1 Guest are viewing this topic.

Offline claespol

*
  •  3 3
  • Allways look further than the tip of your nose
    • View Profile
Slow path generation when using G92 command
« on: November 08, 2021, 05:51:13 PM »
Hello,
I am new to this forum and I am struggling with a slow path generation when loading g-code file into mach3. This happens when G92 command is inserted to zero the A-axis.

To get you an idea of the

setup:
I made an embroidery machine with my CNC. The sewing machine is driven by the 4th axis and every stitch needs a full turn (360°)

Ex. :
(STITCH_COUNT:13724)
(EXTENTS_LEFT:-46.934)
(EXTENTS_TOP:-40.562)
(EXTENTS_RIGHT:46.934)
(EXTENTS_BOTTOM:40.562)
(EXTENTS_WIDTH:93.867)
(EXTENTS_HEIGHT:81.125)

G90 (use absolute coordinates)
G21 (coordinates will be specified in millimeters)
G0 X0.0 Y0.0

G0 X-32.894 Y2.864
 G92  A0 
  G0 A360
G0 X-32.541 Y2.202
 G92  A0 
  G0 A360
G0 X-32.189 Y1.540
 G92  A0 
  G0 A360
G0 X-32.541 Y2.202
 G92  A0 
  G0 A360
G0 X-32.894 Y2.864
 G92  A0 
  G0 A360
G0 X-32.189 Y1.540
 G92  A0 
  G0 A360
G0 X-30.270 Y3.366
 G92  A0 
  G0 A360
.......

File contains 41000 lines and this takes at least 15 min. to load. G92 command is needed to zero the A-axis for another turn to take place.
Anyone having an idea how to speed this up?

Allways look further than the tip of your nose

Paul

Offline Graham Waterworth

*
  • *
  •  2,672 2,672
  • Yorkshire Dales, England
    • View Profile
Re: Slow path generation when using G92 command
« Reply #1 on: November 09, 2021, 10:07:18 PM »
Take the G92's out

Change to a G91 for the A axis and back to G90 for the rest of the moves

e.g.

G90 (use absolute coordinates)
G21 (coordinates will be specified in millimeters)
G0 X0.0 Y0.0
G92 A0
G90 X-32.894 Y2.864
G91 A360
G90 X-32.541 Y2.202
G91 A360
G90 X-32.189 Y1.540
G91 A360

Or you could set the A axis roll over in config so it auto sets a back to zero on each rev.

But 41000 lines of code is going to take a while to load even like this.
Without engineers the world stops

Offline claespol

*
  •  3 3
  • Allways look further than the tip of your nose
    • View Profile
Re: Slow path generation when using G92 command
« Reply #2 on: November 10, 2021, 05:27:14 AM »
Thx for the reply but after a few hours of reflexion and testing i decided to change the a-axis config (Motor tuning : 200 steps per unit, General config : disabled rollover, ang rot on G0 and disabled A-Axis rotational) this results in for 1 increment for the A-Axis in a full turn of the stepper motor. This method results in a workaround the slow path generation.

Regards
   :o :D   Paul

Allways look further than the tip of your nose

Paul