Missing lines in output for Laser engraver

279 views
Skip to first unread message

Andy M

unread,
Dec 7, 2021, 3:49:50 PM12/7/21
to dxf2gcode-users
I am having a similar problem as in Ignore Z axis and milling depth for laser cutting

I have a generic Chinese laser engraver (TwoTrees Totem TT-2.5) and am using LaserGRBL in Win10 to control it.

I created a simple DXF using a really old version of TurboCad (v7.1 circa 2001).  The DXF appears to import correctly into dxf2gcode.  The .ngc output file is missing 2 of 5 lines. The vertical lines above the horizontal line are missing (location circled in attached image).  I have tried other DXF files, and each time some lines get lost in the .ngc output.

I will post my .dxf, .ngc, and configuration files shortly if I can "figure out" how to do it.


dxf2gcode of Test.dxf file.jpgLaserGRBL of Test.ngc file.jpg


Andy Massey

unread,
Dec 7, 2021, 4:13:35 PM12/7/21
to dxf2gco...@googlegroups.com
This is an attempt to attach my files.
Test.dxf
Test.ngc
config.cfg
postpro_config.cfg

Andy M

unread,
Dec 7, 2021, 4:25:04 PM12/7/21
to dxf2gcode-users
"Shape 1" is one of the lines missing from the .ngc file.
It is attempted in the .ngc file as:
  • G0 X 110.000 Y  17.000
  • M3 S300
  • F15
  • G1 X 110.000 Y  17.000
I think that it should be:
  • G0 X 110.000 Y  17.000
  • M3 S300
  • F15
  • G1 X 110.000 Y  11.000


Andy M

unread,
Dec 7, 2021, 7:08:09 PM12/7/21
to dxf2gcode-users
I see now that the lines are missing only when I "Optimize Paths" as part of the export.  If I don't optimize, then all lines are present.

Christian Kohlöffel

unread,
Dec 9, 2021, 1:31:48 PM12/9/21
to dxf2gco...@googlegroups.com

Hello Andy,

 

can you tell me which version you are using. I just checked the code for the development version:

 

The export of the all shapes and layers is done here:

https://sourceforge.net/p/dxf2gcode/sourcecode/ci/develop/tree/source/dxf2gcode/postpro/postprocessor.py#l260

 

Here you find how a shape is called to be exported:

https://sourceforge.net/p/dxf2gcode/sourcecode/ci/develop/tree/source/dxf2gcode/postpro/postprocessor.py#l260

 

Here you can find the milling of a shape:

https://sourceforge.net/p/dxf2gcode/sourcecode/ci/develop/tree/source/dxf2gcode/core/shape.py#l361

 

 

à Didn’t find a difference in the code between optizmized or not ….

Really strange behaviour. Specially that such a bug someone else should have complained already long ago I guess. What I could think of is a failure in the postprocessor config, but also didn’t find anything there.

 

Tried also to create 3 different NGC Files. With different options of TSP optimizsation on or off …

 

 

Regards

Christian

--
--
You received this message because you subscribed to the Google
Groups-group "dxf2gcode-users".
To post a message, send mail to dxf2gco...@googlegroups.com
To unsubscribe, send mail to dxf2gcode-use...@googlegroups.com
See http://groups.google.de/group/dxf2gcode-users?hl=en for more options
and the dxf2gcode project page at http://code.google.com/p/dxf2gcode/
---
You received this message because you are subscribed to the Google Groups "dxf2gcode-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dxf2gcode-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dxf2gcode-users/bc5ae67f-3b70-40bf-9f03-074eba2069b9n%40googlegroups.com.

Test_with_opt.ngc
Test_with_opt_all_selected.ngc
Test_without_opt.ngc
Message has been deleted
Message has been deleted

Andy Massey

unread,
Dec 9, 2021, 5:10:23 PM12/9/21
to dxf2gco...@googlegroups.com
Hi Christian,

Thank you for your response.

I downloaded "DXF2GCODE-2019.10.25-win32.msi" from https://sourceforge.net/projects/dxf2gcode/files/ a few days ago.  I am new to dxf2gcode (and to gcode in general), but I'm trying to learn.

I have looked at the .ngc files that you posted above (run from my "test.dxf" file).  One thing that stands out to me is that you did not use my configuration files.  Since this is for a laser engraver (which does not have Z motion control), I have removed many things in the configuration files to eliminate "Z movement" gcode output.  I have also removed many configuration parameters that produce commands which my engraver doesn't understand (notably, the Startup code).  Since I am new to dxf2gcode, I could have a mistake in my configuration files.  Would you be willing to run my test.dxf with my configuration files (attached above)?

