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 Sun Sep 15, 2019 9:01 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Nov 02, 2012 2:13 pm 
Offline

Joined: Mon Jul 16, 2012 9:11 am
Posts: 75
tzTimeZeon:RTCLK.TIME_ZONE_INFO
If I am now in Beijing China,then How to fill the tzTimeZeon variables?


Top
   
PostPosted: Sat Nov 10, 2012 11:13 am 
Offline
Frequent User
Frequent User
User avatar

Joined: Tue Jun 06, 2006 9:03 am
Posts: 409
See the library for the Real Time Clock.
The struct consists of an integer for the general offset in minutes and also an array of structs (Period_info) for the standard and daylight saving time dates and offset.
The struct Period_info consist of a name, systemtime struct and integer for the time offset.
The systemtime struct consists of date and time information when the daylight saving time starts and stops.

In the DTU librarary is a global constant variable which contains the central european standard.
The easiest way to see how the time zone information is declared, you can define a variable in you application as CET time zone:

CET_TimeZone: DTU.TIME_ZONE_INFO := DTU.gc_tziTimeZoneCET;

Please regard the fact that in this case the number "5" means the last day (last sunday) of the month.

!!! with CAA DTUtil Extern library 3.5.1.0 the above mentioned definition should be:
CET_TimeZone: DTU.RTCLK.TIME_ZONE_INFO := DTU.GlobalConstants.gc_tziTimeZoneCET


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

All times are UTC+01:00


Who is online

Users browsing this forum: Andreas Kehrer and 6 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