125
On power up the strings are all cleared to blank strings. They can populated with the
<CX
n
,s
tring>
command where
n
is the index of the string to be saved and
string
is the character string to save. This command does not have any visual
effect on the screen display, but when all the strings that require to be updated have been populated with their new
values, the
<CU>
command can be sent. This will cause all the strings being displayed on the screen to be updated
simultaneously.
Using this command simplifies such tasks as showing the current time on the screen, or for a simple script to display a
number of variables, together with their tags and units. Once the script has been run the host can use the
<CV
n,string
>
and
<CX
n,string
>
followed by
<CU>
to display as many values as needed in a common format.
If should be noted that unlike Mapped Variables and Bars, the location of script strings are not stored in any saved
frames. Thus the use of a save frame and then restore frame will only restore the image of the string displayed at the
time that the save frame was executed.
In the following example the time, 2 variables with their units and tags are displayed on then screen when the script has
been downloaded and run.
SD
NS
CM0,90
*DX1,5
CM2,57
DV1,5,1,1,1
CM4,57
DV2,5,1,1,1
CM2,6
*DX2,8
CM4,6
*DX3,8
CM2,91
*DX4,4
CM4,91
*DX5,4
*BI
The host can now send the following commands to display the data associated with Tag_0001 and Tag_0002:
<CX1,00:00>
The 00:00 will be replaced by the system time
<CX2,Tag_0001>
<CX3,Tag_0002>
<CX4,PSI>
<CX5,Bar>
<CU>
<CV1,100.0>
The 100.0 would be the actual value of Tag_0001
<CV2,150.0>
The 150.0 would be the actual value of Tag_0002
By changing a few host data parameters, the information can be easily changed:
<CX1,00:00>
The 00:00 will be replaced by the system time
<CX2,Tag_0025>
<CX3,Tag_0027>
<CX4,`C>
<CX5,DegF>
<CU>
<CV1,23.4>
The 23.4 would be the actual value of Tag_0025
<CV2,3.0>
The 3.0 would be the actual value of Tag_0027
Therefore one script can be used to display lots of different data in the same format under the control of the host.