Moxa RM-1050-T [22/52] System time setting

Moxa KM-2430-T [22/52] System time setting
ioPAC RTU Software RTU Management
3-8
System Time Setting
Setting the Time Manually
The ioPAC RTU controller has two time settings. One is the system time, and the other is the RTC (Real Time
Clock) time kept by the ioPAC hardware. Use the #date command to query the current system time or set a
new system time. Use #hwclock to query the current RTC time or set a new RTC time.
Use the following command to query the system time:
#date
Use the following command to query the RTC time:
#hwclock
Use the following command to set the system time:
#date YYYYMMDDhhmm
MM = Month
DD = Date
hhmm = hour and minute
YYYY = Year
Use the following command to set the RTC time:
#hwclock –w
Write current system time to RTC
The following figure illustrates how to update the system time and set the RTC time.
root@Moxa:/# date
Fri May 10 02:35:39 UTC 2013
root@Moxa:/# hwclock
Fri May 10 02:35:43 2013 0.000000 seconds
root@Moxa:/# date 201305101037
Fri May 10 10:37:00 UTC 2013
root@Moxa:/# hwclock -w
root@Moxa:/# date ; hwclock
Fri May 10 10:37:32 UTC 2013
Fri May 10 10:37:32 2013 0.000000 seconds
root@Moxa:/#

Содержание

Скачать