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

Dialoge mit Pragmas und Textlisten

Anonymous
2015-05-29
2015-06-18
  • Anonymous - 2015-05-29

    Originally created by: mg

    Hallo,

    Ich habe ein einem Dialog das Pragma "{attribute 'VAR_IN_OUT_AS_POINTER' '}" verwendet.

    VAR_IN_OUT
       {attribute 'VAR_IN_OUT_AS_POINTER' '}
       m_Input_Cmd : MVAL;
    END_VAR
    

    MVAL ist ein Struct von uns.

    Jetzt wollte ich mit Hilfe einer Textliste einen Text dynamisieren. Ich habe unter dem Reiter "Dynamische Texte" die Textliste ausgewählt und als ID habe ich "m_Input_cmd.Pri_i" angegeben.

    Ãœbersetzen funktioniert. Download auch. Doch nach dem ich das Programm starte bekomme ich die meldung "stopp (Ausnahmefehler)".
    Ich habe das gleiche auch mit einem Frame probiert. Da funktioniert es so wie gewollt.

    Danke
    Gruss
    Mario

     
  • Anonymous - 2015-06-18

    Originally created by: mg

    An das Codesys-Team,

    Da ich bis jetzt noch nichts gehört habe und das Problem weiterhin besteht möchte ich den Fehler mit einem Beispielprogramm und einem Bild genauer beschreiben.

    Im Projekt Verwende ich eine Texliste "TextList" mit ein paar einträgen.
    Ein Dialog "Dialog"
    Und eine Visualisierung in welcher ich den Dialog öffne.

    Wenn ich jetzt im "Dialog" das Pragma "{attribute 'VAR_IN_OUT_AS_POINTER' '}" verwende rennt mein Programm in einen Ausnahmefehler (siehe Bild). Ohne Pragma funktioniert es.

    Bitte um Rückmeldung bis wann ich mit einer Antwort rechnen kann.

    Gruss
    Mario

    IMG: Ausnahmefehler.png

    PragmaTextliste.project [142.92 KiB]

     

Log in to post a comment.