Need Help! flashcut to control a relay


Results 1 to 3 of 3

Thread: flashcut to control a relay

  1. #1
    Registered
    Join Date
    Nov 2011
    Location
    United States
    Posts
    48
    Downloads
    0
    Uploads
    0

    Default flashcut to control a relay

    I have the USB compact cnc signal generator and need help with how to control an external device. I recently added a water cooled spindle and would like to automate the on/off of the water pump. I noticed that the controller has a two prong plug named RELAY on the back of the controller. Can i use this to wire up a relay to turn the spindle cooling pump on and off? If so could someone give instruction on the best way to achieve this? Also, How is that relay controlled in the G-code? Ideally I would like to turn the cooling pump on when i hit the start button in flashcut to start cutting and when the G-code ends I would like the cooling pump to turn off.

    Thanks,

    Ronnie

    Similar Threads:


  2. #2
    Registered
    Join Date
    Mar 2004
    Location
    Wisconsin
    Posts
    349
    Downloads
    18
    Uploads
    1

    Default Re: flashcut to control a relay

    Quote Originally Posted by msdeltaguy View Post
    I have the USB compact cnc signal generator and need help with how to control an external device. I recently added a water cooled spindle and would like to automate the on/off of the water pump. I noticed that the controller has a two prong plug named RELAY on the back of the controller. Can i use this to wire up a relay to turn the spindle cooling pump on and off? If so could someone give instruction on the best way to achieve this? Also, How is that relay controlled in the G-code? Ideally I would like to turn the cooling pump on when i hit the start button in flashcut to start cutting and when the G-code ends I would like the cooling pump to turn off.

    Thanks,

    Ronnie
    I'm not exactly sure whether they intended those two connectors to be used with a traditional 3-5 volt (or higher) Solid State relay directly or not... I think I recall those two being an actual internal relay... but only good for a very small amount of current. Did you download the hardware manual and see if it tells you anything ?

    I've simply just used the output terminals. I am not sure of your setup, but if you have any open pin on the outputs plug, you can easily use that to trip a solid state relay.

    For example, if you have, say, output pin 4 available, connect it to the positive side of a 3-5 volt input solid state relay(SSR). Connect Flashcuts Output GROUND or COMMON from the plug to the negative side.

    Now, you will need to use a SSR where the OTHER terminals match your needs to turn on and off the cooling pump. If the cooling pump is just a 110 volt pump, you use a SSR that can switch something in that range like this one:
    https://www.amazon.com/dp/B00PQ7Y8ZU...a-370268697797

    In the case of 110v, you simply interrupt the Line connection with the SSR so the relay can turn on and off the power just like any switch would...... You find the wire designated as the Feed or Hot Line and connect it to one side of the high voltage side of the relay, and then provide that Feed or HOT connection from your source power to the other connector.

    Then you go into the OUTPUTS setup of Flashcut and define an M-Code you can use to turn OUTPUT LINE 4 on and another M-Code to turn it back off. Their will be dropdowns to indicate which output you want it to use.

    FINALLY, in the G-Code, you put the M-code you defined early in the code so it turns on, and the M-Code for stopping it near the end of the code. Of course you will want to configure your CAM programs post to automatically put it where you want it.

    Chris L


  3. #3
    Registered
    Join Date
    Nov 2011
    Location
    United States
    Posts
    48
    Downloads
    0
    Uploads
    0

    Default Re: flashcut to control a relay

    Quote Originally Posted by msdeltaguy View Post
    I have the USB compact cnc signal generator and need help with how to control an external device. I recently added a water cooled spindle and would like to automate the on/off of the water pump. I noticed that the controller has a two prong plug named RELAY on the back of the controller. Can i use this to wire up a relay to turn the spindle cooling pump on and off? If so could someone give instruction on the best way to achieve this? Also, How is that relay controlled in the G-code? Ideally I would like to turn the cooling pump on when i hit the start button in flashcut to start cutting and when the G-code ends I would like the cooling pump to turn off.

    Thanks,

    Ronnie
    Thanks for the info i will give that a try. I'm not using any of the output plugs so I will try what you suggested.



Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

flashcut to control a relay

flashcut to control a relay