CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Fri Dec 06, 2019 2:23 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Date and time
PostPosted: Wed Feb 24, 2016 2:43 pm 
Offline

Joined: Sun Aug 31, 2014 8:25 am
Posts: 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?


Top
   
 Post subject: Re: Date and time
PostPosted: Wed Feb 24, 2016 5:15 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3559
Hi Raz,

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


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: Date and time
PostPosted: Thu Feb 25, 2016 8:04 am 
Offline

Joined: Sun Aug 31, 2014 8:25 am
Posts: 24
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


Top
   
 Post subject: Re: Date and time
PostPosted: Thu Feb 25, 2016 8:40 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3559
hello Raz,

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

BR
Edwin


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: Andreas Kehrer and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited