Getting Started with Trend Recording

To execute trend recording on a runtime system, you need an application with a TrendRecordingManager object that contains at least one TrendRecording object. Then you can configure a database on the runtime system and the data buffering.

  1. Add a TrendRecordingManager object below your application.

  2. Select the TrendRecordingManager object and click Add Object ‣ Trend recording. Type a name in the Add Trend recording dialog box.

    CODESYS creates the object. The editor opens.

  3. Type a task in Record Settings.

  4. Click Add variable.

    CODESYS adds another variables. The blank settings open in the Variable Settings to the right of the tree view.

  5. Select a valid IEC variable from the Variable field.

    The IEC variable is configured for trend recording.

  6. Build the application.

  7. Download the application to the controller and click Start.

    The application records data in runtime mode and saves it to a database.

See also