Welcome! Log In Create A New Profile

Advanced

Is there a Pronterface move to .. M code ?

Posted by Jerms.a320 
Is there a Pronterface move to .. M code ?
April 10, 2014 09:25AM
Hi guys, I just got my Mendel90 roughly calibrated and I am getting slightly tired of pressing the -10mm button in Pronterface every five seconds to get my hot end down to the bed (I am using a Max z end stop)

Is there any M code in Pronterface to tell the printer to move to a certain position ?

Thanks heaps

Jeremy
Re: Is there a Pronterface move to .. M code ?
April 10, 2014 09:30AM
No M code. But you can use the G code. G0 Z# where # is how many mm you want to be above the bed. You can also specify a X and Y if you want to go to an exact location.
Re: Is there a Pronterface move to .. M code ?
April 10, 2014 10:06AM
Fantastic !!!

- what is the difference between M code and G code ?

thanks so much smiling smiley
Re: Is there a Pronterface move to .. M code ?
April 10, 2014 10:59AM
Quote
Jerms.a320
- what is the difference between M code and G code ?
About 6 letters. smiling smiley

They both are used to control the printer (or mill, or lathe, or EDM, or whatever). The "G" codes primiarily deal with controling the movement of the bed, extruder, spindle. I think of them as the "G"o commands. The M codes are "M"iscellaneous or "M"achine commands. They control non movement actions and parameters, as well as can provide informational feedback as to the state of the printer such as position and temperature. You can get a long list of the common G and M codes as they pertain to 3D printing here.
Re: Is there a Pronterface move to .. M code ?
April 10, 2014 11:22AM
Rightio ... I will remember that "G"o !

Thanks so much - im sure that list will come in handy
Re: Is there a Pronterface move to .. M code ?
April 10, 2014 11:22AM
And if you don't want to type the G-Code every time you can define a custom button in pronterface : [t00tiereprap.wordpress.com]
Re: Is there a Pronterface move to .. M code ?
April 10, 2014 11:34AM
Hi again CDRU,

I just sent G0Z270 and the z motors make a loud squeal and don't turn smoothly, any ideas ?
Re: Is there a Pronterface move to .. M code ?
April 10, 2014 11:37AM
Hahahah .. sorry I worked it out - for some reason the speed was too high -- seems to be fixed now smiling smiley
Re: Is there a Pronterface move to .. M code ?
April 10, 2014 11:39AM
Sorry again hahahah -- all of the G code commands seem to make my motors turn slower -compared with normal pronterface commands (my homing speed is the same as the normal speed ) - ? any ideas


- correction this is only with the custom buttons I have made in Pronterface using the G0Z ... command

At the moment it only effects the X and y commands

Update : It must be intermittent , I just flashed the firmware and z is having the same problem too - its only with the buttons though

Update 2 : its intermittent with all G0 commands not just the buttons I added

Update 3: so what I have found is that I must send a command using the Pronterface control before sending the G code, the home functions do not count

Edited 7 time(s). Last edit at 04/10/2014 12:12PM by Jerms.a320.
Re: Is there a Pronterface move to .. M code ?
April 10, 2014 03:37PM
You might want to append a feedrate to G0

Something like G0 Z0 F100
Re: Is there a Pronterface move to .. M code ?
April 10, 2014 03:42PM
Likely you miss the F. F like Feedrate.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Is there a Pronterface move to .. M code ?
April 10, 2014 08:48PM
Hi guys - so I sent G0Z0F156, and it worked fine after I homed it smiling smiley

thanks so much

- correction sending G0 F (speed) X (position) works fine the first time

Edited 1 time(s). Last edit at 04/10/2014 10:22PM by Jerms.a320.
Re: Is there a Pronterface move to .. M code ?
April 11, 2014 05:10AM
Quote
Jerms.a320
sending G0 F (speed) X (position) works fine the first time

Using G0, F is ignored anyways. G0 means "as fast as possible". G1 is the command which moves at the given velocity.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Sorry, only registered users may post in this forum.

Click here to login