Welcome to Our Community

Some features disabled for guests. Register Today.

OpenBuilds Control not reading Z instructions properly

Discussion in 'Control Software' started by SeanD, Sep 1, 2021.

  1. SeanD

    SeanD Well-Known
    Builder

    Joined:
    Mar 23, 2019
    Messages:
    207
    Likes Received:
    65
    I am running a job in OpenBuilds Control Software and everything has been going fine as expected up until today.

    Whilst my job is running, the first out of 3 circles cuts fine then the remaining 2 the Z doesn’t read the GCode somehow and continues to perform the X and Y commands fine. It just ignores the Z to move down.

    If I create the job again from Fusion and Post Process just the next two circles that didn’t cut, it does the first circle just fine and not the 2nd.

    It appears that after cutting one circle fine, any circles after fail to change the target Z axis. The on screen target Z height remains at my plunge distance.
     

    Attached Files:

  2. SeanD

    SeanD Well-Known
    Builder

    Joined:
    Mar 23, 2019
    Messages:
    207
    Likes Received:
    65
    This code runs the whole job, result is the job finishes and during the 2nd and 3rd circle the Z height is fixed in OpenBuilds Control Software at 5.5mm and never drops down to 0mm to cut:

    Code:
    (Made in : Autodesk CAM Post Processor)
    (G Code optimized for Grbl 1.1 BlackBox controller)
    (OpenBuilds CNC : GRBL BlackBox)
    (Post Processor : OpenbuildsGRBL.cps V1.0.19)
    (Units = mm)
    
    (Drawing name : DEREK BASE v1)
    
    (2 Operations in 1 files.)
    (File List:)
    ( DEREK BASE v1.gcode)
    
    (This is file: 1 of 1)
    
    (This file contains the following operations: )
    (1 : 2D Pocket1)
    ( Work Coordinate System : G54)
    ( Tool 1: Flat End Mill 1 Flutes, Diam = 3.175mm, Len = 22.00mm)
    ( Spindle : RPM = 15000)
    ( Machining time : 2 min 3 sec)
    (2 : 2D Contour2)
    ( Work Coordinate System : G54)
    ( Tool 1: Flat End Mill 1 Flutes, Diam = 3.175mm, Len = 22.00mm)
    ( Spindle : RPM = 15000)
    ( Machining time : 9 min 34 sec)
    
    G90 G94 G17
    G21
    
    (Operation 1 of 2 : 2D Pocket1)
    G54
    G53 G0 Z-10
    S15000 M3
    G4 P10.
    M8
    G0 X224.722 Y179.64
    Z18
    Z8
    G1 X224.722 Y179.64 Z5.5 F400
    S18000
    G3 X223.278 Y179.237 Z4.642 I-0.722 J-0.202 F100
    X224.722 Y179.64 Z3.785 I0.722 J0.202
    X223.278 Y179.237 Z2.927 I-0.722 J-0.202
    X224.722 Y179.64 Z2.07 I0.722 J0.202
    X223.278 Y179.237 Z1.212 I-0.722 J-0.202
    X224.722 Y179.64 Z0.354 I0.722 J0.202
    X224 Y180.189 Z0 I-0.722 J-0.202
    S15000
    G3 X224 Y178.363 I0 J-0.913 F400
    X224 Y180.189 I0 J0.913
    G0 X224 Y180.189 Z13
    X284.722 Y179.64
    Z8
    G1 X284.722 Y179.64 Z5.5 F400
    S18000
    G3 X283.278 Y179.237 Z4.642 I-0.722 J-0.202 F100
    X284.722 Y179.64 Z3.785 I0.722 J0.202
    X283.278 Y179.237 Z2.927 I-0.722 J-0.202
    X284.722 Y179.64 Z2.07 I0.722 J0.202
    X283.278 Y179.237 Z1.212 I-0.722 J-0.202
    X284.722 Y179.64 Z0.354 I0.722 J0.202
    X284 Y180.189 Z0 I-0.722 J-0.202
    S15000
    G3 X284 Y178.363 I0 J-0.913 F400
    X284 Y180.189 I0 J0.913
    G0 X284 Y180.189 Z13
    X259.364 Y128.554
    Z8
    G1 X259.364 Y128.554 Z5.5 F400
    S18000
    G3 X258.961 Y129.998 Z4.642 I-0.202 J0.722 F100
    X259.364 Y128.554 Z3.785 I0.202 J-0.722
    X258.961 Y129.998 Z2.927 I-0.202 J0.722
    X259.364 Y128.554 Z2.07 I0.202 J-0.722
    X258.961 Y129.998 Z1.212 I-0.202 J0.722
    X259.364 Y128.554 Z0.354 I0.202 J-0.722
    X259.913 Y129.276 Z0 I-0.202 J0.722
    S15000
    G3 X258.087 Y129.276 I-0.913 J0 F400
    X259.913 Y129.276 I0.913 J0
    G0 X259.913 Y129.276 Z13
    X373.278 Y178.912
    Z8
    G1 X373.278 Y178.912 Z5.5 F400
    S18000
    G3 X374.722 Y179.315 Z4.642 I0.722 J0.202 F100
    X373.278 Y178.912 Z3.785 I-0.722 J-0.202
    X374.722 Y179.315 Z2.927 I0.722 J0.202
    X373.278 Y178.912 Z2.07 I-0.722 J-0.202
    X374.722 Y179.315 Z1.212 I0.722 J0.202
    X373.278 Y178.912 Z0.354 I-0.722 J-0.202
    X374 Y178.363 Z0 I0.722 J0.202
    S15000
    G3 X374 Y180.189 I0 J0.913 F400
    X374 Y178.363 I0 J-0.913
    G0 X374 Y178.363 Z13
    X433.636 Y179.998
    Z8
    G1 X433.636 Y179.998 Z5.5 F400
    S18000
    G3 X434.039 Y178.554 Z4.642 I0.202 J-0.722 F100
    X433.636 Y179.998 Z3.785 I-0.202 J0.722
    X434.039 Y178.554 Z2.927 I0.202 J-0.722
    X433.636 Y179.998 Z2.07 I-0.202 J0.722
    X434.039 Y178.554 Z1.212 I0.202 J-0.722
    X433.636 Y179.998 Z0.354 I-0.202 J0.722
    X433.087 Y179.276 Z0 I0.202 J-0.722
    S15000
    G3 X434.913 Y179.276 I0.913 J0 F400
    X433.087 Y179.276 I-0.913 J0
    G0 X433.087 Y179.276 Z13
    X408.636 Y129.998
    Z8
    G1 X408.636 Y129.998 Z5.5 F400
    S18000
    G3 X409.039 Y128.554 Z4.642 I0.202 J-0.722 F100
    X408.636 Y129.998 Z3.785 I-0.202 J0.722
    X409.039 Y128.554 Z2.927 I0.202 J-0.722
    X408.636 Y129.998 Z2.07 I-0.202 J0.722
    X409.039 Y128.554 Z1.212 I0.202 J-0.722
    X408.636 Y129.998 Z0.354 I-0.202 J0.722
    X408.087 Y129.276 Z0 I0.202 J-0.722
    S15000
    G3 X409.913 Y129.276 I0.913 J0 F400
    X408.087 Y129.276 I-0.913 J0
    G0 X408.087 Y129.276 Z13
    X523.636 Y179.998
    Z8
    G1 X523.636 Y179.998 Z5.5 F400
    S18000
    G3 X524.039 Y178.554 Z4.642 I0.202 J-0.722 F100
    X524.287 Y178.676 Z4.541 I-0.202 J0.722
    X524.287 Y179.876 Z4.035 I-0.45 J0.6
    X523.388 Y178.676 Z3.177 I-0.45 J-0.6
    X524.287 Y178.676 Z2.826 I0.45 J0.6
    X524.287 Y179.876 Z2.32 I-0.45 J0.6
    X523.388 Y178.676 Z1.462 I-0.45 J-0.6
    X524.287 Y178.676 Z1.111 I0.45 J0.6
    X524.287 Y179.876 Z0.604 I-0.45 J0.6
    X523.088 Y179.276 Z0 I-0.45 J-0.6
    S15000
    G3 X524.912 Y179.276 I0.912 J0 F400
    X523.088 Y179.276 I-0.912 J0
    G0 X523.088 Y179.276 Z13
    X584.364 Y178.554
    Z8
    G1 X584.364 Y178.554 Z5.5 F400
    S18000
    G3 X583.961 Y179.998 Z4.642 I-0.202 J0.722 F100
    X583.713 Y179.876 Z4.541 I0.202 J-0.722
    X583.713 Y178.676 Z4.035 I0.45 J-0.6
    X584.612 Y179.876 Z3.177 I0.45 J0.6
    X583.713 Y179.876 Z2.826 I-0.45 J-0.6
    X583.713 Y178.676 Z2.32 I0.45 J-0.6
    X584.612 Y179.876 Z1.462 I0.45 J0.6
    X583.713 Y179.876 Z1.111 I-0.45 J-0.6
    X583.713 Y178.676 Z0.604 I0.45 J-0.6
    X584.912 Y179.276 Z0 I0.45 J0.6
    S15000
    G3 X583.088 Y179.276 I-0.912 J0 F400
    X584.912 Y179.276 I0.912 J0
    G0 X584.912 Y179.276 Z13
    X559.364 Y128.554
    Z8
    G1 X559.364 Y128.554 Z5.5 F400
    S18000
    G3 X558.961 Y129.998 Z4.642 I-0.202 J0.722 F100
    X558.713 Y129.876 Z4.541 I0.202 J-0.722
    X558.713 Y128.676 Z4.035 I0.45 J-0.6
    X559.612 Y129.876 Z3.177 I0.45 J0.6
    X558.713 Y129.876 Z2.826 I-0.45 J-0.6
    X558.713 Y128.676 Z2.32 I0.45 J-0.6
    X559.612 Y129.876 Z1.462 I0.45 J0.6
    X558.713 Y129.876 Z1.111 I-0.45 J-0.6
    X558.713 Y128.676 Z0.604 I0.45 J-0.6
    X559.912 Y129.276 Z0 I0.45 J0.6
    S15000
    G3 X558.088 Y129.276 I-0.912 J0 F400
    X559.912 Y129.276 I0.912 J0
    G0 X559.912 Y129.276 Z13
    X715.932 Y210.103
    Z8
    G1 X715.932 Y210.103 Z5.5 F400
    S18000
    G3 X716.481 Y210.825 Z5.146 I-0.202 J0.722 F100
    X714.981 Y210.825 Z4.288 I-0.75 J0
    X716.481 Y210.825 Z3.43 I0.75 J0
    X714.981 Y210.825 Z2.573 I-0.75 J0
    X716.481 Y210.825 Z1.715 I0.75 J0
    X714.981 Y210.825 Z0.858 I-0.75 J0
    X716.481 Y210.825 Z0 I0.75 J0
    X715.676 Y210.825 I-0.402 J0
    S15000
    G3 X716.484 Y210.825 I0.404 J0 F400
    X712.66 Y210.825 I-1.912 J0
    X716.484 Y210.825 I1.912 J0
    G0 X716.484 Y210.825 Z13
    X715.922 Y152.319
    Z8
    G1 X715.922 Y152.319 Z5.5 F400
    S18000
    G3 X716.471 Y153.041 Z5.146 I-0.202 J0.722 F100
    X714.971 Y153.041 Z4.288 I-0.75 J0
    X716.471 Y153.041 Z3.43 I0.75 J0
    X714.971 Y153.041 Z2.573 I-0.75 J0
    X716.471 Y153.041 Z1.715 I0.75 J0
    X714.971 Y153.041 Z0.858 I-0.75 J0
    X716.471 Y153.041 Z0 I0.75 J0
    X715.666 Y153.041 I-0.402 J0
    S15000
    G3 X716.474 Y153.041 I0.404 J0 F400
    X712.65 Y153.041 I-1.912 J0
    X716.474 Y153.041 I1.912 J0
    G0 X716.474 Y153.041 Z18
    
    X600 F5000;
    (Program stop M00 )
    M0
    (Operation 2 of 2 : 2D Contour2)
    M8
    G0 X226.77 Y110.528
    Z18
    Z8
    G1 X226.77 Y110.528 Z5.5 F100
    S18000
    G3 X256.311 Y101.905 Z0 I29.542 J46.289
    S15000
    G3 X256.311 Y211.729 I0 J54.912 F400
    X256.311 Y101.905 I0 J-54.912
    G0 X256.311 Y101.905 Z13
    X453.746 Y127.218
    Z8
    G1 X453.746 Y127.218 Z5.5 F100
    S18000
    G3 X462.224 Y156.817 I-47.435 J29.599
    S15000
    G3 X350.398 Y156.817 I-55.913 J0 F400
    X462.224 Y156.817 I55.913 J0
    G0 X462.224 Y156.817 Z13
    X509.448 Y186.388
    Z8
    G1 X509.448 Y186.388 Z5.5 F100
    S18000
    G3 X500.898 Y156.817 I46.863 J-29.571
    S15000
    G3 X611.723 Y156.817 I55.412 J0 F400
    X500.898 Y156.817 I-55.412 J0
    G0 X500.898 Y156.817 Z13
    X394.192 Y-1.42
    Z8
    G1 X394.192 Y-1.42 Z5.5 F100
    S18000
    G1 X363 Y-1.42 Z0
    S15000
    G1 X223.824 Y-1.42 F400
    G2 X222.524 Y-0.743 I0 J1.587
    G1 X194.556 Y39.201
    G2 X194.269 Y40.091 I1.3 J0.911
    G1 X193.832 Y73.716
    X164.222 Y55.475
    G2 X163.901 Y55.324 I-0.833 J1.352
    G1 X120.928 Y40.691
    G2 X119.334 Y41.032 I-0.512 J1.503
    G1 X117.139 Y43.077
    X82.888 Y74.989
    G2 X82.591 Y76.936 I1.082 J1.161
    G1 X102.938 Y112.651
    G2 X103.44 Y113.189 I1.379 J-0.786
    G1 X157.283 Y148.844
    G2 X157.512 Y148.97 I0.876 J-1.324
    G1 X166.783 Y153.107
    X166.813 Y153.12
    G3 X167.058 Y153.575 I-0.16 J0.38
    G1 X167.019 Y153.69
    G3 X166.505 Y153.886 I-0.367 J-0.189
    G1 X158.306 Y150.226
    G2 X157.27 Y149.823 I-7.428 J17.571
    G1 X157.097 Y149.768
    X94.49 Y133.48
    X55.312 Y121.377
    G2 X53.47 Y122.098 I-0.469 J1.517
    G1 X-0.93 Y215.964
    G2 X-0.352 Y218.133 I1.374 J0.796
    G1 X33.464 Y237.732
    X33.463 Y276.817
    G2 X35.051 Y278.405 I1.587 J0
    G1 X128.551 Y278.408
    G2 X129.674 Y277.943 I0 J-1.587
    G1 X168.552 Y239.066
    X207.428 Y277.945
    G2 X208.551 Y278.409 I1.123 J-1.123
    G1 X641.561 Y278.421
    G2 X643.148 Y276.833 I0 J-1.587
    G1 X643.149 Y238.421
    X643.969 Y238.421
    X643.969 Y240.833
    G2 X645.557 Y242.421 I1.588 J0
    G1 X700.576 Y242.413
    X725.556 Y242.411
    G2 X727.143 Y240.823 I0 J-1.588
    G1 X727.127 Y126.839
    G2 X726.532 Y125.6 I-1.588 J0
    G1 X701.549 Y105.584
    G2 X700.556 Y105.235 I-0.993 J1.239
    G1 X677.143 Y105.235
    X677.143 Y104.085
    X700.171 Y98.762
    X700.202 Y98.754
    X700.234 Y98.746
    X700.266 Y98.737
    X703.142 Y97.881
    G2 X703.885 Y95.316 I-0.453 J-1.522
    G1 X668.576 Y54.856
    G2 X666.404 Y54.648 I-1.196 J1.044
    G1 X641.899 Y73.763
    X639.192 Y40.599
    X670.339 Y1.151
    G2 X669.093 Y-1.42 I-1.246 J-0.984
    G1 X363 Y-1.42
    G0 Z18
    
    G53 G0 Z-10
    M5
    M9
    G0 X0 Y0
    M30
    %
     
  3. SeanD

    SeanD Well-Known
    Builder

    Joined:
    Mar 23, 2019
    Messages:
    207
    Likes Received:
    65
    This code is just the 2nd and 3rd circle operations, the result is that it cuts a circle, then one the next one moves X and Y as expected but the Z stays at 5.5mm and never tries to get to the 0mm:

    Code:
    (Made in : Autodesk CAM Post Processor)
    (G Code optimized for Grbl 1.1 BlackBox controller)
    (OpenBuilds CNC : GRBL BlackBox)
    (Post Processor : OpenbuildsGRBL.cps V1.0.19)
    (Units = mm)
    
    (Drawing name : DEREK BASE v1)
    
    (1 Operation in 1 files.)
    (File List:)
    ( FIX DEREK BASE v1.gcode)
    
    (This is file: 1 of 1)
    
    (This file contains the following operations: )
    (1 : 2D Contour2 2 )
    ( Work Coordinate System : G54)
    ( Tool 1: Flat End Mill 1 Flutes, Diam = 3.175mm, Len = 22.00mm)
    ( Spindle : RPM = 15000)
    ( Machining time : 2 min 25 sec)
    
    G90 G94 G17
    G21
    
    (Operation 1 of 1 : 2D Contour2 2 )
    G54
    G53 G0 Z-10
    S15000 M3
    G4 P10.
    M8
    G0 X358.876 Y186.416
    Z18
    Z8
    G1 X358.876 Y186.416 Z5.5 F100
    S18000
    G3 X350.398 Y156.817 Z0 I47.435 J-29.599
    S15000
    G3 X462.224 Y156.817 I55.913 J0 F400
    X350.398 Y156.817 I-55.913 J0
    G0 X350.398 Y156.817 Z13
    X585.882 Y203.68
    Z8
    G1 X585.882 Y203.68 Z5.5 F100
    S18000
    G3 X556.311 Y212.23 I-29.571 J-46.863
    S15000
    G3 X556.311 Y101.404 I0 J-55.413 F400
    X556.311 Y212.23 I0 J55.413
    G0 X556.311 Y212.23 Z18
    
    G53 G0 Z-10
    M5
    M9
    G0 X0 Y0
    M30
    %
    
     
  4. SeanD

    SeanD Well-Known
    Builder

    Joined:
    Mar 23, 2019
    Messages:
    207
    Likes Received:
    65
    It just seems to be messing up AFTER cutting the first circle in any of the GCode files. Cuts one and goes to 0mm just fine, then ANY circles after the first successful ones just stays at 5.5mm in the software and on the machine. Any help would be greatly appreciated. This has worked hundreds of times in the past just fine and with the same code on the same machine.
     
  5. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,237
    Likes Received:
    1,815
    There is no Z downward command where one is expected, so the controller is doing exactly what it is told to do, goto Z5.5 and stay there for that circle.
    However
    Code:
    (Post Processor : OpenbuildsGRBL.cps V1.0.19)
    
    that is an old version of the post, please update to v1.0.26 and regenerate the code, then test again.
    also, In Fusion, carefully check the heights for that operation. If you attach the fusion file here I will have a look at it for you.
     
    sharmstr and Peter Van Der Walt like this.
  6. SeanD

    SeanD Well-Known
    Builder

    Joined:
    Mar 23, 2019
    Messages:
    207
    Likes Received:
    65
    I should have paid more attention to the code. I can see the software is reading the gcode as expected. Might be an issue in Fusion but I will update the Post Processor and try again. Will look at the results and post back here in case it helps anyone else. Def NOT an issue with the Control Software though. Thanks for the help!
     
  7. SeanD

    SeanD Well-Known
    Builder

    Joined:
    Mar 23, 2019
    Messages:
    207
    Likes Received:
    65
    Something strange is happening. I have updated to 1.0.26 and tried the post process again.. same result. For some reason the Z command isn't in the gcode to move down for the 2nd and 3rd circles, only the first. The simulation seems just fine.
     

    Attached Files:

  8. SeanD

    SeanD Well-Known
    Builder

    Joined:
    Mar 23, 2019
    Messages:
    207
    Likes Received:
    65
    I am unsure of how to rename the title of this post, would like to change it to something more suitable. I don't like that it says it's a problem with the Control Software when it's clearly Fusion not outputting properly through the Post Processor.
     
  9. SeanD

    SeanD Well-Known
    Builder

    Joined:
    Mar 23, 2019
    Messages:
    207
    Likes Received:
    65
    The new post processor has a difference that I didn't expect. Normally the GCode has an M8 command if I have mist turned on for my tool in the library. It puts an M9 (I think it's M9) at the end to switch it off. I have my vacuum system setup on a relay for the M8 command. Should I just change mist to flood or something in the tool library? I tried turning on the option in the post processor instead but it adds an M7 and gives me an error in OpenBuilds Control Software saying there is an unrecognised command near M7 - possibly the text in brackets under that line? Not sure.
     
  10. SeanD

    SeanD Well-Known
    Builder

    Joined:
    Mar 23, 2019
    Messages:
    207
    Likes Received:
    65
    Changing from Mist to Flood on the tool AND allowing it in the Post Processor options did the trick. M8 and M9 now included.
     
    David the swarfer likes this.
  11. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,237
    Likes Received:
    1,815
    Congratulations! you found an actual bug! (-:

    A long time ago in trying to fix arc errors 2 output formatters were created, one used for linear moves, and one for arc moves.
    In a complex cutting process Z is changing often enough that changes are pretty much always noticed.
    In your super simple cuts, the Z for arcs is set to 0 for the first circle, but never changed after that because though you had 'tab's ticked they were not set correctly and no tabs were generated.
    There are also no multiple Z height passes, which would also have triggered proper output.
    Thus no Z height changes during the circle which would have reset Z's format and caused proper ramps on the next circles (-:

    I have pushed a new release with the fix for this bug so you need to upgrade to V1.0.27

    BTW you have no solid in your drawing (no body). If you 'push/pull' your sketch to create an actual body a lot of the setup and heights etc are solved for you when you do the cut operations.
    Fusion does like to have a body since it understands the body in relation to the stock and can then do all sorts of automated cut setup because it 'knows' where the thing is.
    With only a sketch it cannot help you.
     

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