Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 12:41:13 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Putting pause in gcode?
Pages: 1 2 »   Go Down
Print
Author Topic: Putting pause in gcode?  (Read 553 times)
0 Members and 1 Guest are viewing this topic.
Duc748
Active Member

Offline Offline

Posts: 31


View Profile
« 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
Logged
BR549
Active Member

Online Online

Posts: 2,556


View Profile
« 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
Logged
Duc748
Active Member

Offline Offline

Posts: 31


View Profile
« 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?
Logged
Hood
Active Member

Offline Offline

Posts: 17,362


Carnoustie, Scotland


View Profile
« 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 Grin

Hood
Logged
BR549
Active Member

Online Online

Posts: 2,556


View Profile
« 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
Logged
Duc748
Active Member

Offline Offline

Posts: 31


View Profile
« 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? Grin
Logged
BR549
Active Member

Online Online

Posts: 2,556


View Profile
« Reply #6 on: December 27, 2010, 04:39:30 PM »

Take yourself out for lunch (;-)

(;-) TP
Logged
Hood
Active Member

Offline Offline

Posts: 17,362


Carnoustie, Scotland


View Profile
« 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
Logged
Duc748
Active Member

Offline Offline

Posts: 31


View Profile
« 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
Logged
Hood
Active Member

Offline Offline

Posts: 17,362


Carnoustie, Scotland


View Profile
« 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
Logged
Pages: 1 2 »   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!