Skip to main content

Command: Import mappings from CSV

Function: The command opens the default dialog for opening a file in the local file system. The filter is set to the CSV file format in order to import the I/O mapping configuration of a device from the file which was exported previously by means of the Export mappings to CSV command. CODESYS writes the configuration to the selected device.

Call: Context menu of a device object in the Devices view

Requirement: A project is open with a device and an I/O mapping configuration. The device matches the exported CSV file.

Important

I/O mapping configurations are saved in CSV files with the delimiter which was defined as the list separator (comma or semicolon) in the regional settings in Windows. These files can be edited manually. When the files are edited manually, it is imperative that this format is retained in order to import successfully.

Note: The entries of the file to the I/O mapping of the device are assigned by the device name and the parameter name. Parameter names which are not unique are numbered incrementally @<n> in this file.

Fields without contents in the CSV file are ignored at import. To remove an existing entry in the I/O mapping by importing, you need to add a space in the respective field in the CSV file.

For more information, see: Configuring Devices and I/O Mapping