I will try to look through the Python code that you pointed me to, but I am not a good programmer.

Thank you for making your software available to the world and for supporting it here in the forum.

Andy

You received this message because you are subscribed to a topic in the Google Groups "dxf2gcode-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dxf2gcode-users/UY0KVPd0CQg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dxf2gcode-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dxf2gcode-users/000001d7ed2b%2405596400%24100c2c00%24%40googlemail.com.

Andy M

unread,
Dec 11, 2021, 1:37:51 AM12/11/21
to dxf2gcode-users
Christian,

I have verified that I get good results (no lines missing) if I use a setup similar to yours (4 passes due to 0.24 range divided by 0.06 per pass).  I think that the problem is related to the fact that I am forcing dxf2gcode to give me only 1 pass.  This is the same behavior that Antoine Moineau was complaining of in the similar post that I referenced above.  Referenced here again: Ignore Z axis and milling depth for laser cutting  (look at Antoine's post dated Oct 19, 2020).

Christian Kohlöffel

unread,
Dec 11, 2021, 11:06:03 AM12/11/21
to dxf2gco...@googlegroups.com

Hello Andi,,

 

i will try to check it tomorrow. No time today to do it. Just hold on J ….

Christian Kohlöffel

unread,
Dec 12, 2021, 7:44:45 AM12/12/21
to dxf2gco...@googlegroups.com

OK, i did it ….

 

First of all. I am using the newest version of dxf2gcode in the development repository (for those who don’t have a python repository use the newest file here: https://sourceforge.net/projects/dxf2gcode/files/ dated today). I also attached my configs which I used. Tried both optimized and not with following results, which I guess is correct:

 

(Generiert mit: DXF2GCODE, Version: Py3.9.2 PyQt5.15.4, Datum: $Date: Fri Oct 25 20:45:56 2019 +0200 $)(Erstellt aus der Datei: C:/Users/chris/Desktop/Test.dxf)(Output format description: G-CODE for Lasercutter)

(Zeit: Sun Dec 12 12:37:38 2021)

G90 (Absolute programming)

 

 

(*** LAYER: 0 ***)

S300

 

(* SHAPE Nr: 4 *)

G0 X  10.000 Y   3.000

M3 S300

F5

F15

G1 X  10.000 Y   9.000

F5

M5 S0

 

(* SHAPE Nr: 0 *)

G0 X  10.000 Y  10.000

M3 S300

F15

G1 X 110.000 Y  10.000

F5

M5 S0

 

(* SHAPE Nr: 2 *)

G0 X 110.000 Y   9.000

M3 S300

F15

G1 X 110.000 Y   3.000

F5

M5 S0

 

(* SHAPE Nr: 1 *)

G0 X 110.000 Y  11.000

M3 S300

F15

G1 X 110.000 Y  17.000

F5

M5 S0

 

(* SHAPE Nr: 3 *)

G0 X  10.000 Y  17.000

M3 S300

F15

G1 X  10.000 Y  11.000

F5

M5 S0

G0 X   0.000 Y   0.000

M5 S0

 

 

 

 

 

 

Von: Christian Kohlöffel [mailto:christian....@googlemail.com]
Gesendet: Samstag, 11. Dezember 2021 17:06
An: 'dxf2gco...@googlegroups.com' <dxf2gco...@googlegroups.com>
Betreff: AW: [dxf2gcode-users] Re: Missing lines in output for Laser engraver

 

Hello Andi,,

 

i will try to check it tomorrow. No time today to do it. Just hold on J ….

 

Regards

Christian

 

Von: dxf2gco...@googlegroups.com [mailto:dxf2gco...@googlegroups.com] Im Auftrag von Andy M


Gesendet: Samstag, 11. Dezember 2021 07:38
An: dxf2gcode-users <dxf2gco...@googlegroups.com>

postpro_config.cfg
config.cfg

Andy M

unread,
Dec 17, 2021, 8:01:51 PM12/17/21
to dxf2gcode-users
Christian,

It is now working for me.  The solution (for me) is to use the most recent version of dxf2gcode.  At first I was using "DXF2GCODE-2019.10.25-win32.msi".  I choose the most recent "non development" version because I thought that it would be best for a new user (such as me).

Thank you.
Andy
Reply all
Reply to author
Forward
0 new messages