arkypita / LaserGRBL

Laser optimized GUI for GRBL
http://lasergrbl.com
Other
1.25k stars 495 forks source link

Share your custom buttons Here! #306

Open arkypita opened 6 years ago

arkypita commented 6 years ago

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!

Stankovo commented 5 years ago

Здравствуйте. Вы имеете в виду этот значок? Centr

moorsey commented 5 years ago

Hi @Stankovo , afraid not, can you see the one I linked to?

Thanks for the one you posted however, I could make something work with that I am sure!

Just a shame existing ones can't be extracted

Many thanks

Stankovo commented 5 years ago

Простите, немного не понимаю вас.

jillionairedesigns commented 4 years ago

Just started working with this program. Is it possible to create a custom button that will move the laser to the leftmost or rightmost point that will be burned? I have a large circular image that exceeds the size as a single file. I would like to be able to line up the leftmost or rightmost point of the circle to burn in phases (in quarters). Combined with the center point of the circle, I should be able to execute?

Errol1951 commented 4 years ago

I have just joined the site and the help available is fantastic thank you

arkypita commented 4 years ago

Hi all! These are my buttons, the code I took almost everything from your contributions but I focused on giving him some rather captivating graphics. The images are .png with transparent background, so the back color will change according to the theme.

image

CustomButtons.gz

To install custom buttons just download this file, start LaserGRBL, right click in custom button area, select "import" from menu, and open the downloaded file.

stan1707 commented 4 years ago

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

distebia commented 4 years ago

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 commented 4 years ago

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

Eccoti accontentato. CbIcons.zip

distebia commented 4 years ago

grazie

LoganOn1990 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Yes its work ! Thank you ;)

śr., 22 kwi 2020, 15:36 użytkownik Errol1951 notifications@github.com napisał:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arkypita/LaserGRBL/issues/306#issuecomment-617783866, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJLWF2C3IIGRJDQM76AJK3RN3XHVANCNFSM4EWLAJUA .

Otttomann commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Thank you so much for sharing this!

On Sat, Jul 4, 2020 at 3:00 AM arkypita notifications@github.com wrote:

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.

[image: 106927889_562671997736561_5426558600326299450_n] https://user-images.githubusercontent.com/8782035/86508045-21c1ea00-bddd-11ea-81de-156e826f69e0.png

I have updated my suggested custom button set: CustomButtons.gz https://github.com/arkypita/LaserGRBL/files/4872260/CustomButtons.gz

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arkypita/LaserGRBL/issues/306#issuecomment-653736075, or unsubscribe https://github.com/notifications/unsubscribe-auth/APM24H6R4JZ2CBJL6OVFBILRZ3OSTANCNFSM4EWLAJUA .

Fishenizer commented 3 years ago

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 commented 3 years ago

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

Fishenizer commented 3 years ago

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

arkypita commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Grazie,

Con l'autocrop è molto meglio anche se ottengo lo zero sull'asse X e qualche cm su quella Y, meglio che nulla 🙂 . Potrebbe essere una feature request quella di poter spostare il disegno a proprio piacimento sulla griglia una volta settato lo zero assoluto ?

Complimenti ancora per il software davvero bellissimo!

Luca


Da: Alex notifications@github.com Inviato: martedì 1 dicembre 2020 15:01 A: arkypita/LaserGRBL LaserGRBL@noreply.github.com Cc: Utonto Utonto@fishenizer.com; Comment comment@noreply.github.com Oggetto: Re: [arkypita/LaserGRBL] Share your custom buttons Here! (#306)

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/arkypita/LaserGRBL/issues/306#issuecomment-736569891, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR6PVJPYJNF3FRM4TTVJGSTSSTZJ7ANCNFSM4EWLAJUA.

arkypita commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 month ago

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 commented 1 month ago

Thank you @HeldHannes