• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    RTC - UniPian - Codesys

    Scheduled Pinned Locked Moved CODESYS
    4 Posts 2 Posters 3.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      OlivierP
      last edited by

      Hi all,

      As the Neuron has a RTC, do you need to configure anything on the UniPian or is everything already set-up?

      Is there a specific procedure to follow to change the system-time?

      What is your preferred method to read/out and use the RTC in a PLC program using Codesys. (I need it for a function that only runs between 0-20minutes of 16hours a day, for instance) -> I made a program like this before that ran on the Raspberry, but I'm sure it can be easier...

      I will share the code tomorrow of what I had so far. Thank you.

      1 Reply Last reply
      Reply Quote 0
      • D
        DavidCozens
        last edited by

        CODESYS for Raspberry Pi uses the underlying Raspbian (UniPian) operating system to access the RTC. The library DTUtils provides the utilities to access time and date from within CODESYS.

        1 Reply Last reply
        Reply Quote 0
        • O
          OlivierP
          last edited by

          Thx, it's working now.

          1 Reply Last reply
          Reply Quote 0
          • O
            OlivierP
            last edited by

            Sharing the way I solved it, feel free to comment.

            0_1526107594620_clock.PNG

            1 Reply Last reply
            Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post