joesoap583
Posts: 106
Joined: Sat Mar 08, 2014 11:01 pm

How To Use Macro Buttons?

There are 3 user-definable macro buttons on the machine control panel.

I know I can set these up using the Firmware Configuration dialog, via the Tools menu.

I assumed, possibly wrongly, that you could set a command for the bot using Gcode. So I defined 2 buttons to raise and lower the Z. The Gcode that I entered for each button was:

Macro 1: G1 Z0/0
Macro 2: G0 Z155 F1000

These Gcodes were stripped from the start/end sections of the Gcode produced by Simplify3D.

But when clicked these buttons do nothing. So what have I missed?
Posting as a private individual - 3D printing is a hobby activity.
Creality CR-10S owner.
dalew8abz
Posts: 120
Joined: Mon Mar 25, 2013 12:14 am
Location: Cleveland Heights, Ohio USA (4 mi. from MakerGear HQ!)
Contact: Website

Re: How To Use Macro Buttons?

soapy joe,

Did you home the Z axis before sending the commands? If you haven't homed Z, it has no idea where it is, and so has no idea where it's going.

Dale
joesoap583
Posts: 106
Joined: Sat Mar 08, 2014 11:01 pm

Re: How To Use Macro Buttons?

dalew8abz wrote:soapy joe,

Did you home the Z axis before sending the commands? If you haven't homed Z, it has no idea where it is, and so has no idea where it's going.

Dale
Yes. That was my first thought.
Posting as a private individual - 3D printing is a hobby activity.
Creality CR-10S owner.
Toby
Posts: 15
Joined: Sun Feb 09, 2014 12:59 pm

Re: How To Use Macro Buttons?

I'm no gcode expert, but don't G0 (or G1) first need to know if you are in relative or absolute mode? At the very least, that should be set first otherwise you don't know what's going to happen.

G90 is absolute coordinates (what you are trying to use I think)
G91 is relative coords.
G28 Z0 will home in z

So try this the first macro:
G28 Z0

and in the second macro:
G90
G1 Z155

Not sure what that that syntax "G1 Z0/0" means. I've never seen that. Also, one "gotcha" with the macros is they can't have comments in them like normal gcode commands can. So make sure there's no semicolon in the line with a comment after it

Return to “General Discussion and Tips”