Welcome to Our Community

Some features disabled for guests. Register Today.

Ask Grbl CNC questions here.

Discussion in 'Control Software' started by Sonny Jeon, Aug 12, 2015.

  1. Ferreri

    Ferreri New
    Builder

    Joined:
    Feb 1, 2017
    Messages:
    22
    Likes Received:
    5
    Those are both mm. Does the inch version add the G20?
    The units and motion mode should always be included.
     
    #1111 Ferreri, Jun 9, 2020
    Last edited: Jun 9, 2020
  2. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,681
    Likes Received:
    1,321
    No.
    Alex.
     
    Ferreri likes this.
  3. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,681
    Likes Received:
    1,321
    It's in the post processors supplied by Vectric - comes up in my list of post processors if you scroll down far enough. Let me know if A) you haven't got it, B) want it and I'll pm it to you.
    Alex.
     
  4. Ferreri

    Ferreri New
    Builder

    Joined:
    Feb 1, 2017
    Messages:
    22
    Likes Received:
    5
    A) Nope...not there.
    B) Sure...I'm curious.

    Regardless, the
    "G20"
    "G90"

    should be added to the header.
     
    Alex Chambers likes this.
  5. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,681
    Likes Received:
    1,321
    Agreed. I'll pm the two Openbuilds post processors to you.
    Alex.
     
  6. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,753
    Likes Received:
    4,070
    I'll point the relevant people at it :)
     
    Mark Carew likes this.
  7. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,753
    Likes Received:
    4,070
    Hi Jon

    We tested both in the Lab here, and we cannot replicate your issue (it starts running for us)
    If you still have the issue, please provide the files. Thanks
     
  8. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,753
    Likes Received:
    4,070
    @Jon Lindsay Stoddard and @Alex Chambers
    Attached updated Posts as being sent to Vectric to include in a future update, but you guys can go ahead and install them already so you have the fixes for the missing G20/G21 and G90s
     

    Attached Files:

    Alex Chambers likes this.
  9. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,681
    Likes Received:
    1,321
    #1119 Alex Chambers, Jun 11, 2020
    Last edited by a moderator: Jun 11, 2020
  10. Shalebridge

    Builder

    Joined:
    Jun 20, 2020
    Messages:
    1
    Likes Received:
    0
    Does anybody know of a program or script that can record jogging movements as gcode? It doesn't need to be fancy.

    I guess there would have to be some sort of interpolation if an arc curve is needed as opposed to a linear move.
     
  11. scales11

    scales11 New
    Builder

    Joined:
    Jun 20, 2020
    Messages:
    1
    Likes Received:
    0
    I purchased the following shield a while back, but never got the time to set it up.
    Stepper Driver Arduino Shield at Buildlog.Net Blog
    I have used grbl a little for my own cnc (uno+drivers no shield), and decided to give this shield a go. I first tried the default grbl settings, but when I use Universal Gcode sender, I do not get any results...no humm, no movement, no noise, nothing, from the steppers. I then looked closer a the schematics for the board and while I cannot say for certain whether this was from an older rev, I can see that the pinout is different from the stock GRBL settings. It looks like its pinout for an Uno is as follows:
    X Step = pin 2
    X Dir = pin 3
    Y Step = pin 4
    Y Dir = pin 5
    Z Step = pin 6
    Z Dir = pin 7

    I went into the cpu_map file and changed the following:
    // Define step pulse output pins. NOTE: All step bit pins must be on the same port.
    #define X_STEP_BIT 2
    #define Y_STEP_BIT 4
    #define Z_STEP_BIT 6

    // Define step direction output pins. NOTE: All direction pins must be on the same port.
    #define X_DIRECTION_BIT 3
    #define Y_DIRECTION_BIT 5
    #define Z_DIRECTION_BIT 7


    Alas, with a single stepper hooked up on the X axis, I still do not get a response from the motor (grbl seems to connect by the way, as I can see the welcom message and responses from prompt when I send over commands via Universa GCode Sender).

    The only other thing I did not try was a mention:
    // set enable pin
    if (STEPPERS_ENABLE_VAL)
    STEPPERS_ENABLE_DDR &= 1<<STEPPERS_ENABLE_BIT; // bit low is enable
    else
    STEPPERS_ENABLE_PORT |= 1<<STEPPERS_ENABLE_BIT; // bit high is enab
    in the manual...

    Does anyone have any other suggestions as to how I can get this shield working?

    Thanks,
     
  12. Ebon eben

    Ebon eben New
    Builder

    Joined:
    Nov 8, 2018
    Messages:
    8
    Likes Received:
    4
    Hello

    I have a CBeam with a sparks concept xpro v3, never had a problem until now. For some reason I can not jog any thing and the motor locks, red lights on the card. The open builds software ware will not connect says I have a firmware error and closes the port. If I open GRBL panel it connects and will not do anything and has no GRBL version shown. UGS connects and does nothing. How do I get the firmware back on the controller. Where do I type the $$ to see what is on the card

    thank you
     
  13. Giarc

    Giarc OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jan 24, 2015
    Messages:
    2,899
    Likes Received:
    1,613
    Have you checked to make sure all wiring is still connected properly? Something may have come loose and is shorting out.
     
    Peter Van Der Walt likes this.
  14. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,753
    Likes Received:
    4,070
    I suggest asking the vendor you purchased from.
     
  15. Ebon eben

    Ebon eben New
    Builder

    Joined:
    Nov 8, 2018
    Messages:
    8
    Likes Received:
    4
    I will check again but it looked OK.
     
  16. Ebon eben

    Ebon eben New
    Builder

    Joined:
    Nov 8, 2018
    Messages:
    8
    Likes Received:
    4
    Thank you so much, there was a short between two of the contacts under the board. I hope it is all good now. Work in the open builds software I will check the others in the morning. Thank you again
     
    Giarc likes this.
  17. phil from seattle

    phil from seattle Journeyman
    Builder

    Joined:
    Mar 17, 2017
    Messages:
    312
    Likes Received:
    137
    Sorry for the late response. I agree with Peter - the guy that makes your shield claims to give great support so you should ask him.

    FWIW. You really should not have to muck with pin assignments. I'd bet it has something to do with the enables - maybe invert them in grbl. Generally, when nothing is happening, I check to see if I'm getting signals on the step outputs. You can use a multimeter or LEDs (with 330 ohm resistors). The LEDs make it easy to see what's going on.
     
  18. LardusZA

    LardusZA New
    Builder

    Joined:
    Jan 28, 2018
    Messages:
    2
    Likes Received:
    0
    Hi, there I am having an issue with not being able to connect to GRBL in UGS when the external power supply is turned on if its off I can connect no problem?
     
  19. phil from seattle

    phil from seattle Journeyman
    Builder

    Joined:
    Mar 17, 2017
    Messages:
    312
    Likes Received:
    137
    What board? How is your power set up?
     
  20. LardusZA

    LardusZA New
    Builder

    Joined:
    Jan 28, 2018
    Messages:
    2
    Likes Received:
    0
    I am using a protoneer breakout board on arduino uno , using two linked Pc power supplies so i have 12 or 24 v
    Drv8825 drivers on breakout bord
     
  21. phil from seattle

    phil from seattle Journeyman
    Builder

    Joined:
    Mar 17, 2017
    Messages:
    312
    Likes Received:
    137
    Not much to go on. Does the protoneer bb supply power to the uno? Is the power LED on the uno still lit when you have the "can't connect" situation. Does it change brightness when you switch the driver power on? What happens if you keep power off, connect to grbl and then turn the driver power on?
     
  22. DWe

    DWe New
    Builder

    Joined:
    Aug 1, 2020
    Messages:
    3
    Likes Received:
    0
    Hi together,
    I hope someone can help me, so that I see more clear.
    I've the small CNC-3018 (SW GRBL 1.1) with additional optical Endstops. The delivered offline controller is about the Endstops more or less useless, because I can not Homing with this device.
    So I've start to rewrite the Software for a BT 3,5 " Display to control the CNC 3018 without a PC with the option to let the machine work from a file via SDCard/USB port.
    I use a 3D plate for probing ( the parameter are stored via G92 once by one (X, Y and Z axis). So far so good. The G10L2... doesn't work one axis after the other...
    Now I want implement a manual tool change.
    My Idea is, that I get the reference of the first tool (Millimg) at a specific place before I probe the 3 Axis to the 0 Position at the material . After change the tool I want probe the Z axis again and insert the different as G43.1.
    My problem (in my head) is now: If I insert the Command G38.2 and GRBL found the plate..... I'll believe that the needed Z position (0) is lost and override with the 0 position from the 3D probing. Isn't it?
    How I can use a Z Probe in a Pause of milling to calculate the diff after change the milling tool manually?
     
  23. DWe

    DWe New
    Builder

    Joined:
    Aug 1, 2020
    Messages:
    3
    Likes Received:
    0
    Short:Update
    I'll it will worked as expected:
    In this moment I parsed the statusmsg from GRBL and catch at every time the PRB Message.From this message I save the position of the needed axis.
    After 3d probing, I set all calculated values ( thickness of the plate (XYZ) and 1/2 of the cutter (XY)) via the command G10 P1 L2..... .
    If I start a new probe for Z ( GRBL does only supported 3 axis, otherwise I could "used" an unused axis for the tool-change, the values for the offset ( visible in the statusmsg. ) for Z is changed.
    I'll try to rewrite the old values via G10 P1 L2.... , but calculate the new offset ( as difference ) in G43.1. The register accept plus and minus values ( tested via consule) hopefully GRBL calculate the Working space for Z correct ... If not, I'll believe, I could forgot the idea with a toolchange without a lot of manual doing, so that Z will be correct after this one....
     
  24. DWe

    DWe New
    Builder

    Joined:
    Aug 1, 2020
    Messages:
    3
    Likes Received:
    0
    Can you post your welcome message?
    Maybe you've enabled the endstops and GRBL need first of all the Homing Commanf <$H>
    Maybe also/or a <CRTL-C> is requiered.

    GRBL does not executed any G-Code CMD before the initialize things are finished ( for your own savety )
     
  25. phil from seattle

    phil from seattle Journeyman
    Builder

    Joined:
    Mar 17, 2017
    Messages:
    312
    Likes Received:
    137
    This is not a question but rather I wanted to point people to a new GCode sender that I am pretty excited about. It's called, unsurprisingly, GCoder Sender. It only runs on Windows but it is the best sender I've ever used. It just recently was released as Beta.
    You can download it here.
    And, can find more info about it here.
     
  26. Lil

    Lil New
    Builder

    Joined:
    Aug 29, 2020
    Messages:
    5
    Likes Received:
    1
    I am trying to extend GRBL to allow enabling and disabling of a single motor via gcode. Unfortunately my C skills aren't quite up to snuff... As far as I can tell, the lines

    TIMSK1 |= (1<<OCIE1A);
    and
    TIMSK1 &= ~(1<<OCIE1A);

    are used to enable and disable the Stepper motors. I don't understand what TIMSK1 or OCIE1A is since I cannot find any references or usage in any other file. As far as I can tell TIMSK1 is a hardware pin array integer... or something of the sort, and OCIE1A is the position of the pin to disable the steppers?

    Can someone clarify this for me? is it even possible to disable each of the steppers separately?

    Thanks.
     
  27. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,753
    Likes Received:
    4,070
    Raw AVR registers. They are explained in the Atmega328 datasheet, and other online references. Its not Grbl functions, but AVR-C core

    TIM* register should be Timer related

    Gammon Forum : Electronics : Microprocessors : Timers and counters and Timers on the ATmega168/328 - QEEWiki

    TIMSK1 is Timer/Counter Interrupt Mask Register

    No, because they share a single Enable pin on the Uno. See the Grbl Gnea Wiki > Connecting page
     
    #1137 Peter Van Der Walt, Aug 29, 2020
    Last edited: Aug 29, 2020
  28. Lil

    Lil New
    Builder

    Joined:
    Aug 29, 2020
    Messages:
    5
    Likes Received:
    1
    Oh... ok, and darn... the answer that I feared, but was hoping not to hear :) I guess modifying the GRBL shield is necessary then...
     
  29. Rob Taylor

    Rob Taylor Master
    Builder

    Joined:
    Dec 15, 2013
    Messages:
    1,470
    Likes Received:
    746
    Grbl also only has one enable output pin for all three available axes, but drivers usually default to enabled if you leave them disconnected, or sometimes you have to loop the 0V signal line to the ENA+ terminal, but it's pretty trivial. If you only need to turn one motor on and off, maybe you could just leave any others permanently enabled so you can control the one with the main output?
     
  30. phil from seattle

    phil from seattle Journeyman
    Builder

    Joined:
    Mar 17, 2017
    Messages:
    312
    Likes Received:
    137
    You are getting into the guts of GRBL - it is very tightly tuned to the ATMega328

    You might want to take a look at grblHAL. It supports individual enables for each axis. It uses a hardware abstraction layer to isolate the processor from the grbl core making it easy to move to new hardware and add new features. Might be easier to hack up to meet your needs. It runs on my BoB for the Teensy version of grblHAL which supports 5 Axes and each can have an individual enable. It also runs on the STM32s (Blue Pill, Black Pill), SAMs, ESP32s, various TI chips and so on.

    But this does beg the question of why you want to disable a motor via G-Code...
     
    Rob Taylor likes this.

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