Question:
How can variable values with decimal codes be displayed in the DDS visualisation?
Answer:
Via
Extras>Configurate you can configure a selected element of the visualisation. The variable, whose value is to be visualised, can be selected in the category
variables, field
Textdisplay. In the category
Text, field
Content enter one of the following wildcards. The DDS-visualisation substitutes the wildcard by the variable value. The displayed format is defined by means of the wildcard.
Wildcards:
%s: textual display of the value, which corresponds to the display of the variable's monitoring
%f: display ddd.dddddd
%e: display d.dddddde±ddd
%E: display d.ddddddE±ddd
%g: display like in lines f or e in the shorter presentation
%G: display like in lines f or E in the shorter presentation
The wildcards (except %s) can be extended as follows:
- : Display is left justified
+ : Positive sign is displayed
b : Minimum width of the output field
.n : Figures behind the dot, 6 is preselected
Example:
With wildcard %+5.2f the value 123.45678 is displayed as follows: +123.46.
Notes:
- Only values of REAL-variables can be displayed with digital positions and can be entered. Variables of type REAL are allowed to be used in cyclic task only.
- Values of integer variables (e. g. type INT) can only be displayed with decimal codes, when in category Variables, field Textdisplay a calculation (e .g. scaling) is executed, e. g. nVar/100.0.
- Further wildcards for the formatfed text display can be found in the DDS reference manual / in the online help.