Welcome to Our Community

Some features disabled for guests. Register Today.

Problems with importing DXF into OBcam

Discussion in 'CAM' started by Dave 20B, Jan 14, 2021.

  1. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    Total noob here, so please bear with me.
    I recently built a workbee 1050 with black box for use with a hypertherm 45xp plasma cutter for cutting small parts for my hobby shop.
    Both the workbee and plasma cutter seem to work perfectly from an accuracy and control standpoint when I import drawings from the openbuilds sample library.
    I was planning to use Fusion 360 to generate drawings for the parts I need, and for the time being, at least, export those drawings into the ob cam to generate the Gcode to send to OB control, because I know those last two steps work perfectly.
    I have run into a problem importing the DXF file from Fusion 360. When the document shows up in the OB cam, it is always inverted, and in the negative x and y coordinates compared to where it was in Fusion. When I go to move it to the positive quadrant in cam, it gets highly distorted,rendering it permanently unusable. Following through any relative strings in the CAM forum, I have found that the solution to this recurring problem seems to be:
    A) ensure you export as a DXF r14 file .
    B) explode your splines into poly lines
    C) export your DXF from fusion 360 into something like Librecad then export it to OB cam in the correct DXF format.

    However for solutions A I don’t have a clue how to achieve this in Fusion 360. For Solution B , I don’t even know what a spline or polyline is, let alone know how to convert one to another. As a side note, I have also noticed that I have no ability to view the 3D capability in ob cam using windows pc, but I have observed 3D view when viewing using iPad. Any help on this would be greatly appreciated, before I resort to trying yet another software.( solution c)0
     
  2. Gary Caruso

    Gary Caruso OpenBuilds Volunteer
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    1,193
    Likes Received:
    532
    I find for 99% of what I do in CNC a simple 2D program is much easier than a 3D cad program.
    I learned cad on autocad and since have found Nanocad 5 (free) to be good enough and makes perfect dxf files for cam.
    Cheers
    Gary
     
  3. Giarc

    Giarc OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jan 24, 2015
    Messages:
    3,016
    Likes Received:
    1,682
    I normally use Estlcam for both controlling the CNC and for generating my CAM and I have never had an issue opening any .dxf or .svg I have created or downloaded. I use Fusion 360 for .dxf and inkscape to make .svg files. I have even combined svg files into a Fusion 360 drawings then created a dxf files from them. I load them into Estlcam and they pop up instantly.

    I just tested 5 different files that I created in Fusion360 that opened in Estlcam and each was distorted in Openbuilds CAM when I tried to move them. I then downloaded Qcam (as suggested elsewhere), opened them there, and resaved them as R14. I tried to open them in CAM again and they had the exact same distortion. Here is one of them(see attached). It is the Fusion360 version. I have never been given an option in Fusion on what type of .dxf to save a file as. Also, I noticed that this file opened "mirrored" upside down from the Fusion 360 view in OpenBuilds CAM, Qcad, and Estlcam. This is the only file that opened that way in all three. Weird.

    My apologies for probably adding to the confusion.

    upload_2021-1-14_22-24-13.png
     

    Attached Files:

    Gary Caruso likes this.
  4. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    I agree that Fusion 360 seems way overkill for the simple drawings I need to produce, so I’ll probably go that route with 2d software. Just a bit frustrating to have learned how to navigate, create sketches, bodies and projections, and then be stymied by not being able to create the right version of DXF to fit OB cam .
     
  5. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,462
    Likes Received:
    1,915
  6. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    I’d really like to hear from someone that produces DXF’s for plasma in Fusion360 and then successfully imports those DXF’s into OB cam without problems.
    This doesn’t seem like it should be a unique workflow, given that all this software is free and well known!
     
  7. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    Again, total noob here, I did follow the steps and successfully loaded the ob post processor into fusion, but I really got bogged down when I discovered I would have to edit the post processor in order to accommodate the floating head and touch off sequence in my plasma cutter. I don’t know how to do that, so I thought I’d just go the easy way and use the OB cam which creates the Gcode and runs my plasma cutter perfectly( if its got a good DXF to start with).
     
  8. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Because fusion is more powerful that OpenBuilds CAM, people who use Fusion, have very little interest in Openbuilds CAM. So, no, quite unique what you want to do. If you know Fusion, use its powerful CAM too.
    OpenBuilds CAM is aimed at beginners.


    If you do insist going the other way: if Fusion can't create DXF R14 Polylines, then add an intermediate step: Fusion DXF > Other CAD like QCad > explode arcs and splines to Polylines > Export as DXF R14 Polylines
     
  9. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,462
    Likes Received:
    1,915
    if you tell me what options you are selecting in OBcam for your plasma cuts I can make the Fusion post do the same Gcode output, this will benefit many people.
     
    sharmstr likes this.
  10. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    Ok, great. But please be aware... You asking me how I’d like the Fusion post to work is like me asking my dog how he wants his dinner bone prepared.

    Here goes:
    The build is just a Workbee 1050 ( the smallest one) with black box which was purchased just a couple of months ago so I’m assuming the firmware is right up to date. I have limit switches installed on xo yo and z120. I also have another limit switch installed on the z axis for probing to the top of the work. For tool initialization I select “ turn plasma on and off (M3/M5).
    I use a home built plasma torch floating head carrier that is spring loaded such that when the g38.2 probe z zero is performed, the axis slowly dives down until the tip of the torch contacts the work surface and starts to compress the spring moving the carrier up on the z cbeam. When it has compressed the spring and moved up exactly 5mm, the probe z limit switch is activated. My understanding is that at this point the z zero is marked because that is what happens for someone using the z probe.
    In my case, because the true work surface is 5mm above this newly marked zero, I pad all my height inputs to OB cam (Cut height, pierce height and safe height) by the 5mm switch offset. I don’t know if this is the best way to do it, but seems to work great for me. Off course, I need to repeat this process at every new pierce cycle. I also need a way to input a G4 pierce delay of 0.5 s ( but should be configurable by material thickness ,just like the heights) at the beginning of every cut as well.
    Having messed about a little in in Fusion cam, I got really confused in setting up the correct heights. I think for plasma cutting, this should be much simpler than the general case, but my floating head arrangement seriously kerfubbles this in my ordinary head.

    thanks again for your help in this!
     
    Peter Van Der Walt likes this.
  11. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    See Openbuilds CAM: Initial Height Sensing setup help needed
    Basically just a user specifiable macro for touching-off in between vectors (different head styles require different moves), and then a "pierce" procedure ( OpenBuilds/OpenBuilds-CAM )
     
    David the swarfer likes this.
  12. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,462
    Likes Received:
    1,915
    please read my question again, I asked what you are actually selecting, so a screen shot of your selections would be fine, plus a screen shot of your height probe macro, plus example output of working Gcode from OBCam. In other words, what are you doing, rather than, what do you want Fusion to do.
     
  13. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,462
    Likes Received:
    1,915
    Hmmm, never mind, for now.... Fusion does not have a pierce height entry field. We would have to have that in the post options which then has to interact with all the other height settings, somehow. more thinking required
     
    Peter Van Der Walt likes this.
  14. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    Sorry if sounded a bit flippant. The OBcam processes a DXF perfectly for my use. The only thing i have to do to account for the z probe switch offset is fudge all three heights by adding the 5mm. I use Peter's touch off sequence, etc exactly as written.

    The existing Fusion 360 post for Blackbox will produce a GCODE for me, but the heights are all screwed up. I dont really understand what the three different configurable heights in fusion cam are supposed to be representing, and when I throw my z axis probe offset in there, it really makes it worse.

    what i need the gcode to do is move to the beginning of the first cut, probe z to sense the position of the work top, mark that as z zero ,move to a peirce height (which is 250% the cut height above the work top) , then start M3 the plasma, then pause for 0.5 seconds ( to peirce) , then move to nomal cut height, then follow the cut line. At the end of each cut, it should m5 the plasma arc, move to a safe height , rapid to the next cut location, and then repeat the process for the next cut.
     

    Attached Files:

    David the swarfer likes this.
  15. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    I just decided to try out qcad for generating my part drawings and creating DXF files. I was happy to see that qcad gives you a great variety of DXF file types to save in, including dxf R14 format.
    I was really disappointed however, when I loaded that dxfr14 file into OB cam and I STILL get the same issues as the DXF from Fusion....just like above, the part shows up inverted, in the negative x and negative y quadrant, and when I try to move it into the correct location it becomes permanently distorted.
     
  16. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Post the file, so we can check whats wrong
     
  17. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    Ran it again, and this time it came into the correct position, and it was moveable, but all the arcs are partially missing.
    I tried to explode arcs to polylines?..., but it wasn't really easy to find that in qcam, and I'm not sure it worked, or if it did any good.
     

    Attached Files:

  18. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    So I opened the DXF in QCAD

    Clicked one of the missing arcs, and its still an "arc" (not a polyline):

    upload_2021-1-21_14-54-8.png


    So, I selected everything, went to Draw > Polyline > Polyline from Selection

    upload_2021-1-21_15-3-1.png

    - then I fixed the 2mm Y offset by going to Modify > Move and Rotate

    - exported to DXF R14 again (attached)

    - it works fine in CAM now:

    upload_2021-1-21_15-4-46.png

    as the source tree shows, everything is now polylines too:

    upload_2021-1-21_15-5-49.png
     

    Attached Files:

  19. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
     
  20. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    Thanks Peter!.. I was trying to use "modify" rather than "draw" to get those arcs converted to polylines, and I guess it only worked in a few places.
    I have to be honest....I like using the Fusion 360 CAD better than QCAD as it just feels more structured, and so I would still like to use the Fusion CAM like you suggested earlier. I have been able to use the Fusion360/openbuilds post processor to get the CAM to make GCODE that will work on black box, but of course there is no provisions for the floating head and touch off. Do you know if there is a good tutorial somewhere about how to edit post processors to accomodate special requirements like that? Or is there a way to use the macro in OBcontrol so that i can easily add it every time to every plasma job I do?
     
  21. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,462
    Likes Received:
    1,915
    I am working on the postprocessor, hang in there...
     
  22. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,462
    Likes Received:
    1,915
    Peter Van Der Walt likes this.
  23. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    Hi David
    Thanks so much for this.
    Unfortunately i had to leave my machine for a few weeks so I wont be able to test this until end of February.
    I was however, able, to get the GCODE to load properly in OB control and the simulation looks great.!
     
    David the swarfer likes this.
  24. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    I finally got back to my workbee this week and had a chance to test the new Fusion 360 post processor for plasma cutting.
    It loaded easily into OB control and looked fine in simulation there.
    First few times I ran it, it failed at the very first move, and I eventually traced the problem back to the G53 command that moves the head to a safe height before doing the first touch off. It seems like my workbee wasn't able to get the head to the clearance height without triggering the probe limit switch when it was in the G53(machine coordinates). I think this is because the way I'm set up, my machine z zero position is actually about 40mm below the piece of metal I am cutting. I dont know of a way of resetting the zero and span on the machine coordinate system,. I think this would be the right way to correct this problem, but since i didnt know how, i just edited the Gcode file to eliminate the G53 code so that the the safe position goes to z15 in G54 mode (work coordinates) and the gcode runs perfectly! Many thanks to David the Swarfer for getting this new version done!! postCapture.PNG
     
    David the swarfer likes this.
  25. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,462
    Likes Received:
    1,915
    Your Z zero is setup in a very dangerous way but it is easy to fix, just home to the positive end, UP away from the work (the industry safety standard). You do have a switch there? if not move the one you do have, or rewire, whatever is needed.

    If you don't have a home switch or are not autohoming despite having limit switches then the fix is just as easy.
    Put the Z as high up as it will go and reset the Blackbox. This sets home to 'here where I am'.
    A macro button with
    G21
    G53 G0 Z0
    used before you turn off the machine will park it ready for having Z home correct when it turns on.
     
  26. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    Hi David,
    I do have a z homing switch set up near the extreme postive z position. I also have a pseudo z zero switch mounted in the floating head assembly but it really can only be used to determine the top of the work'
    I guess I have always assumed that the machine zero was calculated by using the z homing position switch as the top of the range (120 mm ) as specified in the OB GRBL setup default for the z travel on a workbee 1050. Perhaps I should modify this value to be 60mm to more closely approximate my machine with the 2" plasma support base in place.
     
  27. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Wire that to a Probe input
     
    David the swarfer likes this.
  28. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    i think Im missing something here... My (pseudo) z zero switch IS wired to the the probe input...that is how I'm doing the touch off with the floating head. My problem here is I dont know where my G53 machine coordinates offets are, and I dont know how to reset them or display them on OB control. David the Swarfer said that that I could reset my Machine Coordinate home position (X0,Y0,Zmax) by manually jogging the machine to the machine Home and then resetting the black box. ( I assume with the little black button on top) That makes sense, but how does OB Control now set the upper limits of the Machine coordinates X,Y and the ZERO location for Z? I've *** u me'd that it does this by referencing the default distance ranges that are input to GRBL settings in OBcontrol......DO i have to physically measure these, and then go in to GRBL settings and edit them? ( doesn't seem like that would be very accurate).

    If this is the case, it seems like I missed this setting of Machine coordinates step when I first set up my workbee.
     
  29. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Hover over the Work Coordinates in the DRO


    ONLY by Homing. Machine coordinates are set in stone, and ONLY set by Homing. Everything else is Offsets in Work Coordinate systems (which you can set with SETZERO and G10 L20 commands)
    He did also advise you to rather HOME to the Top as it should be. Faking the home is for the rare user who impossibly cannot fix the homing situation instead. Following standards is just better

    As per
    (;

    CONTROL does not, Grbl does: Spend a couple hours and read the COMPLETE Grbl Wiki - even pages you think may not apply contain info.
    Distance set from homing is set by "max travel" gnea/grbl as explained in the 3rd paragraph of gnea/grbl and also discussed in gnea/grbl - furthermore gnea/grbl also touches on it, and explains the interaction of the Coordinate systems

    Yes, however accuracy is not important. You ZERO the Stock out using probing or jogging. For every new piece of stock and new job you load.
    You are just defining a work envelope, just short of crashing
     
    David the swarfer likes this.
  30. Dave 20B

    Dave 20B New
    Builder

    Joined:
    Nov 24, 2020
    Messages:
    18
    Likes Received:
    5
    I still dont understand why the post processor produces the line "G53 G0 Z15"
    When I home my machine it goes to the highest z position and the lowest x and y positions...this is the bottom left corner of my table but with the z in highest position. in this position all three switches are contacted.
    GRBL marks this as x = -280 y=-700 and z =0. This means that machine xyz zero is actually in the extreme top right position of the table with z fully raised. This also means that every possible and achievable position is negative using the machine coordinate system. Therefore when the G53 G0 Z15 command is given, the machine tries to get the z position 15mm above the top of its travel, and it goes into alarm state as it hits the soft and hard alarm before getting there.
    i think the G53 z15 command is just to ensure the head doesnt bang into something when its current location is not known, but i think it should be a G53 z-15 command instead no?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice