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

zweidimensionales ARRAY an Funktion übergeben

andrax
2022-09-14
2022-10-05
  • andrax

    andrax - 2022-09-14

    Hallo zusammen,

    ich möchte ein Array
    Puffer : ARRAY [1..2000,1..2] OF REAL;
    an eine Funktion übergeben.
    Die Methode:
    VAR_INPUT
    DATA : POINTER TO REAL;
    END_VAR
    geht natürlich nicht

    Ebenso wenig der Aufruf
    VAR_INPUT
    DATA : ARRAY [1..2000,1..2] OF REAL;
    END_VAR

    Wie müsste das korrekt umgesetzt werden?

    Danke schon mal im Voraus.

    Gruß

    Andre

     
  • Erik Böhm - 2022-10-05

    Ich würde sagen: POINTER TO ARRAY[1..2000,1..2] OF REAL

     

Log in to post a comment.