Create  Java GUI

What TRi Users Say

Creating Your Own Java GUI Applet

Besides using the Internet TRiLOGI software to remotely program, monitor or control the M-series super PLCs, you can also write your own Java applet to provide a Graphical User Interface (GUI) for data acquisition, remote monitoring, or controlling the PLCs via the Internet.

A Java applet can be loaded from a remote TLServer and executed in any web browser without the need to install the software on a local PC. This allows you to create a program for controlling your equipment that you can execute from any  cyber-cafe or at public library using the web browser.

We have made it extremely simple for users to write their own Java applets by providing an API library to our PLC users.  Our Java API class library can greatly simplify your job of logging into the PLC webserver ("TLServer") and controlling the PLC via the Internet. For example, a simple applet that is shown on the  left picture below,  which can continuously monitor the PLC's internal clock and the logic states of the input #1 and a push button for toggling the output #1 can be created quickly. You can click on the picture or click here to see the source code listing

sampleApplet1.gif (1876 bytes)

Note:  Unfortunately the Pocket Internet Explorer on Windows CE currently does not support Java applet.  Hence Pocket IE is unable to remotely fetch a Java applet unless you have installed a 3rd party patch (such as Jeode JVM).

However, you can create Java "application" using the same Java API comm library and execute it on a PDA as shown in right photo. We created this Java GUI app on a PC and copied it to a HP Jornada pocket PC unmodified. The PDA now have the same  capability as the applet on the left and we are able to remotely monitor/control the PLC using this PDA with a wireless network card.

pda1nl.jpg (8737 bytes)
Click for enlarged photo.

Note: Use the following link table in every page of this topic to navigate quickly

© Copyright 2012 Triangle Research International, Inc
All Rights Reserved