User`s manual

ThinkCore DA-660 WinCE User’s Manual Programming Examples
5-10
class Program
{
static void Main(string[] args)
{
moxa.uc7400.Buzzer.Beep(2200, 50);
}
}
}
Example #3—Real Time Clock
The following code shows you how to get the RTC Clock in system time structure format.
using System;
using System.Collections.Generic;
using System.Text;
using moxa;
namespace test
{
class Program
{
static void Main(string[] args)
{
// get the RTC time
moxa.mxdevice.SYSTEMTIME systime = moxa.uc7400.RTC.getRTC();
System.Console.WriteLine("Year=" + systime.Year.ToString());
System.Console.WriteLine("Month=" + systime.Month.ToString());
System.Console.WriteLine("Day=" + systime.Day.ToString());
System.Console.WriteLine("Hour=" + systime.Hour.ToString());
System.Console.WriteLine("Minute=" + systime.Minute.ToString());
System.Console.WriteLine("Second=" + systime.Second.ToString());
}
}
}
Frequently Asked Questions
Question Answer Steps
Can I set a connection port
other than 80 for the web
server (HTTPD)?
Yes. For example,
your computer has a
LAN port at
192.168.3.127 and a
new HTTPD port 81
is chosen.
1. Open IE (Internet Explorer) to
http://192.168.3.127/sysadmin/?Client=
IE4 and logon as admin/admin.
2. Select the Registry Editor from the
main menu.
3. Browse to
HKEY_LOCAL_MACHINE\Comm\
HTTPD.