Welcome to Our Community

Some features disabled for guests. Register Today.

Cam GCode produces 2 identical toolpaths

Discussion in 'Other Builds' started by Richard9591, May 14, 2023.

  1. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    I have finally finished the compact CNC Plasma build and after a load of faffing around, got the axes working perfectly.
    My test profile is a Solidworks drawing of one of the stepper mount plates. Bringing in a dxf resulted in some odd inverted curves and the main hole in the centre had a gap in it (which is not on the model) so I brought in a jpg and created the toolpath in one operation.
    transferring the G code to the machine results in a correct geometric cut pattern - but it does it twice. Eh?
    There are no chamfered edges and the drawing and jpg are 'clean' ie no double edges/lines.
    What is going on? upload_2023-5-14_11-3-30.png
     
  2. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,700
    Likes Received:
    1,327
    Did you convert the lines in your design to polylines and export it as an R14 version of dxf?

    Alex.
     
  3. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
  4. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    No As it is solidworks I can't save an autocad R14 version. I saved as jpeg and used that, but the jpeg only has single ines?
     
  5. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
  6. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    Well, tat turned out the same as the dxf I exported from Solidworks ie:
    I could not find a way to convert to polyline in Q Cad.
    The original drawing is just fine
    upload_2023-5-14_13-35-3.png
    upload_2023-5-14_13-33-7.png
     
  7. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    I linked the instructions above ^

    Click on the blue link

    Bitmap tracing is completely the wrong method for CAD drawings. But even so, that image is incorrect too, for a trace to work you want a sillouette not a line drawing : Potrace

    The dark line is a "shape" it has both an inside and outside edge.

    Either way, again, more suited to tracing art. Jpgs doesn't carry dimensions, etc
    If you already have CAD just use DXF. But make sure its all Polyline and exported as DXF R14. Simplest :)

    An Inverted arc means you still have an Arc (not a polyline). Convert it to Polyline

     
  8. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    Hi Peter. Well the outside shapes and arc converted to polylines but the circles won'r - I selected a circle and went to draw/polylines./ make polyline from selection and it does not change from circle. Hmm?
     
  9. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    Post the file and I'll do it for you, with screenshots tomorrow when I am back in office :thumbsup:
     
  10. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    Here you go Peter.
    Thanks
     

    Attached Files:

  11. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    Hi Peter
    Did you manage to turn the circles into polylines?
     
  12. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    Yip, no issue.
    Opened file in QCAD, used Mouse to drag over everything to select it, went to Draw, Polyline, Polyline from Selection

    I also moved it to proper origin - it was spaced infield a little, would be easier with bottom left origin. Converted file attached, but next time, just give QCAD a go, cleaning up DXFs is simple, and a valuable skill (especially when you start using others' artwork)

    upload_2023-5-16_13-52-32.png
     

    Attached Files:

  13. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    Strange - I tried each individual circle rather than selecting the whole drawing. Hey Ho. thanks
     
  14. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    No - not working. i imported this dxf into Qcad, dragged over everything and converted to polyline and it does everything but the circles!
    What am I missing - your dxf shows all as polylines
     

    Attached Files:

  15. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    That also works for me

    [​IMG]
     
  16. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    No issues here
     

    Attached Files:

  17. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    Well this is what I get!
     

    Attached Files:

  18. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
  19. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    I am a little ahead of you. V3.22 (You) vs V3.27 (Me)

    upload_2023-5-16_16-3-30.png

    But we are both behind current, yours from 2019 (going on 4 years without an update :eek:, actually saturday's its birthday! good excuse from some grilling?), mine from 2022 (Birthday tomorrow lol sucks its a weekday, but hey - crazy we both installed the May version of some year), we should both try the latest though Version 3.28.1
     
  20. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    Also works fine in the latest, you should be fine after updating

    upload_2023-5-16_16-44-25.png
     
  21. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    Ta Daah. Fixed!
    Thanks Peter
    As an aside as i haven't tried it on the machine (machine in workshop without internet so I have to generate Gcode here and take it down) the Z axis setup is slightly wrong. I set Z+ as down and Z- as up. and force a zero 5mm in the z- direction. The carriage raises to the safe point (near the top) then when it wants to set the plasma it drops down (to what would be the plate surface) but instead of raising 1 mm for the pierce start, it drops a further 1mm ie. wrong direction. If I put a -number in the pierce will it raise instead of lower?
     
  22. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    No! Fix the machine! :) Standards exist for a reason
    Simple Invert under $3 Direction Invert in Grbl Settings is all it needs
     
    David the swarfer likes this.
  23. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    Having sorted all the other minor bugs, fixed polylines in the dxf files and wired all the endstops I have come across a weird problem that only occurred after I finished installing the panel in the box.
    The X axis was vibrating which was caused by a wire coming out of the connector block. With that fixed everything seemed normal but the offending axis only moved in the + direction. Clicking the - jog direction moves the axis, but in + direction even though the readout indicates it is going in - direction. I killed the power, pulled the plug and checked the connections and replaced and..... spot on + and_ directions working. A little after that I closed the box up and.... Only + direction again.
    I have opened the box, checked the wires and made sure there is no chance of crossover (I am using 2 twisted pair cable) . The axis moves smoothly but only in + direction so I am not sure where to look. I loaded a job and it does the same.
    Any ideas?
     
  24. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,700
    Likes Received:
    1,327
    Almost certainly a connection on one wire being pulled out as you close the box.
    There isn't much (anything?) else that would cause those symptoms apart from the two wires to one of the motor coils shorting, I couldn't see a reference to what controller you are using - either of the blackbox's would give you a red "overload" light on that motor and it probably wouldn't move at all.
    Alex.
     
  25. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    It is a blackbox. I did have a wire pulled free and the motor just hunted. The motor now runs free but only in one direction. Weird.
    i have the door open and the wire is not under any strain. As you say, if there was a short I would get an alarm and overload.
    I will play with it again this afternoon - I will check the coil resistances too.
     
  26. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,700
    Likes Received:
    1,327
    My answer was because you said you'd fixed it and then it failed again when you shut the box.
    Another thing to check is if you have a break in the wiring inside the insulation.
    Is your wiring multistrand copper - not single core?

    Alex.
     
  27. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    Multistrand. I have a connector next to the motor. I'll check that
     
  28. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
  29. Richard9591

    Builder

    Joined:
    May 6, 2023
    Messages:
    17
    Likes Received:
    1
    Ok. So today I checked the resistance across the coils - at the plug to the Black Box. Both the same 2 Ohm from memory.
    switched the machine on and went to jog - The axis started moving in - direction and within a second switched to + and now only goes + but smoothly.
    I'm puzzled. if I had damaged the output stage somehow the axis would not move at all?
    Not sure where to go from here. Richard
     
  30. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    Tugging on wiring while moving pulled on loose or broken wiring causing one of the 4 wires to loose solid contact throughout again.
     

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