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
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).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
How can I do countdown timer in codesys visualization ?
Example please find in attachement.
Last edit: damian177 2022-01-13
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.
right
Is it possible to change color in slider element ?
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).
some example of your own slider?