![Advantech ADAM-6000 series User Manual Download Page 73](http://html1.mh-extra.com/html/advantech/adam-6000-series/adam-6000-series_user-manual_2857302073.webp)
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");
………………
}
Summary of Contents for ADAM-6000 series
Page 21: ...Figure 3 2 Fix ADAM 6000 module on the bracket...
Page 23: ......
Page 24: ...Figure 3 4 Secure ADAM 6000 Module to a DIN rail...
Page 27: ...Figure 3 6 ADAM 6000 I O Module Terminal Block wiring...
Page 32: ...Figure 4 4 ADAM 6017 Digital Output wiring...
Page 36: ...Figure 4 8 ADAM 6050 Digital Output Wiring...
Page 41: ...Figure 4 13 ADAM 6051 Digital Output and Counter Wiring...
Page 46: ...Figure 4 18 ADAM 6060 Relay Output Wiring...
Page 75: ...Figure 5 29 Firmware Upgrade for ADAM 6000 I O Series Modules...
Page 153: ...Appendix A Design Worksheets...