+ Reply to Thread
Results 1 to 10 of 10

Thread: Simple delay for Sensor

  1. #1
    TimK Newbie
    Join Date
    Sep 2009
    Posts
    23

    Simple delay for Sensor

    Hi
    I have a proximity sensor thats output is connected to a PLC in a piece of equipment. Its function is to shut the machine down when metal is detected. What happens is when metal is detected by the sensor 24Vdc is supplied to a pin on the PCL, the PLC then instantly shuts the machine down.

    What I need to do is intercept the 24Vdc ,wait a few seconds and then send it to the PCL. If the 24Vdc is lost during the wait time then start the wait time over.

    Anyone have a circuit for this?

    Thanks


  2. #2
    MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent
    Join Date
    Mar 2009
    Location
    Utah
    Posts
    2,529

    What power supply voltage is available?

    Are you adverse to using a small relay?
    Mike ML.

  3. #3
    TimK Newbie
    Join Date
    Sep 2009
    Posts
    23

    24Vdc or 120Vac are the only voltages available except for the 480 3 phase. I would prefer to use an electronic device as apposed to a relay. Since the sensor will be cycling continuously. In other words metal objects pass the sensor all the time. I just want the signal sent to the PLC if the sensor detects metal for several seconds.

    HTH
    Thanks

  4. #4
    MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent
    Join Date
    Mar 2009
    Location
    Utah
    Posts
    2,529

    Custom designed just for you
    Attached Images
    Mike ML.

  5. #5
    TimK Newbie
    Join Date
    Sep 2009
    Posts
    23

    Mike, This looks great but I have questions,
    Could you provide more details as to the wattage of the resistors and the types of caps in the circuit.

    If I am reading the graph correctly at the bottom the delay looks to be about 2 seconds which is exactly what I need. Would it be difficult to add a pot to vary the delay a few seconds +-. (not necessary just an option)

    What does the RC at C1 represent. Is it just a reference point for the current input voltage. I am just now at 50 and trying to learn something new. So some of these questions may sound dumb.

    Thanks
    TimK

  6. #6
    odps Newbie
    Join Date
    Nov 2009
    Posts
    3

    Plc

    TimK

    You should be able to make some very slight program changes in the PLC by adding a timer and let the PLC do the delay for you???

    What brand of PLC is being used?

  7. #7
    MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent
    Join Date
    Mar 2009
    Location
    Utah
    Posts
    2,529

    Quote Originally Posted by TimK View Post
    Mike, This looks great but I have questions,
    Could you provide more details as to the wattage of the resistors and the types of caps in the circuit.

    If I am reading the graph correctly at the bottom the delay looks to be about 2 seconds which is exactly what I need. Would it be difficult to add a pot to vary the delay a few seconds +-. (not necessary just an option)

    What does the RC at C1 represent. Is it just a reference point for the current input voltage. I am just now at 50 and trying to learn something new. So some of these questions may sound dumb.

    Thanks
    TimK
    Revised schematic attached. The "RC" is just a node label so that I could plot that node. I added a 1megΩ Pot to vary the delay. The caps over 1uF are 15V electrolytics. The 100nF is just a bypass, non polarized. All resistors are 1/4W metal film. The Zener is 1/2W 12V. The 555 is available from lots of sources.

    Except for the Zener and the Pot, you might even be able to get the parts at RatShack
    Attached Images
    Last edited by MikeMl; 12th November 2009 at 05:48 AM.
    Mike ML.

  8. #8
    TimK Newbie
    Join Date
    Sep 2009
    Posts
    23

    Thanks Mike
    This is great.

    And Hey! Be Nice, I used to manage a "RatShack" LOL But that was back before they became a retail outlet for other brands.

    I am going to try my hand at designing a PCB. When I get it done I will post it here. Maybe you could look at it to make sure I dont shut down the power to the central US or something.

    Thanks Again

  9. #9
    MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent
    Join Date
    Mar 2009
    Location
    Utah
    Posts
    2,529

    Here is a description of the circuit I posted:

    The 555 Timer is configured as a retriggerable one-shot multivibrator. As long as the Sensor input is low, diode D1 conducts, discharging C1 to near ground. Because the voltage at the 555's Trig pin is below 4V (1/3 of 12V), this puts the 555 into the "triggered" state, where its output pin 3 is high, which causes the collector of Q1 (Output) to be low because Q1 is turned on.

    When Sensor goes high (near 24V), D1 is reverse-biased, allowing R1 to charge C1 toward 12V (from the Zener). It takes R1 a few seconds to charge C1 to 8V (2/3 of 12V). This causes the 555's Thresh pin to put the 555 into the "reset" state, where its output pin 3 is low, causing Q1 to turn off, allowing R4 to pull the Output all the way to 24V. If the Sensor input goes low before C1 reaches 8V, C1 is rapidly discharged via R2 and D1, preventing it from timing out. Only after Sensor goes high and stays high for longer than the timing period will the Output go high...

    24V exceeds the maximum allowed operating voltage, so I used a Zener regulator to operate the 555 from 12V. Since the Sensor input swing is from 0 to 24V, I returned the pull-up resistor on the output to 24V. C2 and C3 are bypass caps...
    Mike ML.

  10. #10
    TimK Newbie
    Join Date
    Sep 2009
    Posts
    23

    Thank You Sir

    This is great, I have some studying to do.

    Thanks

+ Reply to Thread

Similar Threads

  1. very simple time delay circuit
    By Richard Reichardt in forum General Electronics Chat
    Replies: 30
    Latest: 2nd December 2009, 07:44 PM
  2. Light/ Dark sensor with delay circuit , HELP !
    By Giggabite in forum Electronic Projects Design/Ideas/Reviews
    Replies: 5
    Latest: 23rd January 2009, 04:38 AM
  3. Simple On delay off circuit
    By triple_access in forum Electronic Projects Design/Ideas/Reviews
    Replies: 0
    Latest: 31st January 2008, 11:54 AM
  4. The most simple delay..
    By ikalogic in forum General Electronics Chat
    Replies: 7
    Latest: 2nd January 2004, 02:56 AM

Tags for this Thread