Using Internet TRiLOGI


Introduction to TRiLOGI Client/Server  Architecture

  1. Internet TRiLOGI is a Client/Server application suite.  The entire program is broken into two parts: the Server  and the Client.

  2. Server: In order to run the complete TRiLOGI program, including access to the PLC, you must start the TLServer first. TLServer behaves like a typical web server and it is capable of serving HTML webpages as well as Java Applet to an Internet Browser such as Internet Explorer  or Netscape Navigator. TLServer connects to the PLCs via the PC's serial communication port and it is the one responsible for conveying communication messages between the Internet TRiLOGI client  and the M-series PLCs.  (Note: TLServer is not included with Education version of TRiLOGI since there is no real PLC involved.)

    To Start TLServer, double-click on its Icon and a TLServer panel  will appear. You can minimize TLServer but it should be actively running in order to service network request from TRiLOGI via the Internet or local area network.

  3. Client: The TRiLOGI program is the one which you use to create your ladder logic + TBASIC program and is called the "Client" program. ( If you are programming the PLC offline then you only need to run the client program without the TLServer.) The beauty of the client/server configuration is that it does not matter whether the server and client are located at the same computer or at 20,000 miles apart and they work exactly the same way. The client and the server can communicate via any form of network connection, including the Internet. This makes it possible for the user to program the PLCs either locally or remotely via the Internet or even wirelessly via mobile Internet.

Another important advantage of client/server architecture is that multiple clients may access the same server simultaneously. Hence you can run multiple copies of the TRiLOGI clients at different places around the world simultaneously for troubleshooting a single PLC. You can also run the TRiLOGI client AND the TRi-ExcelLink clients simultaneously!

  1. TRiLOGI client software is available in two incarnations:

    1. As a Local Java Application   - The TRiLOGI program (as well as the JVM, see below) must be locally installed in the PC that it runs on.

    2. As a Java Applet - The client computer only needs to use a Java-enabled Web browser such as the Internet Explorer 5.0+ or Netscape Navigator 4.5+ to invoke the TRiLOGI applet. There is no need to install the TRiLOGI software in the local computer. 


    TRiLOGI Application vs Applet: Which is Better?

 

Pros

Cons

Application
  • Starts up immediately.
  • Can read/write TRiLOGI files to local hard disk or to TLServer.
  • Can access any TLServer on the network.
  • Program behaviour is predictable since the copy of JVM is local.
  • Printing is supported via Java 2 function calls to the JVM.
  • Require local installation of TRiLOGI software at every client computer.
  • Require installation of JVM at every client computer.
  • Need to specify the proxy server IP address clearly if running behind a firewall.
  • Printing Service is not available to the applet.
Applet
  • No need to install any software or JVM at the client computer.
  • Possible to control your PLC via any CyberCafe or at a friend's house!
  • Maintenance and Upgrading of software is simple since only one copy of the TL50Applet.jar file needs to be changed.
  • Centralised storage of program files only at the server. This is good for providing PLC program training.

 

  • Can only read/write TRiLOGI files to the TLServer but not to the local harddisk.
  • Can only access the TLServer from which it was loaded.
  • May take a few minutes to load itself the first time. (thereafter the browser should cache it for rapid start up.)
  • Program behaviour may vary for different make or diffferent versions of the browser.

Starting The Internet TRiLOGI Application

    Basically there are 3 methods in which you can start the TRiLOGI application, as follow:

  1. If the Internet TRiLOGI and JRE has been properly installed on your PC, you can just double-click on the short-cut "TRiLOGI 5.0 Application" in the "Internet TRiLOGI" desktop folder or the "Start Menu" to start the TRiLOGI application.

trilogidesktop.gif (9630 bytes)

  1. You can also open My Computer and open the folder: C:\TRiLOGI\TL5\, then double click on the file "TL50.jar"  to start TRiLOGI application. If JRE has been properly installed the TL50.jar file will be recognized by Windows to represent executable Java program and it will run immediately. (Note: In the same folder you will also find the file "TLServer10.jar" which is the actual TLServer jar file).

  2. The third alternative is to run the program from DOS command line: First, run the MS-DOS prompt and then navigate to the directory "C:\TRiLOGI\TL5". At the directory, enter the following command line:

C:\TRiLOGI\TL5> java  -jar   TL50.jar

This procedure is actually encapsulated by the "TL5.BAT" batch file located at the "C:\TRiLOGI\TL5" folder which you can double-click from the same folder  to execute. This method of starting TRiLOGI application has an advantage in that it opens the Java Console window which can be useful because system errors and exceptions are normally reported via the Java Console. This can give a clue to reason of failure. (You can also start TLServer by running the "tlserver.bat" file.)


HELP!!!

When running TRiLOGI, you can get on-line help any time by pressing the <F1>. A Help window will open to show you the typical key/mouse actions. You can also click on the <More Help> button to get context-sensitive help loaded into your web-browser. It is assumed that you have Internet Explorer installed in the following directory:

C:\Program Files\Internet Explorer\IEXPLORE.EXE

However, If your PC does not come with this browser installed, then TRiLOGI Application will report  problems opening the web-browser. If that is the case you'll need to use the "Notepad" program to manually edit  the "config.tl5" file in the "C:\TRiLOGI\TL5\" directory . Modify the first line: 

Browser Path=C:/Program Files/Internet Explorer/IEXPLORE.EXE

to match the correct browser path info. This problem does not occur to applet since the TL50Applet automatically uses the same browser in which it was loaded to open the help files, hence the applet does not need to know the browser path at all.


How To Activate TRiLOGI Applet Using Browser

http://127.0.0.1:9080  

 plcsetup1.gif (10712 bytes)

Note:  The TLServer's root directory is not the same as the PC's root directory. In TLServer, the root directory is actually at "C:\TRiLOGI\TL5\public\"  . This is the directory where the index.html and TL50Applet.jar file are stored and these files are served to the web browser when you enter the TLServer's IP Address as mentioned above. Visitors have no access to the PC's file directory above the server's root directory so the content of your other PC files will not be at risk of being exposed to visitors to TLServer.


Disabling TRiLOGI Applet

If you want to prevent visitors to TLServer from loading TRiLOGI Applet at all, just remove the "TLApplet.jar" file from the "C:\TRiLOGI\TL5\public\" directory. In that case you can only access the PLC using the TL5 application program.