B&B Electronics ADAM-6066 - Manual User Manual
Page 112

ADAM-6000 Series User Manual
102
Firstly, the HTML file must be named index.html. The name of parameter
in
and ARCHIVE = "Adam6060.jar" indicate where the class and jar files
(your Java Applet program) are for ADAM-6060 module. WIDTH and
HEIGHT are parameters to set the visible screen size of your Java Applet
Web page.
The HTML is a good template for you to create your own embedded Web
page; however, the parameter names and most of their values cannot be
modified, or it will not work. You can only change the value of WIDTH
and HEIGHT parameters, e.g. WIDTH = 640 and HEIGHT = 480. How-
ever, you must change the value of CODE and ARCHIVE when you try
to write it for another module, say ADAM-6017, and thus you should use
Adam6017.class and Adam6017.jar instead of Adam6060.class and
Adam6060.jar.
Some Instructions when Writing a Java Applet
To enable your java applet to communicate with ADAM-6000 I/O mod-
ules, you have to include the following code in the very beginning of your
program:
import Adam.ModBus.*;
In constructor it is suggested to add the following fragment in your
exception handler:
Try {
HostIP = getParameter("HostIP");
Adam6060Connection = new ModBus(HostIP);
if (HostIP == "")
labAdamStatusForDIO.setText("Get Host IP is null !!");
else
labAdamStatusForDIO.setText("Get Host IP :" +
Adam6060Connection.GetHostIP() + " Ver 1.00");
¦¦¦¦¦¦