Welcome to Our Community

Some features disabled for guests. Register Today.

GRBL 1.1 homming

Discussion in 'Control Software' started by Ron Smith, Dec 27, 2019.

  1. Ron Smith

    Ron Smith New
    Builder

    Joined:
    Dec 27, 2019
    Messages:
    10
    Likes Received:
    1
    Hi all,

    I'm relatively new at this so I don't know what I don't know. I hope someone will remember when they first started and be patient with me. Here goes.

    Rather than start out with a $2000 machine to learn on, I went with cheep sainsmart 3018 pro. It's been fun, learning lot's. I have added three limit switches and they work as limit switches. I have tried to use homing, but all I get is Z going to the limit switch and stopping/going into alarm state. I don't Know the type of card I have, some knock off Chinese I would guess. I'll add a photo maybe it will help. After it alarms I get this fail message. Thank for looking and responding.

    Home fail
    $H
    Serial port error 9: Access is denied.
    Serial port error 2: Access is denied.
    Serial port error 1: No such file or directory

    $$ < $0=10 (step pulse, usec)
    $1=25 (step idle delay, msec)
    $2=0 (step port invert mask:00000000)
    $3=0 (dir port invert mask:00000000)
    $4=0 (step enable invert, bool)
    $5=0 (limit pins invert, bool)
    $6=0 (probe pin invert, bool)
    $10=3 (status report mask:00000011)
    $11=0.010 (junction deviation, mm)
    $12=0.002 (arc tolerance, mm)
    $13=0 (report inches, bool)
    $20=0 (soft limits, bool)
    $21=1 (hard limits, bool)
    $22=1 (homing cycle, bool)
    $23=1 (homing dir invert mask:00000001)
    $24=25.000 (homing feed, mm/min)
    $25=500.000 (homing seek, mm/min)
    $26=250 (homing debounce, msec)
    $27=3.000 (homing pull-off, mm)
    $100=400.000 (x, step/mm)
    $101=400.000 (y, step/mm)
    $102=400.000 (z, step/mm)
    $110=5000.000 (x max rate, mm/min)
    $111=5000.000 (y max rate, mm/min)
    $112=1500.000 (z max rate, mm/min)
    $120=10.000 (x accel, mm/sec^2)
    $121=10.000 (y accel, mm/sec^2)
    $122=10.000 (z accel, mm/sec^2)
    $130=200.000 (x max travel, mm)
    $131=200.000 (y max travel, mm)
    $132=200.000 (z max travel, mm)
     

    Attached Files:

  2. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,769
    Likes Received:
    1,357
    Try increasing $27 (pull off distance) to (say) 10 - you can always reduce it again later if it solves the problem. Don't forget to reset afterwards.
    Alex.
     
  3. Ron Smith

    Ron Smith New
    Builder

    Joined:
    Dec 27, 2019
    Messages:
    10
    Likes Received:
    1
    Thank Alex
    I increased $27 to 10 Confirmed it with $$. Sent home command, Z axis moves up to limit switch and stops/goes into alarm.
    then I get this message

    $H
    Serial port error 2: Access is denied.
    Serial port error 2: Access is denied.
    Serial port error 1: No such file or directory

    $$ < $0=10 (step pulse, usec)
    $1=25 (step idle delay, msec)
    $2=0 (step port invert mask:00000000)
    $3=0 (dir port invert mask:00000000)
    $4=0 (step enable invert, bool)
    $5=0 (limit pins invert, bool)
    $6=0 (probe pin invert, bool)
    $10=3 (status report mask:00000011)
    $11=0.010 (junction deviation, mm)
    $12=0.002 (arc tolerance, mm)
    $13=0 (report inches, bool)
    $20=0 (soft limits, bool)
    $21=0 (hard limits, bool)
    $22=1 (homing cycle, bool)
    $23=0 (homing dir invert mask:00000000)
    $24=25.000 (homing feed, mm/min)
    $25=500.000 (homing seek, mm/min)
    $26=250 (homing debounce, msec)
    $27=10.000 (homing pull-off, mm)
    $100=400.000 (x, step/mm)
    $101=400.000 (y, step/mm)
    $102=400.000 (z, step/mm)
    $110=5000.000 (x max rate, mm/min)
    $111=5000.000 (y max rate, mm/min)
    $112=1500.000 (z max rate, mm/min)
    $120=10.000 (x accel, mm/sec^2)
    $121=10.000 (y accel, mm/sec^2)
    $122=10.000 (z accel, mm/sec^2)
    $130=200.000 (x max travel, mm)
    $131=200.000 (y max travel, mm)
    $132=200.000 (z max travel, mm)
    This is giving me a headache. I have tried switching X and Z limit switches, some have said, some cheep boards are wired wrong.
     
  4. Ron Smith

    Ron Smith New
    Builder

    Joined:
    Dec 27, 2019
    Messages:
    10
    Likes Received:
    1
    Maybe this is my problem.

    My Z-limit and Z-homing doesn't work! I updated from Grbl v0.8 (or less) and it used to work! What gives?

    In Grbl v0.9 and after, Grbl switched the z-limit (D11) and spindle enable pin (D12) to access the hardware PWM on pin D11 to enable variable spindle output (aka spindle speed) and enable laser support. This is well-documented in the "Connecting Grbl" wiki page and various other sites and issues threads. This is most commonly caused by the popular use of a cheap, open-source CNC shield that is based around the old v0.8 pin configuration. The manufacturers of these clone boards haven't and seemingly refuse to update the design, but there are versions of this board that have updated to the current pin configuration by the original designer. The simplest solution is to revert to the old pin configuration. However, this sacrifices your laser support and variable spindle output. To do so, just edit the config.h file in the Arduino library path for Grbl, comment out the #define VARIABLE_SPINDLE line, and recompile and flash. If you want laser and variable spindle support on these cheap clone boards, there are several solutions on how to alter the boards, like soldering jumper wires, but this isn't the place for questions about this. Simply search the web. There are plenty of solutions and prior issues threads that have already answered this question in great depth and detail.
     
  5. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,769
    Likes Received:
    1,357
    Stretching my grbl expertise to breaking point with that @Ron Smith - I see you disabled hard limits which I was going to suggest. I'll tag @Peter Van Der Walt who knows far more than I do about this - in any case I'm afraid you'll have to wait for someone with better knowledge than me to pick up on this.
    Alex.
     
  6. Ron Smith

    Ron Smith New
    Builder

    Joined:
    Dec 27, 2019
    Messages:
    10
    Likes Received:
    1
    Thanks Alex, a second pair of eyes is always helpful. I'll be around. I like a challenge.
     
  7. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,769
    Likes Received:
    1,357
    I couldn't see from your pic - see if you can determine exactly what chip you have on that board. Re-flashing grbl can be a problem with some chip versions. (have you upgraded the grbl version from what came with it?) - info would be useful to someone who knows more than I do.
    Alex.
     
  8. Ron Smith

    Ron Smith New
    Builder

    Joined:
    Dec 27, 2019
    Messages:
    10
    Likes Received:
    1
    Is there a main chip to look for? There are no identifying characters on the card, but each small black chip has a set a combination of numbers and letters. I have never had an older version of GRBL, only the current version on gethub. Perhaps I'm reaching to far to soon. I would like to have homing capability but maybe my experience level is to low. Maybe going for the cheep Chinese model was not the right plan.On the other hand, it is making me dig. If it was easy everybody would be doing it.
     
  9. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,769
    Likes Received:
    1,357
    It will probably say Atmega328 (or Atmega2560) the number and any letters after it might matter if you decide to try re-flashing with an earlier version of grbl, but wait to see if anyone else on here recognises your board. (or get a blackbox and solve lots of problems - you can always move it when you are ready to upgrade to a better machine)
    Alex ;)
     
  10. Ron Smith

    Ron Smith New
    Builder

    Joined:
    Dec 27, 2019
    Messages:
    10
    Likes Received:
    1
    You are correct I think. There is a chip with what looks like, ATMEL, Mega 328P on it. The Driver is CH340SER and there is a chip with that on it. Yes, I will wait. I don't want to make things worse. It's not a bad machine, it has a mill and laser and I am learning that side. Certainly don't want to mess that up. My goal would be to some day build something bigger. I'll research the "black box". This is the first I have heard of that.
     
  11. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,769
    Likes Received:
    1,357
  12. Ron Smith

    Ron Smith New
    Builder

    Joined:
    Dec 27, 2019
    Messages:
    10
    Likes Received:
    1
    I like that (Black box). Would that replace the controller I'm currently using and be compatible with my stepper motors? In the description under "Whats Included" it says Pair with a Genuine MeanWell Power Supply. Do you think it IS included, or an additional purchase? It would be nice to have a system that others are using. Support would be much easier it find.
     
  13. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,769
    Likes Received:
    1,357
    Power supply is a separate purchase ;
    24V Meanwell Power Supply Bundle
    I would be surprised if it couldn't handle your stepper motors, but see if you can find any details about them (Google any model numbers - assuming they have some)
    Alex.
     
    Ron Smith likes this.
  14. Ron Smith

    Ron Smith New
    Builder

    Joined:
    Dec 27, 2019
    Messages:
    10
    Likes Received:
    1
    Good to Know I have options. If I build something bigger later I would already have two necessary components and the knowledge to use them. Alex you have been a big help. I will probably work without homing for a while, unless someone gives me another option. I've only had this machine for three months. and have lots to learn. Another $240 at this point might be unwise. Once I build up a little confidence I might try to edit the config.h file. I appreciate your help.
     
  15. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,769
    Likes Received:
    1,357
    Tip:- if working without homing get in the habit of "parking" your machine close to the "home" position before switching off. Then, when you next switch on, grbl will set your machine co-ordinate system in the same place.
    Alex.
     
  16. Ron Smith

    Ron Smith New
    Builder

    Joined:
    Dec 27, 2019
    Messages:
    10
    Likes Received:
    1
    I'll keep that in mind.
     

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