Symbol:
A “Trend Recording” object is always located below a “Trend Recording Manager” and enables editing of the trace configuration. At runtime, CODESYS transfers the configuration that is available to the runtime system component CmpTraceMgr
. You can configure an application with any number of trend recordings.




NOTICE

Timeout for trend recording
During a trend recording, it can happen that the application task triggers a timeout that is caught with an exception when transitioning from “Running” to “Stop”. Causes can be that file operations with the SQLite database are taking too long or that too many variables are being recorded. This usually happens on a target device with weak performance.
You can avoid the occurrence of an exception:
-
Configure the trend recording with less memory demand so that the amount of data that is stored is adapted to the target system.
-
Reduce the number of variables.
The editor includes the configuration for trend recording. The tree view shows the trend configuration and enables navigation there.
The top entry contains the trend name. When this entry is selected, the “Record Settings” are displayed next to it. An entry is located here for each variable whose data was recorded continuously. When a variable is selected, the “Variable Settings” are displayed next to it.
“Add Variable” |
When you click the link, a new entry is displayed in the trend configuration with its blank configuration below the “Variable Settings” group. |
“Delete Variable” |
The selected variable is removed. Requirement: A variable is selected. |
See also
'Recording Settings'
The data is recorded in the runtime system component by means of the functionality which is also used for the trace. The settings that appear here are the same. The options that are not required here are deactivated.
The settings that affect the trigger are deactivated. Only a trace configuration for a trace editor can configure triggering. |
|
“Task” |
Task where data was recorded. Click |
“Recording condition” |
Condition under which the application records data:
The contents of a pointer are not permitted. Note: If no condition is defined, then the recording starts automatically. |
“Comment” |
Comment (example: |
“Resolution” |
Resolution that the application saves the time stamp Note: If the task where the trend object is executed has a cycle time of 1 ms or less, then you should set the resolution of the time stamp to “1 µs”. |
“Trend Storage” |
The “Trend Storage” dialog opens. |
“Advanced” |
The “Advanced Trend Settings” dialog opens. |
'Variable Settings'
“Variable” |
Variable for recorded value.
Valid data types are all standard types, except |
“Parameter” |
Parameter for the recorded value The “Input Assistant” dialog lists all valid system parameters in the “Parameters” category of the “Categories” tab. |
|
Click the symbol to toggle between “Variable” and “Parameter”. |
“Recording condition” |
Condition under which the application records the data of these “Variables”:
The contents of a pointer are not permitted. Note: If no condition is defined, then the recording starts automatically. |
“Attached y axis” |
Y-axis of the trend diagram that displays the “Variable”. The list box provides the standard Y-axis and the configured Y-axes. Requirement: This option is visible only when the “Trend” visualization element has configured additional Y-axes in the “Edit Display Settings” dialog. |
“Display variable name” |
Requirement: If any text is typed in “Description”, then you can disable the option. |
“Description” |
Text for the tooltip (example: When the “Display Variable Name” property is activated, then the text is supplemented with the variable name in parentheses.
Example: If “Description” does not contain any text, then “Display Variable Name” is enabled. The name is then alone without parentheses (for example, If a legend is assigned to the trend, then the trend variable is labeled in the legend and shown like the trend is configured here. |
“Curve type” |
|
“Graph color” |
Color of the curve in the trend diagram |
“Line type” |
Requirement: The “Curve type” is “Line”. |
“Filling type” |
Requirement: The “Curve type” is “Area”. |
“Filling color” |
Requirement: The “Curve type” is “Area”. |
“Transparency” |
Value (0 to 255) for defining the transparency of the selected color Example Requirement: The “Curve type” is “Area”. |
“Line width” |
Value (in pixels) Example: |
“Line style” |
The display of the line is solid, dash, dot, dash-dot, or dash-dot-dot. |
“Point type” |
Display as scatter chart
Hint: Select “None” for larger size data. |
“Activate minimum warning” |
|
“Critical lower limit” |
If the variable value is below the limit, then the variables are displayed with the alert color in the trend diagram. |
“Color” |
Warning color on falling below the limit |
“Activate maximum warning” |
|
“Critical upper limit” |
If the variable value exceeds the limit, then the variables are displayed with the alert color in the trend diagram. |
“Color” |
Warning color on exceeding the limit |