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

Visual Clock?

Newbe
2013-01-19
2013-02-01
  • Newbe - 2013-01-19

    God morning everyone!

    Im brand new programmer, I have made a few smaller programs in older plc system but count me as a beginner.

    Im trying to learn Codesys and have startet to make a visual design to my program.

    I wonder if there is an easy way to make/show a clock in visual that shows the time of the day and also put in todays date.

    Is there and premade libs for this, or is it program from scratch to make it work?

    Thanks for helping a poor beginner out

     
  • ilie.c.lucian - 2013-01-21

    You can display time and date as a digital clock, by using placeholders for time and date (%t, %d, %m, %Y). For more detail search for β€žText” in Help.

    You can also make your own analog clock using seconds, minutes and hours to rotate the β€žneedles” in a visualization, but it would be more complicated.

    Your PLC must have real time clock functionality.

    Regards,
    Lucian

     
  • shooter - 2013-02-01

    for learning use w www.oscat.de w they have nice library with all sorts of functions.
    it is a german site but the software and docs are in english.
    and a clock is very easy with $d etc, see helpfile

     

Log in to post a comment.