585,948 active members*
3,549 visitors online*
Register for free
Login
Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2006
    Posts
    3

    How do I control a relay?

    I am building a 2-d pattern cutter and need to control a relay to fire the blade. How do I output from the parallel port to the relay and what g-code software will generate coding for this? Please help.

  2. #2
    Join Date
    Mar 2004
    Posts
    761
    Quote Originally Posted by amccoy
    I am building a 2-d pattern cutter and need to control a relay to fire the blade. How do I output from the parallel port to the relay and what g-code software will generate coding for this? Please help.
    Amccoy,

    The best thing would be to use a solid state relay to connect the parallel port to control the relay.

    There are many sources for them. I just happen to know of this source.

    http://www.cadcamcadcam.com/index.as...PROD&ProdID=56
    http://www.cadcamcadcam.com/index.as...ROD&ProdID=125

    What control software are you using? Or are you still researching this?

    Most all control softwares are able to do this.

    Mach, TurboCNC, DeskCNC, KCam, CNCPro Etc...

    The software settings use two M codes to generate a signal on and off to the solid-state relay.

    Example :
    M55 = Turn on
    M56 = Turn Off

    Wayne

  3. #3
    Join Date
    Jan 2006
    Posts
    3
    I have the relay, was just wondering how they were controlled in the g-code. I am using either kcam or mach. Thanks.

  4. #4
    Join Date
    Dec 2005
    Posts
    3319
    YOU CAN"T DRIVE THE RELAY DIRECT FROM PARALLEL PORT - YOU NEED A BUFFER!!!

    Check out "Real World Interfacing of Parallel Port" book from Sams.

    Do a "parallel port interfacing" search on this site and it will show up. I"m not where I can put my hands on the ISBN right this instant.

  5. #5
    Join Date
    Aug 2004
    Posts
    145
    Quote Originally Posted by amccoy
    How do I output from the parallel port to the relay
    Control a relay from the parallel port

    Quote Originally Posted by amccoy
    what g-code software will generate coding for this? Please help.
    What WayneHill said, you can also set M3, M5 to do that.

    Nikolas

  6. #6
    Join Date
    Jan 2006
    Posts
    37
    Im also searching for the same answer. How to do an ON/OFF control (cut or no cut)
    I know its possible to do it using the auxiliary code M, but that should be donde manually.
    Ive been searchong how to do it with visual mill but no answer yet.
    Well ill keep searching.

  7. #7
    Join Date
    May 2006
    Posts
    3
    M03 or M04 = spindel onn
    M05 = spindel off

  8. #8
    Join Date
    Dec 2003
    Posts
    24221
    For the hardware side, Do a search here for 2n7000 very cheap and versatile little component, when you just want one or two buffers.
    http://cnczone.com/forums/showthread...ghlight=2n7000
    CNC, Mechatronics Integration and Custom Machine Design

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

Posting Permissions

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