To execute trend recording on a runtime system, you need an application with a “Trend Recording Manager” object that contains at least one “Trend Recording” object. Then you can configure a database on the runtime system and the data buffering.
-
Add a “Trend Recording Manager” object below your application.
-
Select the “Trend Recording Manager” object and click “Add Object Trend Recording”. Type a name in the “Add Trend Recording” dialog box.
CODESYS creates the object. The editor opens.
-
Type a task in “Record Settings”.
-
Click “Add Variable”.
CODESYS adds another variables. The blank settings open in the “Variable Settings” to the right of the tree view.
-
Select a valid IEC variable from the “Variable” field.
The IEC variable is configured for trend recording.
-
Build the application.
-
Download the application to the controller and click “Start”.
The application records data in runtime mode and saves it to a database.