<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Fehler mit ASCIIBYTE_TO_STRING?</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/</id><updated>2020-02-28T07:11:40.725000Z</updated><subtitle>Recent posts to Fehler mit ASCIIBYTE_TO_STRING?</subtitle><entry><title>Fehler mit ASCIIBYTE_TO_STRING?</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/?limit=25#4196" rel="alternate"/><published>2020-02-28T07:11:40.725000Z</published><updated>2020-02-28T07:11:40.725000Z</updated><author><name>toninlg</name><uri>https://forge.codesys.com/u/toninlg/</uri></author><id>https://forge.codesys.com458cc0c26cd004b34a9e3a9b4e324983fddade2f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Danke für die Antworten. Ich werde die Oscat-Lib später prüfen, weil ich zu etwas andere arbeiten muss.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fehler mit ASCIIBYTE_TO_STRING?</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/?limit=25#b9d1" rel="alternate"/><published>2020-02-28T07:11:34.466000Z</published><updated>2020-02-28T07:11:34.466000Z</updated><author><name>J Schohaus</name><uri>https://forge.codesys.com/u/j-schohaus/</uri></author><id>https://forge.codesys.comfe7df1dfab58b0c0abf48feee06b1f208777a68d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo zusammen&lt;/p&gt;
&lt;p&gt;Laut Hilfe kann auch bei der Dekaration ein Hex Wert mit $ angegeben werden.&lt;/p&gt;
&lt;p&gt;z.B. für das Zeichen CHR(255)&lt;/p&gt;
&lt;p&gt;kann bei der Deklaration folgendermaßen angegeben werden&lt;/p&gt;
&lt;p&gt;MeinString : STRING&lt;span&gt;[1]&lt;/span&gt; := '$FF' ; (&lt;em&gt; FF in HEX = 255 &lt;/em&gt;)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fehler mit ASCIIBYTE_TO_STRING?</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/?limit=25#0b64" rel="alternate"/><published>2020-02-28T07:11:32.217000Z</published><updated>2020-02-28T07:11:32.217000Z</updated><author><name>gravieren</name><uri>https://forge.codesys.com/u/gravieren/</uri></author><id>https://forge.codesys.com2e4cf61dbc1bead586073b1303533b1c9894fe84</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Du kannst dir alledem die OSCAT-Lib anschauen.&lt;/p&gt;
&lt;p&gt;Vorteil:   Offener ST-Code.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fehler mit ASCIIBYTE_TO_STRING?</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/?limit=25#4f6d" rel="alternate"/><published>2020-02-28T07:11:26.043000Z</published><updated>2020-02-28T07:11:26.043000Z</updated><author><name>toninlg</name><uri>https://forge.codesys.com/u/toninlg/</uri></author><id>https://forge.codesys.coma268de5a24eee1f918f6db04504484859586c0ce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ich habe die Lösung gefunden. Ich probierte meinen Code mit Simulation aktiv. Wenn  Codesys nicht in Simulation ist, ASCIIBYTE_TO_STRING funktioniert.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fehler mit ASCIIBYTE_TO_STRING?</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/?limit=25#8492" rel="alternate"/><published>2020-02-28T07:11:23.805000Z</published><updated>2020-02-28T07:11:23.805000Z</updated><author><name>Erik Böhm</name><uri>https://forge.codesys.com/u/erik-boehm/</uri></author><id>https://forge.codesys.com13ba3cf34d3e66f35d78c665a76a9e52ba478626</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo&lt;/p&gt;
&lt;p&gt;Das hab ich wohl falsch verstanden. In diesem fall ist STRING(1) natürlich korrekt. Die Funktion gibt ja auch nichts anderes zurück.&lt;/p&gt;
&lt;p&gt;Die Funktion setzt intern einen Pointer auf die Adresse des umzuwandelnden Bytes und dereferenziert diesen auf einen STRING(1).&lt;/p&gt;
&lt;p&gt;Ganz einfach... &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fehler mit ASCIIBYTE_TO_STRING?</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/?limit=25#c248" rel="alternate"/><published>2020-02-28T07:11:17.573000Z</published><updated>2020-02-28T07:11:17.573000Z</updated><author><name>J Schohaus</name><uri>https://forge.codesys.com/u/j-schohaus/</uri></author><id>https://forge.codesys.combfc92bee4228c3a6608d62325d9656189cc4ab7b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Oscat.Lib benutzt standart Befehle.&lt;/p&gt;
&lt;p&gt;Deshalb gehe ich davon aus das die Lib. auf Waag funktioniert.&lt;/p&gt;
&lt;p&gt;Einfach testen.&lt;/p&gt;
&lt;p&gt;mfG Jochen&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fehler mit ASCIIBYTE_TO_STRING?</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/?limit=25#c9d4" rel="alternate"/><published>2020-02-28T07:11:15.308000Z</published><updated>2020-02-28T07:11:15.308000Z</updated><author><name>toninlg</name><uri>https://forge.codesys.com/u/toninlg/</uri></author><id>https://forge.codesys.com96c5842871c12cda913e672678629676d3bca9fb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ja, das ist richtig.&lt;/p&gt;
&lt;p&gt;Ich verstehe nicht warum ASCIIBYTE_TO_STRING funktioniert nicht. &lt;/p&gt;
&lt;p&gt;Ich habe etwas andere benutzt.&lt;/p&gt;
&lt;p&gt;Kann ich die oscat.lib mit Wago benutzen?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fehler mit ASCIIBYTE_TO_STRING?</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/?limit=25#4205" rel="alternate"/><published>2020-02-28T07:11:09.082000Z</published><updated>2020-02-28T07:11:09.082000Z</updated><author><name>J Schohaus</name><uri>https://forge.codesys.com/u/j-schohaus/</uri></author><id>https://forge.codesys.com29dd02f74fcb644377c5cd75bdf3520b5157bb6a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo&lt;/p&gt;
&lt;p&gt;zur Aufklärung Oscat.lib ist eine freierhältiche Lib. die nach Open Source&lt;/p&gt;
&lt;p&gt;erstellt wurde.&lt;/p&gt;
&lt;p&gt;Findest Du unter  w &lt;a class="" href="http://www.oscat.de" rel="nofollow"&gt;www.oscat.de&lt;/a&gt; w &lt;/p&gt;
&lt;p&gt;In der Lib. sind sehr viele nützliche Funktionen.&lt;/p&gt;
&lt;p&gt;Wenn ich dich richtig verstanden habe möchtest du ein Zeichen als String mit dem ensprechenden ASCII wert haben.&lt;/p&gt;
&lt;p&gt;z.B. CHR(13) für ENTER was $R entspricht.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fehler mit ASCIIBYTE_TO_STRING?</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/?limit=25#e4df" rel="alternate"/><published>2020-02-28T07:11:06.810000Z</published><updated>2020-02-28T07:11:06.810000Z</updated><author><name>toninlg</name><uri>https://forge.codesys.com/u/toninlg/</uri></author><id>https://forge.codesys.comfe7815eb1c7c1444908f8b35b977ce39e5dcc3c8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;FUNCTION&lt;/span&gt; &lt;span class="nt"&gt;ASCIIBYTE_TO_STRING&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;STRING&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;1&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="nt"&gt;VAR_INPUT&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;byt&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;BYTE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;byt ist ein ASCII code und ich möchte dieser in String wandeln.&lt;/p&gt;
&lt;p&gt;Wenn ich den folgenden code schreibe, funktioniert das auch nicht.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;PROGRAM&lt;/span&gt; &lt;span class="nt"&gt;PLC_PRG&lt;/span&gt;
&lt;span class="nt"&gt;VAR&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;Test&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nd"&gt;STRING&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;255&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;b&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nd"&gt;BYTE&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;9&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;END_VAR&lt;/span&gt;
&lt;span class="nt"&gt;Test&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;ASCIIBYTE_TO_STRING&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;b&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt; 
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Fehler mit ASCIIBYTE_TO_STRING?</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0a4f28bef3/?limit=25#611e" rel="alternate"/><published>2020-02-28T07:11:00.591000Z</published><updated>2020-02-28T07:11:00.591000Z</updated><author><name>Erik Böhm</name><uri>https://forge.codesys.com/u/erik-boehm/</uri></author><id>https://forge.codesys.com5ad556d4f04083f7801510b87784910b3730b077</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Noch was vergessen.&lt;/p&gt;
&lt;p&gt;Die korrekte Definition für Test wäre mindestens String(4), wegen der Terminierenden NULL nach dem eigentlichen Inhalt des Strings.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>