588,199 active members*
4,967 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > CNC Machine Related Electronics > Optical switch, on when I expected off
Results 1 to 10 of 10
  1. #1

    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
    Join Date
    Jul 2007
    Posts
    887
    Hi Will,
    Try this: Wire the resistor from Vcc to Out. Wire the LED from Out to GND. How's that?

    /Henrik.

  3. #3
    Join Date
    Jan 2005
    Posts
    15362
    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
    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. #5
    Join Date
    Jan 2005
    Posts
    15362
    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. #6
    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. #7
    Join Date
    Dec 2003
    Posts
    24220
    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

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

  8. #8
    Join Date
    Jan 2005
    Posts
    15362
    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. #9
    Join Date
    Dec 2003
    Posts
    24220
    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

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

  10. #10
    Join Date
    Jan 2005
    Posts
    15362
    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 CNC Machine Related Electronics
    Replies: 26
    Last Post: 07-26-2009, 10:27 PM
  2. Choice of Component for Optical Home Switch
    By jaybee101 in forum CNC Machine Related Electronics
    Replies: 4
    Last Post: 01-21-2009, 02:19 AM
  3. Optical Switch w/Interrupt mechanism
    By cnczane in forum DIY CNC Router Table Machines
    Replies: 1
    Last Post: 11-10-2004, 03:51 PM
  4. WHATS THIS?? - Optical Switch??
    By High Seas in forum CNC Machine Related Electronics
    Replies: 5
    Last Post: 07-14-2004, 01:54 AM
  5. optical switch
    By natchez in forum Xylotex
    Replies: 3
    Last Post: 05-01-2004, 01:45 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
  •