You cannot directly display the value of
any variables in the cicode window. You can get at I/O Device
variables using the TagRead and TagWrite functions. You can also
use the function TagDebug() which displays a form and allows you to
read and write to any I/O Device variable. If you want to read or
write to the value of global cicode variables you will have to
write a cicode function to access the variable. For example to
display the value of the global variable TestVar use a function as
follows:
FUNCTION
ReadTestVar()
TraceMsg("Value of TestVar is = " + TestVar :
#####);
END
|