Welcome to Our Community

Some features disabled for guests. Register Today.

Error #20

Discussion in 'Control Software' started by John Raney, Nov 9, 2022.

  1. John Raney

    Builder

    Joined:
    Nov 11, 2020
    Messages:
    91
    Likes Received:
    17
    Hi
    I have been trying to get my 4th axis up and running for a while. Each day I seem to learn a little more but I am stumped by this Error 20 Invalid Gcode. I have been trying for two weeks but not overcoming the problem. I thought I would show in pictures what I am trying to do. The first is the Vcarve pro setup.
    upload_2022-11-9_15-28-43.png


    I am assuming that the diameter here is the finished diameter, but I may be wrong.
    Then I use the gadget below.

    upload_2022-11-9_15-30-47.png

    which produces the following gcode.

    (Raney Revision)
    G20
    G90
    G0Z1.200
    G0A0.000Y0.000
    M3S18000
    G0A0.000Y0.000Z1.200
    G1Z0.938F15.0
    G1A360.000F45.0
    G1Y0.101
    G1A0.000
    G1Y0.203
    G1A360.000
    G1Y0.304
    G1A0.000
    G1Y0.405
    ........
    G1A0.000
    G1Y0.304
    G1A360.000
    G1Y0.203
    G1A0.000
    G1Y0.101
    G1A360.000
    G1Y0.000
    G1A0.000
    G0Z1.200
    M5
    G0Z1.200
    G0A0.000Y0.000

    Note that I have taken the liberty to take some of the steps out which are redundant. The code seems to make sense to me and for me i think it should operate as expected but this is what i consonantly get every day.

    upload_2022-11-9_15-36-26.jpeg

    The final file in the list below is the post processor that I have modified which may be causing all the problems but I hope not. I did not want to show it here for fear of using up too much space.
     

    Attached Files:

  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,868
    Likes Received:
    4,283
    BlackBox uses XYZ (No A axis)
    You need to use Wrapping in Vectric to wrap the "a-axis" around X or Y

    Practical example is Giarc's Lead Lathe running a BlackBox (Grbl = 3 axes) using Wrapping in Vectric: LEAD Lathe - se the discussions tab for example workpieces and setup details
     
  3. John Raney

    Builder

    Joined:
    Nov 11, 2020
    Messages:
    91
    Likes Received:
    17
    Thanks, I will study it
    John
     
  4. John Raney

    Builder

    Joined:
    Nov 11, 2020
    Messages:
    91
    Likes Received:
    17
    Hi i have the fourth axis built. x turns chuck, y is gore and aft and z is up and down. I have been trying to get turned profile to work for me. i am using profile wrap x on y. I have included the code that is produced. I get an error that says that G0B0.0000Y0.0000S100000M3 is not supported. I removed the s and m3 command but still get the error.. your help is appreciated
     

    Attached Files:

  5. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,868
    Likes Received:
    4,283
    Its an A-axis not a B-Axis
     
  6. John Raney

    Builder

    Joined:
    Nov 11, 2020
    Messages:
    91
    Likes Received:
    17
  7. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,868
    Likes Received:
    4,283
    Oh X not A, sorry thought you'd have a newer X32 (which has A) - if its an old BlackBox 4X and you're wrapping about X, then it should be X-axis gcode. Easy to do with the Demon post from ROTARY DEMON CNC as shown in LEAD Lathe
     
  8. John Raney

    Builder

    Joined:
    Nov 11, 2020
    Messages:
    91
    Likes Received:
    17
    Hi, does anyone have the equation for Profile line $100. I have a 4th axis cnc machine. X axis drives the chuck at 0.036 degree/step. I uses a nema 17 i believe with a x32 controller. The nema 17 drives a 100:1 reduction gear box.

    thanks in advance

    john
     
  9. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,430
    Likes Received:
    1,907
    basic math, really....
    200 motor steps per rev * 100 (gearbox) * 8x (microstepping default in X32) = 160000 steps per rev on the axis
    160000 / 360 = 444.444444 steps per degree
    so set $100=444.444444 and reset the blackbox then give the command
    G0 X360
    and the chuck should turn exactly 1 revolution, if it doesn't, one of the assumptions is wrong (-:
     

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