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 Wed Feb 26, 2020 10:35 pm

All times are UTC+01:00

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

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

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

Joined: Tue Jun 06, 2006 9:03 am
Posts: 413
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 the above mentioned definition should be:
CET_TimeZone: DTU.RTCLK.TIME_ZONE_INFO := DTU.GlobalConstants.gc_tziTimeZoneCET

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: No registered users and 8 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