
7. LW3 Programmers’ Reference
RAP-B511 series
– User's Manual
48
7.4.
Time Settings
7.4.1. Query the Timezone
Command and Response
Ý
SET·/SYS/MB/TIMEZONE.Timezone=
<timezone>
Ü
pw·/SYS/MB/TIMEZONE.Timezone =
<timezone>
Parameters
<timezone>
Time zone setting in POSIX TZ format.
Example
Ý
SET /SYS/MB/TIMEZONE.Timezone=CET-1CEST,M3.5.0/2,M10.5.0/3
Ü
pw /SYS/MB/TIMEZONE.Timezone=CET-1CEST,M3.5.0/2,M10.5.0/3
TIPS AND TRICKS: Timezone and daylight saving settings can be done easily and quickly with Lightware
Device Controller software in
section.
7.4.2. Enable Network Time Protocol (NTP)
Enabling Network Time Protocol means, that the RAP-B511 is permitted to get time information from an
NTP server. The device time synchronized repeatedly and automatically.
Command and Response
Ý
SET·/SYS/MB/NTP.Enable=
<enable_ntp>
Ü
pw·/SYS/MB/NTP.Enable=
<enable_ntp>
Parameters
<enable_ntp>
true: NTP
enabled
false: NTP
disabled
Example
Ý
SET /SYS/MB/NTP.Enable=true
Ü
pw /SYS/MB/NTP.Enable=true
7.4.3.
Enable Getting NTP from DHCP server
When the DHCP server assigns an IP address to the device, there is an option to request an NTP time
information. When the RAP-B511 connected to the internet, the NTP time is updated repeatedly.
Command and Response
Ý
SET·/SYS/MB/NTP.NtpServerFromDhcp=
<enable_ntp_dhcp>
Ü
pw·/SYS/MB/NTP.NtpServerFromDhcp=
<enable_ntp_dhcp>
Parameters
<enable_ntp_dhcp>
true:
Enable getting NTP from DHCP server
false:
Disable getting NTP from DHCP server
Example
Ý
SET /SYS/MB/NTP.NtpServerFromDhcp=true
Ü
pw /SYS/MB/NTP.NtpServerFromDhcp=true
7.4.4. Query the Active NTP Server
Command and Response
Ý
GET·/SYS/MB/NTP.ActiveNtpServer
Ü
pr·/SYS/MB/NTP.ActiveNtpServer=
<server_address>
Parameters
<server_address>
NTP server address (IP address or URL)
Example
Ý
GET /SYS/MB/NTP.ActiveNtpServer
Ü
pr /SYS/MB/NTP.ActiveNtpServer=pool.ntp.org
7.4.5.
Set NTP server
Command and Response
Ý
SET·/SYS/MB/NTP.NtpServer=
<server_address>
Ü
pw·/SYS/MB/NTP.NtpServer=
<server_address>
Parameters
<server_address>
NTP server address (IP address or URL)
Example
Ý
SET /SYS/MB/NTP.NtpServer=pool.ntp.org
Ü
pw /SYS/MB/NTP.NtpServer=pool.ntp.org