Announcement

Collapse
No announcement yet.

Anyone know how to get P2k to set real time clock from network time server

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts


  • Anyone know how to get P2k to set real time clock from network time server

    I've scoured the AD forum and haven't found anything that I can use. I've searched the WWW and haven't really come up with anything there either. Sorry if this is rehashing something that's already been posted.

    I have a Productivity 2000 P2-550 controlling a heating system. I'm implementing basic time of day type functions like those offered by any programmable heating/cooling thermostat available at any home center. The trouble is that the real time clock in my P2-550 seems to drift quite a bit. I haven't pinned it down to an exact number of seconds per day but over a few weeks it has drifted a couple minutes. Over a year or more this could become a problem. I was hoping to have the P2-550 set its real time clock based on a network time server on my local network (my router implements one and my always on PC does as well). It looks like AD does not offer SNTP or NNTP support in the Productivity family at all. I'm looking for any way to get my P2-550 to query a time server and set its clock. Does anyone have a "software" (don't want to buy any more hardware) approach that might work? Modbus TCP? Ethernet/IP? Some piece of software running on a PC on the same local network as the P2-550? I really don't want to have to fire up Productivity Suite every so often just to fix the clock drift. The goal is a hands-off system that just runs.

    A sincere thank you to anyone who is willing to offer suggestions and a plea to AD to implement SNTP and/or NNTP in the Productivity line like I understand they have in the Do-More line.


  • #2
    Is there an HMI or SCADA system involved in your application?

    Comment



    • #3
      Two solutions:

      ​​​1. Switch to a Do-More, which does have an NNTP client.

      2. Install a separate time clock connected to an input on the P2K. Then use that input to reset the PLC clock, or just use it as the basis for timers with which to do your TOD stuff.

      Comment



      • #4
        1) If you know how many seconds per day and it is consistent, you can put in a coupe of lines of code to compare the hours, minutes, and seconds and at a certain time every day use the RTC instruction to set the second backwards or forwards.
        2) If there is something else on the network with the P2 that you can read the time from ( Modbus, Ethernet_IP) and use this time to update the clock cpu.

        Comment



        • #5
          1) Write modbus service using C language and transfer time to P3K every day;
          2) Use DoMore (it can sync time via SNTP) as a modbus service and transfer time to P3K once a day using timer and MWX instruction.
          On P3K side it looks like on a picture
          O a DoMore just 24 hours timer and 2 MWX instructions - one send time another (after first one) send set signal. In this case, time may differ 1 or 2 seconds - not more.
          Attached Files

          Comment



          • #6
            The new BRX unit with no local IO is pretty inexpensive. If it supports NTP like its bigger brothers it may be a decent way to keep accurate time in my group of DL06, P2000 and C-More panels.

            Comment



            • #7
              Originally posted by dd33 View Post
              The new BRX unit with no local IO is pretty inexpensive. If it supports NTP like its bigger brothers it may be a decent way to keep accurate time in my group of DL06, P2000 and C-More panels.
              Same DM1E CPU. It does.

              Comment



              • #8
                Originally posted by dd33 View Post
                If it supports NTP like its bigger brothers it may be a decent way to keep accurate time in my group of DL06, P2000 and C-More panels.
                fyi, Do-more supports SNTP, not NTP (all Do-more PLCs, including BRX). The "S" means "Simple", SNTP: Simple Network Time Protocol. NTP is a different protocol.

                There are 10 kinds of people in this world, those who know binary, and those who do not.

                Comment

                Working...
                X