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

Anfängerfrage 2: Zustände bei Systemstart

trappi
2010-03-15
2010-03-15
  • trappi - 2010-03-15

    Hallo,

    ich möchte, dass bei Systemneustart einige Bedingungen TRUE sind, bis sich etwas anderes ergibt.

    Z.B.: Automatikbetrieb etc.

    Wie gehe ich das im ST an?

    Gruß, trappi

     
  • Anonymous - 2010-03-15

    Originally created by: Stephanie Kreutz

    Einfach in der Variablendeklaration:

    VAR

    xAutomatikbetrieb: BOOL := TRUE;
    

    END_VAR

    Das setzt den Initialwert und der bleibt natürlich so lange erhalten, bis der Variable irgend etwas anderes zugewiesen wird.

     

Log in to post a comment.