Virun (Customer) asked a question.

Timer function for solenoid output

I'm very new to PLC programing in general and tyring to creat a program to turn on a solenoid for a fixed time after a proximity sensor is triggered. I can get the output to turn on but it latches the entire time the prox sensor is triggered. How can I get the output to only trigger for a fixed amount of time?

 

click


  • Garry (Customer)

    Hi Virun,

    Your logic works well as long as the product sensor is still on. If you get a shorter duration on the product sensor you will not get the full time value on of the output.

    click on delay circuit

    The following logic will latch (set) an internal bit on. The on switch and estop switch will have to be on all of the time for the bit to remain latched. The timer will unlatch (reset) the internal bit. (C1)

    This logic will always give you the time duration set on the timer for the output.

    Regards,

    Garry

    https://accautomation.ca/series/click-plc/

    Expand Post
    Selected as Best
  • svshow (Customer)

    If i understand right - this should work:Click_SW

  • Virun (Customer)

    Thank you, svshow. This does one shot but how do I keep Y001 latched for say 1 sec?

  • Virun (Customer)

    I think I figured it out... Thanks so much. Seems the NC contact was all I was missing.

     

     

    click1

     

     

    Expand Post
  • Garry (Customer)

    Hi Virun,

    Your logic works well as long as the product sensor is still on. If you get a shorter duration on the product sensor you will not get the full time value on of the output.

    click on delay circuit

    The following logic will latch (set) an internal bit on. The on switch and estop switch will have to be on all of the time for the bit to remain latched. The timer will unlatch (reset) the internal bit. (C1)

    This logic will always give you the time duration set on the timer for the output.

    Regards,

    Garry

    https://accautomation.ca/series/click-plc/

    Expand Post
    Selected as Best