Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Can't find an Extended Pulse Timer (TP and LTP)

user3000
2023-12-06
2023-12-21
  • user3000 - 2023-12-06

    Hello,

    For my program I need an extended pulse timer, which can be referred to as a retriggerable pulse timer. Where every rising edge of the input resets the elapsed time zero, extending the lenght of the output pulse. The Codesys pulse timer (TP) is a one-shot timer and only resets the elapsed time with the falling edge of the input.

    There is also a pulse timer (LTP) in codesys, but in my simulation it was also functioning as a one-shot even though the description sounds like LTP should be retriggerable.

    I have uploaded some timing plots from another PLC program for reference. I am looking for a timer equivalent to the "TEP" diagram.

    Is there an Extended Pulse Timer in Codesys? Maybe there is a way to manipulate the input so it resets the elapsed time outside the function block?

     

    Last edit: user3000 2023-12-06
  • user3000 - 2023-12-21

    I came up with an FBD that seems to be working, although it may not be a true Retriggerable Pulse timer. There may be some delay associated with the two MOVE functions and ADD function I incorporated. I'd be interested if anyone is able to come up with something cleaner.

    I am surprised that this is not a built-in function block of the CodeSYS library. This is a common feature of multi-function timer relays. I also attached a page from the cut sheet of a Schneider relay that shows 10 timing functions. Looks like the CodeSYS library has built-in function blocks for only 3 of the 10.

     
  • user3000 - 2023-12-21

    Here is my work-around FBD.

     

Log in to post a comment.