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

TwinCAT ARRAY

2018-08-15
2018-08-16
  • Vijolica555 - 2018-08-15

    Hello,

    I have Data of ARRAY: Database : ARRAY [0..256, 0..3] OF STRING;

    And I would like to read every column seperately in VAR: C0, C1, C2, C3... Anyone knows how can I do That?

    As far as i remember is in Matlab when we have Matrix like C0 = Matrix(:,0);.. So here i need command/sign for all the lines. as ":" in Matlab.

    Thank you.

     
  • Anonymous - 2018-08-15

    Originally created by: rickj

    i : int;
    element : array [0..256] of string;
    for i:=0 to 256 by 1 do
    Β  Β element[i] := Database[i,0];Β  Β 
    end_for
    
     
  • Vijolica555 - 2018-08-16

    Thank you!

     

Log in to post a comment.