Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share your custom buttons Here! #306

Open
arkypita opened this issue Mar 20, 2018 · 84 comments
Open

Share your custom buttons Here! #306

arkypita opened this issue Mar 20, 2018 · 84 comments

Comments

@arkypita
Copy link
Owner

arkypita commented Mar 20, 2018

The last v2.8.39 allow to export custom buttons. If you want to share yours with LaserGRBL community feel free to reply to this post. Don't forget to attach your CustomButtons.gz file!

@Arhimed-Ru
Copy link

Arhimed_CustomButtons.gz
image 2

@arkypita
Copy link
Owner Author

thanks for your share!

@Arhimed-Ru
Copy link

Arhimed-Ru commented Apr 13, 2018

another button option
bypass (diameter = diagonal) around the picture

circumradius_regular_square_0
.....
G0 X[left] Y[bottom] F3000
M3 S1 F1000
G2 X[left] Y[bottom-0.002] I[right/2-left/2] J[top/2-bottom/2]
M5
G0 X0 Y0 F3000
.....

this works :)

@Arhimed-Ru
Copy link

Arhimed-Ru commented Apr 13, 2018

if you have a Z-axis motor
step up: $J= G91 Z[jogstep] F[jogspeed]
step down: $J= G91 Z[0-jogstep] F[jogspeed]

@Arhimed-Ru
Copy link

za
zd

@Arhimed-Ru
Copy link

how to change the scale of the preview??... move the preview??...

@Xillius178
Copy link

Xillius178 commented Apr 14, 2018

FAN O/OFF Buttons:
Code for FAN ON
M08

Code for FAN OFF
M09

laser grbl fan buttons on

laser grbl fan buttons off

Custom Buttons:
Fan Control.gz

@Xillius178
Copy link

@Arhimed-Ru

Can you translate the description of the buttons into English?

Thank you

@Arhimed-Ru
Copy link

Arhimed-Ru commented Apr 14, 2018

@Xillius178

Move to center of image
function: see the place for a rectangular picture
(If necessary, you can change
S - laser power
F - travel speed)

Bypassing perimeter
function: see the place for a rectangular picture

Zero position

Bypassing circle X
function: see the place for a circle picture with a small diameter [right-left]

Move to the bottom left corner of the image

Disable laser mode $32=0
function: to have a possibility scorch points with stops,
see the laser point and adjust focus.

Enable laser mode $32=1

Turn off the laser

Turn on the laser
(If necessary, you can change
S - laser power)
.....
Bypassing circle XY (diagonal)

@Venkes
Copy link

Venkes commented Apr 15, 2018

le3 rondom

This button draws a rectangular shape around the image area. Alter S100 on the thirth line to make the laser spot visible but not burning! A greater value means more laser power and vice versa.


G0 X[left] Y[bottom] F3000
F2000
M4 S100
G1 X[left] Y[top]
G1 X[right] Y[top]
G1 X[right] Y[bottom]
G1 X[left] y[bottom]
M5
G0 X0 Y0 F3000

@bearded1der
Copy link

Thanks for sharing your config @Arhimed-Ru! It's basically everything I was using, plus some!

@arkypita Maybe we could see about adding a method for changing custom button order in a future release to make things more easily customizable? Drag and drop maybe?

@Koctetcav
Copy link

Прекрасно. Спасибо большое. Вот только лазер не квключается отдельно кнопкой.

@Venkes
Copy link

Venkes commented Apr 23, 2018

С меня включается лазер. Может быть, M3 вместо M4 с вами?

I turn on the laser with M4. Maybe M3 instead of M4 for you?

@Koctetcav
Copy link

Лазер включается только при перемещении. А мне нужно чтоб при простои моторов включать лазер!?

@Koctetcav
Copy link

Я и M3 и M4 пробовал.

@Venkes
Copy link

Venkes commented Apr 24, 2018

