Results 1 to 10 of 10

Thread: Optical switch, on when I expected off

  1. #1
    Registered
    Join Date
    Apr 2007
    Location
    New York, NY
    Posts
    522
    Downloads
    0
    Uploads
    0

    Optical switch, on when I expected off

    I'm having an electronics problem and I'm hoping someone can help. I ordered three of these optical switches : http://search.digikey.com/scripts/Dk...ds=365-1234-nd to use as spindle index pulse and two home switches. Data sheet here: http://www.optekinc.com/datasheets/OPB930-940-L&W.PDF

    I got OPB941 buffered open collector (top right page 2 of data sheet). To test I wired from 5VDC to LED (w/ resistor) to "output". I thought with the slot unblocked the output transistor would be on and LED would be lit. Turns out the opposite is true. Slot unblocked = LED off, Slot blocked = LED on.

    For the spindle pulse this is fine but for the home switches I want the "normally closed" logic so if I have a broken wire I don't crash. I can just order the inverted open collector but I'm curious how the circuit actually works. Obviously I'm misreading the diagram.


  2. #2
    H.O
    H.O is offline
    Registered
    Join Date
    Jul 2007
    Location
    Sweden
    Posts
    886
    Downloads
    0
    Uploads
    0
    Hi Will,
    Try this: Wire the resistor from Vcc to Out. Wire the LED from Out to GND. How's that?

    /Henrik.


  3. #3
    Registered
    Join Date
    Jan 2005
    Location
    USA
    Posts
    2,920
    Downloads
    0
    Uploads
    0
    Hi will gilmore

    You can get a proximity switch from DMM Tec for $10 this will be much better for a home switch than what you want use
    Mactec54


  4. #4
    Registered
    Join Date
    Apr 2007
    Location
    New York, NY
    Posts
    522
    Downloads
    0
    Uploads
    0
    H.O -- Yes that reverses the logic but the circuit still relies on the transistor going on when the slot is blocked. If a wire is broken the output is still held high.

    mactec54 -- How about a link? EDIT: found it, http://www.dmm-tech.com/Pricing.html , still normally open


  • #5
    Registered
    Join Date
    Jan 2005
    Location
    USA
    Posts
    2,920
    Downloads
    0
    Uploads
    0
    Hi will gilmore

    (still normally open)

    Thats the way they should be, for home & limit switches, all machining centers Etc are this way
    Mactec54


  • #6
    Registered
    Join Date
    Apr 2007
    Location
    New York, NY
    Posts
    522
    Downloads
    0
    Uploads
    0
    I have no experience with this stuff but I thought it was common practice at least with limits to have them NC. What happens if the wire to the limit switch is cut? If switch is NO You wouldn't know until you crash. With NC when the wire is cut it triggers that limit and you investigate.


  • #7
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,933
    Downloads
    0
    Uploads
    0
    Doesn't Mach look at the same switch for home and overtravel?
    As opposed to Commercial systems that use two separate switches, where the home is N.O. and the O.T is N.C.?
    I don't use Mach, but I believe this is the method they can use i.e. one N.C.
    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.


  • #8
    Registered
    Join Date
    Jan 2005
    Location
    USA
    Posts
    2,920
    Downloads
    0
    Uploads
    0
    Hi Al The Man

    That is right for most older systems, new systems/machines don't have hard limits anymore, (some still do) but they don't have soft limits

    They have/ use soft limits which works a lot better, less wiring Etc

    Will
    You only need your home switches in Mach as they have soft limits to set in Mach that you can set for your safety fence, If a wire breaks it does not matter, as you have it in the control software, so the machine can't go any were out side the fence if set right, But you always have to home the machine for soft limits to work, unless you have absolute encoders
    Mactec54


  • #9
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,933
    Downloads
    0
    Uploads
    0
    Fanuc and Mitsubishi still use discrete limits as well as soft O.T.
    It is my understanding that in Mach you can have 6 N.C. switches in series 3 will operate as home & limit the other three limit.
    This allows one input for all 9 functions.
    The down side to soft limits only, if a servo runs away a soft limit will not stop it.
    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.


  • #10
    Registered
    Join Date
    Jan 2005
    Location
    USA
    Posts
    2,920
    Downloads
    0
    Uploads
    0
    Hi Al The Man

    Only some as I said offer both

    If a servo is in a properly engineered system it can not run away as you say

    ( Years ago Yes, To Day No) It has to have a signial from the control to the drive before power can get to the motor, to make it move, & if it was out of control the drive would fault out & stop it as well, Also if a soft limit is in place it to will will stop a run away servo if the drive did not as well

    What will make a servo run away, a Bad encoder, so what happens when you get a bad encoder, modern drives will fault out & stop the run away servo, no hard limits needed

    Its like most things its extra security to have both soft & hard, I once thought to that you needed to have both soft & hard limits, but over the years of machine building you get to no that both are not needed, with modern drives & control software
    Mactec54


  • Similar Threads

    1. Optical interupt switch implementation.
      By owhite in forum General Electronics Discussion
      Replies: 26
      Last Post: 07-26-2009, 05:27 PM
    2. Need Help!- Choice of Component for Optical Home Switch
      By jaybee101 in forum General Electronics Discussion
      Replies: 4
      Last Post: 01-20-2009, 08:19 PM
    3. Optical Switch w/Interrupt mechanism
      By cnczane in forum DIY CNC Router Table Machines
      Replies: 1
      Last Post: 11-10-2004, 09:51 AM
    4. WHATS THIS?? - Optical Switch??
      By High Seas in forum General Electronics Discussion
      Replies: 5
      Last Post: 07-13-2004, 08:54 PM
    5. optical switch
      By natchez in forum Xylotex
      Replies: 3
      Last Post: 05-01-2004, 08:45 AM

    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.