Please check and correct this bit of g code for me

G 25, pauses machine
M0 (SPINDLE ?) displays the text in parenthesis
M100 starts next program

Thought I would try and insert a pause to check spindle before running the program loaded into the machine.
This is my first attempt at G Code after using the centering code so nicely provided by @Aiph5u
Thinking that I can load this, then have it run the carve that I loaded from Easel.
A little reluctant to give it a go without the seal of approval from the big kids.

Hi Tony,
quick reply,
Don’t need G25
M0 pauses the machine. comment needs to start with MSG,
here is how it is implemented in my post:

M0 (MSG, SPINDLE SPEED 12000 RPM, SET DIAL TO 2)

@ChrisM,
Thank you,
Did I miss the restart after the pause, I want to have to push the play button before it starts to carve, or will it do that now?

With the line I gave you above, in your code, it will pause and show a popup box on the screen saying “SPINDLE SPEED 12000 RPM, SET DIAL TO 2” ( you can change it to say whatever you want) and then have 2 buttons - “STOP” and “CONTINUE”.
When you press continue the code will carry on running.

@ChrisM ,
Thanks Chris, mostly am not sure about syntax and which are the best code numbers to use.
Have found in the last day or so, that Chat GPT is a good teacher, I send a bit of code & I guess that GPT recognizes the syntax that 1f wants & ask GPT the code for the next step, it gives back the first code and the next step, fully commented. Am still at a kindergarten stage and do not want to get tiresome here with kiddie questions.
Sent the first line & asked for the second line, & this is the result.
G0 X405 Y316 ; Move to the desired position (from home)
G92 X0 Y0 ; Set the new zero point to X0 Y0

Now I probe Z and run my carve.
Change boards and or bits and probe Z again.
Have tried asking for a whole carve such as a spoon, but so far GPT does not seem to be up for that.
Cheers.

Hey Tony,

wonder why you still think that you can use chatGPT to learn something, after you have made the experience that machine learning black boxes (that are surely not intelligent, so “AI” is misleading) **hallucinate and tell bullshit**.

But that is exactly what I told you three days ago:

  • G0 X405 Y316 is a rapid move to this position in the currently active coordinate system (and relative to home if there is none set), and
  • G92 X0 Y0 can then be used to make this your new workpiece zero. I wrote that exactly. This means ChatGPT that reads the internet all day (and night long) has found it and assumes it is probably the right next line. And all that without asking me or make the correct attribution.

Do you try to use ChatGPT to check if I tell correct things? Even if it may seem to work, it does not and will not work. I tell things because I have the knowledge and I am conscient of what these things mean. ChatGPT has not the knowledge, does not understand what it writes, it just calculates the probablity of the next line based on having integrated (but in no way understood) the content of the internet.

Sandra Wachter, professor and senior researcher in data ethics, artificial intelligence, robotics, algorithms and regulation at the Oxford Internet Institute says, it should not be called “Artificial Intelligence”, but rather “Artificial Stupidity”. And she’s someone that really knows what she’s talking about.

The correct term is not Artificial Intelligence (because these black boxes are not and never will be intelligent, it’s just the human projection that gives the illusion – See ELIZA effect) but Machine Learning.

If you want to learn G-code in a reliable way, you got to try G-code out, i.e. you’ll have to go to the machine and to enter G-code and let the machine execute it. Humans learn by doing, not by chatting with artificial stupidity bots. Every teacher will tell you that you can only learning by doing, not by studying theory alone or by asking others. You need to do something. The best way is to have a project, to tell yourself “I will try to use G-code for a specific function that I need”. It’s this way that you learn the fastest way.

If I was in your place and wanted to learn g-code reliably and quickly, I would consult these documents when you think you need them:

… and for the rest type everything that comes into your mind into the command entry field of the manual data interface, and see what the machine does. If you fear to break something, you can first remove the bit, so that you only “mill air”. You learn only by doing, so simply do!.

@Aiph5u
Ach man, did not mean to tick you off, I go to GPT because I do not want to bore all you big kids. As I said in another post… Dementia .
I was also trying to communicate that GPT was a good tool for learning from.
When in '89 & '90 when I took a course in C language it was called machine learning and fuzzy logic, I have long forgotten the coding, mainly because I had designed and was selling a construction estimating program when Windows came out & I just could not afford to port the code into Boy Bill’s Basket, likely because the programmer that I was paying to code it gave me thousands of lines of uncommented spaghetti code. I got ticked off and went and started a rock & roll band. refused to learn anything new about computers, kept earning my living using the program I designed in Turbo Pascal, shoulda insisted on it being coded in C.
Anyroad was in the playhouse last eve til 9 o’clock and was tickled pink to be using the coding you had shown me.
Now it’s time for my seniors noon nap.
PS used to play in a few bands but my ears are blown and my fingers shake so it sounds like tremulo.