EasyManuals Logo

ALTUS Nexto NX3004 User Manual

ALTUS Nexto NX3004
388 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #189 background imageLoading...
Page #189 background image
4. Configuration
181
ATTENTION:
If you try to write time values outside the range of the RTC, the values are converted to valid values,
provided they do not exceed the valid range of 01/01/2000 to 12/31/2035. For example, if the user
attempts to write the value 2000 ms, it will be converted to 2 seconds, write the value 100 seconds, it
will be converted to 1 min and 40 seconds. If the type value of 30 pm, it is converted to 1 day and 6
hours, and so on.
SetTimeZone
The following function block makes the writing of the time zone settings:
Figure 4-85. Writing of the Time zone Settings
Input parameters
Type
Description
TIMEZONE
TIMEZONESETTINGS
Structure with time zone to be configured. See
section RTC Data Structures -
TIMEZONESETTINGS.
Table 4-121. SetTimeZone Input Parameters
Output parameters
Type
Description
SetTimeZone
RTC_STATUS
Returns the error occurred during the
reading/setting. See section RTC Data
Structures - RTC_STATUS.
Table 4-122. SetTimeZone Output Parameters
When called, the function will configure the TIMEZONE with the new system time zone
configuration. The configuration results is returned by the function.
Utilization example in ST language:
PROGRAM MainPrg
VAR
Status : RTC_STATUS;
TimeZone : TIMEZONESETTINGS;
xWrite : BOOL;
END_VAR
------------------------------------
//FB SetTimeZone
IF (xWrite = TRUE) THEN
Status := SetTimeZone(TimeZone);
xWrite := FALSE;
END_IF
ATTENTION:
To perform the clock should be used time and date values within the following valid range: 00:00:00
hours of 01/01/2000 to 12/31/2035 23:59:59 hours, otherwise , is reported an error through the
STATUS output parameter. For details of the STATUS output parameter, see the section
RTC_STATUS.
RTC Data Structures
The reading and setting function blocks of the Nexto series CPUs RTC use the following data
structures in its configuration:

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ALTUS Nexto NX3004 and is the answer not in the manual?

ALTUS Nexto NX3004 Specifications

General IconGeneral
BrandALTUS
ModelNexto NX3004
CategoryProcessor
LanguageEnglish