Results 1 to 8 of 8

Thread: Inverse Output Pin

  1. #1
    Registered
    Join Date
    Apr 2010
    Location
    USA
    Posts
    20
    Downloads
    0
    Uploads
    0

    Inverse Output Pin

    This is probably simple, but I can't figure it out.

    I'm re-arranging my controller using a very simple BoB on the second parallel port output from my smoothstepper. I'm setting one of the outputs on this Port 2 to control my spindle relay (on/off). I've got my power ground running to (-) on the relay and the output pin on the BoB running to (+) on the relay. In mach, everything works fine. M3/M4 turn the spindle on just fine.

    The problem is that when I exit Mach, when power to my controller is still on, the spindle turns on. So when I exit Mach, the Spindle turns on and stays on until I turn off the power to my controller. Similarly, if I turn on my controller while Mach is not running, the spindle turns on.

    This tells me that the output pins on my cheap-o BoB are normally high. When mach comes on, the outputs go low, and Mach controls it properly, sending them high when it gets an M3 code.

    I need this output pin to be low by default, not high. Would a pull-down resistor accomplish this, and if so, how do I determine what value resistor to use? There is virtually no documentation on this cheap-o BoB, except this: http://kelinginc.net/KL-DB25.pdf

    Thanks in advance for any help!


  2. #2
    Registered
    Join Date
    Jan 2006
    Location
    USA
    Posts
    2,464
    Downloads
    0
    Uploads
    0
    It is recommended to power up your machine like this: Computer>Mach>Machine. The inverse should be done when shutting down. Thats the easy (and safe) way to do it.

    Matt


  3. #3
    Registered
    Join Date
    Apr 2010
    Location
    USA
    Posts
    20
    Downloads
    0
    Uploads
    0
    Thanks, Matt. The problem with this suggestion is that I can't start Mach without my controller on since there would be no power to the smoothstepper. I currently have my smoothstepper powered by an external 5V. I suppose I could change the smoothstepper to be powered by USB and then follow your procedure, but I still feel like this setup is dangerous because if Mach crashes or unexpectedly dies for some reason, my router will turn on unexpectedly.

    What I need is an output that is normally low when mach is not running. It is currently normally high, except that it goes normally low when mach is running...


  4. #4
    Registered
    Join Date
    Jan 2006
    Location
    USA
    Posts
    2,464
    Downloads
    0
    Uploads
    0
    I think the problem is that your output is pulled up by a resistor and then mach signals when the smoothstepper should pull it down. If you supply a pulldown resistor, it may fight the pullup already existing. I am not sure if the smoothstepper has a guaranteed logic state at turn on. You can easily change the logic in mach so that high is off and low is on. How does that output control your spindle? A relay, SSR, ??? ANother possibility would be to use a BOB with a charge pump so that mach would have to be running before it would output any signals.

    Matt


  • #5
    Registered
    Join Date
    Apr 2010
    Location
    USA
    Posts
    20
    Downloads
    0
    Uploads
    0
    I'm running a solid-state relay on it. Would it work to change my wiring as follows:

    Run (+) 5 volts from my power supply to the (+) on the relay.
    Take the output from the output pin on my BoB to the (-) on the relay.

    So the relay will be getting (+) on both legs on the input side of the relay normally (when Mach is not running, and I'll set the output in Mach to be "Active Low"). When Mach gets an M3 or M4, it will set this pin low, which means the relay will have (-) on the (-) side and (+) on the (+) side.

    Makes sense to me, but I wanted to be sure there was nothing wrong with the relay getting (+) and (+) when the spindle is off...


  • #6
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,298
    Downloads
    0
    Uploads
    0
    Power to the PC and SS should be separate from power to your spindle and drives.
    That's the only truly safe way to make sure the spindle can never turn on "by itself".
    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)


  • #7
    Registered
    Join Date
    Apr 2010
    Location
    USA
    Posts
    20
    Downloads
    0
    Uploads
    0
    Thanks, but they are on separate power supplies. I have a separate 5 volt supply for the smoothstepper and BoB (the bob takes 2 power supplies since one side is opto-isolated) and of course the drivers (I use g203vs) have their own higher-voltage power supply. All the grounds are separate.

    The router isn't turning on "by itself" - only when Mach is not running (or when Mach tells it to turn on). It would only be unexpected if Mach crashed or something...

    Anyone think my idea of running the (+) to my relay would work?
    Attached Thumbnails Attached Thumbnails Inverse Output Pin-untitled.png  
    Last edited by theminor; 12-20-2011 at 08:54 AM.


  • #8
    Registered
    Join Date
    Nov 2003
    Location
    Texas
    Posts
    125
    Downloads
    0
    Uploads
    0
    I have had the same issue, and yes I ended up getting a few reed relays to "invert" the default low output of my BOB.

    I have a couple of C10 breakout boards, which have pull down resister banks on all the outputs so that when power is applied, with no data, all outputs go low. This sounds like it would be "safe" for most applications, until I connected things like the Hammond Designs spindle controller which is low active! And relay boards which are also low active. So they all enable when there is power and no Mach loaded to set the outputs high.

    So, I applied a "fix" to one of the BOBs. I isolated the trace on the circuit board that connected the banks of resistors to ground (scratched it away) and soldered a jumper wire from the bank over to near the power plug, so I can connect them to either ground or Vcc (pulls up or pulls down). The C10 has a dedicated row of 4 outputs (14-17 I think?) and then a row of 8 selectable in or outputs. They each have their own bank of pull resisters. I did this for each row so I can select one bank to be low and one to be high, or both, etc..
    I know its been a while for this thread, but I fought the same thing so perhaps this will help someone in the future. I am betting that most other BOBs could have the same mod done to them.

    -Colin


  • Similar Threads

    1. Inverse time
      By extanker59 in forum Haas Mills
      Replies: 2
      Last Post: 11-09-2011, 11:50 AM
    2. Inverse or mirror image
      By logger in forum Cincinnati CNC
      Replies: 2
      Last Post: 07-06-2011, 04:06 PM
    3. help with cutting a inverse taper angle
      By redfoxbody11 in forum General Metal Working Machines
      Replies: 12
      Last Post: 11-12-2010, 07:10 AM
    4. G93 Inverse time
      By DaveMCINC in forum Fanuc
      Replies: 0
      Last Post: 12-07-2009, 12:22 PM
    5. Mach2 Faro Arm Inverse Kinematics
      By vacpress in forum General CAM Discussion
      Replies: 7
      Last Post: 05-28-2004, 10:14 AM

    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.