When variables (such as real-time data) are used as arguments, the value of the variable is passed, not the variable itself. The following example uses the DspStr() function to display the value of a process variable at AN25:
Command |
DspStr(25, "TextFont", B1_TIC_101_PV); |
In this instance, the value of B1_TIC_101_PV displays. If it is a real-time variable, the number that displays depends on its value at the time.
Note: If you use double quotes around variables, for example, "B1_TIC_101_PV", the text string B1_TIC_101_PV displays, rather than the value of the variable.