<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to ... nochmals ein ARRAY ... eigentlich nicht dynamisch</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/8c166cc505/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/8c166cc505/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/8c166cc505/</id><updated>2020-02-28T04:47:08.110000Z</updated><subtitle>Recent posts to ... nochmals ein ARRAY ... eigentlich nicht dynamisch</subtitle><entry><title>... nochmals ein ARRAY ... eigentlich nicht dynamisch</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/8c166cc505/?limit=25#366a" rel="alternate"/><published>2020-02-28T04:47:08.110000Z</published><updated>2020-02-28T04:47:08.110000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com99f1b25b8b62a9d15069468e82c9a58e117a891a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; mg&lt;/p&gt;
&lt;p&gt;... ich habs vorerst mal mit pointern realisiert.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>... nochmals ein ARRAY ... eigentlich nicht dynamisch</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/8c166cc505/?limit=25#6a33" rel="alternate"/><published>2020-02-28T04:47:06.059000Z</published><updated>2020-02-28T04:47:06.059000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.come839be285cde59b282e1b44917eb7dc9215bcbba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; mg&lt;/p&gt;
&lt;p&gt;Ich möchte folgende Deklaration in einem Functionblock verwenden&lt;/p&gt;
&lt;p&gt;VAR&lt;/p&gt;
&lt;p&gt;Array AT "konstante 1": ARRAY &lt;span&gt;[1.."konstante 2"]&lt;/span&gt; OF WORD&lt;/p&gt;
&lt;p&gt;Konstante 1 und konstante 2 werden im VAR_GLOBAL CONTANT zugewiesen. Ich glaube eigentlich, dass es nicht geht ... weil der Functionblock immer wieder mit neuen Variablen beschickt wird und es eigentlich keine richtigen Konstanten wären.&lt;/p&gt;
&lt;p&gt;Der gewünscht Aufruf des FB wäre:&lt;/p&gt;
&lt;p&gt;VAR_GLOBAL&lt;/p&gt;
&lt;p&gt;glob_const1:=%MW000; glob_constA:=5&lt;/p&gt;
&lt;p&gt;glob_const2:=%MW120; glob_constB:=20&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;FBxyz1(konstante1:=glob_const1, konstante2:=glob_constA)&lt;/p&gt;
&lt;p&gt;FBxyz2(konstante1:=glob_const2, konstante2:=glob_constB)&lt;/p&gt;
&lt;p&gt;Kann sowas ähnliches funktionieren oder muss ich das Ganze mit einem PRG statt mit dem FB machen. &lt;/p&gt;
&lt;p&gt;(Bei mir geht es nie und nimmer, hat jemand einen Tip)&lt;/p&gt;
&lt;p&gt;Danke&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>