Command 'Export All Unicode .txt Text List Files'Permalink

Symbol: _cds_icon_export_import_textlists

Function: This command exports all the text lists of the project.

Call: Main menu “Textlist”, context menu

Requirement

  • A text list or a global text list is open and active.

  • The visualization codes the characters of the texts in Unicode.

    • The option “Use Unicode strings” in the visualization manager is activated.

    • The compiler instruction ‎VISU_USEWSTRING‎ in the application is set. Check this by selecting the command “Properties” in the context menu of the application. Then select the “Compile” tab. ‎VISU_USEWSTRING‎ must be entered in the input field for “Compiler defines”.

CODESYS creates a file as plain text in the format ‎.txt‎ for each text list. The name of the text list becomes the name of the file. The directory into which the files are exported is set in “Project  Project Settings  Visualization”, category “General” in “Text list files”.

A controller can read and use this format. For example, you can copy the file to a controller and, by means of a configuration in the visualization manager, prevent the text lists from being transmitted again when loading the application.

See also