Results 1 to 5 of 5

Thread: Relay Control

  1. #1
    Banned
    Join Date
    Jul 2008
    Location
    US
    Posts
    28
    Downloads
    0
    Uploads
    0

    Relay Control

    I have installed some relays with separate 5vdc power supply to basically turn on/off a power receptacle where my spindle and the vacuum cleaner are connected to and this is what it does without any software setup:

    I started the computer, loaded Mach3, and turned on the control box and it stayed off as it should. I loaded a simple test program that didn’t have any M03 g-code in it and when I clicked on start the machine started running and the relayed turned on, ran the program and it came back to the starting point but the relay never turned off and the program had M05 (Spindle Off) and M02 (End Program). The relay also never turned off after I closed the Mach3 and turned off the control box. If I would disconnect the parallel cable from the computer it will turn off but after plugging the cable back in it would turn on again. The relay is connected to pin #14 so the got the power to turn it on when the program stated running and there was nothing there to shut it off after that and it’s still pumping 5v from the computer only. I have never played with that part of the software and I need to find out how to set it.


  2. #2
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,286
    Downloads
    0
    Uploads
    0
    In the Ports and Pins screen, assign pin 14 to an output in the "Output Signals" tab, then assign that output in the "Spindle Setup" tab.
    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)


  3. #3
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,933
    Downloads
    0
    Uploads
    0
    It sounds to me like you are driving the relay direct from the parallel port?
    If so you should really use a buffer/driver or a BOB, see recent posts here re 2n7000 etc.
    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.


  4. #4
    Registered
    Join Date
    Sep 2008
    Location
    Canada
    Posts
    6
    Downloads
    0
    Uploads
    0

    Smile Just curious

    Just curious...I am about to create the same scenario and was wondering
    if there is some way the relay can be triggered erratically...rather then a start and stop....I would like say the vacuum to come on every 200 lines of g-code....does this mean I need to inject mstarts and stops throughout the run.

    thanks
    cnc guy
    toronto


  • #5
    Registered neilw20's Avatar
    Join Date
    Jun 2007
    Location
    Australia
    Posts
    3,422
    Downloads
    0
    Uploads
    0

    Talking Mach3.

    You can use Output #1 and Output #2 turned on by M7 and M8, and both turned off by M9. Relays are are on my BOB.
    Intended for mist and coolant, but I use one for a 1HP monster dust sucker.
    I put a double power outlet on my machine and plug in whatever I like.
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.


  • Similar Threads

    1. Printer Port relay control
      By Sieg in forum General Electronics Discussion
      Replies: 6
      Last Post: 12-08-2007, 02:39 PM
    2. non RF remote relay control?
      By DennisCNC in forum General Electronics Discussion
      Replies: 2
      Last Post: 07-08-2006, 06:15 PM
    3. How do I control a relay?
      By amccoy in forum General Electronics Discussion
      Replies: 7
      Last Post: 05-30-2006, 05:00 PM
    4. Replies: 2
      Last Post: 03-09-2005, 07:26 AM
    5. How to control a relay with a PC
      By NeoMoses in forum General Electronics Discussion
      Replies: 5
      Last Post: 08-06-2003, 06:55 PM

    Visitors found this page by searching for:

    Nobody landed on this page from a search engine, yet!
    SEO Blog

    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.