Hello Guest it is March 29, 2024, 04:24:45 AM

Author Topic: Putting pause in gcode?  (Read 5959 times)

0 Members and 1 Guest are viewing this topic.

Putting pause in gcode?
« on: December 27, 2010, 02:54:55 PM »
Hi All,

I have a cutting project that is nested on 8 off 2440mm x 1220mm sheets.
Rather than load the 8 different gcode files I would rather group the gcode together, and insert a pause and a message to come up on Mach saying change sheet.
Is this at all possible?? if so can someone please help out?

Putting the g code together and inserting a pause is not the problem, its the message on mach screen i dont know how to implement this.

Rick

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Putting pause in gcode?
« Reply #1 on: December 27, 2010, 03:33:29 PM »
There are several options depending on your message needs.

Simple reminder in the MACH message window that pops up just before the hold

More pronouned VB window that pops up in the center of your screen

Dedicated Mach full screen page that defines your message.

Hope that helps(;-) TP
Re: Putting pause in gcode?
« Reply #2 on: December 27, 2010, 03:47:06 PM »
Thanks for your reply, I think the 2nd option would be best.
How would i go about putting this work..where do I start?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Putting pause in gcode?
« Reply #3 on: December 27, 2010, 04:12:39 PM »
Open notepad and type something like this

MsgBox("Please change sheet then press OK")

You can then save it in the macro folder of your profile with a name of m1234.m1s or similar, then insert m1234 in the code where you want it to happen and it will pop up a box on screen than gives you that message.
I dont think you will need a M1 in the macro or code as it should be happy enough to just wait for you to press the OK but as soon as you press it it will continue I think, so make sure you have the sheet in place before pressing it ;D

Hood

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Putting pause in gcode?
« Reply #4 on: December 27, 2010, 04:29:12 PM »
Yep Hood has it. Just make sure you have moved the machine over so you have good entry to the work area Before you park the machine

BUT now you get the $20 lecture (;-) I do NOT recommend allowing the operator to get inside the machine work area during a "SOFT" hold.

Safety First, (;-) TP
Re: Putting pause in gcode?
« Reply #5 on: December 27, 2010, 04:33:00 PM »
ok thanks for the advise..will try that...PS.where do I send the $20? ;D

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Putting pause in gcode?
« Reply #6 on: December 27, 2010, 04:39:30 PM »
Take yourself out for lunch (;-)

(;-) TP

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Putting pause in gcode?
« Reply #7 on: December 27, 2010, 04:48:11 PM »
I agree regards the safety as well, suppose it all depends on how the sheet is loaded as to whether the operator could be in harms way, I certainly dont go near my lathe or mill unless the spindle at the minimum is hardware disabled.

Hood
Re: Putting pause in gcode?
« Reply #8 on: December 28, 2010, 10:03:20 AM »
Hood,

Tried what you said..all works apart from when the gcode is loaded the script comes up before you can run the program, is there away to resolve this?
Rick

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Putting pause in gcode?
« Reply #9 on: December 28, 2010, 10:11:17 AM »
I presume you have it placed in the appropriate part of the code and not at the beginning?
If so then it sounds like you are needing to go to General Config and choose "Ignore M codes whilst loading"

Hood