лазер переходит в нижний левый угол области гравировки, затем лазер создает прямоугольник вокруг области, подлежащей гравировке, а затем выключает лазер и затем переходит в исходное положение. В моем случае лазер включается с M4 (третья строка) и выключается M5 (восьмая линия).
Ps. Надеюсь, Google переведет все хорошо переведенное!

the laser moves to the lower left corner of the engraving area, then turns on, then the laser creates a rectangle around the area to be engraved, and then turns off the laser and then goes back to its original position. In my case, the laser turns on with M4 (third line) and M5 turns off (eighth line).

@arkypita
Copy link
Owner Author

@Koctetcav @Venkes please keep writing english inside english topic!

@Venkes
Copy link

Venkes commented Apr 29, 2018

@arkypita yes you are right! I'm sorry. I've editted my comments.

@marceneirojovem
Copy link

the cheap laser module from China, can operate only half hour, after what its necessary a time for cold. Is it possible a custom button to make a pause after this operation time ? Anybody can help ?
Thank you

@StuartB4
Copy link

There already is a pause button.
Press the hand to pause and the man to continue.
untitled5

@marceneirojovem
Copy link

I think I did the wrong question.
I want a automatic pause after 45 minutes and a automatic return after a 30 minutes of cooling time.
Something like a macro in Gcode to automates the process. Excuse me for the bad english
Thank You

@bearded1der
Copy link

G4 command is for "Dwell" function which could be added to the middle of a GCode file and theoretically do what you want it to. The operator is in milliseconds for GRBL though. Not sure what the max wait time would be. You could export to a file from LaserGRBL and then modify it manually and then stream it. The streamlined nature of the GCode LaserGRBL generates might make it difficult to decide where to put the pauses though, unless you only did one halfway through a raster engraving.

Would probably be a fairly simple addition if you wanted to submit a feature request to code it in to add those automatically at different intervals. Not sure how useful it would be for most people, but who knows.

@marceneirojovem
Copy link

Thank you Bearded1der .
I think it would be useful for everyone who has a cheap chinese laser module.

@arkypita
Copy link
Owner Author

For who like custom buttons try the latest version
Hope you love it!

@StuartB4
Copy link

Thanks. Nice idea, now I can remove 1 custom button and do Laser On and Off with just 1.

@1estrider
Copy link

1estrider commented Jul 31, 2018

For Z-axis on my laser i had to make a code for up:

G91
g0Z[jogstep]F[jogspeed]
G90

and down:

G91
G0Z[0-jogstep]F[jogspeed]
G90

Can you make a button that makes a laser go in the middle of the project for positioning?

@1estrider
Copy link

How do you apply .gz file?

@arkypita
Copy link
Owner Author

arkypita commented Aug 27, 2018

right click on custom button area and select "import" from menu

untitled5

@fantilator
Copy link

fantilator commented Sep 9, 2018

My standard button to always start with is my "general reset"

It does a reset of my machine, does homing and then goes to the center of my table with focusing point on my tabletop.

