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

countdown timer visualization

damian177
2022-01-13
2022-01-14
  • damian177

    damian177 - 2022-01-13

    Hi,

    How can I do countdown timer in codesys visualization ?
    Example please find in attachement.

     

    Last edit: damian177 2022-01-13
  • sgronchi

    sgronchi - 2022-01-14

    Just use a TON and compute timer.PT - timer.ET (that's the remaining time).

    And then hookup it into a pie element.

    Otherwise please specify the data you are operating on.

     
    👍
    1
  • damian177

    damian177 - 2022-01-14

    right

     
  • damian177

    damian177 - 2022-01-14

    Is it possible to change color in slider element ?

     
  • sgronchi

    sgronchi - 2022-01-14

    No. The Codesys slider is a really poor made control... I always end up implement one with a line/rectangle for the background and a line/rectangle/image/... for the handle. If it is readonly it ends here, if you need to support input it's not so complicated (the downside it's you have to work in absolute coordinates in code behind).

     
  • damian177

    damian177 - 2022-01-14

    some example of your own slider?

     

Log in to post a comment.