HisTrendGraphics
Ø Historical Trend Chart Overview: This trend chart is used in conjunction with the“Historical Data Collector” in the Project Manager. That is, it shows the value of the data in the "Historical Data Collector".
Ø Overview of XY Trend chart:
Dynamic, continuous display of variable continuous value.
Display multiple data reference curves. Take the time as the X axis, the address nvalue as the Y axis, in order to judge the change tendency of certain address value accurately and intuitively during a period of time.
Up to 12 polylines can be displayed (line graph).
Ø Add the trend chart and modify its properties:
1.Select the trend icon
in the toolbar, the Historical Trend Property dialog box appears, as
shown in Figure 4-53:

Figure 4-53 Historical Trend General page dialog box
l Background color: Change the background color of the trend chart. Change the color cannot directly see the color change, click "OK" to apply.
l Transparency: Change the transparency of the background color.
l Data Collection: The default is that from "Historical data collector " in Project Manager. SKTOOL adds multiple sets of historical data, so developers who choose this option can choose which set of historical data to use. As shown below:

l Number of curves: Number of line to be displayed; up to 12.
l Background Color: The color of the pen (or line) trace.
l Use control address: Whether to use control address. It is occupied by 28 address offset, used to control the display of each line, maximum value, minimum value, the end time of control, control time period (minutes), the maximum value when only the Y axis is displayed, the minimum value when only the Y axis is displayed whether to display the Y axis and the restoration to the initial state.
|
Address offset |
Controlled object by control register address |
|
0 |
Set the total number of lines displayed |
|
1 |
Bit 0 controls whether line 1 is displayed, and bit 1 controls whether line 9 is displayed. That is, when the numerical value of this word is 3, both line 1 and line 9 are displayed; when it is 2, only line 9 is displayed; when it is 1, only line 1 is displayed; and when it is 0, neither line 1 nor line 9 is displayed. (The default value is 3). |
|
2 |
Bit 0 controls whether line 2 is displayed, and bit 1 controls whether line 10 is displayed. That is, when the numerical value of this word is 3, both line 2 and line 10 are displayed; when it is 2, only line 10 is displayed; when it is 1, only line 2 is displayed; and when it is 0, neither line 2 nor line 10 is displayed. (The default value is 3). |
|
3 |
Bit 0 controls whether line 3 is displayed, and bit 1 controls whether line 11 is displayed. That is, when the numerical value of this word is 3, both line 3 and line 11 are displayed; when it is 2, only line 11 is displayed; when it is 1, only line 3 is displayed; and when it is 0, neither line 3 nor line 11 is displayed. (The default value is 3). |
|
4 |
Bit 0 controls whether line 4 is displayed, and bit 1 controls whether line 12 is displayed. That is, when the numerical value of this word is 3, both line 4 and line 12 are displayed; when it is 2, only line 12 is displayed; when it is 1, only line 4 is displayed; and when it is 0, neither line 4 nor line 12 is displayed. (The default value is 3). |
|
5 |
Whether to display 5 |
|
6 |
Whether to display 6 |
|
7 |
Whether to display 7 |
|
8 |
Whether to display 8 |
|
9 |
Maximum value in Y axis |
|
10 |
|
|
11 |
Minimum value in Y axis |
|
12 |
|
|
13 |
When set to 0, use the default maximum and minimum value; when set to 1, set the upper and lower limits |
|
14 |
Query start time |
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
Query end time |
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
When set to 1, enter the query, and return to the state 0 automatically |
|
27 |
When set to 1, recover to new state and return to the state 0 automatically |
Whether to display the control address:
Detection
l Enabled: Indicate whether the detection line (reference line) is enabled.
l Color: The color of the detection line (reference line).
l Detection address: Write the corresponding value to of the current detection line (reference line) to the detection address register.
2. The "Line" page of the historical trend graph is shown in Figure 4-54.

Figure 4-54 Pen tab of Historical trend
This page allows setting the maximum, minimum, pattern, and color of each line. The data source is the “Historical Data Collector” in the Project Manager. Each line can correspond to a different data source.
The data source is variable: After checking, you can select another data source within the same historical data collector for the pen by controlling the starting address during runtime.
Control Address: LW address, which occupies 13 consecutive addresses and is used to change the data source for each pen.
The ID of the data source is shown in the figure below:
If the "The data source is variable" option is checked, after the program starts, the program will write 0 in the first LW address of the selected address range, and then fill in the data source serial numbers configured in the configuration in the subsequent LW addresses (0 will be filled in for those not available). As shown in the figure below:
To change the data source, set the first LW to 1, then modify the data source of the corresponding curve. As shown in the figure below, the data source of Curve2 has been changed from 21 to 13:
3. The "XY Axis" page of the historical trend chart is shown in Figure 4-55.

Figure 4-55 XY Axis tab of Historical Trend
X-axis
l Display scale: whether to display the X-axis scale.
l Show Y-axis grid: Whether to display Y-axis grid.
l Axis / Scale Color: Change the color of the X-axis / scale.
l Grid Color: Change the X-axis grid color.
l Main sub-scale: X-axis main scale.
l Sub-scale: X-axis times the number of times.
l Display time: Set the time format and font size of time.
l Time Range: Set the time range displayed on the trend graph.
Y-axis
l Display Scale: Whether to display the Y-axis scale.
l Show X-axis grid: Whether to display the X-axis grid.
l Axis / Scale Color: This option changes the color of the Y-axis / scale.
l Grid Color: This option changes the Y-axis grid color.
l Major scale division: Numbers of Y-axis major scale.
l Sub-scale division: Numbers of Y-axis sub-scale.
l Show Marks: Whether to display the Y-axis scale mark.
l Font Size: Change the font size of the Y-axis scale.
l Minimum: The minimum value of the Y-axis scale.
l Max: The maximum value of the Y-axis scale.
l Total: Display the maximum digital number of the data.
l Decimal Place: The maximum digital number that can be displayed after the decimal point.
l Display the multi-axis: whether to display multiple axes.

The "Visibility" page can refer to that of "Bit Button" control.