Welcome! Log In Create A New Profile

Advanced

*solved* Problems to create a multiline macro on Firmware-1.09x-dc42

Posted by Pumlux 
*solved* Problems to create a multiline macro on Firmware-1.09x-dc42
March 24, 2016 04:06AM
Hi all,

I have issues to create a multiline macro on the firmeare-1.09x-dc42.bin

I want to create a button / macro to move the z-axis + 0.01 and - 0.01 mm.
The macro button appears in the webfrontend, but it seems to happen nothing . Or in detail, only one command is executed. how are multipe commands separated ?
I tried sending the commands via the console and it works, but as macro, I seem to miss something.

Any hint what is my mistake ?
Or is there a better way to intregrate a 0.01 mm z-axis move button ?

Here the macro file content :

---- Move Z+-0,01 mm (this is the name of the file) ---
G91
G1 z0.01 F900
G90

----- end of macro file ---


---- Move Z--0,01 mm (this is the name of the file) ---
G91
G1 z-0.01 F900
G90

---- end of macro file ---


Regards
Andreas

edit: update because I found out that one command is execute but not next ones.

MoveZ-001mm

MoveZ+-001mm

Edited 3 time(s). Last edit at 03/24/2016 04:50PM by Pumlux.
Re: Problems to create a multiline macro on Firmware-1.09x-dc42
March 24, 2016 01:25PM
You need to use an uppercase Z in your G1 commands.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Problems to create a multiline macro on Firmware-1.09x-dc42
March 24, 2016 04:49PM
David,

that is exactly the issue. I need to use uppercase letters for the axis.
After I changed my macro to Z0.01 it is working as expected.

Many thanks for you help.

Regards
Andreas
Re: Problems to create a multiline macro on Firmware-1.09x-dc42
March 25, 2016 03:20AM
I'm glad it's working for you now. Just to clarify: the firmware only recognises gcodes and their parameters in uppercase characters. Pronterface and the web interface generally convert any commands you type in to uppercase before sending them to the printer.

Edited 1 time(s). Last edit at 03/25/2016 03:21AM by dc42.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login