<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to strukturen deklaration</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/f7e858a53b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/f7e858a53b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/f7e858a53b/</id><updated>2020-02-28T17:04:27.558000Z</updated><subtitle>Recent posts to strukturen deklaration</subtitle><entry><title>strukturen deklaration</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/f7e858a53b/?limit=25#761d" rel="alternate"/><published>2020-02-28T17:04:27.558000Z</published><updated>2020-02-28T17:04:27.558000Z</updated><author><name>hepo</name><uri>https://forge.codesys.com/u/hepo/</uri></author><id>https://forge.codesys.com744191c6930b65c5f8a61fa3f458b714efda38a1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;...werd's gleich mal so probieren! &lt;/p&gt;
&lt;p&gt;danke erstmal!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>strukturen deklaration</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/f7e858a53b/?limit=25#16e7" rel="alternate"/><published>2020-02-28T17:04:24.503000Z</published><updated>2020-02-28T17:04:24.503000Z</updated><author><name>r.freund</name><uri>https://forge.codesys.com/u/r-freund/</uri></author><id>https://forge.codesys.com042e65fd22c9b2364856a8fa5b1cfd1cfc6ccc40</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Die Hilfe sagt, dass die Initialisierung nicht mit Variablen möglich ist.&lt;/p&gt;
&lt;p&gt;Es wird wohl nur so im Programm funktionieren:&lt;/p&gt;
&lt;p&gt;ERR_NR&lt;span&gt;[1]&lt;/span&gt;.STRG1 := ERR_SPN12;&lt;/p&gt;
&lt;p&gt;ERR_NR&lt;span&gt;[1]&lt;/span&gt;.STRG2 := ERR_FMI01;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>strukturen deklaration</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/f7e858a53b/?limit=25#c7b0" rel="alternate"/><published>2020-02-28T17:04:16.656000Z</published><updated>2020-02-28T17:04:16.656000Z</updated><author><name>hepo</name><uri>https://forge.codesys.com/u/hepo/</uri></author><id>https://forge.codesys.comca019bb284f3fc7ed1fe40d25b01352a4462db65</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo an die Runde!&lt;/p&gt;
&lt;p&gt;Hänge grad ziemlich bei einer Strukturen-Deklaration.&lt;/p&gt;
&lt;p&gt;Ich habe unter Datentypen einen Variablentyp ERR_VAL strukturiert, &lt;/p&gt;
&lt;p&gt;der aus zwei STRINGs, STRG1 und STRG2 besteht.&lt;/p&gt;
&lt;p&gt;Soweit kein Problem.&lt;/p&gt;
&lt;p&gt;Dann habe ich eine Array-Variable bestehend aus 100 Elementen mit&lt;/p&gt;
&lt;p&gt;diesem Variablentypen definiert:&lt;/p&gt;
&lt;p&gt;ERR_NR := ARRAY &lt;span&gt;[1..100]&lt;/span&gt; OF ERR_VAL;&lt;/p&gt;
&lt;p&gt;Ich hab das im Deklarationsteil des Programms gemacht, in dem ich dieses Array beschreibe.&lt;/p&gt;
&lt;p&gt;Beim Beschreiben des Arrays z.B. mit:&lt;/p&gt;
&lt;p&gt;ERR_NR&lt;span&gt;[1]&lt;/span&gt; := (STRING1 := ERR_SPN12, STRING2 := ERR_FMI01);&lt;/p&gt;
&lt;p&gt;So hätte ich es zumindest unter der Hilfe gelesen, funktioniert aber&lt;/p&gt;
&lt;p&gt;nicht. Es kommt immer die Fehlermeldung, dass STRING(80) nicht&lt;/p&gt;
&lt;p&gt;in ERR_VAL konvertiert werden kann.&lt;/p&gt;
&lt;p&gt;Was mach ich dabei falsch???&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>