Welcome to Our Community

Some features disabled for guests. Register Today.

G90 CODE ISSUES

Discussion in 'CNC Mills/Routers' started by Fastbass, Nov 6, 2024.

  1. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    Is there anything in the x32 coding that would cause a G90 or G91 code line to not be executed? The A axis does not obey either of the 2 codes, It continues to rotate in spite of G90 being present, posted on github 2 days ago and have recieved no response.
     
  2. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,783
    Likes Received:
    1,364
    Could you please explain what you expect to happen? G90 (absolute movement mode) and G91 (incremental movement mode) wouldn't stop an axis moving.
    G90 - move to the coordinates specified in a G0/2/3/3 command
    G91 - move the distance specified in a G0/1/2/3 command.

    Alex.
     
  3. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    when running the programmed tool path and it asks for a Y 22.24, X 4.88, Z 3.84, A180.0 all axis's but A execute properly A will rotate nonstop, $133 is set at "0"
     
  4. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    $0=10.0 ; Step pulse time, microseconds
    $1=255 ; Step idle delay, milliseconds
    $2=0 ; Step pulse invert, mask
    $3=0 ; Step direction invert, mask
    $4=0 ; Invert step enable pin, boolean
    $5=7 ; Invert limit pins, boolean/mask
    $6=1 ; Invert probe pin, boolean
    $9=1 ; PWM Spindle as bitfield where setting bit 0 enables the rest
    $10=511 ; Status report options, mask
    $11=0.010 ; Junction deviation, millimeters
    $12=0.002 ; Arc tolerance, millimeters
    $13=0 ; Report in inches, boolean
    $14=0 ; Limit pins invert, mask
    $15=0 ; Coolant pins invert, mask
    $16=0 ; Spindle pins invert, mask
    $17=0 ; Control pins pullup disable, mask
    $18=0 ; Limit pins pullup disable, mask
    $19=0 ; Probe pin pullup disable, boolean
    $20=0 ; Soft limits enable, boolean
    $21=0 ; Hard limits enable, boolean
    $22=1 ; Homing cycle enable, boolean (Grbl) / mask (GrblHAL)
    $23=0 ; Homing direction invert, mask
    $24=250.0 ; Homing locate feed rate, mm/min
    $25=1500.0 ; Homing search seek rate, mm/min
    $26=250 ; Homing switch debounce delay, milliseconds
    $27=5.000 ; Homing switch pull-off distance, millimeters
    $28=0.100 ; G73 retract distance, in mm
    $29=0.0 ; Step pulse delay (ms)
    $30=1000.000 ; Maximum spindle speed, RPM
    $31=0.000 ; Minimum spindle speed, RPM
    $32=0 ; Laser-mode enable, boolean
    $33=5000.0 ; Spindle PWM frequency
    $34=0.0 ; Spindle off Value
    $35=0.0 ; Spindle min value
    $36=100.0 ; Spindle max value
    $37=0 ; Stepper deenergize mask
    $39=1 ; Enable printable realtime command characters, boolean
    $40=0 ; Apply soft limits for jog commands, boolean
    $43=1 ; Homing passes
    $44=4 ; Homing cycle 1
    $45=3 ; Homing cycle 2
    $46=0 ; Homing cycle 3
    $47=0 ; Homing cycle 4
    $62=0 ; Sleep Enable
    $63=3 ; Feed Hold Actions
    $64=0 ; Force Init Alarm
    $65=0 ; Require homing sequence to be executed at startup
    $70=7 ; Network Services
    $73=1 ; Wifi Mode
    $74= ; Wifi network SSID
    $75= ; Wifi network PSK
    $100=199.55999 ; X-axis steps per millimeter
    $101=199.37998 ; Y-axis steps per millimeter
    $102=199.67999 ; Z-axis steps per millimeter
    $103=26.66480 ; A-axis steps per degree
    $110=2500.000 ; X-axis maximum rate, mm/min
    $111=1200.000 ; Y-axis maximum rate, mm/min
    $112=1500.000 ; Z-axis maximum rate, mm/min
    $113=2000.000 ; A-axis maximum rate, deg/min
    $120=75.000 ; X-axis acceleration, mm/sec^2
    $121=75.000 ; Y-axis acceleration, mm/sec^2
    $122=50.000 ; Z-axis acceleration, mm/sec^2
    $123=75.000 ; A-axis acceleration, deg/sec^2
    $130=735.828 ; X-axis maximum travel, millimeters
    $131=1244.000 ; Y-axis maximum travel, millimeters
    $132=135.000 ; Z-axis maximum travel, millimeters
    $133=36000.000 ; A-axis maximum travel, degrees
    $320=grblHAL ; Hostname, max: 64
    $322= ; IP Address
    $323= ; Gateway
    $324= ; Netmask
    $325=23 ; Telnet port
    $326=80 ; HTTP port
    $327=81 ; Websocket port
    $337= ; WiFi Access Point (AP) BSSID
    $341=0 ; Tool Change Mode
    $342=30.0 ; Tool Change probing distance
    $343=25.0 ; Tool Change Locate Feed rate
    $344=200.0 ; Tool Change Search Seek rate
    $345=200.0 ; Tool Change Probe Pull Off rate
    $346=1 ; Restore position after M6 as boolean
    $370=4 ; Invert I/O Port Inputs (mask)
    $376=0 ; Rotational axes as bitfield
    $384=0 ; Disable G92 Persistence
    $394=4.0 ; Spindle on delay in s, range: 0.5 - 20
    $396=30 ; WebUI timeout in minutes
    $397=0 ; WebUI auto report interval in milliseconds
    $398=100 ; Planner buffer blocks
    $481=0 ; Autoreport interval in ms
    $484=1 ; Unlock required after E-Stop as boolean
    $486=0 ; Unlock required after E-Stop as boolean
    $650=0 ; File systems options as bitfield
    $673=1.0 ; Coolant on delay in s, range: 0.5 - 20
     
  5. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,044
    Likes Received:
    4,313
    what does the DRO show? Was A zeroed before starting job?
     
  6. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    Job was zeroed, DRO is showing the actual rotation in degrees, It just wont stop at programmed value, once code line calls for A to rotate to a specific value it starts rotating and and wont stop
     
  7. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    the above settings show $133 not set at "0" due to trying to find some way to use A axis with soft limits enabled, so far no luck with that have to run with soft limits disabled to get rotation
     
  8. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,044
    Likes Received:
    4,313
    Then it might not have A-axis set as a rotary:

    Reviewing your settings:


    Set this to $376=1
     
  9. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    will try that when i get to the shop. thanks Peter
     
  10. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    set $376 to1 and $133 to 0, A axis will still only rotate neg with soft limits enabled, x32 is flashed for A axis, not sure what other settings to be looking for, the steps per degree for A is set at 26.6648
     
  11. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    once A gets to 0 on the DRO then it wont rotate either direction with soft limits enabled.
     
  12. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,454
    Likes Received:
    1,915
    how did you get to that number? 6:1 gearbox?
     
  13. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,044
    Likes Received:
    4,313
    About spot on for those chinese 110mm 4th axes, they do have 6:1 pulley arrangement : Lead Lathe's is about the same too LEAD Lathe
     
  14. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    It is a 6 to 1 gear box, I arrived at that number thru hours of rotating and checking rotation with a dial indicator to achieve as close to humanly possible 360 degrees per revolution, then ran multiple rotations to check for compounding errors, after 10 rotations error was less than .010 degrees. i tried the math method of arriving at the correct number but it always came up wrong.
     
  15. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,044
    Likes Received:
    4,313
    Still something in your soft limits config, personally I'd disable Soft Limits on a rotary axis ( $133 = 0 )
     
  16. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    LOL, thanks Peter at least I have gotten something right so far with this thing :)
     
  17. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    Is it possible to disable soft limits for A axis only? I can run with A axis with soft limits disabled but when running project when code line A180.00 comes up axis rotates nonstop, must stop job to stop axis. Its the same when running a G90 or G91, its like A axis has no idea where its at.
     
  18. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,044
    Likes Received:
    4,313
    Yes, set A-Axis max travel to 0


    Thats the $376 that should be 1 (along with correctly calibrated and zeroed)

    Are you sure its A180 (Not perhaps G53 ... A180)
     
  19. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    Its "G01 A180.0000", I have $133 set to 0 and $376 set to 1. the alarm I receive when A axis DRO is "zeroed" "Unable to jog toward A+, will hit soft limits" or "unable to jog towards A-, will hit soft limits". when i disable soft limits and rotate axis it rotates either direction, when I reenable soft limits it will only rotate A-, if I try to rotate A+ I get alarm "Unable to jog toward A+, will hit soft limits" then if I zero DRO it wont rotate either direction.
     
  20. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    is this the most recent update to Grbl for x32? ver:1.1f..20240402 or do I need VER:1.1f.20241107
     
  21. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,044
    Likes Received:
    4,313
    Disable Soft Limits for now - can revisit when its nicely setup. Might need to dig into it more on the CONTROL side, will add note to check
     
  22. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    Ok, hopefully we can find a solution for the continuous rotation during a machining job, as of right now I have to delete the A axis commands from the tool path and load job multiple times rotating manually between them.
     
  23. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    And Thanks for all your help I know this probably has been tiresome for you, Thanks again.
     
  24. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,044
    Likes Received:
    4,313
    Still a tricky one.

    Does DRO stop at 180?
     
  25. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    It does not. Side question, the X,Y,Z DRO allow me to enter a specific value and hit enter and machine goes to those values, the A DRO doesnt allow me to enter a value, the only thing I can do is zero it, is that normal or am I messed up?
     
  26. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,044
    Likes Received:
    4,313
    What does it do. Exactly.

    You are on what (Zero?) per the DRO?
    If not, Zero A
    You enter a command exactly like what? (G1 A180)
    It runs, to where? What number? 180 * 25.4? 180*10? 180*?? (looking for pattern) or literally infinity (runs all night? DRO in the millions?)

    Possibly just missing the click event handler, will add note to check for next release
     
  27. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    Per the dro. The DRO wont let me enter a command for A axis. It run literally infinity, runs until I manually stop the job, machine sets waiting for A axis to stop at G01 180.0000 or whatever the line code is... G01 A90.0000 etc
     
  28. Fastbass

    Fastbass New
    Builder

    Joined:
    Oct 2, 2024
    Messages:
    50
    Likes Received:
    0
    do i need to update grbl/hal to VER:1.1f.20241107 and if so how is that done
     
  29. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,044
    Likes Received:
    4,313
    Refer my question again please.

    Or make me a quick video. We're looking for relation between DRO and command - right now you are not providing enough info to work from


    yes, seperate issue: See


    (click the links I provide to get more perspective)

    You can still enter commands in the Serial Terminal
     
  30. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,044
    Likes Received:
    4,313
    No, Rotary works for everyone else - not yet likely to be the issue
     

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