chatgpt

Alle andere vragen over zelfbouw machine`s kunnen hier terecht.

Moderator: Moderators

Leeuwinga
Berichten: 2977
Lid geworden op: 29 apr 2007 15:00
Locatie: Roden
Contacteer:

chatgpt

Bericht door Leeuwinga »

wie gebruikt dit wel eens ?
heb al enkele programma,s gemaakt voor arduino
hier voorbeeld van g kode programma gemaakt door chatgpt

make g kode for circel 120mm with 6 holes 8mm on circel 80mm

2 / 2

Here is an example of G-code for a circle with a diameter of 120mm and 6 holes with a diameter of 8mm arranged in a circle with a diameter of 80mm:

scss
Copy code
G17 (select XY plane)
G20 (set units to inches)
G90 (set to absolute positioning)
G0 Z0.25 (move to a safe Z height)
G0 X0 Y0 (move to X0 Y0)
G2 J80 I0 (draw a circle with a diameter of 80mm, I specifies the X offset of the center of the circle and J specifies the Y offset)
G0 Z0.1 (lower the Z to start drilling the holes)
G81 R0.04 Z-0.05 (specify drilling cycle with R clearance, Z depth)
X0.354 Y0.354 (position the drill over the first hole)
G80 (start drilling cycle)
G0 Z0.25 (retract the drill)
X0.708 Y0.0 (position the drill over the second hole)
G80 (start drilling cycle)
G0 Z0.25 (retract the drill)
X0.354 Y-0.354 (position the drill over the third hole)
G80 (start drilling cycle)
G0 Z0.25 (retract the drill)
X-0.354 Y-0.354 (position the drill over the fourth hole)
G80 (start drilling cycle)
G0 Z0.25 (retract the drill)
X-0.708 Y0.0 (position the drill over the fifth hole)
G80 (start drilling cycle)
G0 Z0.25 (retract the drill)
X-0.354 Y0.354 (position the drill over the sixth hole)
G80 (start drilling cycle)
G0 Z0.25 (retract the drill)
G0 X0 Y0 (move back to X0 Y0)
G28 X0 Y0 (home X and Y axes)
G28 Z0 (home Z axis)
G0 Z0.25 (move to a safe Z height)
M30 (program end and reset)
Note that this code assumes you are using a CNC machine that supports G-code and drilling cycles. The machine settings such as feed rate, speed, and tool diameter should be adjusted based on your specific setup.

EDIT>Serum: email als platte tekst verwijderd
Gebruikersavatar
joopbos
Donateur
Berichten: 902
Lid geworden op: 12 mar 2008 19:34
Locatie: Dordrecht
Contacteer:

Re: chatgpt

Bericht door joopbos »

Al wel mee "gespeeld" Nog niet aan gcode prog gedacht :mrgreen:
Leeuwinga
Berichten: 2977
Lid geworden op: 29 apr 2007 15:00
Locatie: Roden
Contacteer:

Re: chatgpt

Bericht door Leeuwinga »

Voor de niet kenners, Chatgpt is een AI programma (niet die ai) .
het is een open source en dus gratis verkrijgbaar en te gebruiken.
je kunt het voor allerlei programma strukturen gebruiken.
Gewoon een openbaring....
Gebruikersavatar
hugo stoutjesdijk
Donateur
Berichten: 11995
Lid geworden op: 02 mar 2011 17:04
Locatie: elst (u)
Contacteer:

Re: chatgpt

Bericht door hugo stoutjesdijk »

Ik was er wel nieuwsgierig naar.
Maar heb je het ook gefreest?
Volgens mij gaan er wat zaken niet helemaal lekker.
Waarom draait dat ding een volle cirkel op Z0.25 ??
Vervolgens een G80 wat naar mijn menig toch einde boorcyclus is, maar dat kan ik verkeerd hebben.
En dan, de positie van die gaten liggen zo te zien niet in de buurt van die cirkel van 80.
En zie ik niets terug van die cirkel 120.
Je vraagt duidelijk mm en hij gebruikt G20, inches

Kortom, chatgpt moet nog even op cursus.
(maar zo slecht als dit heb ik in m'n loopbaan als cursusleider voor CNC besturingen nog niet mee gemaakt. :lol: )

Nu vind ik je vraagstelling ook niet heel duidelijk, dat scheelt misschien ook.
Laatst gewijzigd door hugo stoutjesdijk op 10 feb 2023 12:26, 1 keer totaal gewijzigd.
Ik ben voor meer techniek op school, maar dan wel vanaf groep 1 basischool.
Leeuwinga
Berichten: 2977
Lid geworden op: 29 apr 2007 15:00
Locatie: Roden
Contacteer:

Re: chatgpt

Bericht door Leeuwinga »

De gebraden kippen vliegen je zomaar niet in je bekkie!
Ja, als je een beetje onvolledige vraag stelt krijg je een overeenkomstig antwoord.
Het is ook zomaar een losse flodder naar Chatgpt.
Mijn vermelding hier is ook maar om aan te geven dat dit bestaat een ieder kan
zelf experimenteren.
Het succes van Chatgpt is overweldig ,ik hoor dat dat ze binnen 5 dagen al op 1 miljoen
gebruikers zaten.
Gebruikersavatar
hugo stoutjesdijk
Donateur
Berichten: 11995
Lid geworden op: 02 mar 2011 17:04
Locatie: elst (u)
Contacteer:

Re: chatgpt

Bericht door hugo stoutjesdijk »

Heb je gelijk in, wel een uitdaging om de vraag zo te stellen dat je wel een bruikbaar voorbeeld krijgt.

En vergeet niet dat de voorbeelden geschreven tekst in de cloud bijna oneindig zijn, ik denk dat de handige voorbeelden G-code redelijk beperkt zijn. (en die moeten ook nog eens foutloos zijn, want veel code wordt op forums gepost omdat het niet werkt, als die dat allemaal als voorbeeld gaat nemen... :| )
Ik ben voor meer techniek op school, maar dan wel vanaf groep 1 basischool.
Kjelt
Donateur
Berichten: 6259
Lid geworden op: 14 jun 2007 21:51
Locatie: Eindhoven

Re: chatgpt

Bericht door Kjelt »

Interessant maar ik wacht nog even tot chatgpt een iq van 100 of hoger heeft. :lol:

Afbeelding
Gebruikersavatar
DaBit
Donateur
Berichten: 11017
Lid geworden op: 05 dec 2012 13:48
Locatie: Oss

Re: chatgpt

Bericht door DaBit »

Och, dat duurt geen jaar meer...
De belangrijkste wet in de wetenschap: 'hoe minder efficient en hoe meer herrie, hoe leuker het is'
Kjelt
Donateur
Berichten: 6259
Lid geworden op: 14 jun 2007 21:51
Locatie: Eindhoven

Re: chatgpt

Bericht door Kjelt »

DaBit schreef: 10 feb 2023 13:37 Och, dat duurt geen jaar meer...
Over tien jaar weigert chatgpt met ons "domme" koolwaterstofskelet ondersteunde waterzakken te communiceren :mrgreen:
Gebruikersavatar
DaBit
Donateur
Berichten: 11017
Lid geworden op: 05 dec 2012 13:48
Locatie: Oss

Re: chatgpt

Bericht door DaBit »

Ach, dan zijn we nog niet nutteloos hoor:

Afbeelding
De belangrijkste wet in de wetenschap: 'hoe minder efficient en hoe meer herrie, hoe leuker het is'
Gebruikersavatar
serum
Berichten: 5396
Lid geworden op: 08 mar 2008 20:37
Locatie: Zwolle

Re: chatgpt

Bericht door serum »

Leuk!


Me
Is G92 still actively used in CNC machining?

AI
Yes, G92 is still commonly used in CNC machining. G92 is a modal G-code command, which means that it remains in effect until it is cancelled or overridden by another G-code command. It is used to specify a new zero point for one or more axes on the machine, allowing for easy coordinate system changes without physically moving the machine.

For example, G92 X0 Y0 Z0 sets the current position as the new zero point for all three axes, while G92 X10 Y5 Z0 sets the current position as the new zero point for the X and Y axes but leaves the Z axis unchanged.

This functionality is particularly useful in multi-part machining, where different parts of a workpiece may require different zero points. By using G92, CNC operators can quickly and easily change the coordinate system as needed, without having to physically re-position the machine or workpiece.



Me
But isn't G54 and G55 more convenient?

AI
Yes, you are correct! In CNC machining, G54, G55, and other "G54-G59" codes are typically more convenient to use than G92 for setting a new zero point. The G54-G59 codes allow you to save and recall up to six different offset coordinate systems, which is useful for multi-part machining.

For example, you can use G54 to set the zero point for one part, machine it, then switch to another part and set a different zero point using G55. This allows you to easily switch between different parts of a workpiece without having to manually change the zero point each time.

In comparison, G92 is typically used to temporarily change the zero point for a single move or series of moves, after which the original zero point is restored. While G92 can still be useful in certain cases, the G54-G59 codes are generally more convenient and widely used in CNC machining.
MeMoRy
Berichten: 727
Lid geworden op: 17 okt 2022 09:40
Locatie: Utrecht

Re: chatgpt

Bericht door MeMoRy »

Chatgpt heeft het regelmatig nèt fout, maar kan lullen als brugman. Ook mijn ervaring.
Getraint door menseninput, dus net zo foutgevoelig :lol:
Gebruikersavatar
hugo stoutjesdijk
Donateur
Berichten: 11995
Lid geworden op: 02 mar 2011 17:04
Locatie: elst (u)
Contacteer:

Re: chatgpt

Bericht door hugo stoutjesdijk »

Kjelt schreef: 10 feb 2023 12:44 Interessant maar ik wacht nog even tot chatgpt een iq van 100 of hoger heeft. :lol:
Vraag de eerste de beste IQ > 140 eigenaar om een G-code programma te schrijven, komt er ook niks nuttigs uit de eerste paar keer.

Misschien is het voorlopig nuttiger om te vragen wat we vanavond eten, dat vinden de meeste mensen lastiger. (Die G-code komt toch wel uit het CadCam systeem)
Ik ben voor meer techniek op school, maar dan wel vanaf groep 1 basischool.
MeMoRy
Berichten: 727
Lid geworden op: 17 okt 2022 09:40
Locatie: Utrecht

Re: chatgpt

Bericht door MeMoRy »

Als ik trouwens naar die eerste g code kijk
Leeuwinga schreef: 10 feb 2023 11:36 Here is an example of G-code for a circle with a diameter of 120mm and 6 holes with a diameter of 8mm arranged in a circle with a diameter of 80mm:

[...]
G20 (set units to inches)
[...]
G2 J80 I0 (draw a circle with a diameter of 80mm, I specifies the X offset of the center of the circle and J specifies the Y offset)
Gaat dat niet direct verkeerd? 80 inch is iets groter dan gewenst zeg maar...
80mm is ook niet 120mm..
Leeuwinga schreef: 10 feb 2023 12:11 Het succes van Chatgpt is overweldig ,ik hoor dat dat ze binnen 5 dagen al op 1 miljoen gebruikers zaten.
Dat komt volgens mij door sociale media en omdat scholieren er al heel snel achter kwamen dat ze chatgpt hun huiswerk voor ze kon laten maken.
Plaats reactie