Viewing System Variables


TBASIC has many internal numeric and string data which can be easily examined by clicking  the simulator2.gif (236 bytes). button on the Simulation or Monitoring screen. When you are in On-Line Monitoring mode, the data shown are the "real-time" data captured from the PLC (of course, subject to some communication and network delay) and will be updated periodically.

These variables are organized into 5 screens which can be scrolled by  by clicking on the viewvar5.gif (247 bytes) buttons or by pressing the left/right cursor keys. On some screens that span more than one page, you can scroll from page to page by clicking on theviewvar6.gif (319 bytes) buttons or by pressing the <PgUp><PgDn> keys.

Numerical data can be viewed either in Decimal or Hexadecimal format. You can switch to the Hexadecimal format by clicking on the viewvar7.gif (9095 bytes) button or by pressing the <H> key.

On the first 4 screens it is possible to Click on the Variable Names to bring up a white call out box with the define table name if one exists (Only available on version 6.5x and 7.1x or higher):

Variable Define Name   

Finally,  the viewvar8.gif (192 bytes) button (or the <E> key) allows you to make changes to any internal variables. When you are in On-Line Monitoring mode, the changes are written into the PLC. This may be useful if you need to make temporary changes to some of the PLC's data  (e.g. set some parameters) without altering the program. It also helps in debugging your PLC software by allowing you to force some value to see the effect on the program. When you click on the viewvar8.gif (192 bytes) button, a window will open to prompt you to enter the desired changes:

viewvar9.gif (3617 bytes) You must enter the values for the variables in an assignment format as follow:

E.g.  X = 123456
timerPV[1] = 500
emLint[5] = 200


1.  View Integer Variables A to Z and ADC/DAC/PWM, RTC etc

viewvar1.gif (9645 bytes)

Note:


2. View Floating Point A# to Z# and FP[1] to FP[1000] (TL7.x and up only)

View Variables Screen - Floating Point


3. View Data Memory DM[1] to DM[4000]

View Variables Screen - DM[] Variables


4. View String Variables A$ to Z$

viewvar3.gif (6673 bytes)

Note:


5. View System Variables (Input[n], Output[n], Relay[n], Timer[n], Ctr[n], emInt[n], emEvent[n], emLint[n])

viewvar4.gif (9096 bytes)

Note: