countdown timer visualization

damian177
2022-01-13
2022-01-14
  • 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 - 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 - 2022-01-14

    right

     
  • damian177 - 2022-01-14

    Is it possible to change color in slider element ?

     
  • 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 - 2022-01-14

    some example of your own slider?

     

Log in to post a comment.