587,997 active members*
3,528 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2009
    Posts
    136

    adding one more relay

    i have a relay i would like to add, but don't know how to do it (program part). when the g code is done running i won't a relay to open (when it's running it closed) so that it well shunt the power to the cnc down (kind of like i walked away and fallen a sleep and i what it to turn off when it done) i know how to wire it, just don't know how to tell mack 3 to do this. sorry for the odd question but i'm an electrican and this stuff is fun to me.

    thank you
    kevin

  2. #2
    Join Date
    Mar 2003
    Posts
    35538
    Create a macro and call it at the end of the g-code. if the relay is wired to Output one, the macro should be

    ActivateSignal(Output1)

    or

    DeActivateSignal(Output1)

    Name the macro something like M555.m1s and put it in the macro folder. When Mach3 gets to M555 in the g-code, it should turn off.
    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)

  3. #3
    Join Date
    Aug 2009
    Posts
    136
    if i write a marco code do i have to put it in the gcode or will it just do it for me? i all some need to learn how to wrtie marco

    kevin

  4. #4
    Join Date
    Aug 2009
    Posts
    136
    Shelby Twp, michigan hear of that i'm in boyne city (up north)

Similar Threads

  1. Using a solid state relay as a main stop relay
    By garagefela in forum CNC Machine Related Electronics
    Replies: 4
    Last Post: 02-26-2010, 11:27 PM
  2. RPC with a relay
    By Shanghyd in forum Phase Converters
    Replies: 0
    Last Post: 06-30-2009, 12:02 PM
  3. Replies: 0
    Last Post: 05-28-2008, 04:37 PM
  4. Another relay ?
    By Bear in forum CNC Machine Related Electronics
    Replies: 4
    Last Post: 11-24-2005, 12:31 AM
  5. Need Relay help...
    By CarveJunky in forum CNC Machine Related Electronics
    Replies: 5
    Last Post: 07-20-2005, 02:52 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
  •