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 #188 background imageLoading...
Page #188 background image
4. Configuration
180
Figure 4-84. SetDateAndTime
Input parameters
Type
Description
REQUEST
BOOL
This variable, when receives a rising edge,
enables the clock writing.
DATEANDTIME
EXTENDED_DATE_A
ND_TIME
Receives the values of date and hour with
milliseconds. See section
EXTENDED_DATE_AND_TIME
Table 4-119. Input Parameters of SetDateAndTime
Output parameters
Type
Description
DONE
BOOL
This variable, when true, indicates that the
action was successfully completed.
EXEC
BOOL
This variable, when true, indicates that the
function is processing the values.
ERROR
BOOL
This variable, when true, indicates an error
during the Reading/Writing.
STATUS
RTC_STATUS
Returns the error occurred during the
reading/configuration. See section RTC Data
Structures - RTC_STATUS.
Table 4-120. Output Parameters of SetDateAndTime
When a rising edge occurs at the REQUEST input, the function block will write the new
DateAndTime values on the clock. If the writing is successfully done, the DONE output will be equal
to TRUE. Otherwise, the ERROR output will be equal to TRUE and the error will appear in the
STATUS variable.
Utilization example in ST language:
PROGRAM MainPrg
VAR
SetDateAndTime : SetDateAndTime;
xRequest : BOOL;
DateAndTime : EXTENDED_DATE_AND_TIME;
xDone : BOOL;
xExec : BOOL;
xError : BOOL;
Status : RTC_STATUS;
xWrite : BOOL;
END_VAR
--------------------------------------------------------------------------
IF (xWrite = TRUE) THEN
SetDateAndTime(
request := xRequest,
done => xDone,
exec => xExec,
error => xError,
status => status,
DateAndTime := DateAndTime);
xWrite := FALSE;
END_IF

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