7. LW3 Programmers’ Reference
RAP-B511 series
– User's Manual
49
7.4.6.
Synchronize with the NTP server
Command and Response
Ý
CALL·/SYS/MB/NTP:updateTime()
Ü
mO·/SYS/MB/NTP:updateTime
Example
Ý
CALL /SYS/MB/NTP:updateTime()
Ü
mO /SYS/MB/NTP:updateTime
7.4.7. Query the Last Synchronization
Command and Response
Ý
GET·/SYS/MB/RTC.LastUpdate
Ü
pr·/SYS/MB/RTC.LastUpdate=
<last_sync>
Parameters
<last_sync>
Displays the last synchronization time.
Example
Ý
GET /SYS/MB/RTC.LastUpdate
Ü
pr /SYS/MB/RTC.LastUpdate=2019-04-30T16:36:41
7.4.8. Query the Universal Time Coordinated Time (UTC)
Command and Response
Ý
GET·/SYS/MB/RTC.UtcTime
Ü
pr·/SYS/MB/RTC.UtcTime=
<utcTime>
Parameters
<utcTime>
Displays the date and the UTC time.
Example
Ý
GET /SYS/MB/RTC.UtcTime
Ü
pr /SYS/MB/RTC.UtcTime=2019-05-16T10:41:38
7.4.9. Query the Local Time (RTC)
Command and Response
Ý
GET·/SYS/MB/RTC.LocalTime
Ü
pr·/SYS/MB/RTC.LocalTime=
<localtime>
Parameters
<localtime>
Displays the date and the local time.
Example
Ý
GET /SYS/MB/RTC.LocalTime
Ü
pr /SYS/MB/RTC.LocalTime=2019-02-14T17:16:14
7.4.10. Query the Local Time (RTC) Elements
TIPS AND TRICKS: When repetitive scheduled actions are required, these properties are to set as a
condition in the Event Manager.
Command and Response
Ý
GET·/SYS/MB/RTC.
<RTC_element>
Ü
pr·/SYS/MB/RTC.LocalTime=
<RTC_element>
Parameters
Identifier
Parameter description
Parameter example
<RTC_element>
Years
2019 (four digit number between 2000 and 2099)
Months
12 (max. two digit number between 1 and 12)
Days
7 (max. two digit number between 1 and 31)
Hours
9 (max. two digit number between 0 and 24)
Minutes
54 (max. two digit number between 0 and 59)
Seconds
11 (max. two digit number between 0 and 59)
DaylightSaving
true
or
false
Weekday
1
: Monday;
2
: Tuesday;
3
: Wednesday;
4
: Thursday
5
: Friday;
6
: Saturday;
7
: Sunday
It shows the which day is on the week.
Yearday
193 (max. two digit number between 1 and 365)
It shows the which day is in the year.
Scheduler time
5-18-19 (Weekday-Hours-Minutes)
Example
Ý
GET /SYS/MB/RTC.Years
Ü
pr /SYS/MB/RTC.Years=2019