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

ASCII-Codes

Anonymous
2005-11-10
2005-11-11
  • Anonymous - 2005-11-10

    Originally created by: Klaus Kilper

    Hallo zusammen,

    ich habe nun schon ein paar recht umfangreiche Projekte mit Codesys 2.3 geschrieben, aber leider habe noch keine Funktion gefunden, um den ASCII-Code eines Zeichens zu ermitteln:

    so etwas wie ASCII('A') => 65

    oder auch umgekehrt wie CHR(65) => 'A'

    Gibt es hier einen Weg????

    Viele Grüsse

    Klaus

     
  • Anonymous - 2005-11-11

    Originally created by: Gast

    DINT_TO_STRING

    STRING_TO_DINT

     
  • Anonymous - 2005-11-11

    Originally created by: Gast

    Anonymous hat geschrieben:
    DINT_TO_STRING
    STRING_TO_DINT

    Ich denke DINT_TO_STRING und STRING_TO_DINT bringen nicht den gewünschten Erfolg.

    Diese Funktionen wandeln lediglich eine Zahl ineine String b.z.w. umgekehrt (z.B INT(123) -> '123').

    Nimm lieber die Funktionen aus dem angehängten Beispiel.

    Uwe

    AsciiCode.zip [3.92 KiB]

     
  • Anonymous - 2005-11-11

    Originally created by: Gast

    Tschuldigung

    Ich habe leider versehentlich das falsche Projekt gespeichert und leider

    auch vorhin ins Forum gestellt.

    Hier im Anhang aber nun das Projekt mit den Funktionen

    ASCII und CHR.

    Uwe

    AsciiCode.zip [2.5 KiB]

     
  • Anonymous - 2005-11-11

    Originally created by: Gast

    ... werde ich gleich einmal probieren.

     

Log in to post a comment.