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

Date and time

razmis
2016-02-24
2016-02-25
  • razmis - 2016-02-24

    I used the "GetDateAndTime" function to read the current date and time but I get the time as one hour earlier than the real time.
    Where does the PLC read the time from? How can I set it to read the real local time?

     
  • eschwellinger

    eschwellinger - 2016-02-24

    Hi Raz,

    what does the example dateandtime from CODESYS Store report?
    BR
    Edwin

    IMG: Dateandtime.jpg

     
  • razmis - 2016-02-25

    I used this example, I just don't understand how can I set the time zone to my local time.
    It always give my the time as CET. I need it to be CET+1

     
  • eschwellinger

    eschwellinger - 2016-02-25

    hello Raz,

    which plc are you using?
    Guess this is a Setting in the OS.

    BR
    Edwin

     

Log in to post a comment.