Figure 5.25: structure of the adam6060.jar file, Figure 5.25:structure of the adam6060.jar file – B&B Electronics ADAM-6066 - Manual User Manual

Page 113

Advertising
background image

103

Chapter 5

}

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.25: Structure of the ADAM6060.jar file

Advertising