Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Importing .csv Textlists into CoDeSys 3.5

2015-09-16
2018-01-15
  • Julian Henkel - 2015-09-16

    Hello,

    I have a problem with importing textlists into my project. I'm using CoDeSys 3.5 SP6 Patch 4.
    Just for testing purposes, I made the following textlist and tried to import it into a blanc textlist.

    Textlist I want to import:

    Id;Default;deutsch;english
    1;default 1;deutsch 1;english 1
    2;default 2;deutsch 2;english 2
    3;default 3;deutsch 3;english 3
    ;;;
    

    Then I created a textlist in CoDeSys without changing anything about it and then tried to import the textlist above via "right click -> Import/Export Textlist -> selected my .csv file -> selected import -> the only thing that happens is that it adds the two column headers "deutsch" and "english".

    Is there anybody who might know what I am doing wrong?

    Thanks in advance!

     
  • learnetk - 2015-09-24

    Hi actually the Textfile you create should look something like this
    TextList Id Default English
    TextList 1 Off Off
    TextList 2 Init Init
    TextList 3 Disconnect Disconnect
    TextList 4 Starting Starting

    so the first column should have the Name of the textlist. As in my case my textlist is named 'TextList' in my CoDeSys Program. So if you Name your textlist 'Parameters' then the first column should have 'Parameters'.
    hope this helps..

     
  • Julian Henkel - 2015-10-02

    Hi learnetk,

    just tried it out and it works perfectly fine. I really wasn't aware that I have to put the name of the text list in front of each line.

    Thank you very much!

     
  • lmervin - 2018-01-15

    More info:

    IMG: TextList process.jpg

     

Log in to post a comment.