Welcome to Our Community

Some features disabled for guests. Register Today.

Nema 17 with aTB6600 driver

Discussion in 'General Talk' started by Johannes1969, Apr 16, 2018 at 9:56 AM.

  1. Johannes1969

    Builder

    Joined:
    Oct 24, 2016
    Messages:
    8
    Likes Received:
    0
    Hi there, I am using a nema17 stepper motor with aTB6600 driver and universal g-code sender on Arduino with GRBL code. My cutting speed is to slow on my axis. I played around with accel and max settings but is still slow. jogging is quicker and the cutting speed is a bit quicker but still to slow.
    Can someone please help
     
  2. Gary Caruso

    Gary Caruso Master
    Builder

    Joined:
    May 19, 2016
    Messages:
    341
    Likes Received:
    129
    you cut speed is set in your cam software.. post your grbl settings here and an example of your gcode, most times accel is the reason for slower than expected results.
    belts or screws? if belts what size pulley, if screws what type screw?
     
  3. Johannes1969

    Builder

    Joined:
    Oct 24, 2016
    Messages:
    8
    Likes Received:
    0
    Hi Gary

    Thank you very much for your reply. Please see details below.

    Pulley:
    3D Printer GT2 Timing Belt and Pulleys 20 Teeth 5mm Shaft-Reprap Prusa Makerbot

    GRBL Settings:

    $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=1.000 (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=0 (homing cycle, bool)
    $23=0 (homing dir invert mask:00000000)
    $24=50.000 (homing feed, mm/min)
    $25=500.000 (homing seek, mm/min)
    $26=250 (homing debounce, msec)
    $27=1.000 (homing pull-off, mm)
    $100=7.840 (x, step/mm)
    $101=7.840 (y, step/mm)
    $102=7.840 (z, step/mm)
    $110=15000.000 (x max rate, mm/min)
    $111=15000.000 (y max rate, mm/min)
    $112=15000.000 (z max rate, mm/min)
    $120=3000.000 (x accel, mm/sec^2)
    $121=3000.000 (y accel, mm/sec^2)
    $122=3000.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)

    G-Code

    ( Made using CamBam - CamBam CNC Software )
    ( A7 Corsair Ver 8 3/21/2017 8:12:11 PM )
    ( T1 : 0.01 )
    G21 G90 G64 G40
    G0 Z0.0
    ( T1 : 0.01 )
    T1 M6
    ( Profile1 )
    G17
    M3 S1000
    G0 X19.4737 Y64.8361
    G1 F1000.0 Z-0.01
    G1 F1200.0 X53.4262 Y65.2006
    G1 X53.673 Y42.2151
    G1 X19.7204 Y41.8506
    G1 X19.4737 Y64.8361
    ( Profile2 )
    S1000
    G0 Z0.0
    G0 X16.9608 Y5.3362
    G1 F1000.0 Z-0.01
    G1 F1200.0 X57.867 Y5.8482
    G3 X57.8704 Y5.8496 I-0.0001 J0.005
    G1 X66.9398 Y14.4543
    G3 X66.9414 Y14.458 I-0.0034 J0.0036
    G1 X66.1898 Y53.1684
    G3 X66.1897 Y53.1689 I-0.005 J-0.0001
    G3 X58.9698 Y83.5436 I-155.2382 J-20.8541
    G3 X37.7134 Y101.5755 I-24.3148 J-7.118
    G3 X37.7078 Y101.5705 I-0.0006 J-0.005
    G1 X37.7818 Y95.576
    G1 X34.7897 Y95.5438
    G1 X34.718 Y101.5384
    G3 X34.7123 Y101.5433 I-0.005 J-0.0001
    G3 X13.9139 Y82.9797 I3.6972 J-25.0751
    G3 X7.4565 Y52.4339 I149.254 J-47.5082
    G3 X7.4564 Y52.4333 I0.005 J-0.0005
    G1 X7.6739 Y13.7162
    G3 X7.6755 Y13.7125 I0.005 J0.0
    G1 X16.9574 Y5.3375
    G3 X16.9608 Y5.3362 I0.0033 J0.0037
    G0 Z0.0
    M5
    M30
     
  4. Gary Caruso

    Gary Caruso Master
    Builder

    Joined:
    May 19, 2016
    Messages:
    341
    Likes Received:
    129
    ok so you have your grbl setting set screaming fast, but the F speed in your gcode is F1000 for Z and F1200mm/min X and Y
    i'm not sure why you have 7.84 steps per mm? 20 teeth x 2mm should be 40mm for pulley circumference, so 200/40 is 5 steps per mm at no mirco steps, i would think you would want to use 1/8 microsteps to make motion smooth so that would make it 1600/40 = 40 steps/mm some adjustment will be needed to make travel accurate, typical.
    hope this helps
     
    #4 Gary Caruso, Apr 16, 2018 at 10:51 AM
    Last edited: Apr 16, 2018 at 10:56 AM
    GrayUK likes this.
  5. Johannes1969

    Builder

    Joined:
    Oct 24, 2016
    Messages:
    8
    Likes Received:
    0
    Hi Gary
    r
    Thank you very much it work much better now.

    I am very new with this setup. Can you please tell me how to turn my laser on and off and what pin I must use?

    Also Hard limit switches I tried to get it configured but does not work properly. I got GRBL Ver 0.9

    I used pin 9, 10 and 12 for the limit switches.
     
  6. Gary Caruso

    Gary Caruso Master
    Builder

    Joined:
    May 19, 2016
    Messages:
    341
    Likes Received:
    129
    If you were to update to Grbl V1.1 you will have better Laser mode support
    gnea/grbl

    when you say the limits are not working what is the behavior?
     
    #6 Gary Caruso, Apr 16, 2018 at 2:38 PM
    Last edited: Apr 16, 2018 at 3:01 PM
  7. Johannes1969

    Builder

    Joined:
    Oct 24, 2016
    Messages:
    8
    Likes Received:
    0
    I downloaded the grbl 1.1, do I just enable the $32=0 Laser mode, boolean to get the laser working and do you perhaps know which pin on the arduino do I need to use?
     
  8. Gary Caruso

    Gary Caruso Master
    Builder

    Joined:
    May 19, 2016
    Messages:
    341
    Likes Received:
    129
    D11 is the PWM output 0-5V
     
  9. Johannes1969

    Builder

    Joined:
    Oct 24, 2016
    Messages:
    8
    Likes Received:
    0
    Hi Gary, will you recommend soft limits or hard limits?
     
  10. Gary Caruso

    Gary Caruso Master
    Builder

    Joined:
    May 19, 2016
    Messages:
    341
    Likes Received:
    129
    I don't use either but its up to you. I use home switches some times like when it's a more complex project but for simple quick to run cuts i just zero at the corner of the work piece and go.
    Make sure to read the GRBL wiki descriptions it explains things well for the most part.
     
  11. Johannes1969

    Builder

    Joined:
    Oct 24, 2016
    Messages:
    8
    Likes Received:
    0
    Gary thank you very much for your help. I will try the hard limits, If I can't get it working can I contact you again?
     
  12. Gary Caruso

    Gary Caruso Master
    Builder

    Joined:
    May 19, 2016
    Messages:
    341
    Likes Received:
    129
    Yep, I’ll be here
    Cheers
     
  13. Johannes1969

    Builder

    Joined:
    Oct 24, 2016
    Messages:
    8
    Likes Received:
    0
    Hi Gary I am trying to setup homing but it does not work, when I run $H noting happens motors are not moving.

    then after a while I get the following messages:

    "Error while starting file stream: file stream is disabled when GRBL is in the alarm state"

    " Error while processing response an unexpected command was completed by the controller"

    Next message:

    "(Alarm 9) homing fail. Could not find limit switch within Search distances. try increasing max travel."

    $0=10
    $1=25
    $2=0
    $3=0
    $4=0
    $5=0
    $6=0
    $10=3
    $11=0.010
    $12=0.002
    $13=0
    $20=0
    $21=0
    $22=1
    $23=1
    $24=25.000
    $25=500.000
    $26=250
    $27=1.000
    $30=1000
    $31=0
    $32=1
    $100=40.000
    $101=40.000
    $102=40.000
    $110=8000.000
    $111=8000.000
    $112=8000.000
    $120=4000.000
    $121=4000.000
    $122=4000.000
    $130=200.000
    $131=200.000
    $132=200.000
    ok
    [GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]
    ok
    >>> $X
    [MSG:Caution: Unlocked]
    ok
    >>> $H
     
  14. Gary Caruso

    Gary Caruso Master
    Builder

    Joined:
    May 19, 2016
    Messages:
    341
    Likes Received:
    129
    does it make any noise? do your switches work? you should be able to see the inputs somewhere what are you using, UGS? is your jogging good now? your acceleration is still very high i would try 500 for now. and increase it gradually once you get everything working.
     
  15. Johannes1969

    Builder

    Joined:
    Oct 24, 2016
    Messages:
    8
    Likes Received:
    0
    Hi Gary
    My jogging works fine, movements are good.
    No motor movement when I do $H for homing.
    When I select verbose output and press the x axis switch it does show that it is working in verbose. that is the same for X and Y.
    I am not using Z as it is a laser machine I am building.
     

Share This Page