<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Hexzahlen zusammenfassen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/</id><updated>2020-02-28T11:42:01.922000Z</updated><subtitle>Recent posts to Hexzahlen zusammenfassen</subtitle><entry><title>Hexzahlen zusammenfassen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/?limit=25#949e" rel="alternate"/><published>2020-02-28T11:42:01.922000Z</published><updated>2020-02-28T11:42:01.922000Z</updated><author><name>locker baumeln</name><uri>https://forge.codesys.com/u/locker-baumeln/</uri></author><id>https://forge.codesys.com9a401b5e743e4de2fba43b1345c28b21b5e5e742</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;danke für die vielen Hilfen.&lt;/p&gt;
&lt;p&gt;Es funzt alles super. Das Problem war, das es im Simualtionsmodus nicht geklappt hat, wenn ich das Programm auf die Steuerung übertrage, klappt alles prima.&lt;/p&gt;
&lt;p&gt;Verstehe das wer will? &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Hexzahlen zusammenfassen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/?limit=25#46a1" rel="alternate"/><published>2020-02-28T11:41:58.466000Z</published><updated>2020-02-28T11:41:58.466000Z</updated><author><name>stonix</name><uri>https://forge.codesys.com/u/stonix/</uri></author><id>https://forge.codesys.com3fa76598d1c4579ed25ab2ae208ceacc410ffc25</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo locker baumeln, du bist schon aufm richtigen Weg. Du kannst die kleine Datentypen ohne Konvertierung in große zuweisen, aber die große Datentypen brauchen noch eine Konvertierungsfunktion.&lt;/p&gt;
&lt;hr/&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;hex1&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;16&lt;/span&gt;&lt;span class="p"&gt;#&lt;/span&gt;&lt;span class="nn"&gt;AB&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;hex2&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;16&lt;/span&gt;&lt;span class="p"&gt;#&lt;/span&gt;&lt;span class="nn"&gt;12&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;hex3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nd"&gt;WORD&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nt"&gt;16&lt;/span&gt;&lt;span class="p"&gt;#&lt;/span&gt;&lt;span class="nn"&gt;0000&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="o"&gt;(*&lt;/span&gt;&lt;span class="nt"&gt;Initialisierung&lt;/span&gt; &lt;span class="nt"&gt;kann&lt;/span&gt; &lt;span class="nt"&gt;auch&lt;/span&gt; &lt;span class="nt"&gt;weggealssen&lt;/span&gt; &lt;span class="nt"&gt;werden&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;hr/&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;hex3&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SHL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;hex1&lt;/span&gt; &lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;OR&lt;/span&gt; &lt;span class="n"&gt;hex2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;Wird&lt;/span&gt; &lt;span class="n"&gt;zu&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="o"&gt;#&lt;/span&gt;&lt;span class="n"&gt;AB12&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*****************&lt;/span&gt;&lt;span class="n"&gt;und&lt;/span&gt; &lt;span class="n"&gt;umgekehrt&lt;/span&gt;&lt;span class="o"&gt;*********************&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;hex1&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;WORD_TO_BYTE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;SHR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;hex3&lt;/span&gt; &lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt; &lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="n"&gt;hex2&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;WORD_TO_BYTE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;hex3&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;hr/&gt;&lt;/div&gt;</summary></entry><entry><title>Hexzahlen zusammenfassen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/?limit=25#4a42" rel="alternate"/><published>2020-02-28T11:41:51.241000Z</published><updated>2020-02-28T11:41:51.241000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com25898a58eb4b769c81d3832b0aaee386e01f8840</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Stephanie Kreutz&lt;/p&gt;
&lt;p&gt;.. aber auch dann kann man kein word in einer variable vom typ byte speichern....&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Hexzahlen zusammenfassen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/?limit=25#a927" rel="alternate"/><published>2020-02-28T11:41:48.562000Z</published><updated>2020-02-28T11:41:48.562000Z</updated><author><name>Matze001</name><uri>https://forge.codesys.com/u/matze001/</uri></author><id>https://forge.codesys.com15245104f5f70a607ff79eb51c784ac8fc263e5a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;wenn das nicht klappt...&lt;/p&gt;
&lt;p&gt;XYZ_TO_STRING&lt;/p&gt;
&lt;p&gt;CONCAT (schreibt zwei Strings hintereinander)&lt;/p&gt;
&lt;p&gt;STRING_TO_XYZ&lt;/p&gt;
&lt;p&gt;Bissle umständlich, klappt aber &lt;/p&gt;
&lt;p&gt;MfG&lt;/p&gt;
&lt;p&gt;Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Hexzahlen zusammenfassen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/?limit=25#a378" rel="alternate"/><published>2020-02-28T11:41:41.531000Z</published><updated>2020-02-28T11:41:41.531000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com8425b60ce892fca6e7ddc361dd0b33a4e7d76c2d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Stephanie Kreutz&lt;/p&gt;
&lt;p&gt;hast schon alles richtig verstanden,&lt;/p&gt;
&lt;p&gt;aber du kannst natürlich in einer variablen vom typ byte kein word speichern (zahl 3)&lt;/p&gt;
&lt;p&gt;wenn du die umdeklarierst sollte es funktionieren&lt;/p&gt;
&lt;p&gt;Gruß Steffi&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Hexzahlen zusammenfassen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/?limit=25#47ba" rel="alternate"/><published>2020-02-28T11:41:39.036000Z</published><updated>2020-02-28T11:41:39.036000Z</updated><author><name>locker baumeln</name><uri>https://forge.codesys.com/u/locker-baumeln/</uri></author><id>https://forge.codesys.comd1f0187677544bbf7bb6efa868d749ef8f7733c1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;upps, der smiley soll natürlich die 8 und die ) sein...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Hexzahlen zusammenfassen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/?limit=25#aaba" rel="alternate"/><published>2020-02-28T11:41:31.880000Z</published><updated>2020-02-28T11:41:31.880000Z</updated><author><name>locker baumeln</name><uri>https://forge.codesys.com/u/locker-baumeln/</uri></author><id>https://forge.codesys.com651b5ca8f32f8dd48159995dcfb0c9e7f92be580</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;upps, der smiley soll natürlich die 8 und die ) sein...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Hexzahlen zusammenfassen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/?limit=25#aea9" rel="alternate"/><published>2020-02-28T11:41:29.335000Z</published><updated>2020-02-28T11:41:29.335000Z</updated><author><name>locker baumeln</name><uri>https://forge.codesys.com/u/locker-baumeln/</uri></author><id>https://forge.codesys.comef9c8ca76d645fb1b646438d457ea517e7a33f85</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Steffi, danke für deine schnelle Antwort. Ich hab das jetzt so, nur leider Funktioniert das nicht.&lt;/p&gt;
&lt;p&gt;PROGRAM PLC_PRG&lt;/p&gt;
&lt;p&gt;VAR&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;zahl1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;BYTE&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="n"&gt;AB&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;zahl2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;BYTE&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="n"&gt;CD&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;zahl3&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;BYTE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;END_VAR&lt;/p&gt;
&lt;p&gt;zahl3 := SHL(zahl1,  OR zahl2;&lt;/p&gt;
&lt;p&gt;ok, ist auch Möglich, dass ich dich da total falsch verstanden habe...&lt;/p&gt;
&lt;p&gt;Gruß &lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Hexzahlen zusammenfassen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/?limit=25#5ada" rel="alternate"/><published>2020-02-28T11:41:22.371000Z</published><updated>2020-02-28T11:41:22.371000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com27b778919a467d7c153722d7759b30540c48ff1e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Stephanie Kreutz&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;entweder die OSCAT Funktion WORD_OF_BYTE oder ganz herkömmlich mit neueZahl := SHL(Zahl1, 8) OR Zahl2;&lt;/p&gt;
&lt;p&gt;wobei wahrscheinlich die OSCAT Bib das auch nicht wirklich anders machen wird...&lt;/p&gt;
&lt;p&gt;Gruß Steffi&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Hexzahlen zusammenfassen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0fdf4d547c/?limit=25#9a83" rel="alternate"/><published>2020-02-28T11:41:19.850000Z</published><updated>2020-02-28T11:41:19.850000Z</updated><author><name>locker baumeln</name><uri>https://forge.codesys.com/u/locker-baumeln/</uri></author><id>https://forge.codesys.com9388ef60fa37444e98b4d8e2b82cb342393bd194</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;ich will 2 Hexzahlen zusammenfassen, also Zahl 1 ist zb AB und Zahl 2 CD.&lt;/p&gt;
&lt;p&gt;Ich will sie nicht addieren, sonder zusammenfassen, das die neue Zahl dann ABCD lautet.&lt;/p&gt;
&lt;p&gt;Danke für eure Hilfe&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>