Advantech ADAM-6050 18-Channel Isolated Digital I/O Modbus TCP Module ADAM-6050-BE Scheda Tecnica

Codici prodotto
ADAM-6050-BE
Pagina di 272
99
Chapter 5  
5.4   ADAM-6000  Web Server                                                                                                                                                                                  
ADAM-6000 I/O modules all features built-in web server. Remote com-
puter or devices can monitor and control I/O status on ADAM-6000 mod-
ules remotely through web browser. There is default built-in web page on 
ADAM-6000 modules. You can modify the web page using Java Applet. 
Refer to Section 5.5 for more detail. 
To use your computer to browse the web page on ADAM-6000 module, 
you need to install Java Virtual Machine first. Then you can simply type 
the IP address to connect to your ADAM-6000 module in web browser. 
There will be one dialog window asking you to ask the password. After 
you have typed the correct password, you can start to monitor or control I/
O on ADAM-6000 modules.
Note: For ADAM-6024 module, when you want to browse the web page, 
you need to enter user name (root) and password (00000000).
5.5  Java Applet Customization
5.5.1 Introduction 
In this section, we will tell you the way to create an applet web page to 
monitor the status of ADAM-6060 through the Web browser. To write an 
input processing applet, you need to know how to define a class with mul-
tiple methods. To understand how an applet processes input data, you 
must learn what events are and how events are handled in Java programs. 
We don’t intend to teach you how to write the applet because it is beyond 
the scope of our discussion here. Instead, we will provide you with a 
small-but-useful example as well as the relevant class, methods and sug-
gested template. We refer the interested user who is intended to know 
more details to the following web site 
http://java.sun.com/docs/books/tutorial/
To write an applet that is capable of processing ADAM-6060 input data 
in a very short time, we provide you with a class which includes all neces-
sary methods. The kernel functions/methods to communicate with our 
product and display the current, updated status has been fine-tuned for 
any signal it can process. Four major methods are developed for the pur-
pose, listed below: .
Employing these four methods, you can customize your applet and focus 
solely on the user interface you intend to create and the number of chan-
nels you want to monitor.