586,108 active members*
3,038 visitors online*
Register for free
Login

Thread: Warmup gcode

Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2011
    Posts
    215

    Warmup gcode

    Well, I'm trying to create a warmup routine that I can run on my CNC router in the mornings. I've created a pattern that the machine will follow several times with increased spindle speed and feed rates on each pass.
    The part Im having problems with is I would like it to do a reference all first, run the warmup gcode, then park at the end.
    Is it possible to add this into the gcode or would I have to call a script somehow?
    I'm using Mach3, 2010 screenset, windows xp, a Geiko 540, and a superPID2.

  2. #2
    Join Date
    Aug 2011
    Posts
    2517
    you can use G28 to reference it on the first line of your program. but many machines need a manual reference before they will go so that may not work in the program.

  3. #3
    Join Date
    Mar 2011
    Posts
    215
    Thank you.

  4. #4
    Join Date
    Mar 2003
    Posts
    35538
    You'll need a macro to load and execute the code.
    But I can simplify a few things.

    Add M884 to your initialization string in General Config and the machine will home when you start it and click Reset.

    And if you add M883 to the end of your warm up code, it will go to the Park position when finished.
    I add M883 to the end of all my g-code.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  5. #5
    Join Date
    Mar 2011
    Posts
    215
    If I can add the M883 at the end why cant I add M884 to the beginning of the Gcode instead of in the config?

    If I do add M884 to the config string will it want to home each time I click reset or just for the first time?

  6. #6
    Join Date
    Mar 2003
    Posts
    35538
    If I can add the M883 at the end why cant I add M884 to the beginning of the Gcode instead of in the config?
    You can. It's just not the way I'd do it. If you do add it to the code, you may need to add a While IsMoving...Wend to the end of M884, to make sure homing is completed before the code starts.

    If I do add M884 to the config string will it want to home each time I click reset or just for the first time?
    There's an option for either. You only want it the first time.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  7. #7
    Join Date
    Mar 2011
    Posts
    215
    I see. If it only does it the first time then that would be the way to go because thats the first thing I do anyway.

    Can you write While IsMoving into the gcode.txt file and Mach3 will understand it?
    I'll have to play with some of this. Not much of a coder as you can tell but it is interesting

Similar Threads

  1. Is a spindle warmup necessary?
    By TXFred in forum Tormach Personal CNC Mill
    Replies: 6
    Last Post: 03-23-2012, 02:26 AM
  2. warmup
    By salemereyes in forum Community Club House
    Replies: 0
    Last Post: 11-08-2010, 05:55 AM
  3. Warmup Program Gcode
    By Phife in forum DIY CNC Router Table Machines
    Replies: 6
    Last Post: 01-09-2010, 02:45 AM
  4. SPINDLE WARMUP
    By CNC_BOB in forum OKK
    Replies: 4
    Last Post: 05-01-2009, 09:32 PM
  5. VF 6 Trying to get to warmup settings
    By SpringKing in forum Haas Mills
    Replies: 7
    Last Post: 09-28-2006, 03:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •