Download Print this page

Advantech ADAM-6000 series User Manual page 74

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

Advertisement

The fragment is used to obtain the host IP value and check if it is null. To acquire the necessary
parameter information from the index.html, you need to add the fragment below.
public String[][] getParameterInfo() {
String[][] pinfo =
{
{"HostIP", "String", ""},
};
return pinfo;
}
As for mouse/keyboard events and graphical user interface, they are beyond the scope of our discussion
here and we will leave them to users.
After you finish your program and compile, it should generate a couple of classes, e.g. ADAM6060.class,
ADAM6060$1.class, ADAM6060$2, and myFramPanel.class in our example. Then, follow the standard
way to combine the generated classes with ModBus.class which must be placed in the directory path
"Adam/ModBus/" into a jar file. In this case, the name for the file should be ADAM6060.jar. The figure
below shows the structure to make the jar file.
Figure 5-28 The structure of ADAM6060.jar file
Start your ADAM utility, and open the tab "Firmware/Web" as shown below. Then, tell the utility where the
path is for the JAR and HTML files. In this case, they are ADAM-6060.jar and index.html. Push
button, and a confirmation window pops up. After you confirm, it will start processing.

Advertisement

loading