Results 1 to 7 of 7

Thread: G-Code to turn on and off router, non-spindle

  1. #1
    Registered
    Join Date
    Dec 2005
    Location
    US
    Posts
    42
    Downloads
    0
    Uploads
    0

    G-Code to turn on and off router, non-spindle

    Has anyone set up a macro or some other way to have the g-code turn on a regular router at the beginning of a job and turn it off afterwards?

    I have PracticalCNC Table and WinCNC control software.

    I tried a search but found nothing. Was thinking you could leverage off of the cooling fluid pump on and off commands and hardware....

    Has anyone tried this?

    Is there something like this on the market already?

    Thanks in advance.

    Sam


  2. #2
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,952
    Downloads
    0
    Uploads
    0
    What is wrong with using the M3/M4/M5 ?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design (Skype Avail).

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  3. #3
    Registered
    Join Date
    Dec 2005
    Location
    US
    Posts
    42
    Downloads
    0
    Uploads
    0
    That would work as well, but I don't have a spindle and will have to buy/build a power outlet controlled by the controller software and hardware.

    With all the Porter Cable and Bosch router tables out there, I didn't want to reinvent the wheel here.....

    Thanks for the response.

    Sam


  4. #4
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,295
    Downloads
    0
    Uploads
    0
    It's as simple as wiring a relay to a 5V output pin and using M3/M5 to toggle the pin.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

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


  • #5
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,952
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by ger21 View Post
    It's as simple as wiring a relay to a 5V output pin and using M3/M5 to toggle the pin.
    ..and I thought I had been missing something
    Al.
    CNC, Mechatronics Integration and Custom Machine Design (Skype Avail).

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  • #6
    Gold Member dertsap's Avatar
    Join Date
    Oct 2005
    Location
    canada
    Posts
    3,877
    Downloads
    0
    Uploads
    0
    http://cgi.ebay.com/CNC-PLASMA-ROUTE...742.m153.l1262

    this guy sells great stuff and for the price this saves a lots of messing around
    Ive got his breakout board with the relays and it works flawlessly
    A poet knows no boundary yet he is bound to the boundaries of ones own mind !! ........
    http://microcarve.microcarve.biz/


  • #7
    Registered
    Join Date
    Oct 2008
    Location
    Australia
    Posts
    6
    Downloads
    0
    Uploads
    0

    Unhappy Me too

    I am also having a problem with the M3/M5 codes.
    I can turn the router on via a relay that is attached to pin 1 and ground of the BOB.
    However, unless I use a whole program of M3s the router turns off as soon as the M3 code has been executed. I don't need to issue an M5 at all.
    I am a complete newbie at CNC, so it is probably a tiny tick that I have failed to put somewhere in Mach3.
    Any assistance would be appreciated'

    I just discovered that if I enter the M3 code in the MDI window then the router will stay turned on until it is turned off. But it still won't work in a program.
    Last edited by WasteOfSpace; 10-24-2008 at 11:36 PM. Reason: New discovery


  • Similar Threads

    1. T1..why does the spindle not turn?
      By carbidecraters in forum Mazak, Mitsubishi, Mazatrol
      Replies: 1
      Last Post: 09-05-2008, 10:32 PM
    2. Need Help!- spindle wont turn
      By jkinz56 in forum Milltronics
      Replies: 8
      Last Post: 06-26-2008, 12:17 PM
    3. interact 4 spindle drive won't turn on spindle
      By 0041601 in forum Bridgeport and Hardinge Mills
      Replies: 7
      Last Post: 06-23-2008, 06:51 PM
    4. G-code manual for Mach3 turn?
      By Green0 in forum Mach Lathe
      Replies: 4
      Last Post: 06-25-2007, 08:57 PM
    5. BP Series 1 CNC- spindle won't turn on
      By MDA40 in forum Bridgeport and Hardinge Mills
      Replies: 3
      Last Post: 11-08-2004, 09:05 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.