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
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?
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
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
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.
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?
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?
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.
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?
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
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.
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.
Hi Gary I figured out what is wrong. Because I am building a laser cutter I do not use Z Axis that is why nothing happens as noting is connected for Z - Axis. Is there a way to disable Z axis so homing is not trying to home Z -Axis?
Makes perfect sense, i'm sure you can take the Z home code out of the config, Good question for Sonny in the GRBL Help thread
Hi Gary, sorry to bother you again. Can you please help? I use xloader to load the hex file onto my arduino. Can you please tell me which config file do i use? Or where can i find the correct config.h file. Or how do i load a config.h file because when i laod the hex file i can see a config file.
I've never done this, but i found a thread where they discuss changing the PWM settings in config , should help. thread here
Hi Gary Thank you very much for your help. I tried everything but still can't disable Homing for Z-Axis I am just going to add a small motor with a micro switch so I can do the homing. I would like my machine to home at the end of every cut but I tried to add the $H to my g-code but cant get it to run at the end of the cut. Can you please tell me what command I have to add in order for the $H command to work. I tried G0 $H but no luck.
Hi Gary Thank you very much for your help I will give it a go. Can you also hep me to change the direction of my motor when I do homing? Also can you please tell me where do I set the homing speed?
Sure, the setting for home direction is $22 use this chart do tell it what direction to go so it would be something like $22=4 .. this would make the Z go in a different direction than it was Homing speed, play with these, $24 and $25
Hi, Thank you very much this is great. Do you know where do I set the jogging speed, my jogging speed is very slow?
Hi Gary, I am not sure what you mean by controller but I am using a nema17 stepper motor with aTB6600 driver and universal g-code Platform on Arduino with GRBL code.
right, so UGS Platform is your control software.. right in the jog window you can set the speed (feed rate) I found that when using UGS i had to play with the windows key repeat settings and the step size to get smooth jogging. There is a happy point where holding the button makes the machine jog smooth and stop when the button is released. the key repeat is in keyboard properties, this is windows 7 so it might look different than yours..
Hi Gary Hopefully this is the last question, you were great thank you very much for all your help. I attached a picture, when I do homing all axis go to -1 but the X-Axis goes to -199.00 this is after I change the direction. Is there a way to reset it so when I do Homing all the axis go to -1 and not -199.00. Please see attached picture. I think it is the machine coordinates.