$X (Reset Machine )
$H (Unlock )
M5 ( M05:Spindle Stop )
G91 ( G91:Incremental programming )
G0 X-510 y-460 Z-53.6 ( go to center of table )
G92 X0 Y0 Z0 ( Make this my work zero point
G28.1 ( to ensure the machine goes back here)
M3 S200 ( M03:Spindle On at 200mW for zeroing my workpiece )

@stan1707
Copy link

stan1707 commented Apr 8, 2020

Hallo hat jemand Code zum genauen umfahren des Bildes.
Der oben mit rechteckig funktioniert bei mir nicht

@distebia
Copy link

distebia commented Apr 20, 2020

Ciao a tutti! Questi sono i miei pulsanti, il codice che ho preso quasi tutto dai tuoi contributi, ma mi sono concentrato sul dargli una grafica piuttosto accattivante.
Le immagini sono .png con sfondo trasparente, quindi il colore posteriore cambierà in base al tema.

Immagine

CustomButtons.gz

Per installare pulsanti personalizzati basta scaricare questo file, avviare LaserGRBL, fare clic con il tasto destro nell'area dei pulsanti personalizzati, selezionare "import" dal menu e aprire il file scaricato.

Ciao, potresti condividere i file .png contenuti nei vari pulsanti? ne vorrei creare altri tipo taglia immagine utilizzando quello esistente. Potresti anche implementare la funzione copia e incolla sui pulsanti. lo copio e lo modifico. Grazie

@arkypita
Copy link
Owner Author

Ciao, potresti condividere i file .png contenuti nei vari pulsanti?

Eccoti accontentato.
CbIcons.zip

@distebia
Copy link

grazie

@LoganOn1990
Copy link

Hi a scripts not work for my :( Script from this site (Turn on laser for focusing) not work in my Laser 5.5MW.
Script button > https://imgur.com/arCImEH
And this is my Laser Module >https://imgur.com/9S3Fa3S
And front Photo > https://imgur.com/CETRiOC

Please help my :( I can't focus my laser ....

@Errol1951
Copy link

I'm no expert with code but I just turn on laser with a low setting and it works for me I think I use something like s30

@LoganOn1990
Copy link

I'm no expert with code but I just turn on laser with a low setting and it works for me I think I use something like s30

Thank you i change from S5 to S30 :)

@LoganOn1990
Copy link

LoganOn1990 commented Apr 22, 2020 via email

@Otttomann
Copy link

I was working on a project and lost my track . I would like to set up a button, like set home button, to set center point of the image. Can someone please help me how to create this custom button?

@StuartB4
Copy link

StuartB4 commented Apr 30, 2020

Function: Find center of prepared image.
Click On - Click Off.
Type: TwoStateButton.
Make sure you are connected and your image is prepared for burning, then use the button.
This button is only valid if you have GRBL 1.1.

GCode box 1:

$32=0
G0 X[left+width/2]
Y[bottom+height/2]
G1 M4 S5 F900

GCode box 2:

$32=1
G0 X0 Y0
M5

Tool Tip: Find Center Of Image. Click On - Click Off.

Enabled: Idle Program.

ooooooooooooooooooo

@arkypita
Copy link
Owner Author

arkypita commented Jul 4, 2020

I have a better code for Focusing Button.

With Laser Mode ON ($32=1) M3 is not enough to turn on the laser at low power, because Laser Mode prevent turn on laser without movement.

This is why usually in custom button code you can see codes that turn off laser mode before activating the laser, and then re-enabling it on releasing the button.

This is often the cause of problems when you don't remember to release the button and, for example, start a job. (the job start with laser mode disabled).

This code gets the low power on of the laser, but without the need to turn off the laser mode.

106927889_562671997736561_5426558600326299450_n

I have updated my suggested custom button set: CustomButtons.gz

@Otttomann
Copy link

Otttomann commented Jul 6, 2020 via email

@Fishenizer
Copy link

Hello, I'm new and not an expert but i found this software awesome. Thank you @arkypita for this. I just wante ask someone of you if it's possible to control/customize the space between zero point (home) and where the laser start to draw the image . this would make the space on the drawing surface more efficent. in few words: looking at the image i attached if i want to move this draw in the arrow direction ...
Thank you!

image

@StuartB4
Copy link

StuartB4 commented Dec 1, 2020

In Target image settings, make sure there are no numbers in the offset boxes.
image

@Fishenizer
Copy link

ditto . as you can see but i have anyway it with unwanted space
image
image
any clues?

@arkypita
Copy link
Owner Author

arkypita commented Dec 1, 2020

The space is in the original image: edit the original image to not have space.
Or use "auto trim" button in LaserGRBL raster import form.

@gmmanonymus111
Copy link
Contributor

You could try using the auto crop feature (the second button from the right under the preview image during raster import), that can get rid of unnecessary white space

@Fishenizer
Copy link

Fishenizer commented Dec 1, 2020 via email

@arkypita
Copy link
Owner Author

arkypita commented Dec 1, 2020

The autocrop is based on the pixels that are white in the image, and by white I mean white. If the image has dirt, or is yellowish, the autocrop does not make miracles. You have a manual crop near auto crop, not so easy to use but can crop better then autocrop.

Your feature request is not easy to do, LaserGRBL is not a graphic editor.

Ciao e grazie, Arkypita

@AndyStew538
Copy link

CUSTOM BUTTON:- SET CENTER

Find the CENTER of your job by moving to it by jogging
Press this button to SET.
Laser then moves to bottom right so you can set the "ZERO POINT"
Press the ZERO POINT button to set.
Test by moving to center and back...

Some clean up of my hasty coding may be required... thanks if you can help.
I would like to have the ZERO POINT set automatically but I get "code errors" so I've left it as it stands.

M5 S0
$J=G91X -[width/2]F4000
$J=G91Y -[height/2]F4000

Caption:- Set Center
Tool Tip:-Go to Job Center then press this Button

@regpye
Copy link

regpye commented Mar 22, 2021

Arhimed_CustomButtons.gz
image 2

Here is another button that allows you to cut around an image with a 1mm border from the image.
Button can be changed to a different size border and also the power settings that suit your laser.
This button will do 3 passes and if you have a Z axis, will move down between passes and return to starting level when finished.

(this will outline 1mm around the loaded image)
G0 X[left-1] Y[bottom-1]
M3 S1000 F250 (cutting settings, change to suit your machine)
G1 Y[top+1]
G1 X[right+1]
G1 Y[bottom-1]
G1 X[left-1]
M5

(If you have Z travel, then this will take Z down 1mm)
G91 (use relative coordinates)
G0 Z-1 (sinks the Z axis, 1mm)
G90 (use absolute coordinates)

(Making second cut)
G0 X[left-1] Y[bottom-1]
M3 S1000 F250
G1 Y[top+1]
G1 X[right+1]
G1 Y[bottom-1]
G1 X[left-1]
M5

(If you have Z travel, then this will take Z down another 1mm)
G91 (use relative coordinates)
G0 Z-1 (sinks the Z axis, 1mm)
G90 (use absolute coordinates)

(Making third cut)
G0 X[left-1] Y[bottom-1]
M3 S1000 F250
G1 Y[top+1]
G1 X[right+1]
G1 Y[bottom-1]
G1 X[left-1]
M5

(Moving back to original level before cutting)
G91 (use relative coordinates)
G0 Z2 (go back Z axis, 2mm)
G90 (use absolute coordinates)
G90Z0 (resetting Z to zero position)

@Meeeeeeeek
Copy link

I have the image cropped and placed well, I just want to be able to start the engraving from a certain point within the image and not from the bottom corner.

Does anyone have a button to set start point?

@gisep
Copy link

gisep commented Jan 15, 2022

Hi guys,
I use this button to FINE FOCUSING the laser:
WhatsApp Image 2022-01-15 at 10 16 46

This button does an horizontal row of 11 points.
The first is an impulse of 0,5 seconds, then 0,4, 0,3, 0,26, 0,22, etc until the last at 0,06 seconds.
At the end, the command sets a new origin 2mm up on the Y-axis.

After doing this 11 points by pushing the button, you can flip the board and count the number of points perforating it. More are the points coming out from behind the board, more the laser is focused to cut.
You can launch it several times, every time changing by a fraction the distance of the laser, and then find the best distance by seeing the bottom of the board.
You can also verify the focusing (in a rougher way) by seeing how much big are the points on the top, without moving the board.
Of course if you have to cut, is better to control how many points cross the board; if you have to engrave, it is enough to control the top of the board (if you want more sharpness, they have to be thin)

You can adjust the power of the laser by opening the g-code with a text editor and using the "search and replace" function (for ex. ctrl+h in the notepad)
immagine

This is the code:
g92x0y0 f1000 g1 m3 s600 g4 p0.5 s0 x2 g4 p0.1 s600 g4 p0.4 s0 x4 g4 p0.1 s600 g4 p0.3 s0 x6 g4 p0.2 s600 g4 p0.26 s0 x8 g4 p0.1 s600 g4 p0.22 s0 x10 g4 p0.1 s600 g4 p0.18 s0 x12 g4 p0.1 s600 g4 p0.15 s0 x14 g4 p0.1 s600 g4 p0.12 s0 x16 g4 p0.1 s600 g4 p0.10 s0 x18 g4 p0.1 s600 g4 p0.08 s0 x20 g4 p0.1 s600 g4 p0.06 s0 g4 p0.1 y2 x0

Feel free to ask if you have more questions.

@kostakis45
Copy link

Arhimed_CustomButtons.gz
image 2

Here is another button that allows you to cut around an image with a 1mm border from the image. Button can be changed to a different size border and also the power settings that suit your laser. This button will do 3 passes and if you have a Z axis, will move down between passes and return to starting level when finished.

(this will outline 1mm around the loaded image) G0 X[left-1] Y[bottom-1] M3 S1000 F250 (cutting settings, change to suit your machine) G1 Y[top+1] G1 X[right+1] G1 Y[bottom-1] G1 X[left-1] M5

(If you have Z travel, then this will take Z down 1mm) G91 (use relative coordinates) G0 Z-1 (sinks the Z axis, 1mm) G90 (use absolute coordinates)

(Making second cut) G0 X[left-1] Y[bottom-1] M3 S1000 F250 G1 Y[top+1] G1 X[right+1] G1 Y[bottom-1] G1 X[left-1] M5

(If you have Z travel, then this will take Z down another 1mm) G91 (use relative coordinates) G0 Z-1 (sinks the Z axis, 1mm) G90 (use absolute coordinates)

(Making third cut) G0 X[left-1] Y[bottom-1] M3 S1000 F250 G1 Y[top+1] G1 X[right+1] G1 Y[bottom-1] G1 X[left-1] M5

(Moving back to original level before cutting) G91 (use relative coordinates) G0 Z2 (go back Z axis, 2mm) G90 (use absolute coordinates) G90Z0 (resetting Z to zero position)

I know that It's been 2 years after that post but I would like to ask anyway.
Is there a way to make my Z axis go down at the and of every pass?
The code you shared is so useful and thank you for that,But I would like the Z axis go down on the actual image.

@GrahamP67
Copy link

Some great buttons here, thanks everyone.

Does anyone have custom code to trace a border around an image (5 mm gap) that traces the actual image outline rather than just drawing a box / frame please?

@Davoddd
Copy link

Davoddd commented Aug 30, 2023

Hi all, is there a way to use the emergency button to not only pause the machine but also the program software. What happens now is the machine will pause but the software on my laptop continues, because of that after resetting the emergency stop the machine and software are out of sink.

Any help is welcome :)

@HeldHannes
Copy link

HeldHannes commented Sep 28, 2024

Hi, I have made me a custom button set with blue-gray icons, that matches to the dark theme.

Preview:
Custom-Blue-Button-Set-Hero

The buttons contain symbols (and code) for: Framing, Corners, Center, Blinking and some more.
Hope you like them.
(Note: I'm from Germany, so for example LO means Links-Oben=Left Top, and so on, but you can rename them easily)
If you have an idea/request for more custom buttons, for this or another design, please contact me
(but please be patient - I may check in and answer only once a month or less...)

zbn-File:
Custom-Blue-Button-Set-Hero.gz

NOTE:
If I export my Button-Settings, LASERGRBL saves them as *.zbn-File.
I had to rename the Export-File from *.zbn to *.gz for uploading.
I hope the file still works, if you rename it back to *.zbn after download.
I don't know how to directly export the file to *.gz.

Enjoy

@arkypita
Copy link
Owner Author

Thank you @HeldHannes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests