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

Beispiele für ST

Bensen83
2010-02-02
2010-02-02
  • Bensen83 - 2010-02-02

    Hallo, gibt es rgendwo Beispiele für Codesys wo etwas in ST Programmiert wird und man noch ne Visu dazu ertellt? Also z. B. ne kleine Ampelteuerung oder so?

    Es geht mir vor allem um ST und um ne Schritkette. ach ja und um die Visu Gibts da irgendwo was?

     
  • Michael.Klank - 2010-02-02

    Schau mal im CoDeSys Ordner (c:\Programme\3S Software\CoDeSys V2.3\Projekcts) da gibt es Beispiele!

    Aber Abläufe mache ich immer so:

    CASE uiState of
    0:
        If bIrgendWas then
            (* tue irgendwas*)
            uiState:=10;
        end_if
    10:
        If bIrgendWas then
            (* tue irgendwas*)
            uiState:=20;
        end_if
    20:
        If NOT boIrgendWas then
            (* tue irgendwas*)
            uiState:=0;
        end_if
    END_CASE
    

    Michael

     

Log in to post a comment.