DisplayFlags
- Last UpdatedJan 25, 2024
- 1 minute read
Determines which data columns to include in the results. This parameter is an integer representing a bit pattern where each bit represents a data column. If the bit is set to 1, the column is included in the results.
When you use this parameter with the wwHistory2 function, the bits are as follows (bit 0 is the rightmost bit):
|
Bit |
Display option |
Integer equivalent |
|---|---|---|
|
18 |
wwStateCalc |
262144 |
|
17 |
wwInterpolationType |
131072 |
|
16 |
Value timestamp |
65536 |
|
15 |
Show milliseconds in timestamp |
32768 |
|
14 |
Quality |
16384 |
|
13 |
OPC quality |
8192 |
|
12 |
Quality detail |
4096 |
|
11 |
wwRetrievalMode |
2048 |
|
10 |
wwTagKey |
1024 |
|
9 |
wwCycleCount |
512 |
|
8 |
wwResolution |
256 |
|
7 |
wwTimeDeadband |
128 |
|
6 |
wwValueDeadband |
64 |
|
5 |
wwTimestampRule |
32 |
|
4 |
wwQualityRule |
16 |
|
3 |
wwVersion |
8 |
|
2 |
wwTimeZone |
4 |
|
1 |
wwEdgeDetection |
2 |
|
0 |
PercentGood |
1 |
For additional information on each display option, see Display Options Tab.
To enable multiple display options, add up their integer equivalents and use the result as the value for this parameter. For example, if you want to use the wwHistory2 function and show the value timestamp with milliseconds as well as the history version, add the following values:
|
Bit |
Display option |
Integer equivalent |
|---|---|---|
|
16 |
Value timestamp |
65536 |
|
15 |
Show milliseconds in timestamp |
32768 |
|
3 |
wwVersion |
8 |
In this case, the parameter value is 98312 (65536 + 32768 + 8).