Skip to content

How do I set the time zone in the PLCnext Controller?

How do I set the time zone in the PLC next controller AXC F 2152?  Proficloud data is logging 6 hours in the past, which makes sense, because the time zone reported by the $date command in the Linux CLI shows UTC and I am in central time, UTC-6.  PLCnext engineer doesn't seem to read or write the time zone from the controller online data screen. My attempts to set time zone from the CLI are all either invalid syntax or "operation not allowed".  I just updated to FW 2020.LTS to try to resolve.  Still using 2019.9 of PLCnext Engineer.

Comments

  • Hello,

    That's an interesting question. I think I have seen some discussion of this topic recently, but I can't seem to find it at the moment.

    One quick and dirty way to change the time zone is to execute this command as root:</code></p> <pre><samp>ln -sf /usr/share/zoneinfo/US/Central /etc/localtime</samp></pre> <p>Then the following commands give the expected results:</p> <pre><samp>$ date Fri Dec 20 16:08:48 CST 2019 $ date -u Fri Dec 20 22:09:06 UTC 2019 </samp></pre> <p>This is probably not the recommended way to change the time zone, not least because changing files in the <code>/etc directory on a PLCnext Control is generally not a good idea. But maybe this will fix the problem you are seeing - please let us know.

    Perhaps others will advise on a better way to set the time zone in the PLC (although with the Christmas break, this may take a while).

    ~ Martin.

     

Sign In or Register to comment.