Link Variables for EMIT 3.0


Apart from using Internet TRiLOGI and TLServer, the T100MD+ and T100MX+ PLCs can also be accessible from  the internet via a special "emGateway " software supplied by the emWare Inc of Salt Lake City, USA. emGateway runs on any Windows 95/98/NT PC. The M+ series PLC incorporates the emMicro code licensed from emWare which allows a JAVA applet to be  developed using emWare's supplied tools and Java beans. The emGateway acts as the middle man between the internet and the M+ PLCs. It uses predefined variable names in the PLC and through a JAVA applet allows exchange of data between a JAVA-enabled internet browser such as Netscape or Microsoft Internet Explorer 4.0 and above.

To allow greater flexibility in programming and for protection of internal data, TBASIC does not expose existing internal system variables to the emGateway. Instead, TBASIC creates 32 special system variables for the sole purpose of interacting with emGateway. The user program can therefore control what data is to be exposed or obtained from the internet. The data to be exposed will be copied to the special em-variables and data obtained from the internet can be used selectively by the control program.

Pre-defined Variable Names for emGateway

The following variables name are defined in the emMicro code implemented by M+ series PLCs. These are the names to use when you write the JAVA applet user interface.

a) emInt1 to emInt16 : These are 16 bit unsigned integer variables
b) emLInt1 to emLInt16: These are 32-bit unsigned integer variables.
c) emStringA and emStringB: These two are byte array of 70 characters each, used mainly as strings variables.

These variables have a one to one correspondence with the following system variables defined in TBASIC:

emMicro
(case sensitive)

TBASIC
(non case sensitive)

  emEvent1 to emEvent4   EMEVENT[1] to EMEVENT[4]

emInt1 to emInt16

EMINT[1] to EMINT[16]

emLInt1 to emLInt16

EMLINT[1] to EMLINT[16]

emStringA

A$

emStringB

B$


backbutton.gif (507 bytes)  Basic to TBASIC Reference Manual