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

    RTC - UniPian - Codesys

    CODESYS
    2
    4
    2204
    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
            • First post
              Last post