<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Variable Variablen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0b69725bff/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0b69725bff/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/0b69725bff/</id><updated>2020-02-28T07:27:00.809000Z</updated><subtitle>Recent posts to Variable Variablen</subtitle><entry><title>Variable Variablen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0b69725bff/?limit=25#c862" rel="alternate"/><published>2020-02-28T07:27:00.809000Z</published><updated>2020-02-28T07:27:00.809000Z</updated><author><name>Erik Böhm</name><uri>https://forge.codesys.com/u/erik-boehm/</uri></author><id>https://forge.codesys.com8037262921d97efa16f8dbcc37e422e0d516e092</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Moin&lt;/p&gt;
&lt;p&gt;Du kannst jederzeit STRING_TO_BOOL(myVar) oder auch STRING_TO_DWORD(myVar) oder auch andersrum INT_TO_STRING(myVar) oder so machen.&lt;/p&gt;
&lt;p&gt;Das funktioniert mit allen (genormten) Typen in alle Richtungen.&lt;/p&gt;
&lt;p&gt;Über den Sinn lässt sich im einzelnen diskutieren....&lt;/p&gt;
&lt;p&gt;Gruss&lt;/p&gt;
&lt;p&gt;Erik&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Variable Variablen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0b69725bff/?limit=25#a3df" rel="alternate"/><published>2020-02-28T07:26:54.358000Z</published><updated>2020-02-28T07:26:54.358000Z</updated><author><name>SBoot77</name><uri>https://forge.codesys.com/u/sboot77/</uri></author><id>https://forge.codesys.com166f75d0503d707839b6c3ebabf17fc097889a37</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo, &lt;/p&gt;
&lt;p&gt;gibt es die Funktion VAR_TO_STRING bzw. STRING_TO_VAR in irgendeiner Bibliothek? Ich habe alles durchsucht, und nichts gefunden.&lt;/p&gt;
&lt;p&gt;Ich verwende die Codesys Version 2.3.9.4&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Variable Variablen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0b69725bff/?limit=25#ba2e" rel="alternate"/><published>2020-02-28T07:26:51.981000Z</published><updated>2020-02-28T07:26:51.981000Z</updated><author><name>SBoot77</name><uri>https://forge.codesys.com/u/sboot77/</uri></author><id>https://forge.codesys.comea3f15a3f5c99f882e02e06d67450b7a1cd6b763</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Vielen Dank für die Tipps,&lt;/p&gt;
&lt;p&gt;das mit dem Array würde nur teilweise funktionieren und ich könnte meine Datenstruktur nicht verwenden.&lt;/p&gt;
&lt;p&gt;Das mit dem string scheint einwandfrei zu funktionieren, die Daten Stimmen auch. Vielen Dank.&lt;/p&gt;
&lt;p&gt;SBoot77&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Variable Variablen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0b69725bff/?limit=25#038a" rel="alternate"/><published>2020-02-28T07:26:45.500000Z</published><updated>2020-02-28T07:26:45.500000Z</updated><author><name>Speicherzelle</name><uri>https://forge.codesys.com/u/speicherzelle/</uri></author><id>https://forge.codesys.comca2312fca96cb8883fccfe619ff291e87db4056e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;SBoot77 hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hallo zusammen,&lt;br/&gt;
kann man eine Variable variabel beschreiben (komisches Wortspiel)? Bei meinen Robotern sieht das dann ungefähr so aus:&lt;br/&gt;
(&lt;em&gt; Deklaration &lt;/em&gt;)&lt;br/&gt;
Variable_1:int;&lt;br/&gt;
Variable_2:int;&lt;br/&gt;
Zaehler:int;&lt;br/&gt;
Wert:Int;&lt;br/&gt;
(&lt;em&gt; ungefährer Code &lt;/em&gt;)&lt;br/&gt;
INCR Zaehler;&lt;br/&gt;
Variable_&lt;span&gt;[Zaehler]&lt;/span&gt;:=Wert;&lt;br/&gt;
gibt es da im Codesys irgendeine Möglichkeit  &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hallo&lt;/p&gt;
&lt;p&gt;wandel variable_ in einen String das gleiche mit Zähler&lt;/p&gt;
&lt;p&gt;dann concat variable_+Zähler&lt;/p&gt;
&lt;p&gt;dann wandeltst Du diese gesamtvariable wieder in ein Int um&lt;/p&gt;
&lt;p&gt;das wars&lt;/p&gt;
&lt;p&gt;MFG Speicherzelle&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Variable Variablen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0b69725bff/?limit=25#634d" rel="alternate"/><published>2020-02-28T07:26:43.195000Z</published><updated>2020-02-28T07:26:43.195000Z</updated><author><name>Isegrim</name><uri>https://forge.codesys.com/u/isegrim/</uri></author><id>https://forge.codesys.comc3ebddcb946ca556e8de00abc5ac85b30f40fc5f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;/p&gt;
&lt;p&gt;probiers doch mal mit einem eindimensionalen Array.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Variable Variablen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/0b69725bff/?limit=25#60f8" rel="alternate"/><published>2020-02-28T07:26:36.790000Z</published><updated>2020-02-28T07:26:36.790000Z</updated><author><name>SBoot77</name><uri>https://forge.codesys.com/u/sboot77/</uri></author><id>https://forge.codesys.comc991c2ab9d13207389d0614c57fb9cdcbac8e65d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo zusammen,&lt;/p&gt;
&lt;p&gt;kann man eine Variable variabel beschreiben (komisches Wortspiel)? Bei meinen Robotern sieht das dann ungefähr so aus:&lt;/p&gt;
&lt;p&gt;(&lt;em&gt; Deklaration &lt;/em&gt;)&lt;/p&gt;
&lt;p&gt;Variable_1:int;&lt;/p&gt;
&lt;p&gt;Variable_2:int;&lt;/p&gt;
&lt;p&gt;Zaehler:int;&lt;/p&gt;
&lt;p&gt;Wert:Int;&lt;/p&gt;
&lt;p&gt;(&lt;em&gt; ungefährer Code &lt;/em&gt;)&lt;/p&gt;
&lt;p&gt;INCR Zaehler;&lt;/p&gt;
&lt;p&gt;Variable_&lt;span&gt;[Zaehler]&lt;/span&gt;:=Wert;&lt;/p&gt;
&lt;p&gt;gibt es da im Codesys irgendeine Möglichkeit  &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>