Hi all,im looking for some advice,i have a mill ive made,its nema 23 steppers runing latest version of gbrl on the arduino and im sending comands using universal gcode sender,im trying to draw a 2d alian face,i will attach the file im trying to lpad,every time i try to run it using usg i get the following error msg:an error was detected while sending'm06to':error20 unsuported or invalid g-code command found in block streaming has been paused.,any ideas anyone?,thanks in advance paul m3-vuv.
m3vuv: im looking for some advice,
Post your code. Use code tags.
any ideas anyone?
M06 might be a valid M code. M06to is not.
You have some code on the Arduino. Lets see it.
You see an error message somewhere. Lets see the EXACT error message, not your paraphrasing of it.
Lets see the NC program you are trying to send to the Arduino.
im looking for some advice,
so lets try for the 5th time to attach the file,this website is making my blood boil ffs!!
face.txt (3.61 KB)
( This file was created automatically using CamBam ) ( http://www.brusselsprout.org/CAMBAM ) ( 11/29/2008 1:11:14 PM ) ( T0 : 0.001 ) G20 G90 G64 G00 Z0.125 ( MOPProfile_2 ) ( T0 : 0.001 ) M06 T0 M03 G00 X-0.299635 Y-2.672109 G01 F15 Z-0.001 G01 F300 X0.242283 G00 Z0.125 G00 X0.281184 Y-0.761984 G01 F15 Z-0.001 G03 F300 X0.090095 Y-0.953059 I-0.022534 J-0.168553 G00 Z0.125 G00 X-0.324529 Y-0.753181 G01 F15 Z-0.001 G02 F300 X-0.132317 Y-0.945379 I0.022666 J-0.169545 G00 Z0.125 G00 X-0.475024 Y0.265282 G01 F15 Z-0.001 G02 F300 X-0.600539 Y0.198916 I-0.145025 J0.122407 G02 X-0.83879 Y0.218446 I-0.069565 J0.614393 G01 X-0.8388 Y0.218448 G02 X-1.17323 Y0.343422 I0.452748 J1.721514 G02 X-1.479371 Y0.527113 I0.95037 J1.93085 G02 X-1.768868 Y0.851146 I0.606555 J0.833245 G02 X-1.839332 Y1.06599 I0.491952 J0.280324 G03 X-1.839333 Y1.066 I-0.000497 J-0.000058 G02 X-1.78474 Y1.285138 I0.301344 J0.041296 G02 X-1.587205 Y1.397775 I0.243525 J-0.197547 G03 X-1.587193 Y1.397777 I-0.000073 J0.000495 G02 X-1.419527 Y1.40102 I0.094434 J-0.54653 G02 X-1.17848 Y1.332849 I-0.115339 J-0.868079 G02 X-0.962004 Y1.206631 I-0.44674 J-1.014955 G02 X-0.760908 Y1.019047 I-0.766042 J-1.022801 G02 X-0.525644 Y0.676937 I-1.265297 J-1.122075 G02 X-0.450756 Y0.477071 I-0.79209 J-0.410751 G02 X-0.440417 Y0.368565 I-0.342239 J-0.087354 G03 X-0.440418 Y0.368546 I0.000499 J-0.00003 G02 X-0.475024 Y0.265282 I-0.183129 J0.00394 G00 Z0.125 G00 X0.457507 Y0.266706 G01 F15 Z-0.001 G02 F300 X0.422901 Y0.36997 I0.148522 J0.107204 G03 X0.4229 Y0.369989 I-0.0005 J-0.000011 G02 X0.433238 Y0.478489 I0.352559 J0.021153 G02 X0.508127 Y0.678362 I0.867003 J-0.210888 G02 X0.743386 Y1.020466 I1.500537 J-0.77995 G02 X0.944487 Y1.208056 I0.967165 J-0.835237 G02 X1.160961 Y1.334272 I0.663209 J-0.888726 G02 X1.40201 Y1.402444 I0.356389 J-0.799915 G02 X1.569676 Y1.399201 I0.073232 J-0.549773 G03 X1.569688 Y1.399199 I0.000085 J0.000493 G02 X1.767223 Y1.286562 I-0.04599 J-0.310184 G02 X1.821816 Y1.067424 I-0.246751 J-0.177841 G03 X1.821814 Y1.067414 I0.000495 J-0.000068 G02 X1.751352 Y0.852571 I-0.562414 J0.06548 G02 X1.461851 Y0.528535 I-0.896059 J0.509216 G02 X1.155713 Y0.344846 I-1.256498 J1.747145 G02 X0.821283 Y0.219872 I-0.78718 J1.596542 G01 X0.821273 Y0.21987 G02 X0.583027 Y0.20034 I-0.168685 J0.594851 G02 X0.457507 Y0.266706 I0.019508 J0.188779 G00 Z0.125 G00 X2.460439 Y0.585937 G01 F15 Z-0.001 G02 F300 X2.446297 Y0.275659 I-3.294169 J-0.005312 G02 X2.353243 Y-0.298841 I-4.012489 J0.35513 G02 X2.027545 Y-1.264386 I-5.219711 J1.223007 G02 X1.226249 Y-2.57332 I-5.185175 J2.2745 G02 X0.961742 Y-2.861901 I-2.578692 J2.098069 G01 X0.961736 Y-2.861906 G02 X0.742197 Y-3.058791 I-1.898965 J1.896629 G01 X0.74219 Y-3.058796 G02 X0.371109 Y-3.30128 I-1.243094 J1.497168 G02 X0.16307 Y-3.38167 I-0.54818 J1.109229 G02 X-0.057563 Y-3.413565 I-0.231363 J0.821398 G02 X-0.369146 Y-3.351629 I0.011233 J0.871233 G02 X-0.629013 Y-3.218586 I0.486391 J1.270358 G02 X-1.047155 Y-2.872594 I1.371483 J2.083143 G02 X-1.626308 Y-2.125388 I3.153785 J3.042526 G02 X-2.222722 Y-0.841132 I4.913442 J3.062441 G02 X-2.395533 Y-0.152417 I4.918815 J1.600253 G02 X-2.460446 Y0.554692 I4.223296 J0.744236 G02 X-2.297429 Y1.565427 I3.14925 J0.010585 G02 X-1.438033 Y2.831134 I2.723838 J-0.924834 G02 X-0.78046 Y3.243225 I1.730883 J-2.031278 G02 X-0.410567 Y3.366616 I0.959272 J-2.259514 G02 X-0.023439 Y3.413565 I0.383777 J-1.54498 G02 X0.490695 Y3.335659 I-0.020852 J-1.873067 G02 X1.297896 Y2.930895 I-0.75152 J-2.505977 G02 X2.163515 Y1.899368 I-1.681057 J-2.289642 G02 X2.460439 Y0.585937 I-2.662859 J-1.292264 G00 Z0.125 M05 M30
So, where is the Arduino code and the EXACT error message from the G code sender?
The M6 (tool change) and T0 (tool number) functions are not available in grbl.
the error message i got word for word was in my first post.
m3vuv: the error message i got word for word was in my first post.
And? (You've got to admit, it was a bit obscured by the lack of formatting)
The message that you posted said "m06to", while the NC code says "M06 T0". I am absolutely certain that the G code sender did NOT convert the 0 in the tool number to the letter o. Therefore, the message you posted is NOT the message that the G code sender showed you.
i think you get the idea.
I suppose if you wanted approximate answers, then an approximate question is good enough.
But if you wanted more accurate and helpful answers, your question should also be more accurate and helpful.
(See garbage in, garbage out.)
Did you try:
i just clicked ok to the error messages and it ran,seems the z axis behaves on one half of the pic it draws but wont lift on the other,strange
just drilled some holes using this mill,now check this wierd issue out,the holes are 20mm apart,the steppers are nema 23 1.8 deg steppers,im using 8mmx 1.25 mm leadscrews and 16th micro steps,according to online calculators it should work out at 2560 steps per mm,with ugs i have the jog set to 20mm per jog,it works but only moves 10mm not 20mm any ideas?,cheers m3vuv. p.s im not sure if im posting in the right section.
anyone any ideas,the cnc shield is a ver 3 with all the microstepping jumpers on.regards m3-vuv.
I think you just proved the microstepping is not what you think. Should be easy to test other settings just like you did with drilling.
Are you moving the drill or are you moving the table? Are there any gear ratios or screw threads involved with the movements?
well i got to the bottom of the steps issue,i was using 1/32 steps and did my calcs for 1/16 steps,now the next issue,im trying to wire the limit switches,they are oc until activated,the very moment i connect the switch to the axis + pin as opposed to ground it triggers the alarm,thats just with one side of the switch connected,could this be noise on the cable as they are un shielded?,i may try some 0.1uf caps on them to ground.,we are getting there slowly!! lol.
m3vuv: well i got to the bottom of the steps issue,i was using 1/32 steps and did my calcs for 1/16 steps,now the next issue,im trying to wire the limit switches,they are oc until activated,the very moment i connect the switch to the axis + pin as opposed to ground it triggers the alarm,thats just with one side of the switch connected,could this be noise on the cable as they are un shielded?,i may try some 0.1uf caps on them to ground.,we are getting there slowly!! lol.
I have no idea what you mean by "oc", so help us. Exactly what are the switches, exactly how are they activated, and exactly how do you intend them to function?
Normally limit switches are some type of micro switch that will be lever operated and the lever will be pressed by the moving mechanism. Micro switches have three terminals: common, normally open, and normally closed.
For and Arduino, the common switch terminal is connected to the system ground. The normally open terminal is connected to an Arduino pin set as input-pullup. The status of the pin must be tested before each step of the stepper motor is taken. When the pin is pulled to ground by the micro switch, the value read will be 0. That tells the Arduino program to NOT make the next stepper motor step.
Is that what you are intending to do? If not, why not?