Download Print this page

Advantech ADAM-6000 series User Manual page 73

Ethernet-based data acquisition and control modules
Hide thumbs Also See for ADAM-6000 series:

Advertisement

Firstly, the HTML file must be named "index.html." The name of parameter in <APPLET...> cannot
change. The lines "CODE = "Adam6060.class"" 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. However, 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 Java Applet for ADAM-6000 I/O Series
To enable your java applet to communicate with ADAM-6000 I/O modules, 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");
..................
}

Advertisement

loading