Is STRING(MAX_CSV_FIELD_LENGTH) a kind of data?

aminsys

Member
Join Date
Apr 2019
Location
Tehran
Posts
1
I want read CSV data in twincat3. I used simple example of beckhoff to solve this.
there are some strenge line in global var such these:

{attribute 'Tc2GvlVarNames'}
VAR_GLOBAL CONSTANT
MAX_CSV_ROWS: UDINT := 6400;
MAX_CSV_COLUMNS: UDINT := 0;
MAX_CSV_FIELD_LENGTH : UDINT := 100;
END_VAR

there is another sentence on the code:
database: ARRAY[0..MAX_CSV_ROWS, 0..MAX_CSV_COLUMNS ] OF STRING(MAX_CSV_FIELD_LENGTH);

so what kind of database type is?
I used UDINT and STRING to solve but there is no effect at all. what should I do?
 

Similar Topics

Hi all! I have a controller (L38-ERM) where I had a one dimensional array of strings with 1028 elements in it. I expanded this to 2048 because I...
Replies
23
Views
7,366
When I execute a long SQL statement using SQLSetStatment and SQLExecute in Intouch8.0, I always got a error of Unkown Error Code. I known that...
Replies
3
Views
7,906
I am creating a global object in FTView SE 13. I want to have a string read from the PLC and display (in this case the tagname). So lets say...
Replies
4
Views
147
So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
421
Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
122
Back
Top Bottom